From 8aca82344ce82cf90f3357b8ba5abe35a0e3a74f Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 15 八月 2024 09:42:38 +0800 Subject: [PATCH] 测试完成 --- src/views/knowledge/questionnaire/compilequer/index.vue | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 736a78f..7c2d806 100644 --- a/src/views/knowledge/questionnaire/compilequer/index.vue +++ b/src/views/knowledge/questionnaire/compilequer/index.vue @@ -162,7 +162,10 @@ <el-row :gutter="20"> <el-col :span="6"> <el-form-item label="鐗堟湰鍙�" prop="name"> - <el-input v-model="ruleForm.version"></el-input> </el-form-item + <el-input + v-model="ruleForm.version" + placeholder="榛樿1.0" + ></el-input> </el-form-item ></el-col> <el-col :span="9"> <el-form-item label="鍙敤鐘舵��" prop="region"> @@ -987,6 +990,8 @@ item.icdname = item.icd10name; }); }); + } else { + this.ruleForm.isenable = "1"; } listDept(this.queryParams).then((response) => { @@ -999,20 +1004,20 @@ }, submitForm(formName) { this.$modal.loading("姝e湪涓婁紶鏁版嵁锛岃绋嶅��..."); - this.ruleForm.suitway = this.ruleForm.suitway.join(","); - + if (condition) { + } if (this.id) { this.ruleForm.isoperation = 2; compileQtemplate(this.ruleForm).then((res) => { this.$modal.msgSuccess("淇敼鎴愬姛"); this.confirmillness(); this.$modal.closeLoading(); - this.$router.go(-1); }); } else { this.ruleForm.isoperation = 1; + this.ruleForm.version = this.ruleForm.version ? ruleForm : "1.0"; compileQtemplate(this.ruleForm).then((res) => { this.$modal.msgSuccess("鏂板鎴愬姛"); this.confirmillness(res.data); @@ -1026,10 +1031,8 @@ // 绉戝澶勭悊 Departmenttreatment() { this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); - console.log(this.tempDetpRelevanceslist); this.ruleForm.svyTemplateLibScripts = this.ruleForm.svyTemplateLibScripts.concat(this.delScriptVOList); - console.log(this.tempDetpRelevanceslist, "this.tempDetpRelevanceslist"); const result = this.tempDetpRelevanceslist.map( (subArr) => subArr[subArr.length - 1] ); -- Gitblit v1.9.3