From 00212ed8e808fc7b76c04389224e65f27f074fb2 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 26 四月 2024 15:30:04 +0800
Subject: [PATCH] su

---
 src/views/system/user/index.vue |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 90ddfc1..7a63e71 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -192,6 +192,13 @@
           <el-input v-model="form.userId" placeholder="璇疯緭鍏ョ敤鎴穒d" />
         </el-form-item> -->
           <el-form-item label="鐢ㄦ埛鍚嶇О" prop="nickName">
+             <span
+            slot="label"
+            style="display: inline-block; border-bottom: 2px solid blue"
+            @click="handlePackage"
+          >
+            鐢ㄦ埛鍚嶇О
+          </span>
             <el-input v-model="form.nickName" placeholder="璇疯緭鍏ョ敤鎴锋樀绉�" maxlength="30" style="width: 130px" />
           </el-form-item>
           <el-form-item label="鐢ㄦ埛宸ュ彿" prop="userName">
@@ -672,10 +679,12 @@
         <el-button type="primary" @click="tijiao">纭� 瀹�</el-button>
       </span>
     </el-dialog>
+    <yonghu ref="aaa" @add="handleChanges" />
   </div>
 </template>
 
 <script>
+import yonghu from "@/components/yonghu";
 import {
   listUser,
   getUser,
@@ -714,7 +723,7 @@
     "dict_user_work",
     "dict_qhdm",
   ],
-  components: { Treeselect },
+  components: { Treeselect, yonghu },
   data() {
     let checkPhoneNum = (rule, value, callback) => {
          console.log( value)
@@ -892,7 +901,7 @@
   watch: {
     // 鏍规嵁鍚嶇О绛涢�夐儴闂ㄦ爲
     deptName(val) {
-      this.$refs.tree.filter(val);
+      console.log(val)
     },
     treeId(newVal, oldVal) {
       if (newVal) {
@@ -926,7 +935,8 @@
     /** 鏌ヨ鐢ㄦ埛鍒楄〃 */
     getList() {
       this.loading = true;
-      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
+      if(this.queryParams.deptId){
+        listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
         (response) => {
           response.rows.forEach((item, index) => {
             item.newID =
@@ -939,6 +949,8 @@
           this.loading = false;
         }
       );
+      }
+      
     },
     /** 鏌ヨ宀椾綅鍒楄〃 */
     getPostList() {
@@ -971,8 +983,10 @@
     getDeptTree() {
       deptTreeSelect().then((response) => {
         this.deptOptions = response.data;
+        console.log( this.deptOptions)
         this.treeId.push(this.deptOptions[0].id)
         this.queryParams.deptId = this.deptOptions[0].id
+        console.log(this.queryParams.deptId)
       });
     },
     // 绛涢�夎妭鐐�
@@ -985,6 +999,19 @@
       this.queryParams.deptId = data.id;
       this.handleQuery();
     },
+     handlePackage() {
+      this.$refs.aaa.open = true;
+      this.$refs.aaa.getList();
+      this.$refs.aaa.title = "鏁版嵁瀛楀吀";
+    },
+    handleChanges(param1) {
+      this.form.nickName = param1[0].staffName;
+      // this.form.hisPacId = param1[0].pacId;
+      // if (param1[0].price) {
+      //   this.form.counterPrice = param1[0].price;
+      //   this.form.retailPrice = param1[0].price;
+      // }
+    },
     // 鐢ㄦ埛鐘舵�佷慨鏀�
     handleStatusChange(row) {
       let text = row.status === "0" ? "鍚敤" : "鍋滅敤";

--
Gitblit v1.8.0