|
@@ -132,6 +132,7 @@
|
|
:dataSource="data"
|
|
:dataSource="data"
|
|
bordered
|
|
bordered
|
|
:pagination="false"
|
|
:pagination="false"
|
|
|
|
+ :scroll="{ y: 300 }"
|
|
:rowSelection="{
|
|
:rowSelection="{
|
|
selectedRowKeys: selectedRowKeys,
|
|
selectedRowKeys: selectedRowKeys,
|
|
onChange: onSelectChange,
|
|
onChange: onSelectChange,
|
|
@@ -171,6 +172,7 @@
|
|
:dataSource="data"
|
|
:dataSource="data"
|
|
bordered
|
|
bordered
|
|
:pagination="false"
|
|
:pagination="false"
|
|
|
|
+ :scroll="{ y: 300 }"
|
|
:rowSelection="{
|
|
:rowSelection="{
|
|
selectedRowKeys: selectedRowKeysNo,
|
|
selectedRowKeys: selectedRowKeysNo,
|
|
onChange: onSelectChangeNo,
|
|
onChange: onSelectChangeNo,
|
|
@@ -191,7 +193,11 @@
|
|
<div style="text-align:center;font-size:16px">
|
|
<div style="text-align:center;font-size:16px">
|
|
目标人群
|
|
目标人群
|
|
</div>
|
|
</div>
|
|
- <targeted-population ref="population" :populationData.sync="populationData" />
|
|
|
|
|
|
+ <targeted-population
|
|
|
|
+ ref="population"
|
|
|
|
+ :populationData.sync="populationData"
|
|
|
|
+ :platform="getPlatForm(getData('appId'))"
|
|
|
|
+ />
|
|
<div style="text-align:center;font-size:16px">
|
|
<div style="text-align:center;font-size:16px">
|
|
预算和排期
|
|
预算和排期
|
|
</div>
|
|
</div>
|
|
@@ -487,7 +493,8 @@ const columns = [
|
|
{
|
|
{
|
|
title: '人群',
|
|
title: '人群',
|
|
dataIndex: 'orientation_name',
|
|
dataIndex: 'orientation_name',
|
|
- scopedSlots: { customRender: 'orientation_name' }
|
|
|
|
|
|
+ scopedSlots: { customRender: 'orientation_name' },
|
|
|
|
+ width: 150
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '属性',
|
|
title: '属性',
|
|
@@ -516,7 +523,8 @@ const columns = [
|
|
.toString()
|
|
.toString()
|
|
.toLowerCase()
|
|
.toLowerCase()
|
|
.includes(value.toLowerCase()),
|
|
.includes(value.toLowerCase()),
|
|
- scopedSlots: { customRender: 'population_type' }
|
|
|
|
|
|
+ scopedSlots: { customRender: 'population_type' },
|
|
|
|
+ width: 150
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '创建时间',
|
|
title: '创建时间',
|
|
@@ -831,7 +839,7 @@ export default {
|
|
this.form.validateFields((err, values) => {
|
|
this.form.validateFields((err, values) => {
|
|
if (!err) {
|
|
if (!err) {
|
|
console.log(this.populationData)
|
|
console.log(this.populationData)
|
|
-
|
|
|
|
|
|
+ this.loading = SVGComponentTransferFunctionElement
|
|
var groupArr = this.allForm.group.map(item => {
|
|
var groupArr = this.allForm.group.map(item => {
|
|
return {
|
|
return {
|
|
...item,
|
|
...item,
|
|
@@ -870,7 +878,9 @@ export default {
|
|
accountId: localStorage.getItem('accountId'),
|
|
accountId: localStorage.getItem('accountId'),
|
|
campaignId: localStorage.getItem('campaignId'),
|
|
campaignId: localStorage.getItem('campaignId'),
|
|
unit_type: 4,
|
|
unit_type: 4,
|
|
- begin_time: moment(this.timeRange[0]).format('YYYY-MM-DD')
|
|
|
|
|
|
+ begin_time: moment(this.timeRange[0]).format('YYYY-MM-DD'),
|
|
|
|
+ end_time: this.allForm.time == '2' ? moment(this.timeRange[1]).format('YYYY-MM-DD') : '',
|
|
|
|
+ schedule_time: this.allForm.scheduleTimeData
|
|
}
|
|
}
|
|
|
|
|
|
postAction('/kuaishou/batch/createUnit', params).then(res => {
|
|
postAction('/kuaishou/batch/createUnit', params).then(res => {
|
|
@@ -878,7 +888,7 @@ export default {
|
|
this.visible = true
|
|
this.visible = true
|
|
this.allForm.fail = res.result.fail
|
|
this.allForm.fail = res.result.fail
|
|
this.allForm.success = res.result.success
|
|
this.allForm.success = res.result.success
|
|
-
|
|
|
|
|
|
+ this.loading = false
|
|
if (res.result.success.length > 0) {
|
|
if (res.result.success.length > 0) {
|
|
var dataJson = JSON.stringify(
|
|
var dataJson = JSON.stringify(
|
|
res.result.success.map(item => {
|
|
res.result.success.map(item => {
|
|
@@ -887,6 +897,8 @@ export default {
|
|
)
|
|
)
|
|
localStorage.setItem('pans', dataJson)
|
|
localStorage.setItem('pans', dataJson)
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -896,9 +908,16 @@ export default {
|
|
console.log(value)
|
|
console.log(value)
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
- console.log(`selected ${value}`)
|
|
|
|
// this.$refs.population.getAppList(value)
|
|
// this.$refs.population.getAppList(value)
|
|
},
|
|
},
|
|
|
|
+ getPlatForm(appId) {
|
|
|
|
+ if (appId) {
|
|
|
|
+ var data = this.appList.filter(item => {
|
|
|
|
+ return item.appId == appId
|
|
|
|
+ })
|
|
|
|
+ return data[0].platform
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handleBlur() {
|
|
handleBlur() {
|
|
console.log('blur')
|
|
console.log('blur')
|
|
},
|
|
},
|