From 2bb623a2fd4ed6155450c66c04706ca18e3dbcb7 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 12 六月 2025 16:52:18 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb --- src/views/hosp/advicerules/index.vue | 56 ++++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 46 insertions(+), 10 deletions(-) diff --git a/src/views/hosp/advicerules/index.vue b/src/views/hosp/advicerules/index.vue index ff6154e..73feb2a 100644 --- a/src/views/hosp/advicerules/index.vue +++ b/src/views/hosp/advicerules/index.vue @@ -238,6 +238,7 @@ > <el-form-item label="绉戝" prop="ks"> <el-select + :rules="rules" v-model="form.ks" placeholder="璇烽�夋嫨绉戝" style="width: 200px" @@ -288,11 +289,24 @@ /> </el-form-item> <el-form-item label="寮傚父鏍囧織" prop="ycbz"> - <el-input + <!-- <el-input v-model="form.ycbz" style="width: 200px" placeholder="璇疯緭鍏ュ紓甯告爣蹇�" - /> + /> --> + <el-select + v-model="form.ycbz" + placeholder="璇烽�夋嫨寮傚父鏍囧織" + style="width: 200px" + clearable + > + <el-option + v-for="item in ycdata" + :key="item.value" + :label="item.label" + :value="item.label" + ></el-option> + </el-select> </el-form-item> <el-form-item label="鐤剧梾" prop="sfjb"> @@ -526,6 +540,22 @@ loading: true, // 閫変腑鏁扮粍 ids: [], + ycdata: [ + { label: "鈫�", value: "up" }, + { label: "鈫�", value: "down" }, + { label: "闃虫��", value: "positive" }, + { label: "寮遍槼鎬�", value: "weak_positive" }, + { label: "4+", value: "4plus" }, + { label: "3+", value: "3plus" }, + { label: "2+", value: "2plus" }, + { label: "1+", value: "1plus" }, + { label: "+1", value: "plus1" }, + { label: "+2", value: "plus2" }, + { label: "+3", value: "plus3" }, + { label: "+4", value: "plus4" }, + { label: "+", value: "plus" }, + { label: "+-", value: "plus_minus" }, + ], // 闈炲崟涓鐢� single: true, // 闈炲涓鐢� @@ -582,10 +612,12 @@ }, // 琛ㄥ崟鍙傛暟 form: { - xb: "2", + // xb: "2", }, // 琛ㄥ崟鏍¢獙 - rules: {}, + rules: { + ks: [{ required: true, message: " ", trigger: ["blur", "change"] }], + }, upload: { // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛� open: false, @@ -614,9 +646,14 @@ treeId(newVal, oldVal) { if (newVal) { this.$nextTick(() => { - document - .querySelector(".el-tree-node__children .el-tree-node__content") - .click(); + const node = document.querySelector( + ".el-tree-node__children .el-tree-node__content" + ); + if (node) { + node.click(); + } else { + console.warn("娌℃湁鎵惧埌 el-tree 鑺傜偣锛屾棤娉曡Е鍙戠偣鍑�"); + } }); } }, @@ -711,7 +748,7 @@ createBy: null, updateBy: null, deleted: null, - xb: "2", + // xb: "2", }; if (this.$refs.form) { this.$refs.form.resetFields(); @@ -820,10 +857,9 @@ submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.xb = this.form.xb === "1" ? "1" : null; if (this.form.id != null) { updateAdvicerules(this.form).then((response) => { - console.log(response, 1111333); - this.$modal.msgSuccess("淇敼鎴愬姛"); this.open = false; this.getList(); -- Gitblit v1.8.0