|
@@ -53,6 +53,13 @@ li:hover {
|
|
</div>
|
|
</div>
|
|
<div class="dingxiang_paichu" v-if="allForm.people != '0'" style="width:100%">
|
|
<div class="dingxiang_paichu" v-if="allForm.people != '0'" style="width:100%">
|
|
<a-tabs v-model="allForm.tabKey" @change="retargetAccountId()">
|
|
<a-tabs v-model="allForm.tabKey" @change="retargetAccountId()">
|
|
|
|
+ <a-button
|
|
|
|
+ slot="tabBarExtraContent"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="refreshPopulation"
|
|
|
|
+ :loading="refreshPopulationLoading"
|
|
|
|
+ >刷新人群包</a-button
|
|
|
|
+ >
|
|
<a-tab-pane key="1" tab="定向池" v-if="allForm.people != '2'">
|
|
<a-tab-pane key="1" tab="定向池" v-if="allForm.people != '2'">
|
|
<a-table
|
|
<a-table
|
|
:columns="retargetColumns"
|
|
:columns="retargetColumns"
|
|
@@ -751,7 +758,7 @@ let retargetColumns = [
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'new-create-template',
|
|
name: 'new-create-template',
|
|
- components:{
|
|
|
|
|
|
+ components: {
|
|
selectRegion
|
|
selectRegion
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
@@ -903,7 +910,7 @@ export default {
|
|
'deviceBrand',
|
|
'deviceBrand',
|
|
'devicePrice',
|
|
'devicePrice',
|
|
'businessInterest',
|
|
'businessInterest',
|
|
- 'filterConvertedLevel',
|
|
|
|
|
|
+ 'filterConvertedLevel'
|
|
// 'timeType',
|
|
// 'timeType',
|
|
// 'strengthType',
|
|
// 'strengthType',
|
|
// 'sceneType'
|
|
// 'sceneType'
|
|
@@ -977,6 +984,7 @@ export default {
|
|
directives: { clickoutside },
|
|
directives: { clickoutside },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ refreshPopulationLoading: false,
|
|
behaviorData: [],
|
|
behaviorData: [],
|
|
interestData: [],
|
|
interestData: [],
|
|
optionsAll: [],
|
|
optionsAll: [],
|
|
@@ -1070,6 +1078,26 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ refreshPopulation() {
|
|
|
|
+ if (this.accountId) {
|
|
|
|
+ this.refreshPopulationLoading = true
|
|
|
|
+ // this.$refs.application.showApplication()
|
|
|
|
+ this.getAction('/kuaishou/batch/pullPopulationList', {
|
|
|
|
+ accountId: this.accountId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.refreshPopulationLoading = false
|
|
|
|
+ this.$message.success(res.message)
|
|
|
|
+ this.retargetAccountId()
|
|
|
|
+ } else {
|
|
|
|
+ this.refreshPopulationLoading = false
|
|
|
|
+ this.$message.error(res.message)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('请先选择账户')
|
|
|
|
+ }
|
|
|
|
+ },
|
|
personSelect() {
|
|
personSelect() {
|
|
if (this.allForm.people === '1' || this.allForm.people === '2') {
|
|
if (this.allForm.people === '1' || this.allForm.people === '2') {
|
|
this.retargetAccountId()
|
|
this.retargetAccountId()
|
|
@@ -1341,16 +1369,16 @@ export default {
|
|
json.region = []
|
|
json.region = []
|
|
}
|
|
}
|
|
var jsonData = {}
|
|
var jsonData = {}
|
|
- if(this.allForm.people == '0'){
|
|
|
|
|
|
+ if (this.allForm.people == '0') {
|
|
jsonData.population = []
|
|
jsonData.population = []
|
|
jsonData.excludePopulation = []
|
|
jsonData.excludePopulation = []
|
|
- }else if(this.allForm.people == '1'){
|
|
|
|
|
|
+ } else if (this.allForm.people == '1') {
|
|
jsonData.population = this.allForm.incluedSelectedRowKeys
|
|
jsonData.population = this.allForm.incluedSelectedRowKeys
|
|
jsonData.excludePopulation = []
|
|
jsonData.excludePopulation = []
|
|
- }else if(this.allForm.people == '2'){
|
|
|
|
|
|
+ } else if (this.allForm.people == '2') {
|
|
jsonData.population = []
|
|
jsonData.population = []
|
|
jsonData.excludePopulation = this.allForm.excludeSelectedRowKeys
|
|
jsonData.excludePopulation = this.allForm.excludeSelectedRowKeys
|
|
- }else if(this.allForm.people == '3'){
|
|
|
|
|
|
+ } else if (this.allForm.people == '3') {
|
|
jsonData.population = this.allForm.incluedSelectedRowKeys
|
|
jsonData.population = this.allForm.incluedSelectedRowKeys
|
|
jsonData.excludePopulation = this.allForm.excludeSelectedRowKeys
|
|
jsonData.excludePopulation = this.allForm.excludeSelectedRowKeys
|
|
}
|
|
}
|