diff --git a/src/api/index.js b/src/api/index.js
index ab03d77..bbe239f 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,7 +1,7 @@
import Setting from "@/setting";
const host = Setting.apiBaseURL
const uploadURL = Setting.upload.apiURL;
-const host1 = "http://39.108.250.202:8080/"
+const host1 = "http://121.37.12.51:8080/"
export default {
queryToken: `liuwanr/userInfo/queryToken`,
@@ -42,7 +42,7 @@ export default {
saveOrg: `occupationlab/architecture/save`, // 新增组织架构
updateOrg: `occupationlab/architecture/update`, // 编辑组织架构
deleteOrg: `occupationlab/architecture/delete`, // 删除组织架构
- studentTemplate: `http://39.108.250.202/template/学生导入模板.xlsx`, // 学生导入模板
+ studentTemplate: `http://121.37.12.51/template/学生导入模板.xlsx`, // 学生导入模板
// 测评管理
questionsList: `occupationlab/questions/list`, // 题库列表查询
@@ -51,7 +51,7 @@ export default {
questionsDetail: `occupationlab/questions/detail`, // 查看当前题库信息
questionsDelete: `occupationlab/questions/delete`, // 根据主键删除
questionsIsDisable: `occupationlab/questions/isDisable`, // 是否禁用试题
- questionsTemplate: `http://39.108.250.202/template/试题导入模板.xlsx`, //excel模板文件下载
+ questionsTemplate: `http://121.37.12.51/template/试题导入模板.xlsx`, //excel模板文件下载
questionsImport: `${host}occupationlab/questions/importQuestion`, // 批量导入题库
questionsExportFailure: `${host}occupationlab/questions/exportFailure`, // 批量导入题库失败数据导出
questionsInfo: `occupationlab/questions/info`, // 测评规则信息的展示
@@ -103,13 +103,18 @@ export default {
updateProjectJudgment: `occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新
deleteProjectJudgment: `occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除
- // 赛事管理
+
+ // 赛事
+ contestPageConditionQueryByOccupationlab: `occupationlab/enterprise/match/contest/contestPageConditionQueryByOccupationlab`,
addContest: `occupationlab/enterprise/match/contest/addContest`,
- deleteContest: `occupationlab/enterprise/match/contest/deleteContest`,
editContest: `occupationlab/enterprise/match/contest/editContest`,
- publishContest: `occupationlab/enterprise/match/contest/publishContest`,
+ deleteContest: `occupationlab/enterprise/match/contest/deleteContest`,
getContest: `occupationlab/enterprise/match/contest/getContest`,
- queryContestByCondition: `occupationlab/enterprise/match/contest/queryContestByCondition`,
+ deleteAnnex: `occupationlab/contest/annex/delete`,
+ saveAnnex: `occupationlab/contest/annex/save`,
+ getSchoolsByProvince: `nakadai/nakadai/school/getSchoolsByProvince`,
+ disabledEvents: `occupationlab/enterprise/match/contest/disabledEvents`,
+
// 竞赛进展
addContestProgress: `occupationlab/enterprise/match/contest-progress/addContestProgress`,
deleteContestProgress: `occupationlab/enterprise/match/contest-progress/deleteContestProgress`,
@@ -118,10 +123,18 @@ export default {
// 报名人员
addApplicant: `occupationlab/enterprise/match/applicant/addApplicant`,
disableContests: `occupationlab/enterprise/match/applicant/disableContests`,
- excelExport: `occupationlab/enterprise/match/applicant/excelExport`,
+ excelExport: `${host}occupationlab/enterprise/match/applicant/excelExport`,
queryApplicantByCondition: `occupationlab/enterprise/match/applicant/queryApplicantByCondition`,
disableApplicant: `occupationlab/enterprise/match/applicant/disableApplicant`,
- batchExport: `occupationlab/enterprise/match/applicant/batchExport`,
+ exportDataInBatches: `${host}occupationlab/enterprise/match/applicant/exportDataInBatches`,
+ // 赛事公告
+ addAnnouncement: `occupationlab/contest/announcement/addAnnouncement`,
+ amendmentAnnouncement: `occupationlab/contest/announcement/amendmentAnnouncement`,
+ deleteAnnouncement: `occupationlab/contest/announcement/deleteAnnouncement`,
+ queryAnnouncementByContestId: `occupationlab/contest/announcement/queryAnnouncementByContestId`,
+ queryAnnouncementDetails: `occupationlab/contest/announcement/queryAnnouncementDetails`,
+ deleteAnnouncementAnnex: `occupationlab/contestAnnouncementAnnex/delete`,
+ saveAnnouncementAnnex: `occupationlab/contestAnnouncementAnnex/save`,
// 栏目管理
addColumn: `occupationlab/enterprise/information/column/addColumn`,
@@ -204,7 +217,7 @@ export default {
modifyStaff: `occupationlab/staff/modifyStaff`, //编辑员工
delStaff: `occupationlab/staff/delStaff`, //删除员工
staffList: `occupationlab/staff/staffList`, //员工列表
- staffTemplate: `http://39.108.250.202/template/员工用户导入模板.xlsx`, //员工用户导入模板
+ staffTemplate: `http://121.37.12.51/template/员工用户导入模板.xlsx`, //员工用户导入模板
exportFailureStaff: `${host}occupationlab/staff/exportFailure`, //批量导入员工失败数据导出
importStaff: `${host}occupationlab/staff/importStaff`, //批量导入员工
// 角色管理
diff --git a/src/assets/img/label.png b/src/assets/img/label.png
new file mode 100644
index 0000000..31c27d1
Binary files /dev/null and b/src/assets/img/label.png differ
diff --git a/src/pages/achievement/list/index.vue b/src/pages/achievement/list/index.vue
index c7c53a0..2a06cc6 100644
--- a/src/pages/achievement/list/index.vue
+++ b/src/pages/achievement/list/index.vue
@@ -30,7 +30,7 @@
-
+
-
+
-
+
@@ -21,7 +21,7 @@
:headers="headers"
name="file"
>
-
+
上传封面
@@ -44,7 +44,7 @@
:headers="headers"
name="file"
>
-
+
+
+
+ 本校内
+
+
+ 全平台
+
+
+ 指定区域、院校
+ 选择院校
+ {{ rangeName }}
+
+
-
+
@@ -98,240 +111,385 @@
:picker-options="pickerOptions">
-
+
+
+
+
+ 点击上传
+
+
支持扩展名:.rar .zip .doc .docx .pdf .jpg...
+
+
- 保存
- 发布
+ 保存
+ 发布
+ 预览
+
+
+
+
+
+
+
+
+
+
{{ form.name }}
+
最近编辑时间:{{ form.updateTime }}
+
+
+
竞赛信息
+
+
+ 附件下载
+
+ -
+ {{ item.fileName }}
+ 下载
+
+
+
+
+
@@ -468,4 +626,42 @@ $upload-lg-height: 150px;
font-weight: bold;
}
}
+.match {
+ .l-title{
+ display: flex;
+ align-items: center;
+ margin-bottom: 12px;
+ font-size: 14px;
+ color: #333;
+ img{
+ margin-right: 5px;
+ }
+ }
+ .title{
+ width: 67%;
+ margin: 0 auto;
+ font-size: 28px;
+ text-align: center;
+ color: #0B1D30;
+ }
+ .info .meta{
+ padding: 16px 0;
+ font-size: 12px;
+ color: #999;
+ text-align: center;
+ }
+ .texts {
+ margin-bottom: 30px;
+ }
+ .files {
+ li {
+ display: flex;
+ align-items: center;
+ margin: 10px 0;
+ }
+ .file-name {
+ margin-right: 10px;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue
index fe2f85f..e1ca01c 100644
--- a/src/pages/match/list/index.vue
+++ b/src/pages/match/list/index.vue
@@ -24,38 +24,48 @@
+
+
- {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
-
-
-
-
-
- {{ scope.row.applicantNum ? scope.row.applicantNum : 0 }}
+ {{ scope.$index + (page - 1) * pageSize + 1 }}
+
+
-
- {{ transferPublishStatus[scope.row.publishStatus] }}
-
+
+ {{ scope.row.publishStatus ? '已发布' : '未发布' }}
+
{{ scope.row.playStartTime }} ~ {{ scope.row.playEndTime }}
-
-
-
- {{scope.row.founder || '系统默认管理员'}}
-
+
+
+
+ {{ scope.row.founderName || '学校超管' }}
+
@@ -66,20 +76,22 @@
+
+
@@ -92,27 +104,28 @@ export default {
name: "match",
data() {
return {
+ timer: null,
keyword: "",
- statusList: [
- {
- value: "",
- name: "不限"
- },
- {
- value: 1,
- name: "待发布"
- },
- {
- value: 0,
- name: "已发布"
- }
- ],
matchData: [],
+ statuses: [
+ {
+ id: '',
+ name: '不限'
+ },
+ {
+ id: 0,
+ name: '待发布'
+ },
+ {
+ id: 1,
+ name: '已发布'
+ }
+ ],
form: {
month: "",
publishStatus: "",
startTime: "",
- endTime: ""
+ endTime: "",
},
multipleSelection: [],
dateList: [
@@ -134,10 +147,10 @@ export default {
}
],
date: [],
- pageNo: +this.$route.query.page || 1,
+ page: +this.$route.query.page || 1,
pageSize: 10,
- totals: 0,
- transferPublishStatus: ["已发布", "未发布"]
+ total: 0,
+ transferPublishStatus: [ "未发布", "已发布"]
};
},
watch: {
@@ -167,29 +180,41 @@ export default {
}
},
mounted() {
- this.getData();
+ this.getData()
+ this.$once('hook:beforeDestroy', function() {
+ clearInterval(this.timer)
+ })
},
methods: {
getData() {
- let data = {};
- if (this.form.month) data.month = this.form.month;
- if (this.keyword) data.name = this.keyword;
- if (this.form.publishStatus !== "") data.publishStatus = this.form.publishStatus;
- if (this.form.startTime) data.startTime = this.form.startTime;
- if (this.form.endTime) data.endTime = this.form.endTime;
- this.$get(`${this.api.queryContestByCondition}/${this.pageNo}/${this.pageSize}`, data).then(res => {
- this.matchData = res.contestList;
- this.totals = res.total;
- this.$refs.table.clearSelection();
- if (!this.matchData.length && this.totals) {
- this.pageNo--;
- this.getData();
- }
- }).catch(res => {
- });
+ const { form } = this
+ // this.timer = setInterval(() => {
+ this.$post(this.api.contestPageConditionQueryByOccupationlab, {
+ pageNum: this.page,
+ pageSize: this.pageSize,
+ competitionScope: 0, // 大赛范围(0:本校内 1:全平台 2.指定区域、院校)
+ endTime: form.endTime || null,
+ keyWord: this.keyword || null,
+ platformSource: 1, // 大赛来源(0中台,1职站)
+ startTime: form.startTime || null,
+ publishStatus: form.publishStatus
+ }).then(({ data }) => {
+ const { records } = data
+ records.map(e => {
+ if (e.ztOpen) e.isOpen = 1
+ })
+ this.matchData = records
+ this.total = data.total
+ this.$refs.table.clearSelection()
+ if (!this.matchData.length && this.total) {
+ this.page--
+ this.getData()
+ }
+ }).catch(res => {})
+ // }, 1000)
},
initData() {
- this.pageNo = 1;
+ this.page = 1;
this.getData();
},
add() {
@@ -242,7 +267,7 @@ export default {
this.multipleSelection = val;
},
handleCurrentChange(val) {
- this.pageNo = val;
+ this.page = val;
this.$router.push(`list?page=${val}`)
this.getData();
},
@@ -251,11 +276,16 @@ export default {
return date;
},
switchOff(val, row, index) {
- this.$put(`${this.api.publishContest}/${row.id}/${val}`)
+ this.$post(this.api.disabledEvents, {
+ contestId: row.id,
+ isOpen: val,
+ type: 1 // 禁用平台来源(0中台,1职站)
+ })
.then(res => {
- val == 1 ? util.warningMsg("该赛事信息已隐藏对学生端用户不可见") : util.successMsg("该赛事信息已对学生端用户公开");
+ val == 1 ? util.warningMsg('禁用成功') : util.successMsg('启用成功')
})
.catch(err => {
+ row.isOpen = val ? 0 : 1
});
}
}
diff --git a/src/pages/match/manage/index.vue b/src/pages/match/manage/index.vue
index ffeaf5a..2bd8469 100644
--- a/src/pages/match/manage/index.vue
+++ b/src/pages/match/manage/index.vue
@@ -3,17 +3,19 @@
-
+
@@ -24,55 +26,66 @@
diff --git a/src/pages/match/manage/matchProgress.vue b/src/pages/match/manage/matchProgress.vue
index e0b5ebd..b811729 100644
--- a/src/pages/match/manage/matchProgress.vue
+++ b/src/pages/match/manage/matchProgress.vue
@@ -81,7 +81,9 @@ export default {
row.operate = true
},
getData() {
- this.$get(`${this.api.getContestProgress}/${this.id}`).then(res => {
+ this.$get(this.api.getContestProgress, {
+ contestId: this.id
+ }).then(res => {
this.listData = res.contestProgressList;
for(let index=0; index
- {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
+ {{ scope.$index + (page - 1) * pageSize + 1 }}
-
+
@@ -43,7 +43,7 @@
@@ -52,6 +52,7 @@
+
+
\ No newline at end of file
diff --git a/src/pages/match/manage/noticeDetail.vue b/src/pages/match/manage/noticeDetail.vue
new file mode 100644
index 0000000..0ac503e
--- /dev/null
+++ b/src/pages/match/manage/noticeDetail.vue
@@ -0,0 +1,304 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传
+
+
支持扩展名:.rar .zip .doc .docx .pdf .jpg...
+
+
+
+
+ 草稿
+ 发布
+ 取消
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index b986ee6..8e6c47c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -234,6 +234,24 @@ function getPermission() {
meta: { title: "实验台" }
})
}
+ const assessment = permissionRouters.findIndex(e => e.name === 'assessment')
+ if (assessment !== -1) {
+ permissionRouters[assessment].children.push({
+ name: `assessment-add`,
+ path: `/assessment/add`,
+ component: () => import("@/pages/assessment/add"),
+ meta: { title: "创建考核" }
+ })
+ }
+ const notice = permissionRouters.findIndex(e => e.name === 'match')
+ if (notice !== -1) {
+ permissionRouters[notice].children.push({
+ name: `noticeDetail`,
+ path: `/match/noticeDetail`,
+ component: () => import("@/pages/match/manage/noticeDetail"),
+ meta: { title: "通知公告" }
+ })
+ }
// 把处理完成的路由,add到router里
// 记录一下路由的名称,用于nav
let nav = data.map(e => e.path);
diff --git a/src/setting.js b/src/setting.js
index 6c3ec86..9cb5854 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -7,7 +7,7 @@ const isHh = url.includes("10.196.131.73"); //是否河海版本
const isCH = url.includes("124.71.12.62"); //是否巢湖版本
const isBeta = url.includes("120.78.198.231"); //是否职站测试
const isPro = url.includes("occupationlab.com"); //是否职站生产
-const isTest = url.includes('39.108.250.202'); //是否中台测试服
+const isTest = url.includes('121.37.12.51'); //是否中台测试服
let bankPath = `${location.origin}/banksystem` // 银行系统地址
let jumpPath = `${location.origin}/judgmentPoint`
@@ -32,8 +32,8 @@ if (isHh) {
} else if (isDev) {
jumpPath = "http://192.168.31.125:8087/";
bankPath = `http://192.168.31.125:8093`
- host = "http://39.108.250.202:9000/"; // 中台测试服
- // host = "http://192.168.31.151:9000/"; // 榕
+ // host = "http://121.37.12.51:9000/"; // 中台测试服
+ host = "http://192.168.31.151:9000/"; // 榕
// host = 'http://192.168.31.137:9000/'; // 赓
}
@@ -92,7 +92,7 @@ const Setting = {
dynamicRoute: true,
// 文件上传
upload: {
- apiURL: "http://39.108.250.202:9000/",
+ apiURL: "http://121.37.12.51:9000/",
maxSize: 30
}
};
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 5da4dc3..4181b56 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -99,7 +99,7 @@ export default {
if (state.fromClient) {
util.cookies.remove('serverLogin')
location.href = Setting.isDev
- ? `http://192.168.31.125:8082/#/`
+ ? `http://${location.hostname}:8082/#/`
: Setting.isTest
? `${location.origin}/student/#/login`
: `${location.origin}/#/login`