|
@@ -32,7 +32,7 @@
|
|
|
<a-button type="primary" style="margin:10px" @click="addUser">搜索</a-button>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
- <a-button type="primary" @click=";(visible = true), (populationData = {}), (active = 'add')" :disabled="!appId">
|
|
|
+ <a-button type="primary" @click="addModule" :disabled="!appId">
|
|
|
创建模板
|
|
|
</a-button>
|
|
|
<a-row style="margin-top:15px">
|
|
@@ -76,7 +76,7 @@
|
|
|
} from 'vuex'
|
|
|
import jq from 'jquery'
|
|
|
import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
|
|
|
- import targetedPopulation from '@/views/modules/kuaishouapp/account/stepForm/stepModule/targetedPopulation.vue'
|
|
|
+ import targetedPopulation from '@/views/modules/kuaishouapp/account/stepForm/stepModule/newModulePop.vue'
|
|
|
export default {
|
|
|
name: 'new-mould',
|
|
|
components: {
|
|
@@ -114,105 +114,6 @@
|
|
|
],
|
|
|
appId: '',
|
|
|
populationData: {
|
|
|
- // platform_os: '1',
|
|
|
- // is_open: '0',
|
|
|
- // gender: '1',
|
|
|
- // network: '1',
|
|
|
- // interest_video: [2, 3],
|
|
|
- // ages_range: ['12', '41'],
|
|
|
- // device_brand: ['2', '9'],
|
|
|
- // device_price: ['5', '9'],
|
|
|
- // fans_star: [2, 3, 4, 5],
|
|
|
- // app_interest: [3, 4],
|
|
|
- // android_osv: '4',
|
|
|
- // business_interest_type: '2',
|
|
|
- // business_interest: [34328, 34330],
|
|
|
- // no_age_break: 0,
|
|
|
- // no_gender_break: 0,
|
|
|
- // no_area_break: 0,
|
|
|
- // region: [
|
|
|
- // 11,
|
|
|
- // 12,
|
|
|
- // 13,
|
|
|
- // 14,
|
|
|
- // 15,
|
|
|
- // 21,
|
|
|
- // 22,
|
|
|
- // 23,
|
|
|
- // 31,
|
|
|
- // 32,
|
|
|
- // 33,
|
|
|
- // 34,
|
|
|
- // 35,
|
|
|
- // 36,
|
|
|
- // 37,
|
|
|
- // 41,
|
|
|
- // 42,
|
|
|
- // 43,
|
|
|
- // 44,
|
|
|
- // 45,
|
|
|
- // 46,
|
|
|
- // 50,
|
|
|
- // 51,
|
|
|
- // 52,
|
|
|
- // 53,
|
|
|
- // 54,
|
|
|
- // 61,
|
|
|
- // 62,
|
|
|
- // 63,
|
|
|
- // 64,
|
|
|
- // 65,
|
|
|
- // 71,
|
|
|
- // 81,
|
|
|
- // 82
|
|
|
- // ],
|
|
|
- // allForm: {
|
|
|
- // regionType: 'limit',
|
|
|
- // region: [
|
|
|
- // { label: '北京', value: 11 },
|
|
|
- // { label: '天津', value: 12 },
|
|
|
- // { label: '河北', value: 13 },
|
|
|
- // { label: '山西', value: 14 },
|
|
|
- // { label: '内蒙古', value: 15 },
|
|
|
- // { label: '辽宁', value: 21 },
|
|
|
- // { label: '吉林', value: 22 },
|
|
|
- // { label: '黑龙江', value: 23 },
|
|
|
- // { label: '上海', value: 31 },
|
|
|
- // { label: '江苏', value: 32 },
|
|
|
- // { label: '浙江', value: 33 },
|
|
|
- // { label: '安徽', value: 34 },
|
|
|
- // { label: '福建', value: 35 },
|
|
|
- // { label: '江西', value: 36 },
|
|
|
- // { label: '山东', value: 37 },
|
|
|
- // { label: '河南', value: 41 },
|
|
|
- // { label: '湖北', value: 42 },
|
|
|
- // { label: '湖南', value: 43 },
|
|
|
- // { label: '广东', value: 44 },
|
|
|
- // { label: '广西', value: 45 },
|
|
|
- // { label: '海南', value: 46 },
|
|
|
- // { label: '重庆', value: 50 },
|
|
|
- // { label: '四川', value: 51 },
|
|
|
- // { label: '贵州', value: 52 },
|
|
|
- // { label: '云南', value: 53 },
|
|
|
- // { label: '西藏', value: 54 },
|
|
|
- // { label: '陕西', value: 61 },
|
|
|
- // { label: '甘肃', value: 62 },
|
|
|
- // { label: '青海', value: 63 },
|
|
|
- // { label: '宁夏', value: 64 },
|
|
|
- // { label: '新疆', value: 65 },
|
|
|
- // { label: '台湾', value: 71 },
|
|
|
- // { label: '香港', value: 81 },
|
|
|
- // { label: '澳门', value: 82 }
|
|
|
- // ],
|
|
|
- // ageType: 'ageLimit',
|
|
|
- // ages_range: [],
|
|
|
- // age: [],
|
|
|
- // device: '1',
|
|
|
- // price: '1',
|
|
|
- // appType: '1',
|
|
|
- // fansStar: '1',
|
|
|
- // interestVideo: '1'
|
|
|
- // }
|
|
|
},
|
|
|
active: 'add',
|
|
|
editId: '',
|
|
@@ -237,12 +138,21 @@
|
|
|
computed: {},
|
|
|
filters: {},
|
|
|
methods: {
|
|
|
+ addModule() {
|
|
|
+ this.visible = true
|
|
|
+ this.populationData = {}
|
|
|
+ this.active = 'add'
|
|
|
+ localStorage.setItem('accountIdNewMoudle', this.appId)
|
|
|
+ },
|
|
|
handleSubmit(e) {
|
|
|
// this.$refs.population.handleSubmit()
|
|
|
e.preventDefault()
|
|
|
this.$refs.population.handleSubmit()
|
|
|
var data = this.populationData
|
|
|
console.log(JSON.stringify(data))
|
|
|
+ // this.$bus.$emit('remove', '/account/stepForm')
|
|
|
+ // this.$bus.$emit('remove', '/account/advertisingGroup')
|
|
|
+ // this.$bus.$emit('remove', '/account/originality')
|
|
|
if (this.active == 'add') {
|
|
|
postAction('/kuaishou/batch/addDirectionalTemplate', {
|
|
|
accountId: this.appId,
|
|
@@ -281,6 +191,7 @@
|
|
|
this.editId = item.id
|
|
|
this.name = item.templateName
|
|
|
this.populationData = JSON.parse(item.templateContent)
|
|
|
+ localStorage.setItem('accountIdNewMoudle', this.appId)
|
|
|
console.log(item.templateContent)
|
|
|
this.visible = true
|
|
|
},
|
|
@@ -303,6 +214,7 @@
|
|
|
params.accountId = this.appId + ''
|
|
|
|
|
|
if (this.appId) {
|
|
|
+ localStorage.setItem('accountIdNewMoudle', this.appId)
|
|
|
getAction('/kuaishou/batch/pullPopulationList', params).then(res => {
|
|
|
getAction('/kuaishou/batch/getDirectionalTemplate', params).then(res => {
|
|
|
if (res.success) {
|