linwenxin il y a 5 mois
Parent
commit
e4255f0bf0
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/views/setting/workContactLetter/department/index.vue

+ 3 - 1
src/views/setting/workContactLetter/department/index.vue

@@ -187,9 +187,11 @@ export default {
           events: {
             change: val => {
               if (val) {
-                this.formData.userName = this.accountList?.find(item => item.adminUserId === val)?.nickName
+                this.formData.userName = this.accountList?.find(item => item.adminUserId === val)?.userName
+                this.formData.nickName = this.accountList?.find(item => item.adminUserId === val)?.nickName
               } else {
                 this.formData.userName = ''
+                this.formData.nickName = ''
               }
             }
           }