|
@@ -740,24 +740,27 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- this.ruleForm.properties.OE_STUDENT_SYS_NAME = this.ruleForm.OE_STUDENT_SYS_NAME;
|
|
|
|
|
|
+ this.ruleForm.properties.OE_STUDENT_SYS_NAME =
|
|
|
|
+ this.ruleForm.OE_STUDENT_SYS_NAME;
|
|
this.ruleForm.properties.LOGO_FILE_URL = this.ruleForm.LOGO_FILE_URL;
|
|
this.ruleForm.properties.LOGO_FILE_URL = this.ruleForm.LOGO_FILE_URL;
|
|
- this.ruleForm.properties.STUDENT_CLIENT_DEFAULT_SIZE = this.ruleForm.STUDENT_CLIENT_DEFAULT_SIZE;
|
|
|
|
- this.ruleForm.properties.STUDENT_CLIENT_CONSOLE_CONFIG = this.ruleForm.STUDENT_CLIENT_CONSOLE_CONFIG;
|
|
|
|
- this.ruleForm.properties.LOGIN_TYPE = this.ruleForm.LOGIN_TYPE = this.ruleForm.loginType.join(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
- this.ruleForm.properties.LOGIN_SUPPORT = this.ruleForm.LOGIN_SUPPORT = this.ruleForm.loginSupport.join(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
- this.ruleForm.properties.STUDENT_CODE_LOGIN_ALIAS = this.ruleForm.STUDENT_CODE_LOGIN_ALIAS;
|
|
|
|
- this.ruleForm.properties.IDENTITY_NUMBER_LOGIN_ALIAS = this.ruleForm.IDENTITY_NUMBER_LOGIN_ALIAS;
|
|
|
|
|
|
+ this.ruleForm.properties.STUDENT_CLIENT_DEFAULT_SIZE =
|
|
|
|
+ this.ruleForm.STUDENT_CLIENT_DEFAULT_SIZE;
|
|
|
|
+ this.ruleForm.properties.STUDENT_CLIENT_CONSOLE_CONFIG =
|
|
|
|
+ this.ruleForm.STUDENT_CLIENT_CONSOLE_CONFIG;
|
|
|
|
+ this.ruleForm.properties.LOGIN_TYPE = this.ruleForm.LOGIN_TYPE =
|
|
|
|
+ this.ruleForm.loginType.join(",");
|
|
|
|
+ this.ruleForm.properties.LOGIN_SUPPORT = this.ruleForm.LOGIN_SUPPORT =
|
|
|
|
+ this.ruleForm.loginSupport.join(",");
|
|
|
|
+ this.ruleForm.properties.STUDENT_CODE_LOGIN_ALIAS =
|
|
|
|
+ this.ruleForm.STUDENT_CODE_LOGIN_ALIAS;
|
|
|
|
+ this.ruleForm.properties.IDENTITY_NUMBER_LOGIN_ALIAS =
|
|
|
|
+ this.ruleForm.IDENTITY_NUMBER_LOGIN_ALIAS;
|
|
if (
|
|
if (
|
|
this.ruleForm.preventCheatingConfig == null ||
|
|
this.ruleForm.preventCheatingConfig == null ||
|
|
this.ruleForm.preventCheatingConfig.length == 0
|
|
this.ruleForm.preventCheatingConfig.length == 0
|
|
) {
|
|
) {
|
|
- this.ruleForm.properties.PREVENT_CHEATING_CONFIG = this.ruleForm.PREVENT_CHEATING_CONFIG =
|
|
|
|
- "NONE";
|
|
|
|
|
|
+ this.ruleForm.properties.PREVENT_CHEATING_CONFIG =
|
|
|
|
+ this.ruleForm.PREVENT_CHEATING_CONFIG = "NONE";
|
|
} else {
|
|
} else {
|
|
let defaultArr = [];
|
|
let defaultArr = [];
|
|
for (let lt of PREVENT_CHEATING_CONFIG) {
|
|
for (let lt of PREVENT_CHEATING_CONFIG) {
|
|
@@ -781,15 +784,16 @@ export default {
|
|
} else {
|
|
} else {
|
|
res = validArr.join(",");
|
|
res = validArr.join(",");
|
|
}
|
|
}
|
|
- this.ruleForm.properties.PREVENT_CHEATING_CONFIG = this.ruleForm.PREVENT_CHEATING_CONFIG = res;
|
|
|
|
|
|
+ this.ruleForm.properties.PREVENT_CHEATING_CONFIG =
|
|
|
|
+ this.ruleForm.PREVENT_CHEATING_CONFIG = res;
|
|
}
|
|
}
|
|
|
|
|
|
if (
|
|
if (
|
|
this.ruleForm.studentClientVersion == null ||
|
|
this.ruleForm.studentClientVersion == null ||
|
|
this.ruleForm.studentClientVersion.length == 0
|
|
this.ruleForm.studentClientVersion.length == 0
|
|
) {
|
|
) {
|
|
- this.ruleForm.properties.STUDENT_CLIENT_VERSION = this.ruleForm.STUDENT_CLIENT_VERSION =
|
|
|
|
- "NONE";
|
|
|
|
|
|
+ this.ruleForm.properties.STUDENT_CLIENT_VERSION =
|
|
|
|
+ this.ruleForm.STUDENT_CLIENT_VERSION = "NONE";
|
|
} else {
|
|
} else {
|
|
let defaultArr = [];
|
|
let defaultArr = [];
|
|
for (let lt of STUDENT_CLIENT_VERSION) {
|
|
for (let lt of STUDENT_CLIENT_VERSION) {
|
|
@@ -813,12 +817,15 @@ export default {
|
|
} else {
|
|
} else {
|
|
res = validArr.join(",");
|
|
res = validArr.join(",");
|
|
}
|
|
}
|
|
- this.ruleForm.properties.STUDENT_CLIENT_VERSION = this.ruleForm.STUDENT_CLIENT_VERSION = res;
|
|
|
|
|
|
+ this.ruleForm.properties.STUDENT_CLIENT_VERSION =
|
|
|
|
+ this.ruleForm.STUDENT_CLIENT_VERSION = res;
|
|
}
|
|
}
|
|
|
|
|
|
- this.ruleForm.properties.IS_CUSTOM_MENU_LOGO = this.ruleForm.IS_CUSTOM_MENU_LOGO;
|
|
|
|
|
|
+ this.ruleForm.properties.IS_CUSTOM_MENU_LOGO =
|
|
|
|
+ this.ruleForm.IS_CUSTOM_MENU_LOGO;
|
|
if (this.ruleForm.IS_CUSTOM_MENU_LOGO == "true") {
|
|
if (this.ruleForm.IS_CUSTOM_MENU_LOGO == "true") {
|
|
- this.ruleForm.properties.CUS_MENU_LOGO_FILE_URL = this.ruleForm.CUS_MENU_LOGO_FILE_URL;
|
|
|
|
|
|
+ this.ruleForm.properties.CUS_MENU_LOGO_FILE_URL =
|
|
|
|
+ this.ruleForm.CUS_MENU_LOGO_FILE_URL;
|
|
}
|
|
}
|
|
|
|
|
|
Promise.all([
|
|
Promise.all([
|
|
@@ -889,7 +896,8 @@ export default {
|
|
});
|
|
});
|
|
let fileUrl = response;
|
|
let fileUrl = response;
|
|
|
|
|
|
- this.ruleForm.LOGO_FILE_URL = this.ruleForm.properties.LOGO_FILE_URL = fileUrl;
|
|
|
|
|
|
+ this.ruleForm.LOGO_FILE_URL = this.ruleForm.properties.LOGO_FILE_URL =
|
|
|
|
+ fileUrl;
|
|
} else {
|
|
} else {
|
|
this.errDialog = true;
|
|
this.errDialog = true;
|
|
}
|
|
}
|
|
@@ -907,7 +915,8 @@ export default {
|
|
});
|
|
});
|
|
let fileUrl = response;
|
|
let fileUrl = response;
|
|
|
|
|
|
- this.ruleForm.ANSWERS_TEMPLATE = this.ruleForm.properties.ANSWERS_TEMPLATE = fileUrl;
|
|
|
|
|
|
+ this.ruleForm.ANSWERS_TEMPLATE =
|
|
|
|
+ this.ruleForm.properties.ANSWERS_TEMPLATE = fileUrl;
|
|
} else {
|
|
} else {
|
|
this.errDialog = true;
|
|
this.errDialog = true;
|
|
}
|
|
}
|
|
@@ -1054,9 +1063,8 @@ export default {
|
|
this.ruleForm.IDENTITY_NUMBER_LOGIN_ALIAS;
|
|
this.ruleForm.IDENTITY_NUMBER_LOGIN_ALIAS;
|
|
|
|
|
|
if (this.ruleForm.properties.LOGIN_TYPE) {
|
|
if (this.ruleForm.properties.LOGIN_TYPE) {
|
|
- this.ruleForm.loginType = this.ruleForm.properties.LOGIN_TYPE.split(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
|
|
+ this.ruleForm.loginType =
|
|
|
|
+ this.ruleForm.properties.LOGIN_TYPE.split(",");
|
|
} else {
|
|
} else {
|
|
let defaultValue = [];
|
|
let defaultValue = [];
|
|
for (let lt of LOGIN_TYPE) {
|
|
for (let lt of LOGIN_TYPE) {
|
|
@@ -1067,16 +1075,14 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if (this.ruleForm.properties.LOGIN_SUPPORT) {
|
|
if (this.ruleForm.properties.LOGIN_SUPPORT) {
|
|
- this.ruleForm.loginSupport = this.ruleForm.properties.LOGIN_SUPPORT.split(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
|
|
+ this.ruleForm.loginSupport =
|
|
|
|
+ this.ruleForm.properties.LOGIN_SUPPORT.split(",");
|
|
}
|
|
}
|
|
|
|
|
|
if (this.ruleForm.properties.PREVENT_CHEATING_CONFIG) {
|
|
if (this.ruleForm.properties.PREVENT_CHEATING_CONFIG) {
|
|
if (this.ruleForm.properties.PREVENT_CHEATING_CONFIG != "NONE") {
|
|
if (this.ruleForm.properties.PREVENT_CHEATING_CONFIG != "NONE") {
|
|
- this.ruleForm.preventCheatingConfig = this.ruleForm.properties.PREVENT_CHEATING_CONFIG.split(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
|
|
+ this.ruleForm.preventCheatingConfig =
|
|
|
|
+ this.ruleForm.properties.PREVENT_CHEATING_CONFIG.split(",");
|
|
} else {
|
|
} else {
|
|
this.ruleForm.preventCheatingConfig = [];
|
|
this.ruleForm.preventCheatingConfig = [];
|
|
}
|
|
}
|
|
@@ -1091,9 +1097,8 @@ export default {
|
|
|
|
|
|
if (this.ruleForm.properties.STUDENT_CLIENT_VERSION) {
|
|
if (this.ruleForm.properties.STUDENT_CLIENT_VERSION) {
|
|
if (this.ruleForm.properties.STUDENT_CLIENT_VERSION != "NONE") {
|
|
if (this.ruleForm.properties.STUDENT_CLIENT_VERSION != "NONE") {
|
|
- this.ruleForm.studentClientVersion = this.ruleForm.properties.STUDENT_CLIENT_VERSION.split(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
|
|
+ this.ruleForm.studentClientVersion =
|
|
|
|
+ this.ruleForm.properties.STUDENT_CLIENT_VERSION.split(",");
|
|
} else {
|
|
} else {
|
|
this.ruleForm.studentClientVersion = [];
|
|
this.ruleForm.studentClientVersion = [];
|
|
}
|
|
}
|
|
@@ -1281,7 +1286,8 @@ export default {
|
|
});
|
|
});
|
|
let fileUrl = response;
|
|
let fileUrl = response;
|
|
|
|
|
|
- this.ruleForm.CUS_MENU_LOGO_FILE_URL = this.ruleForm.properties.CUS_MENU_LOGO_FILE_URL = fileUrl;
|
|
|
|
|
|
+ this.ruleForm.CUS_MENU_LOGO_FILE_URL =
|
|
|
|
+ this.ruleForm.properties.CUS_MENU_LOGO_FILE_URL = fileUrl;
|
|
} else {
|
|
} else {
|
|
this.errDialog = true;
|
|
this.errDialog = true;
|
|
}
|
|
}
|
|
@@ -1339,8 +1345,8 @@ export default {
|
|
//清空文件
|
|
//清空文件
|
|
removeAnswerFile() {
|
|
removeAnswerFile() {
|
|
this.answerFileList = [];
|
|
this.answerFileList = [];
|
|
- this.ruleForm.ANSWERS_TEMPLATE = this.ruleForm.properties.ANSWERS_TEMPLATE =
|
|
|
|
- "";
|
|
|
|
|
|
+ this.ruleForm.ANSWERS_TEMPLATE =
|
|
|
|
+ this.ruleForm.properties.ANSWERS_TEMPLATE = "";
|
|
if (this.$refs.uploadAnswer) {
|
|
if (this.$refs.uploadAnswer) {
|
|
this.$refs.uploadAnswer.clearFiles();
|
|
this.$refs.uploadAnswer.clearFiles();
|
|
}
|
|
}
|
|
@@ -1400,8 +1406,8 @@ export default {
|
|
//清空文件
|
|
//清空文件
|
|
removeMenuLogoFile() {
|
|
removeMenuLogoFile() {
|
|
this.menuLogoFileList = [];
|
|
this.menuLogoFileList = [];
|
|
- this.ruleForm.CUS_MENU_LOGO_FILE_URL = this.ruleForm.properties.CUS_MENU_LOGO_FILE_URL =
|
|
|
|
- "";
|
|
|
|
|
|
+ this.ruleForm.CUS_MENU_LOGO_FILE_URL =
|
|
|
|
+ this.ruleForm.properties.CUS_MENU_LOGO_FILE_URL = "";
|
|
if (this.$refs.menuLogUpload) {
|
|
if (this.$refs.menuLogUpload) {
|
|
this.$refs.menuLogUpload.clearFiles();
|
|
this.$refs.menuLogUpload.clearFiles();
|
|
}
|
|
}
|