浏览代码

广告主信息及时清空广告主id

liubei@c-top.com.cn 3 年之前
父节点
当前提交
d0bdaf07ff
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      src/views/modules/advertiser/AdvertiserList.vue

+ 3 - 5
src/views/modules/advertiser/AdvertiserList.vue

@@ -426,12 +426,14 @@ export default {
     clear(type) {
       this.queryParam.name = null
       this.queryParam.advertiserId = null
+      this.advertiserId = null
       this.queryParam.productId = null
       this.queryParam.id = null
       this.queryParam.productName = null
       this.queryParam.projectName = null
       this.allIdUser = {}
       this.loadData(1)
+      
     },
     addNew() {
       if (this.active == 'advertiser') {
@@ -448,11 +450,7 @@ export default {
         this.$refs.modalFormTwo.disableSubmit = false
       } else if (this.active == 'project') {
         this.$refs.modalFormThree.add({
-          advertiserId: this.queryParam.advertiserId
-            ? this.queryParam.advertiserId
-            : this.advertiserId
-            ? this.advertiserId
-            : undefined,
+          advertiserId: this.queryParam.advertiserId ? this.queryParam.advertiserId : this.advertiserId ? this.advertiserId : undefined,
           productId: this.queryParam.productId ? this.queryParam.productId : undefined,
         })
         this.$refs.modalFormThree.title = '新增'