浏览代码

修改页面展示

syh 5 年之前
父节点
当前提交
ae685da28d

+ 4 - 180
src/views/template/userorientation/list.vue

@@ -5,29 +5,8 @@
       <a-form layout="inline">
         <a-row :gutter="24">
           <a-col :md="6" :sm="8">
-            <a-form-item label="头条账号id">
-              <a-input placeholder="请输入头条账号id" v-model="queryParam.accountId"></a-input>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="广告主id">
-              <a-input placeholder="请输入广告主id" v-model="queryParam.advertiserId"></a-input>
-            </a-form-item>
-          </a-col>
-
-          <a-col :md="6" :sm="8">
-            <a-form-item label="定向人群包列表">
-              <a-input placeholder="请输入定向人群包列表" v-model="queryParam.retargetingTagsInclude"></a-input>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="排除人群包列表">
-              <a-input placeholder="请输入排除人群包列表" v-model="queryParam.retargetingTagsExclude"></a-input>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="受众性别">
-              <a-input placeholder="请输入受众性别" v-model="queryParam.gender"></a-input>
+            <a-form-item label="模板名称">
+              <a-input placeholder="请输入模板名称" v-model="queryParam.name"></a-input>
             </a-form-item>
           </a-col>
 
@@ -105,164 +84,9 @@ export default {
           }
         },
         {
-          title: '头条账号id',
-          align: 'center',
-          dataIndex: 'accountId'
-        },
-        {
-          title: '广告主id',
-          align: 'center',
-          dataIndex: 'advertiserId'
-        },
-        {
-          title: '定向人群包列表',
-          align: 'center',
-          dataIndex: 'retargetingTagsInclude'
-        },
-        {
-          title: '排除人群包列表',
-          align: 'center',
-          dataIndex: 'retargetingTagsExclude'
-        },
-        {
-          title: '受众性别',
-          align: 'center',
-          dataIndex: 'gender'
-        },
-        {
-          title: '年龄',
-          align: 'center',
-          dataIndex: 'age'
-        },
-        {
-          title: '受众最低android版本',
-          align: 'center',
-          dataIndex: 'androidOsv'
-        },
-        {
-          title: '受众最低ios版本',
-          align: 'center',
-          dataIndex: 'iosOsv'
-        },
-        {
-          title: '运营商类型',
-          align: 'center',
-          dataIndex: 'carrier'
-        },
-        {
-          title: '受众网络类型',
-          align: 'center',
-          dataIndex: 'ac'
-        },
-        {
-          title: '手机品牌',
-          align: 'center',
-          dataIndex: 'deviceBrand'
-        },
-        {
-          title: '受众文章分类',
-          align: 'center',
-          dataIndex: 'articleCategory'
-        },
-        {
-          title: '用户首次激活时间',
-          align: 'center',
-          dataIndex: 'activateType'
-        },
-        {
-          title: '受众平台',
-          align: 'center',
-          dataIndex: 'platform'
-        },
-        {
-          title: '地域定向城市或者区县列表',
-          align: 'center',
-          dataIndex: 'city'
-        },
-        {
-          title: '商圈ID数组',
-          align: 'center',
-          dataIndex: 'businessIds'
-        },
-        {
-          title: '地域类型',
-          align: 'center',
-          dataIndex: 'district'
-        },
-        {
-          title: '受众位置类型',
-          align: 'center',
-          dataIndex: 'locationType'
-        },
-        {
-          title: '兴趣分类',
-          align: 'center',
-          dataIndex: 'adTag'
-        },
-        {
-          title: '兴趣关键词, 传入具体的词id,非兴趣词包id',
-          align: 'center',
-          dataIndex: 'interestTags'
-        },
-        {
-          title: '行为定向',
-          align: 'center',
-          dataIndex: 'appBehaviorTarget'
-        },
-        {
-          title: 'APP行为定向,分类集合',
-          align: 'center',
-          dataIndex: 'appCategory'
-        },
-        {
-          title: 'APP行为定向,APP集合',
-          align: 'center',
-          dataIndex: 'appIds'
-        },
-        {
-          title: '产品目录ID(ID由查询产品目录接口得到)',
-          align: 'center',
-          dataIndex: 'productPlatformId'
-        },
-        {
-          title: 'H5地址参数',
-          align: 'center',
-          dataIndex: 'externalUrlParams'
-        },
-        {
-          title: '直达链接参数',
-          align: 'center',
-          dataIndex: 'openUrlParams'
-        },
-        {
-          title: '是否自定义商品定向',
-          align: 'center',
-          dataIndex: 'dpaLocalAudience'
-        },
-        {
-          title: '排除人群包',
-          align: 'center',
-          dataIndex: 'excludeCustomActions'
-        },
-        {
-          title: '包含人群包',
-          align: 'center',
-          dataIndex: 'includeCustomActions'
-        },
-        {
-          title: '精选流量包',
-          align: 'center',
-          dataIndex: 'superiorPopularityType'
-        },
-        {
-          title: '定向流量包ID数组',
-          align: 'center',
-          dataIndex: 'flowPackage'
-        },
-        {
-          title: '排除流量包ID数组',
+          title: '模板名称',
           align: 'center',
-          dataIndex: 'excludeFlowPackage'
+          dataIndex: 'name'
         },
         {
           title: 'status',

+ 18 - 3
src/views/template/userorientation/modules/ByteDanceUserOrientationTemplateModal.vue

@@ -110,7 +110,7 @@
             placeholder="选择文章分类"
             style="width: 600px"
             @change="onChange"
-            v-if="showArticleCategory">
+            v-if="isArticleCategory == 'CATEGORY'">
             <a-select-option
               v-for="articleCategory in articleCategoryList"
               :key="articleCategory.itemValue"
@@ -191,7 +191,7 @@ export default {
       toutiaoNetType: {},
       isMobileBrand: "NONE",
       showMobileBrand: false,
-      mobileBrandList: {},
+      mobileBrandList: null,
       showArticleCategory: false,
       articleCategoryList: [],
       isArticleCategory: "NONE",
@@ -280,7 +280,22 @@ export default {
     edit(record) {
       // this.form.resetFields()
       this.model = Object.assign({}, record)
-      this.visible = true
+      this.visible = true;
+      this.gender = record.gender;
+      this.ageRange = record.age;
+      this.intrestType = record.intrestType;
+      this.platformType = record.platform;
+      this.netType = record.ac;
+      this.smartFl = record.autoExtendEnabled;
+      this.isArticleCategory = record.articleCategoryType;
+      this.tags = JSON.parse(record.articleCategory);
+      this.isMobileBrand = record.mobileBrand;
+      this.mobileType = record.deviceBrand;
+      this.name = record.name;
+      this.areaType = record.areaType;
+      this.cityList = record.city;
+      this.areaList = record.district;
+      this.intrestCategoryList = JSON.parse(record.adTag);
     },
     close() {
       this.$emit('close')