|
@@ -166,6 +166,7 @@
|
|
|
:label-width="style.label_width_tab1"
|
|
|
>
|
|
|
<el-switch
|
|
|
+ :disabled="!this.rootOrgWenXinAnswerEnabled"
|
|
|
v-model="form.properties.WEIXIN_ANSWER_ENABLED"
|
|
|
on-text="是"
|
|
|
off-text="否"
|
|
@@ -951,6 +952,7 @@ export default {
|
|
|
show_ckeditor: false,
|
|
|
is_face_verify_diabled: true,
|
|
|
is_face_enable_diabled: true,
|
|
|
+ rootOrgWenXinAnswerEnabled: false,
|
|
|
form: {
|
|
|
started: false,
|
|
|
name: "",
|
|
@@ -998,6 +1000,7 @@ export default {
|
|
|
},
|
|
|
examTypeList: EXAM_TYPE,
|
|
|
examId: "",
|
|
|
+ rootOrgId: null,
|
|
|
rules: {
|
|
|
code: [{ required: true, validator: validateCode, trigger: "blur" }],
|
|
|
name: [{ required: true, validator: validateName, trigger: "blur" }],
|
|
@@ -1083,6 +1086,7 @@ export default {
|
|
|
let url = EXAM_WORK_API + "/exam/" + this.examId;
|
|
|
this.$httpWithMsg.get(url).then(response => {
|
|
|
let body = response.data;
|
|
|
+ this.rootOrgId = body.rootOrgId;
|
|
|
body.properties = this.form.properties;
|
|
|
this.form = Object.assign(this.form, response.data);
|
|
|
this.form.enable = this.form.enable ? "true" : "false";
|
|
@@ -1144,6 +1148,16 @@ export default {
|
|
|
this.is_face_verify_diabled = false;
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ let url2 =
|
|
|
+ CORE_API + "/org/property/" + this.rootOrgId + "/WEIXIN_ANSWER_ENABLED";
|
|
|
+ this.$httpWithMsg.get(url2).then(response => {
|
|
|
+ let res = response.data;
|
|
|
+ this.rootOrgWenXinAnswerEnabled = res == true;
|
|
|
+ if (!this.rootOrgWenXinAnswerEnabled) {
|
|
|
+ this.form.properties.WEIXIN_ANSWER_ENABLED = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
saveExam: function() {
|
|
|
this.toActiveName = null;
|