|
@@ -83,13 +83,7 @@
|
|
<a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
<a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label" v-if="campaignType == '2'&&(getPlatForm(getData('appId'))=='1'||getPlatForm(getData('appId'))=='2')">
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label" v-if="campaignType == '2'&&(getPlatForm(getData('appId'))=='1'||getPlatForm(getData('appId'))=='2')">
|
|
|
|
|
|
- <a-checkbox v-decorator="[
|
|
|
|
- 'useAppMarket',
|
|
|
|
- {
|
|
|
|
- valuePropName: 'checked',
|
|
|
|
- initialValue: false,
|
|
|
|
- },
|
|
|
|
- ]">
|
|
|
|
|
|
+ <a-checkbox @change="onChange" :checked="allForm.useAppMarket">
|
|
优先从系统应用商店下载
|
|
优先从系统应用商店下载
|
|
</a-checkbox>
|
|
</a-checkbox>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -467,7 +461,8 @@ export default {
|
|
groupTypeData: null,
|
|
groupTypeData: null,
|
|
fail: [],
|
|
fail: [],
|
|
success: [],
|
|
success: [],
|
|
- sceneId:[7]
|
|
|
|
|
|
+ sceneId:[7],
|
|
|
|
+ useAppMarket:false
|
|
},
|
|
},
|
|
typeCopy:"edit",
|
|
typeCopy:"edit",
|
|
dataList: [],
|
|
dataList: [],
|
|
@@ -674,9 +669,10 @@ export default {
|
|
getAction('/kuaishou/batch/getUnitDetail', params).then(res => {
|
|
getAction('/kuaishou/batch/getUnitDetail', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
var dataJson = { ...res.result.baseInfo, ...res.result.appInfo, ...res.result.target }
|
|
var dataJson = { ...res.result.baseInfo, ...res.result.appInfo, ...res.result.target }
|
|
- dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
|
|
|
|
|
|
+ // dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
|
|
dataJson.dayBudget = dataJson.dayBudget / 1000
|
|
dataJson.dayBudget = dataJson.dayBudget / 1000
|
|
dataJson.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? '1':'2'
|
|
dataJson.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? '1':'2'
|
|
|
|
+ this.allForm.useAppMarket= dataJson.useAppMarket==0?false:true
|
|
this.allForm.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? [7]:JSON.parse( res.result.baseInfo.sceneId )
|
|
this.allForm.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? [7]:JSON.parse( res.result.baseInfo.sceneId )
|
|
console.log(this.allForm.sceneId)
|
|
console.log(this.allForm.sceneId)
|
|
this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
|
|
this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
|
|
@@ -777,7 +773,9 @@ export default {
|
|
endTime: this.allForm.time == '2' ? moment(this.timeRange[1]).format('YYYY-MM-DD') : '',
|
|
endTime: this.allForm.time == '2' ? moment(this.timeRange[1]).format('YYYY-MM-DD') : '',
|
|
scheduleTime: this.allForm.scheduleTimeData
|
|
scheduleTime: this.allForm.scheduleTimeData
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (this.allForm.useAppMarket == true || this.allForm.useAppMarket == false) {
|
|
|
|
+ params.useAppMarket = this.allForm.useAppMarket ? 1 : 0
|
|
|
|
+ }
|
|
if (this.checkedTrue) {
|
|
if (this.checkedTrue) {
|
|
var data = this.populationData
|
|
var data = this.populationData
|
|
postAction('/kuaishou/batch/addDirectionalTemplate', {
|
|
postAction('/kuaishou/batch/addDirectionalTemplate', {
|
|
@@ -821,8 +819,9 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- onChange(value) {
|
|
|
|
- console.log(value)
|
|
|
|
|
|
+ onChange(e) {
|
|
|
|
+ this.allForm.useAppMarket =e.target.checked
|
|
|
|
+ // console.log(value)
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
// this.$refs.population.getAppList(value)
|
|
// this.$refs.population.getAppList(value)
|