diff --git a/src/api/index.js b/src/api/index.js index 88248b2..1744873 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -128,6 +128,7 @@ export default { curriculumList: `nakadai/nakadai/curriculum/schoolCourse`, queryCustomer: `nakadai/nakadai/customer/queryCustomer`, getSchoolsByProvince: `nakadai/nakadai/school/getSchoolsByProvince`, + getRedisCacheCompetition: `competition/competition/management/getRedisCache`, // 赛事内容 addCompetitionContent: `competition/competition/content/addCompetitionContent`, diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue index 1f883f1..f6052a2 100644 --- a/src/pages/match/list/index.vue +++ b/src/pages/match/list/index.vue @@ -184,6 +184,7 @@ export default { playingStages: [] }, timer: null, + redisTimer: null, pickerOptions: { shortcuts: [{ text: '此刻', @@ -224,6 +225,7 @@ export default { this.getData() this.$once('hook:beforeDestroy', function() { clearInterval(this.timer) + clearInterval(this.redisTimer) }) }, methods: { @@ -289,6 +291,13 @@ export default { this.page = 1; this.getData(); }, + getData() { + this.getList() + if (!Setting.isDev) { + clearInterval(this.redisTimer) + this.redisTimer = setInterval(this.getRedis, 1000) + } + }, add() { this.$router.push("/match/add"); }, diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue index b970af4..1b25140 100644 --- a/src/pages/project/list/index.vue +++ b/src/pages/project/list/index.vue @@ -46,7 +46,6 @@ v-model="cid" :options="curs" :props="{ checkStrictly: true, value: 'id' }" - clearable popper-class="course-cas" @expand-change="curChange" @change="curChange"> @@ -432,6 +431,7 @@ export default { } this.currentRow.projectManage.projectName = this.projectName; this.currentRow.projectManage.projectId = ""; + this.currentRow.projectManage.founder = 1 this.currentRow.projectJudgmentList.forEach(i => { i.projectId = ""; }); diff --git a/src/setting.js b/src/setting.js index 73d74e9..41f846d 100644 --- a/src/setting.js +++ b/src/setting.js @@ -26,8 +26,8 @@ if (isPro) { uploadURL = `http://121.37.12.51/` host = "http://121.37.12.51/"; // 中台测试服 // host = 'https://www.occupationlab.com/' // 正式服 - // host = "http://192.168.31.151:9000/"; // 榕 - host = 'http://192.168.31.116:9000/'; // 赓 + host = "http://192.168.31.151:9000/"; // 榕 + // host = 'http://192.168.31.116:9000/'; // 赓 } const Setting = {