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 | 46 +++++++++++++++++++++++++++++++++------------- 1 files changed, 33 insertions(+), 13 deletions(-) diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 6d5910a..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"> @@ -449,6 +452,19 @@ </el-option> </el-select> </el-form-item ></el-col> + </el-row> + <el-row> + <el-col :span="12"> + <el-form-item + label="棰樼洰鍒嗗��" + v-if="topicobj.scoretype == 1" + > + <el-input + v-model="topicobj.score" + placeholder="璇疯緭鍏ラ鍙�" + ></el-input> + </el-form-item> + </el-col> </el-row> <el-form-item label="鏄惁鐢遍�夐」閰嶇疆璺宠浆"> <el-radio-group v-model="topicobj.branchFlag"> @@ -818,11 +834,7 @@ { value: "scriptTopic", table: "scriptTopic" }, ], - appraiselist: [ - { label: "鍒嗘暟", value: "1" }, - { label: "ABC绛夌骇", value: "2" }, - { label: "浼樿壇绛夌骇", value: "3" }, - ], + appraiselist: [], fileList: [ { @@ -918,6 +930,7 @@ this.valuetype = store.getters.valuetype; this.courtyardlist = store.getters.courtyardlist; this.askvaluetype = store.getters.askvaluetype; + this.appraiselist = store.getters.appraiselist; // this.test(); }, @@ -977,6 +990,8 @@ item.icdname = item.icd10name; }); }); + } else { + this.ruleForm.isenable = "1"; } listDept(this.queryParams).then((response) => { @@ -989,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); @@ -1016,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] ); @@ -1135,6 +1148,13 @@ console.log(this.ruleForm.svyTemplateLibScripts, "搴忓墠鍊�"); this.ruleForm.svyTemplateLibScripts.forEach((item, index) => { item.sort = Number(index) + 1; + console.log(this.ruleForm.svyTemplateLibScripts.length, "length"); + + if (item.sort == this.ruleForm.svyTemplateLibScripts.length) { + item.nextScriptno = "宸叉槸鏈�鍚庝竴棰�"; + } else { + item.nextScriptno = item.sort + 1; + } if (item.svyLibTemplateTargetoptions) { item.svyLibTemplateTargetoptions.forEach((items) => { items.nextQuestion = Number(item.sort) + 1; @@ -1481,7 +1501,7 @@ margin: 20px 0; display: flex; .presentation-left { - width: 50%; + width: 45%; // height: 500px; .button-textxg { color: #024df0; @@ -1501,7 +1521,7 @@ } } .presentation-right { - width: 50%; + width: 55%; max-height: 688px; padding: 0 20px; font-size: 18px; -- Gitblit v1.9.3