Przeglądaj źródła

feat:角色回显

Signed-off-by: tsz <2417024719@qq.com>
tsz 1 rok temu
rodzic
commit
5d3b69aec2
1 zmienionych plików z 20 dodań i 0 usunięć
  1. 20 0
      entbase-pc/src/views/ent/components/personal.vue

+ 20 - 0
entbase-pc/src/views/ent/components/personal.vue

@@ -603,6 +603,7 @@ export default {
       this.ruleForm.phoneStatus = false
       this.ruleForm.emailStatus = false
       this.ruleForm.accountStatus = false
+      this.ruleForm.allocation = ''
       this.departMsg.name = ''
       this.departMsg.id = ''
     },
@@ -622,6 +623,25 @@ export default {
           this.ruleForm.email = val.mail
           this.ruleForm.personId = val.id
           this.ruleForm.account = val.user_name
+          let str = ''
+          switch (res.data.nicheDis) {
+            case 0:
+              str = '1'
+              break;
+            case 1:
+              str = '2'
+              break;
+            case 2:
+              str = '2'
+              break;
+            case 3:
+              str = '3'
+              break;
+            case 4:
+              str = '3'
+              break;
+          }
+          this.ruleForm.allocation = str
           this.departMsg.name = res.data.dept_name
           this.departMsg.id = res.data.dept_id
           this.ruleForm.role = val.role