赛事redis

Branch_d40a2540
yujialong 2 years ago
parent ee7001b80f
commit 3c66cf33dd
  1. 1
      src/api/index.js
  2. 9
      src/pages/match/list/index.vue
  3. 2
      src/pages/project/list/index.vue
  4. 4
      src/setting.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`,

@ -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");
},

@ -46,7 +46,6 @@
v-model="cid"
:options="curs"
:props="{ checkStrictly: true, value: 'id' }"
clearable
popper-class="course-cas"
@expand-change="curChange"
@change="curChange"></el-cascader>
@ -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 = "";
});

@ -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 = {

Loading…
Cancel
Save