Explorar o código

账户配置 复制 BUG 修改

jiayufei %!s(int64=4) %!d(string=hai) anos
pai
achega
8ab4a3a705

+ 1 - 1
src/views/modules/Statistics/components/Treeselect.vue

@@ -123,7 +123,7 @@ export default {
   methods: {
     ...mapGetters(['nickname', 'avatar', 'userInfo']),
     update(node, id) {
-      // console.log(node)
+	  this.$emit('select-value', node);
       // getAction('/ctop/userAllocation/getAccountListByProjectId', {
       //   projectId: node.id,
       // }).then((res) => {

+ 23 - 0
src/views/modules/account-config/components/configuration-copy.vue

@@ -18,6 +18,7 @@
                             :appId.sync="configForm.accountId"
                             :multiple="false"
                             request="1,3"
+                            @select-value="handleSelectValue"
                         >
                         </acount-search>
                     </a-form-model-item>
@@ -1842,6 +1843,28 @@ export default {
     methods: {
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
         moment,
+        handleSelectValue(data) {
+            this.configForm.adConvertType = undefined;
+            this.configForm.adConvertId = undefined;
+            this.configForm.adAudiencePackageId = undefined;
+            this.packageMessageDetail = [];
+            this.handleClearlist();
+
+            if (this.configForm.customPerson === 'a' && this.configForm.adRetargetingTagsType === '1') {
+                this.$refs.direct.selectRightData = [];
+                this.$refs.direct.tableSelectIds = [];
+            }
+            else if (this.configForm.customPerson === 'a' && this.configForm.adRetargetingTagsType === '2') {
+                this.$refs.exclude.selectRightData = [];
+                this.$refs.exclude.tableSelectIds = [];
+            }
+            else if (this.configForm.customPerson === 'a' && this.configForm.adRetargetingTagsType === '3') {
+                this.$refs.twoway.tableSelectDirectIds = [];
+                this.$refs.twoway.tableSelectDirectData = [];
+                this.$refs.twoway.tableSelectExcludeIds = [];
+                this.$refs.twoway.tableSelectExcludeData = [];
+            }
+        },
         handleAdDistrict(e) {
             const defaultValue = e.target.value;
             if (defaultValue === 'NONE') {

+ 1 - 11
src/views/modules/account-config/components/directional-logic/directional-logic.vue

@@ -291,17 +291,6 @@ export default {
         }
     },
     watch: {
-        // updatelistinclude(newVal) {
-        //     if (newVal) {
-        //         console.log(newVal, '---00---000----000');
-        //         this.tableSelectDirectIds = newVal;
-        //     }
-        // },
-        // updatelistexclude(newVal) {
-        //     if (newVal) {
-        //         this.tableSelectExcludeIds = newVal;
-        //     }
-        // },
         defaultlist(newVal) {
             if (newVal) {
                 this.tableDataAllDirect = newVal;
@@ -336,6 +325,7 @@ export default {
         }
     },
     mounted() {
+        console.log(this.clearstatus, 'clear---clear');
         this.tableDataAllDirect = this.defaultlist;
         this.updateTableAllDirect = this.defaultlist;
         this.tableDataAllExclude = this.defaultlist;