浏览代码

收集销售线索定向包区分

朱鑫波 4 年之前
父节点
当前提交
9d4dabcffd
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/views/modules/kuaishouapp/newBatch/index.vue

+ 9 - 9
src/views/modules/kuaishouapp/newBatch/index.vue

@@ -184,7 +184,7 @@ li.chouzhen.first:before {
                     </a-form-item>
                   </a-col>
                 </a-row>
-                <a-row>
+                <a-row v-show="getData('campaignType','form') == 2">
                   <a-col :xl="14" :md="24">
                     <a-form-item label="推广平台">
                       <a-radio-group
@@ -3647,16 +3647,16 @@ export default {
     getTemplateList() {
       this.loading = true
       this.templateList = []
-      this.getAction('/batch/kuaishouTemplate/list', {
-        accountId: this.accountId,
-        platformOs: this.getData('systemType', 'form') == 'Android' ? 1 : 2,
-        // this.getData('systemType', 'form') == 'Android' ? 1 : 2,
-      }).then((res) => {
+      var params = {}
+      params.accountId = this.accountId
+      if(this.getData('campaignType','form') == 2){
+        params.platformOs =  this.getData('systemType', 'form') == 'Android' ? 1 : 2
+      }
+
+      this.getAction('/batch/kuaishouTemplate/list',params).then((res) => {
         this.loading = false
         if (res.success) {
-          this.templateList = res.result.filter((item, index) => {
-            return item.platformOs == 0 || item.platformOs == (this.getData('systemType', 'form') == 'Android' ? 1 : 2)
-          })
+          this.templateList = res.result
           this.templateListAll = JSON.parse(JSON.stringify(this.templateList))
         } else {
           this.templateList = []