添加二次确认
This commit is contained in:
parent
c1376ddf8f
commit
01b95a3fd4
@ -170,10 +170,22 @@ export default {
|
||||
this.$refs.scoreRule.doShow(this.nowData.ruleId);
|
||||
},
|
||||
goBack() {
|
||||
this.$router.push('/contest/list');
|
||||
this.$confirm('是否确认返回,返回将放弃改模块测试?', this.$t('tip.hint'), {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$router.push('/contest/list');
|
||||
}).catch(() => {});
|
||||
},
|
||||
submit() {
|
||||
this.$router.push('/contest/scoringSettlement');
|
||||
this.$confirm('是否确认提交?', this.$t('tip.hint'), {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$router.push('/contest/scoringSettlement');
|
||||
}).catch(() => {});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user