From 59dfdf8276202020f5b179df48b95784d73d7392 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期四, 11 三月 2021 16:48:39 +0800
Subject: [PATCH] fix(bug修复): 部门选择

---
 src/views/user/Informationinput.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/views/user/Informationinput.vue b/src/views/user/Informationinput.vue
index 031f11e..03296f5 100644
--- a/src/views/user/Informationinput.vue
+++ b/src/views/user/Informationinput.vue
@@ -795,6 +795,7 @@
                     :clear-value-text="$t('common.clear')"
                     placeholder="请选择部门(护卫点)"
                     style="width:100%"
+                    @select="DeptNameSelect"
                   />
                 </el-form-item>
                 <el-form-item label="岗位" prop="jobName">
@@ -5838,6 +5839,11 @@
     }, jobNameSelect(item) {
       this.empBaseInfoForm.jobName = item.value
       this.empBaseInfoForm.JobId = item.code
+    }, DeptNameSelect(val) {
+      debugger
+      this.empBaseInfoForm.deptId = val.deptId
+      this.empBaseInfoForm.deptName = val.label
+      this.empBaseInfoForm.allDeptName = val.allDeptName
     },
     generateUserInfo(index, val) {
       var userinfo = toCardGetUserInfo(val)

--
Gitblit v1.8.0