|
@@ -411,26 +411,10 @@
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
|
|
v-if="item.bidType == 10"
|
|
v-if="item.bidType == 10"
|
|
>
|
|
>
|
|
- <a-select v-model="item.ocpxActionType">
|
|
|
|
- <a-select-option :value="2">行为数</a-select-option>
|
|
|
|
- <a-select-option :value="180" v-if=" allForm.groupTypeData.isActivate == '1'"
|
|
|
|
- >激活</a-select-option
|
|
|
|
- >
|
|
|
|
- <a-select-option
|
|
|
|
- :value="53"
|
|
|
|
- v-if=" allForm.groupTypeData.isFormSubmit == '1'"
|
|
|
|
- >表单提交</a-select-option
|
|
|
|
- >
|
|
|
|
-
|
|
|
|
- <a-select-option :value="394" v-if="allForm.groupTypeData.isOrderSubmit == '1'">订单提交</a-select-option>
|
|
|
|
- <a-select-option :value="348" v-if="allForm.groupTypeData.isValidClue == '1'">使用有效线索</a-select-option>
|
|
|
|
- <a-select-option :value="383" v-if="allForm.groupTypeData.isCreditGrant == '1'">授信出价</a-select-option>
|
|
|
|
- <a-select-option :value="384" v-if="allForm.groupTypeData.isWanJian == '1'">完件出价</a-select-option>
|
|
|
|
- <a-select-option :value="190" v-if="allForm.groupTypeData.isPurchase == '1'">付费出价</a-select-option>
|
|
|
|
- <a-select-option :value="191" v-if="allForm.groupTypeData.isFirstdayRoi == '1'">首日ROI</a-select-option>
|
|
|
|
- <a-select-option :value="396" v-if="allForm.groupTypeData.isRegister == '1'">注册优化目标</a-select-option>
|
|
|
|
- <a-select-option :value="773" v-if="allForm.groupTypeData.isKeyAction == '1'">关键行为</a-select-option>
|
|
|
|
- <a-select-option :value="324" v-if="allForm.groupTypeData.isAppInvoked == '1'">唤起应用</a-select-option>
|
|
|
|
|
|
+ <a-select v-model="item.ocpxActionType" @change="getDeepTypesList" allowClear>
|
|
|
|
+ <a-select-option :value="items.ocpx_action_type" v-for="items in ocpxActionList"
|
|
|
|
+ >{{items.name}}</a-select-option
|
|
|
|
+ >
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item
|
|
<a-form-item
|
|
@@ -438,17 +422,16 @@
|
|
:labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
:labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
|
|
v-if="
|
|
v-if="
|
|
- (item.ocpxActionType == 180 || item.ocpxActionType == 53) &&
|
|
|
|
- allForm.groupTypeData.deepConversionTypes.length > 0
|
|
|
|
|
|
+ (item.ocpxActionType == 180 || item.ocpxActionType == 53) && deepTypesList.length > 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<a-select v-model="item.deepConversionType" allowClear>
|
|
<a-select v-model="item.deepConversionType" allowClear>
|
|
<a-select-option
|
|
<a-select-option
|
|
- :value="items.deepConversionType"
|
|
|
|
- v-for="(items, index) of allForm.groupTypeData.deepConversionTypes"
|
|
|
|
|
|
+ :value="items.event_type"
|
|
|
|
+ v-for="(items, index) of deepTypesList"
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
- {{ items.desc }}</a-select-option
|
|
|
|
|
|
+ {{ items.name }}</a-select-option
|
|
>
|
|
>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -1415,7 +1398,18 @@ export default {
|
|
scheduleTime: '1',
|
|
scheduleTime: '1',
|
|
scheduleTimeData:
|
|
scheduleTimeData:
|
|
'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
|
|
'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
|
|
- group: [],
|
|
|
|
|
|
+ group: [{
|
|
|
|
+ bidType: 10,
|
|
|
|
+ // bid: '',
|
|
|
|
+ // cpaBid: '',
|
|
|
|
+ showTipCheck: false,
|
|
|
|
+ deepConversionBidCheck: false,
|
|
|
|
+ // unitName: '',
|
|
|
|
+ unitNameCheck: false,
|
|
|
|
+ deepConversionType: '',
|
|
|
|
+ deepConversionBid: '',
|
|
|
|
+ ocpxActionType: 2,
|
|
|
|
+ }],
|
|
groupTypeData: null,
|
|
groupTypeData: null,
|
|
fail: [],
|
|
fail: [],
|
|
success: [],
|
|
success: [],
|
|
@@ -1442,6 +1436,8 @@ export default {
|
|
cunTitleList: [],
|
|
cunTitleList: [],
|
|
createCount: 0,
|
|
createCount: 0,
|
|
tongbuLoading: false,
|
|
tongbuLoading: false,
|
|
|
|
+ ocpxActionList: [],
|
|
|
|
+ deepTypesList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1470,6 +1466,39 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getOcpxActionList(value){
|
|
|
|
+ var params = {}
|
|
|
|
+ params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
+ params.sceneCategory = 0
|
|
|
|
+ params.campaignType = localStorage.getItem('campaignType')
|
|
|
|
+ params.sceneIds = this.allForm.allianceAccount == '1' ? this.allForm.sceneId : [5]
|
|
|
|
+ params.appId = value?value:null
|
|
|
|
+
|
|
|
|
+ this.postDataAction('/kuaishou/batch/conversionInfos', params).then(res=>{
|
|
|
|
+ if(res.success){
|
|
|
|
+ this.ocpxActionList = res.result.data.ocpx_types
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getDeepTypesList(data){
|
|
|
|
+ if(!!data){
|
|
|
|
+ var params = {}
|
|
|
|
+ params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
+ params.sceneCategory = 0
|
|
|
|
+ params.campaignType = localStorage.getItem('campaignType')
|
|
|
|
+ params.sceneIds = this.allForm.allianceAccount == '1' ? this.allForm.sceneId : [5]
|
|
|
|
+ params.appId = this.getData('appId')
|
|
|
|
+ params.ocpxActionType = data
|
|
|
|
+ this.postDataAction('/kuaishou/batch/deepTypes', params).then(res=>{
|
|
|
|
+ if(res.success){
|
|
|
|
+ this.deepTypesList = res.result.data.deep_types
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.deepTypesList = []
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
descriptionchange(val, index) {
|
|
descriptionchange(val, index) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.descriptionList[index].value = val.replace(/\s*/g, '').trim()
|
|
this.descriptionList[index].value = val.replace(/\s*/g, '').trim()
|
|
@@ -1894,6 +1923,7 @@ export default {
|
|
} else if (data.length == 0) {
|
|
} else if (data.length == 0) {
|
|
data.push(1)
|
|
data.push(1)
|
|
}
|
|
}
|
|
|
|
+ this.getOcpxActionList()
|
|
},
|
|
},
|
|
selectAllVideo() {
|
|
selectAllVideo() {
|
|
this.checkVideo = this.dataSource.map((item) => {
|
|
this.checkVideo = this.dataSource.map((item) => {
|
|
@@ -2528,7 +2558,7 @@ export default {
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
// this.$refs.population.getAppList(value)
|
|
// this.$refs.population.getAppList(value)
|
|
this.getSiteList(value)
|
|
this.getSiteList(value)
|
|
- this.getIsActivate(value)
|
|
|
|
|
|
+ this.getOcpxActionList(value)
|
|
},
|
|
},
|
|
handleChangeMould(value) {
|
|
handleChangeMould(value) {
|
|
if (value) {
|
|
if (value) {
|
|
@@ -2753,20 +2783,22 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
|
|
+ this.getOcpxActionList()
|
|
|
|
+ this.getDeepTypesList(2)
|
|
this.step = localStorage.getItem('step')
|
|
this.step = localStorage.getItem('step')
|
|
this.getTemplate(localStorage.getItem('campaignAccountId'))
|
|
this.getTemplate(localStorage.getItem('campaignAccountId'))
|
|
this.getAppList()
|
|
this.getAppList()
|
|
// this.getCampaignList()
|
|
// this.getCampaignList()
|
|
this.campaignType = localStorage.getItem('campaignType')
|
|
this.campaignType = localStorage.getItem('campaignType')
|
|
this.getMould()
|
|
this.getMould()
|
|
- getAction('/kuaishou/batch/getIsActivate', {
|
|
|
|
- accountId: localStorage.getItem('campaignAccountId'),
|
|
|
|
- }).then((res) => {
|
|
|
|
- if (res.success) {
|
|
|
|
- this.allForm.groupTypeData = res.result
|
|
|
|
- this.addGroup()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // getAction('/kuaishou/batch/getIsActivate', {
|
|
|
|
+ // accountId: localStorage.getItem('campaignAccountId'),
|
|
|
|
+ // }).then((res) => {
|
|
|
|
+ // if (res.success) {
|
|
|
|
+ // this.allForm.groupTypeData = res.result
|
|
|
|
+ // // this.addGroup()
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
getAction('/kuaishou/batch/getWhiteList', {
|
|
getAction('/kuaishou/batch/getWhiteList', {
|
|
accountId: localStorage.getItem('campaignAccountId'),
|
|
accountId: localStorage.getItem('campaignAccountId'),
|
|
}).then((res) => {
|
|
}).then((res) => {
|