Kaynağa Gözat

Merge branch 'feature_20251118_客资分配人员关联区域' into uat(dev)

zhujindu 2 hafta önce
ebeveyn
işleme
566b54eb79
1 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. 10 1
      src/views/week/assignAwait/assignPage.vue

+ 10 - 1
src/views/week/assignAwait/assignPage.vue

@@ -122,10 +122,11 @@ export default {
         if (val) this.getSelectUserListByCustomerType();
       },
     },
-    assignUserPostValue: {
+    'assignUserPostItem.postName': {
       handler(val) {
         if (val) this.getSelectUserListByPostName();
       },
+      deep: true,
     },
   },
   activated() {
@@ -165,6 +166,10 @@ export default {
               if (this.assignUserData.length) {
                 this.assignUserItem = this.assignUserData[0];
                 this.assignUserValue = this.assignUserItem.nickName;
+              } else {
+                this.assignUserData = [];
+                this.assignUserItem = null;
+                this.assignUserValue = '';
               }
             } else {
               this.assignUserData = [];
@@ -209,6 +214,10 @@ export default {
             if (this.assignUserData.length) {
               this.assignUserItem = this.assignUserData[0];
               this.assignUserValue = this.assignUserItem.nickName;
+            } else {
+              this.assignUserData = [];
+              this.assignUserItem = null;
+              this.assignUserValue = '';
             }
           } else {
             this.assignUserData = [];