dev_2022-06-14
yujialong 2 years ago
parent 67a25d77ce
commit b9df80e2df
  1. 2
      src/pages/match/add/index.vue
  2. 2
      src/pages/match/manage/matchDetail.vue
  3. 21
      src/pages/match/manage/notice.vue
  4. 4
      src/setting.js

@ -439,7 +439,7 @@ export default {
let signUpStartTime = new Date(form.signUpStartTime).getTime(); let signUpStartTime = new Date(form.signUpStartTime).getTime();
let signUpEndTime = new Date(form.signUpEndTime).getTime(); let signUpEndTime = new Date(form.signUpEndTime).getTime();
let playStartTime = new Date(form.playStartTime).getTime(); let playStartTime = new Date(form.playStartTime).getTime();
if (signUpStartTime && now > signUpStartTime) return util.warningMsg("报名时间不能早于当前时间"); // if (signUpStartTime && now > signUpStartTime) return util.warningMsg("");
if (!form.playStartTime && status == 1) return util.warningMsg("请选择竞赛时间"); if (!form.playStartTime && status == 1) return util.warningMsg("请选择竞赛时间");
if (playStartTime && playStartTime < signUpEndTime) return util.warningMsg("竞赛时间不能早于报名结束时间"); if (playStartTime && playStartTime < signUpEndTime) return util.warningMsg("竞赛时间不能早于报名结束时间");
if (!form.description && status == 1) return util.warningMsg("请填写竞赛详情"); if (!form.description && status == 1) return util.warningMsg("请填写竞赛详情");

@ -463,7 +463,7 @@ export default {
let signUpStartTime = new Date(form.signUpStartTime).getTime(); let signUpStartTime = new Date(form.signUpStartTime).getTime();
let signUpEndTime = new Date(form.signUpEndTime).getTime(); let signUpEndTime = new Date(form.signUpEndTime).getTime();
let playStartTime = new Date(form.playStartTime).getTime(); let playStartTime = new Date(form.playStartTime).getTime();
if (signUpStartTime && now > signUpStartTime) return util.warningMsg("报名时间不能早于当前时间"); // if (signUpStartTime && now > signUpStartTime) return util.warningMsg("");
if (!form.playStartTime && status == 1) return util.warningMsg("请选择竞赛时间"); if (!form.playStartTime && status == 1) return util.warningMsg("请选择竞赛时间");
if (playStartTime && playStartTime < signUpEndTime) return util.warningMsg("竞赛时间不能早于报名结束时间"); if (playStartTime && playStartTime < signUpEndTime) return util.warningMsg("竞赛时间不能早于报名结束时间");
if (!form.description && status == 1) return util.warningMsg("请填写竞赛详情"); if (!form.description && status == 1) return util.warningMsg("请填写竞赛详情");

@ -102,11 +102,24 @@ export default {
}); });
}, },
switchOff(val, row, index) { switchOff(val, row, index) {
this.$put(`${this.api.disableAnnouncement}?id=${row.id}&isDisable=${val}`) if (val) {
.then(res => { this.$put(`${this.api.disableAnnouncement}?id=${row.id}&isDisable=${val}`).then(res => {}).catch(err => {})
} else if (!row.status) {
this.$confirm('是否发布该公告?', '提示', {
type: 'success'
}).then(() => {
this.$put(`${this.api.disableAnnouncement}?id=${row.id}&isDisable=${val}`).then(res => {
this.$post(this.api.amendmentAnnouncement, {
id: row.id,
status: 1
}).then(res => {
this.getData()
}).catch(err => {})
}).catch(err => {})
}).catch(() => {
row.isOpen = 1
}) })
.catch(err => { }
});
}, },
add() { add() {
this.$router.push(`/match/noticeDetail?contestId=${this.id}`) this.$router.push(`/match/noticeDetail?contestId=${this.id}`)

@ -27,8 +27,8 @@ if (isHh) {
host = "http://120.78.198.231/"; host = "http://120.78.198.231/";
} else if (isPro) { } else if (isPro) {
// 职站生产 // 职站生产
bankPath = `http://www.huorantech.cn/banksystem` bankPath = `https://www.huorantech.cn/banksystem`
jumpPath = `http://www.huorantech.cn/judgmentPoint/` jumpPath = `https://www.huorantech.cn/judgmentPoint/`
} else if (isDev) { } else if (isDev) {
jumpPath = "http://192.168.31.125:8087/"; jumpPath = "http://192.168.31.125:8087/";
bankPath = `http://192.168.31.125:8093` bankPath = `http://192.168.31.125:8093`

Loading…
Cancel
Save