diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
index 5ec50ad6..67f0ec6f 100644
--- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
+++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
@@ -1264,21 +1264,36 @@ public class AnnualCompetitionProjectRegistrationController {
map2.put("xmid",listacp.get(k).getId());
//状态
Date date = new Date();
- if(date.getTime()>=listacp.get(k).getApplyStartTime().getTime()&&date.getTime()<=listacp.get(k).getApplyEndTime().getTime()){
- map2.put("zt","报名");
+ if(listacp.get(k).getApplyStartTime()!=null&&listacp.get(k).getApplyEndTime()!=null){
+ if(date.getTime()>=listacp.get(k).getApplyStartTime().getTime()&&date.getTime()<=listacp.get(k).getApplyEndTime().getTime()){
+ map2.put("zt","报名");
+ }
}
- if(date.getTime()>=listacp.get(k).getTopicStartTime().getTime()&&date.getTime()<=listacp.get(k).getTopicEndTime().getTime()){
- map2.put("zt","选题");
+
+ if(listacp.get(k).getTopicStartTime()!=null&&listacp.get(k).getTopicEndTime()!=null){
+ if(date.getTime()>=listacp.get(k).getTopicStartTime().getTime()&&date.getTime()<=listacp.get(k).getTopicEndTime().getTime()){
+ map2.put("zt","选题");
+ }
}
- if(date.getTime()>=listacp.get(k).getUploadStartTime().getTime()&&date.getTime()<=listacp.get(k).getUploadEndTime().getTime()){
- map2.put("zt","上传作品");
+
+ if(listacp.get(k).getUploadStartTime()!=null&&listacp.get(k).getUploadEndTime()!=null){
+ if(date.getTime()>=listacp.get(k).getUploadStartTime().getTime()&&date.getTime()<=listacp.get(k).getUploadEndTime().getTime()){
+ map2.put("zt","上传作品");
+ }
}
- if(date.getTime()>=listacp.get(k).getScoreStartTime().getTime()&&date.getTime()<=listacp.get(k).getScoreEndTime().getTime()){
- map2.put("zt","评分");
+
+ if(listacp.get(k).getScoreStartTime()!=null&&listacp.get(k).getScoreEndTime()!=null){
+ if(date.getTime()>=listacp.get(k).getScoreStartTime().getTime()&&date.getTime()<=listacp.get(k).getScoreEndTime().getTime()){
+ map2.put("zt","评分");
+ }
}
- if(date.getTime()>listacp.get(k).getScoreEndTime().getTime()){
- map2.put("zt","已结束");
+
+ if(listacp.get(k).getScoreEndTime()!=null){
+ if(date.getTime()>listacp.get(k).getScoreEndTime().getTime()){
+ map2.put("zt","已结束");
+ }
}
+
xmListMap.add(map2);
}
}else {
@@ -1292,20 +1307,34 @@ public class AnnualCompetitionProjectRegistrationController {
map3.put("xmid",listacp.get(o).getId());
//状态
Date date = new Date();
- if(date.getTime()>=listacp.get(o).getApplyStartTime().getTime()&&date.getTime()<=listacp.get(o).getApplyEndTime().getTime()){
- map3.put("zt","报名");
+ if(listacp.get(o).getApplyStartTime()!=null&&listacp.get(o).getApplyEndTime()!=null){
+ if(date.getTime()>=listacp.get(o).getApplyStartTime().getTime()&&date.getTime()<=listacp.get(o).getApplyEndTime().getTime()){
+ map3.put("zt","报名");
+ }
}
- if(date.getTime()>=listacp.get(o).getTopicStartTime().getTime()&&date.getTime()<=listacp.get(o).getTopicEndTime().getTime()){
- map3.put("zt","选题");
+
+ if(listacp.get(o).getTopicStartTime()!=null&&listacp.get(o).getTopicEndTime()!=null){
+ if(date.getTime()>=listacp.get(o).getTopicStartTime().getTime()&&date.getTime()<=listacp.get(o).getTopicEndTime().getTime()){
+ map3.put("zt","选题");
+ }
}
- if(date.getTime()>=listacp.get(o).getUploadStartTime().getTime()&&date.getTime()<=listacp.get(o).getUploadEndTime().getTime()){
- map3.put("zt","上传作品");
+
+ if(listacp.get(o).getUploadStartTime()!=null&&listacp.get(o).getUploadEndTime()!=null){
+ if(date.getTime()>=listacp.get(o).getUploadStartTime().getTime()&&date.getTime()<=listacp.get(o).getUploadEndTime().getTime()){
+ map3.put("zt","上传作品");
+ }
}
- if(date.getTime()>=listacp.get(o).getScoreStartTime().getTime()&&date.getTime()<=listacp.get(o).getScoreEndTime().getTime()){
- map3.put("zt","评分");
+
+ if(listacp.get(o).getScoreStartTime()!=null&&listacp.get(o).getScoreEndTime()!=null){
+ if(date.getTime()>=listacp.get(o).getScoreStartTime().getTime()&&date.getTime()<=listacp.get(o).getScoreEndTime().getTime()){
+ map3.put("zt","评分");
+ }
}
- if(date.getTime()>listacp.get(o).getScoreEndTime().getTime()){
- map3.put("zt","已结束");
+
+ if(listacp.get(o).getScoreEndTime()!=null){
+ if(date.getTime()>listacp.get(o).getScoreEndTime().getTime()){
+ map3.put("zt","已结束");
+ }
}
xmListMap.add(map3);
}
diff --git a/jeecgboot-vue3-master/src/api/common/api.ts b/jeecgboot-vue3-master/src/api/common/api.ts
index 33ea0fd6..d219fddd 100644
--- a/jeecgboot-vue3-master/src/api/common/api.ts
+++ b/jeecgboot-vue3-master/src/api/common/api.ts
@@ -158,4 +158,10 @@ export const getOrganizingCommittee = () => {
return defHttp.get({
url:'/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/zwhsybsjs'
})
+}
+// 学生首页
+export const getStudent = () => {
+ return defHttp.get({
+ url:'/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/xssybsjs'
+ })
}
\ No newline at end of file
diff --git a/jeecgboot-vue3-master/src/views/awardpersion/AwardPersionList.vue b/jeecgboot-vue3-master/src/views/awardpersion/AwardPersionList.vue
index 8a3a1b4a..f640d1a3 100644
--- a/jeecgboot-vue3-master/src/views/awardpersion/AwardPersionList.vue
+++ b/jeecgboot-vue3-master/src/views/awardpersion/AwardPersionList.vue
@@ -39,8 +39,8 @@
新增
重新获取
导出
- 导出模板
- 导入推荐
+ 导出推荐
+ 导入模板
导入
diff --git a/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardList.vue b/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardList.vue
index aef3a848..56ee45b3 100644
--- a/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardList.vue
+++ b/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardList.vue
@@ -27,38 +27,7 @@
const props = defineProps({
data: {
type: Array,
- default: [
- {
- name: '机电学院',
- sum: 100,
- id:1,
- },
- {
- name: '机电学院',
- sum: 100,
- id:2,
- },
- {
- name: '机电学院',
- sum: 100,
- id:3,
- },
- {
- name: '机电学院',
- sum: 100,
- id:1,
- },
- {
- name: '机电学院',
- sum: 100,
- id:2,
- },
- {
- name: '机电学院',
- sum: 100,
- id:3,
- },
- ],
+ default: [],
},
});
const goToInfo = (id:any) => {
diff --git a/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFive.vue b/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFive.vue
index a554721c..cec9665c 100644
--- a/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFive.vue
+++ b/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFive.vue
@@ -5,17 +5,19 @@
-
所有奖项
-
比赛名称
+
奖项名称
+
年度比赛名称
+
年度比赛项目名称
积分
-
{{ i.name }}
-
{{ i.sum }}
-
{{ i.id }}
+
{{ i.jxname }}
+
{{ i.ndbs }}
+
{{ i.ndbsxm }}
+
{{ i.jf }}
@@ -25,38 +27,7 @@
const props = defineProps({
data: {
type: Array,
- default: [
- {
- name: '一等奖',
- sum: '全国计算机高级大赛',
- id:1,
- },
- {
- name: '一等奖',
- sum: '全国计算机高级大赛',
- id:2,
- },
- {
- name: '一等奖',
- sum: '全国计算机高级大赛',
- id:3,
- },
- {
- name: '一等奖',
- sum: '全国计算机高级大赛',
- id:4,
- },
- {
- name: '一等奖',
- sum: '全国计算机高级大赛',
- id:5,
- },
- {
- name: '一等奖',
- sum: '全国计算机高级大赛',
- id:6,
- },
- ],
+ default: [],
},
});
diff --git a/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFour.vue b/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFour.vue
index 396eb1c3..365f6a76 100644
--- a/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFour.vue
+++ b/jeecgboot-vue3-master/src/views/depart/workbench/components/components/cardListFour.vue
@@ -5,60 +5,38 @@
-
比赛名称
-
比赛状态
+
报名比赛项目
+
状态
操作
-
{{ i.name }}
-
{{ i.sum }}
-
详情
+
{{ i.xmname }}
+
{{ i.zt }}
+
详情