|
@@ -202,9 +202,29 @@ export default {
|
|
this.ruleForm.properties.PREVENT_CHEATING_CONFIG = this.ruleForm.PREVENT_CHEATING_CONFIG =
|
|
this.ruleForm.properties.PREVENT_CHEATING_CONFIG = this.ruleForm.PREVENT_CHEATING_CONFIG =
|
|
"NONE";
|
|
"NONE";
|
|
} else {
|
|
} else {
|
|
- this.ruleForm.properties.PREVENT_CHEATING_CONFIG = this.ruleForm.PREVENT_CHEATING_CONFIG = this.ruleForm.preventCheatingConfig.join(
|
|
|
|
- ","
|
|
|
|
- );
|
|
|
|
|
|
+ let defaultArr = [];
|
|
|
|
+ for (let lt of PREVENT_CHEATING_CONFIG) {
|
|
|
|
+ defaultArr.push(lt.code);
|
|
|
|
+ }
|
|
|
|
+ let validArr = [];
|
|
|
|
+ //保存时清理一下历史数据
|
|
|
|
+ for (
|
|
|
|
+ var i = 0;
|
|
|
|
+ i < this.ruleForm.preventCheatingConfig.length;
|
|
|
|
+ i++
|
|
|
|
+ ) {
|
|
|
|
+ var code = this.ruleForm.preventCheatingConfig[i];
|
|
|
|
+ if (defaultArr.indexOf(code) > -1) {
|
|
|
|
+ validArr.push(code);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ let res = "";
|
|
|
|
+ if (validArr.length == 0) {
|
|
|
|
+ res = "NONE";
|
|
|
|
+ } else {
|
|
|
|
+ res = validArr.join(",");
|
|
|
|
+ }
|
|
|
|
+ this.ruleForm.properties.PREVENT_CHEATING_CONFIG = this.ruleForm.PREVENT_CHEATING_CONFIG = res;
|
|
}
|
|
}
|
|
|
|
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|