浏览代码

no message

linwenxin 5 月之前
父节点
当前提交
984c69fc97
共有 1 个文件被更改,包括 12 次插入1 次删除
  1. 12 1
      src/views/userManagement/masterManagement/index.vue

+ 12 - 1
src/views/userManagement/masterManagement/index.vue

@@ -200,7 +200,9 @@ export default {
         workerImgs: [],
         user: {},
         workerImgsCp: [{ type: '', number: '', startTime: '', endTime: '', reexamineTime: '', filesList: [] }],
-        workerPolicies: []
+        workerPolicies: [],
+        nickName: '',
+        mobile: ''
       },
       examineStatus: '',
       openType: 0,
@@ -832,6 +834,15 @@ export default {
       ]
     }
   },
+  watch: {
+    'formData.user': {
+      deep: true,
+      handler(val) {
+        this.formData.user = this.formData.nickName
+        this.formData.user = this.formData.mobile
+      }
+    }
+  },
   methods: {
     // 切换状态
     changeType(val) {