From f4dcb9cf920f2229d5bab5b989f0ed944cffd46d Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 24 四月 2024 18:40:16 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/particty.vue | 57 ++++++++++++++++++++++++++-------------------------------
1 files changed, 26 insertions(+), 31 deletions(-)
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 1129e13..c44777c 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"
@@ -695,14 +687,15 @@
radio: 1,
checkboxlist: [],
tableLabel: [],
+
// 鎮h�呰〃鍗�
tableLabelhz: [
{ label: "搴忓彿", width: "", prop: "patid" },
{ 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 +761,7 @@
pageNum: 1, //
pageSize: 10,
},
- topicoptions: [],
+ topicoptions: [{ children: [{ children: [] }] }],
showSearch: true, //
total: 0, //
sontotal: 0, //
@@ -854,9 +847,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 +946,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 +1051,9 @@
console.log(this.ids);
},
getList() {},
- handleQuery() {},
+ handleQuery() {
+ this.handleAddpatient();
+ },
resetQuery() {},
handleClosehz() {
this.dialogVisiblepatient = false;
@@ -1096,7 +1091,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