update frontend

This commit is contained in:
Himit_ZH 2022-01-14 21:19:19 +08:00
parent f66631e5f6
commit 29f212e236
3 changed files with 14 additions and 14 deletions

View File

@ -225,7 +225,7 @@ export const m = {
Publish_the_Judging_Result_of_Test_Data:'Publish the Judging Result of Test Data',
Edit_Problem: 'Edit Problme',
Create_Problme: 'Create Problem',
Change_Judge_Method:'If you want to change the judging method, you need to upload the testcase again.',
Change_Judge_Mode:'Note: switching the judgment mode may change the evaluation logic!',
Add_Tag_Error:'The tag has been added, please do not add it repeatedly!',
Upload_Testcase_Successfully:'Upload Testcase Successfully',

View File

@ -223,7 +223,7 @@ export const m = {
Publish_the_Judging_Result_of_Test_Data:'公开评测点数据结果',
Edit_Problem: '编辑题目',
Create_Problme: '创建题目',
Change_Judge_Method:'如果你想改变该题目的判题方法,那么你需要重新上传测试数据。',
Change_Judge_Mode:'注意:切换判题模式后可能会改变评测的逻辑!',
Add_Tag_Error:'不要添加已有的标签!',
Upload_Testcase_Successfully:'上传评测数据成功',

View File

@ -966,19 +966,19 @@ export default {
},
switchMode(mode) {
if (this.testCaseUploaded) {
this.$confirm(this.$i18n.t('m.Change_Judge_Method'), 'Tips', {
confirmButtonText: this.$i18n.t('m.OK'),
cancelButtonText: this.$i18n.t('m.Cancel'),
type: 'warning',
})
.then(() => {
this.problem.judgeMode = mode;
})
.catch(() => {});
} else {
this.problem.judgeMode = mode;
let modeName = 'General_Judge';
if (mode == 'spj') {
modeName = 'Special_Judge';
} else if (mode == 'interactive') {
modeName = 'Interactive_Judge';
}
this.$alert(
this.$i18n.t('m.Change_Judge_Mode'),
this.$i18n.t('m.' + modeName),
{
confirmButtonText: this.$i18n.t('m.OK'),
}
);
},
querySearch(queryString, cb) {
var ojName = 'ME';