From a6c4d573907730c2e0a70dd5a1d1937888efabb5 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期三, 10 三月 2021 07:57:48 +0800
Subject: [PATCH] fix(bug修复): 可选岗位从数据库中获取

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

diff --git a/src/views/user/Informationinput.vue b/src/views/user/Informationinput.vue
index a4d29f5..c38caae 100644
--- a/src/views/user/Informationinput.vue
+++ b/src/views/user/Informationinput.vue
@@ -3119,6 +3119,7 @@
     this.initDept()
     this.thisShowIndex = 1
     this.isShow(false, 0)
+    this.initJob()
   },
   methods: {
     importHandleAvatarError() {
@@ -3389,6 +3390,11 @@
     resetDeptTree() {
       this.$refs.deptTree.setCheckedKeys([])
     },
+    initJob() {
+      this.$get('system/position/dicJob').then((r) => {
+        this.restaurJob = r.data.data
+      })
+    },
     butDelete() {
       let selected
       switch (this.thisShowIndex) {
diff --git a/src/views/user/inemployees.vue b/src/views/user/inemployees.vue
index 09ddfef..511788e 100644
--- a/src/views/user/inemployees.vue
+++ b/src/views/user/inemployees.vue
@@ -1224,6 +1224,7 @@
     this.getDicts('LZTYPE').then(response => {
       this.dimissionTypeOptions = response.data
     })
+    this.initJob()
   },
   methods: {
     exportExcel() {
@@ -1265,6 +1266,11 @@
       }
       this.search()
     },
+    initJob() {
+      this.$get('system/position/dicJob').then((r) => {
+        this.restaurJob = r.data.data
+      })
+    },
     // 翻页方法
     search() {
       this.queryParams.vague = ''

--
Gitblit v1.8.0