From ede06384b2a72aab57702d31dac707c096c7b966 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 26 六月 2025 14:12:19 +0800 Subject: [PATCH] qx --- src/views/system/user/index.vue | 31 ++++++++++++++----------------- 1 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index b431477..5d29518 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -36,7 +36,6 @@ :filter-node-method="filterNode" ref="tree" node-key="id" - default-expand-all :default-expanded-keys="treeId" highlight-current @node-click="handleNodeClick" @@ -375,7 +374,7 @@ icon="el-icon-d-arrow-right" title="鏇村" ></el-button> - <el-dropdown-menu slot="dropdown"> + <el-dropdown-menu slot="dropdown" :append-to-body="true"> <el-dropdown-item command="handleResetPwd" icon="el-icon-key" @@ -388,15 +387,6 @@ v-hasPermi="['system:user:edit']" >鍒嗛厤瑙掕壊</el-dropdown-item > - <!-- 娣诲姞鐢ㄦ埛璇︽儏鎸夐挳 鐐瑰嚮璺冲嚭璇ョ敤鎴风殑璇︾粏淇℃伅椤甸潰 --> - <!-- <el-button - size="mini" - type="text" - icon="el-icon-share" - @click="handleSearch(scope.row)" - v-hasPermi="['hosp:Userinfo:list']" - >璇︾粏淇℃伅</el-button - > --> </el-dropdown-menu> </el-dropdown> </template> @@ -564,11 +554,10 @@ </el-select> <!-- <el-input v-model="form.hospName" placeholder="璇疯緭鍏ョ粍缁囦腑鏂囧悕绉�" /> --> </el-form-item> - <el-form-item label="褰掑睘绉戝" prop="deptId"> + <el-form-item label="褰掑睘绉戝" prop="deptId" > <!-- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="璇烽�夋嫨褰掑睘绉戝" style="width: 200px" /> --> - <el-select - v-if="DepartmentList.length > 0" + <el-select v-model="form.deptId" placeholder="璇烽�夋嫨褰掑睘绉戝" clearable @@ -1450,6 +1439,7 @@ console.log(11111); return callback(""); } else if (value != undefined && value != "") { + console.log(22222); return callback(); } else if (!patter.test(value)) { console.log(33333); @@ -1466,6 +1456,7 @@ hospList: [], activeNames: ["1"], treeId: [], + selectedDeptId: null, // 閬僵灞� loading: true, // 閫変腑鏁扮粍 @@ -1719,6 +1710,7 @@ // 鑺傜偣鍗曞嚮浜嬩欢 handleNodeClick(data) { this.queryParams.deptId = data.id; + this.selectedDeptId = data.id; this.handleQuery(); }, handlePackage() { @@ -1752,11 +1744,12 @@ // 鍙栨秷鎸夐挳 cancel() { this.open = false; - // this.reset(); + this.reset(); // this.$tab.refreshPage(); }, handleClose() { - this.$tab.refreshPage(); + this.cancel(); + // this.$tab.refreshPage(); }, // 琛ㄥ崟閲嶇疆 reset() { @@ -1834,6 +1827,9 @@ this.sendhospName(); } }); + if (this.selectedDeptId) { + this.form.deptId = this.selectedDeptId; + } // getUser().then((response) => { // this.postOptions = response.posts; // this.roleOptions = response.roles; @@ -1849,7 +1845,7 @@ getDeptListByDictHospId(data).then((res) => { console.log(res, 123456); this.DepartmentList = res.data; - this.form.deptId = String(this.form.deptId); + // this.form.deptId = String(this.form.deptId); }); }, @@ -2045,6 +2041,7 @@ width: 600px; /* 璁剧疆鍐呭鐨勫搴︼紝浠ヨЕ鍙戞按骞虫粴鍔ㄦ潯 */ height: 1000px; /* 璁剧疆鍐呭鐨勯珮搴︼紝浠ヨЕ鍙戝瀭鐩存粴鍔ㄦ潯 */ } + .pag { width: 100%; display: flex; -- Gitblit v1.8.0