shi'sen'yuan преди 3 години
родител
ревизия
313feb6c8f
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      ui/src/views/plant/staffmgr/index.vue

+ 6 - 0
ui/src/views/plant/staffmgr/index.vue

@@ -892,6 +892,7 @@
       // 表单重置
       reset() {
         this.photoUrl= '';
+        this.specialDutys = [];
         this.form = {
           id: null,
           plantCode: null,
@@ -959,6 +960,11 @@
           if (response.data.photo) {
             this.photoUrl = process.env.VUE_APP_BASE_API + response.data.photo;
           }
+          if (response.data.specialDuty) {
+            this.specialDutys = response.data.specialDuty.split(',');
+          }else {
+            this.specialDutys = [];
+          }
           this.open = true;
           this.notPhoto = true;
           this.title = this.$t('修改') +  this.$t('人员管理');