From e3cd67cbb785367f495cc4350978bd1633adb55b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Thu, 10 Nov 2022 18:40:08 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=A4=E7=90=86=E7=AB=99=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=94=B9=E6=8A=A4=E7=90=86=E7=AB=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/person/index.vue | 110 ++++++++++++++++--------------
1 file changed, 58 insertions(+), 52 deletions(-)
diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue
index e64b794..3061632 100644
--- a/src/views/system/person/index.vue
+++ b/src/views/system/person/index.vue
@@ -496,7 +496,7 @@
>
搜索
- 重置
-
+
@@ -700,7 +699,6 @@
v-model="queryParams3.departmentName"
placeholder="请输入科室名称"
clearable
-
/>
@@ -777,15 +775,15 @@
style="margin-left: -20px"
>
{{ nurseStationName }}
+
-
+
{
- // this.StationDepartmentLists = res.rows;
- // this.departtotal = res.total;
- // this.loading = false;
- // });
this.departid2 = this.form.departmentCode;
this.innerVisiblexg2 = true;
// this.index = index;
},
+ //修改护理站按钮
+ departclickxg() {
+ this.getList2();
+ this.stationid2 = this.form.nurseStationId;
+ this.innerVisiblexg = true;
+ this.index = index;
+ },
// 新增护理站按钮
clickinnerVisible(item, index) {
this.getList2();
@@ -1179,6 +1176,15 @@ export default {
this.innerVisible = true;
this.index = index;
},
+ // 修改护理站
+ nurseclick2(row) {
+ console.log(row);
+ this.nurseStationName = row.nurseStationName;
+ this.stationid2 = row.id;
+ this.form.nurseStationId = row.id;
+ this.innerVisiblexg = false;
+ this.form.nursename = row.nurseStationName;
+ },
//删除deldisease
deldisease(index) {
this.form.nurseStationPersonList.splice(index, 1);
@@ -1186,8 +1192,6 @@ export default {
},
adddisease() {
- // this.nurseStationName = "请选择护理站名称";
- // this.departmentName=""
var obj = {
nursePersonCode: "",
nursePersonCode: "",
@@ -1220,15 +1224,7 @@ export default {
row.nurseStationName;
this.form.nurseStationPersonList[this.index].nurseStationId = row.id;
},
- // 修改护理站
- nurseclick2(row) {
- console.log(row);
- this.nurseStationName = row.nurseStationName;
- this.stationid2 = row.id;
- this.form.nurseStationId = row.id;
- this.innerVisiblexg = false;
- this.form.nursename = row.nurseStationName;
- },
+
// 所属科室
StationDepartmentclick(row) {
console.log(row);
@@ -1266,15 +1262,15 @@ export default {
},
getList2() {
this.loading = true;
- getListByUser(this.StationqueryParams).then((res) => {
+ getListByUser(this.StationqueryParams).then((res) => {
this.nursetotal = res.total;
this.nurseStationlist = res.rows;
- this.loading = false;
+ this.loading = false;
});
},
- getList3(){
- this.loading = true;
- StationDepartmentList(this.queryParams3).then((res) => {
+ getList3() {
+ this.loading = true;
+ StationDepartmentList(this.queryParams3).then((res) => {
this.StationDepartmentLists = res.rows;
this.departtotal = res.total;
this.loading = false;
@@ -1327,12 +1323,16 @@ export default {
},
/** 搜索按钮操作 */
handleQuery2() {
- this.nurseStationqueryParams.pageNum = 1;
- this.getList2()
+ this.getList2();
},
+ // 修改护理站弹框的搜索
+ handleQuery4() {
+ this.getList2();
+ },
+ //修改所属科室
handleQuery3() {
- this.queryParams3.pageNum = 1;
- this.getList3()
+ this.nurseStationqueryParams.pageNum = 1;
+ this.getList3();
},
handleQuery() {
this.queryParams.pageNum = 1;
@@ -1343,24 +1343,30 @@ export default {
this.innerVisible = false;
this.innerVisiblexg = false;
this.resetQuery2();
-
},
- departcancel(){
- this.innerVisible2 = false;
- this.innerVisiblexg2=false;
- this.resetQuery3();
+ departcancel() {
+ this.innerVisible2 = false;
+ this.innerVisiblexg2 = false;
+ this.resetQuery3();
},
resetQuery2() {
+ this.resetForm("queryForm");
this.nurseStationqueryParams = {
pageNum: 1,
pageSize: 10,
- nurseStationName: null,
- id: null,
- nurseStationId: null,
+
};
this.handleQuery2();
},
+ resetQuery4() {
+ this.resetForm("queryForm");
+ this.nurseStationqueryParams = {
+ pageNum: 1,
+ pageSize: 10,
+ };
+ this.handleQuery4();
+ },
resetQuery3() {
this.queryParams3 = {
pageNum: 1,
@@ -1371,7 +1377,7 @@ export default {
departmentName: null,
nurseStationId: null,
};
- this.handleQuery3()
+ this.handleQuery3();
},
resetQuery() {
if (this.nurseStationlist[0].isAdmin == "1") {