From f3bf99618bc379a9fa91cefefc813f770dcddc53 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 24 四月 2024 16:10:56 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/particty.vue | 56 +++++++++++++++++++++++++------------------------------- 1 files changed, 25 insertions(+), 31 deletions(-) diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index 1129e13..3cbd02e 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -574,7 +574,7 @@ <el-form-item label="鎮h�呭悕绉帮細"> <el-input v-model="patientqueryParams.name"></el-input> </el-form-item> - <el-form-item label="鎮h�呮潵婧�" prop="status"> + <!-- <el-form-item label="鎮h�呮潵婧�" prop="status"> <el-select v-model="patientqueryParams.topic" placeholder="璇烽�夋嫨" @@ -587,36 +587,28 @@ > </el-option> </el-select> - </el-form-item> - <el-form-item label="鍑洪櫌绉戝" prop="status"> + </el-form-item> --> + <el-form-item label="灏辫瘖绉戝" prop="status"> <el-select v-model="patientqueryParams.topic" placeholder="璇烽�夋嫨" > - <el-option - v-for="item in topicoptions" - :key="item.value" - :label="item.label" - :value="item.value" + <el-option-group + v-for="group in topicoptions[0].children" + :key="group.deptName" + :label="group.deptName" > - </el-option> + <el-option + v-for="item in group.children" + :key="item.deptId" + :label="item.deptName" + :value="item.deptId" + > + </el-option> + </el-option-group> </el-select> </el-form-item> - <el-form-item label="鍑洪櫌鐥呭尯" prop="status"> - <el-select - v-model="patientqueryParams.topic" - placeholder="璇烽�夋嫨" - > - <el-option - v-for="item in topicoptions" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> <el-form-item> <el-button type="primary" @@ -701,8 +693,8 @@ { label: "鎮h�呭悕绉�", width: "", prop: "name" }, { label: "鎬у埆", width: "", prop: "sex" }, { label: "骞撮緞", width: "", prop: "age" }, - { label: "灏辫瘖绉戝", width: "", prop: "impTemplate" }, - { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "uploadTime" }, + { label: "灏辫瘖绉戝", width: "", prop: "deptName" }, + { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "inhosptime" }, { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" }, ], tableLabelxj: [ @@ -768,7 +760,7 @@ pageNum: 1, // pageSize: 10, }, - topicoptions: [], + topicoptions: [{ children: [{ children: [] }] }], showSearch: true, // total: 0, // sontotal: 0, // @@ -854,9 +846,9 @@ created() { this.id = this.$route.query.id; - this.form.type = this.$route.query.type; - this.Getdetails(); + this.form.hospType = this.$route.query.type; this.listDept(); + this.Getdetails(); this.Acquisitiontype(); }, @@ -953,7 +945,7 @@ // 淇濆瓨 submitForm(formName) { this.form.serviceform = this.checkList.join(","); - this.form.type = this.currenttype; + this.form.hospType = this.currenttype; const filteredArray = this.variableList.filter( (item) => item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃" @@ -1058,7 +1050,9 @@ console.log(this.ids); }, getList() {}, - handleQuery() {}, + handleQuery() { + this.handleAddpatient(); + }, resetQuery() {}, handleClosehz() { this.dialogVisiblepatient = false; @@ -1096,7 +1090,7 @@ // 鑾峰彇绉戝鍒楄〃 listDept() { listDept().then((res) => { - this.topicoptions = res.data; + this.topicoptions = this.handleTree(res.data, "deptId"); console.log(this.topicoptions, "topicoptions"); }); }, -- Gitblit v1.9.3