|
@@ -24,12 +24,12 @@
|
|
|
<div class="input-item">
|
|
|
<a-form-item>
|
|
|
<a-radio-group v-model="adposition" @change="adPositionChange">
|
|
|
- <a-radio-button value="smartInventory">优选广告位</a-radio-button>
|
|
|
- <a-radio-button value="inventoryType">按媒体指定位置</a-radio-button>
|
|
|
- <a-radio-button value="sceneInventory">按场景指定位置</a-radio-button>
|
|
|
+ <a-radio-button value="smartInventorys">优选广告位</a-radio-button>
|
|
|
+ <a-radio-button value="inventoryTypes">按媒体指定位置</a-radio-button>
|
|
|
+ <a-radio-button value="sceneInventorys">按场景指定位置</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
- <div style="width: 400px; margin-top: 24px;" v-show="adposition=='inventoryType'">
|
|
|
+ <div style="width: 400px; margin-top: 24px;" v-show="adposition=='inventoryTypes'">
|
|
|
<div class="inventory-tags-lists-header">
|
|
|
<a-checkbox :indeterminate="indeterminate" :checked="checkAll" @change="onCheckAllChange">
|
|
|
</a-checkbox>
|
|
@@ -39,12 +39,12 @@
|
|
|
<a-checkbox-group v-model="checkedList" :options="plainOptions" @change="onChange" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="width: 400px; margin-top: 24px;" v-show="adposition=='sceneInventory'">
|
|
|
+ <div style="width: 400px; margin-top: 24px;" v-show="adposition=='sceneInventorys'">
|
|
|
<div class="inventory-tags-lists-header">
|
|
|
<div class="inventory-tags-lists-name" style="padding-left:15px"><strong>位置选择</strong></div>
|
|
|
</div>
|
|
|
<div class="inventory-tags-lists-container">
|
|
|
- <a-radio-group v-decorator="['sceneInventory', { initialValue:'VIDEO_SCENE' }]">
|
|
|
+ <a-radio-group v-model=sceneInventory>
|
|
|
<a-radio :style="radioStyle" value="VIDEO_SCENE">沉浸式竖版视频场景广告位</a-radio>
|
|
|
<a-radio :style="radioStyle" value="FEED_SCENE">信息流场景广告位</a-radio>
|
|
|
<a-radio :style="radioStyle" value="TAIL_SCENE">视频后贴和尾帧场景广告位</a-radio>
|
|
@@ -432,7 +432,8 @@
|
|
|
children: 'children'
|
|
|
},
|
|
|
thirdIndustryId:undefined,
|
|
|
- adposition:'smartInventory'
|
|
|
+ adposition:'smartInventorys',
|
|
|
+ sceneInventory:'VIDEO_SCENE'
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -495,30 +496,30 @@
|
|
|
// 广告位置选择改变
|
|
|
adPositionChange(val) {
|
|
|
console.log(val)
|
|
|
- if (val.target.value == 'smartInventory') {
|
|
|
- this.form.setFieldsValue({
|
|
|
- smartInventory: 1,
|
|
|
- inventoryType: [],
|
|
|
- })
|
|
|
- } else if (val.target.value == 'inventoryType') {
|
|
|
- this.form.setFieldsValue({
|
|
|
- smartInventory: 0,
|
|
|
- inventoryType: this.checkedList,
|
|
|
- })
|
|
|
- } else if (val.target.value == 'sceneInventory') {
|
|
|
- this.form.setFieldsValue({
|
|
|
- smartInventory: 0,
|
|
|
- inventoryType: [],
|
|
|
- })
|
|
|
- console.log(this.getFormData('sceneInventory'))
|
|
|
- }
|
|
|
+ // if (val.target.value == 'smartInventorys') {
|
|
|
+ // this.form.setFieldsValue({
|
|
|
+ // smartInventory: 1,
|
|
|
+ // inventoryType: [],
|
|
|
+ // })
|
|
|
+ // } else if (val.target.value == 'inventoryTypes') {
|
|
|
+ // this.form.setFieldsValue({
|
|
|
+ // smartInventory: 0,
|
|
|
+ // inventoryType: this.checkedList,
|
|
|
+ // })
|
|
|
+ // } else if (val.target.value == 'sceneInventorys') {
|
|
|
+ // this.form.setFieldsValue({
|
|
|
+ // smartInventory: 0,
|
|
|
+ // inventoryType: [],
|
|
|
+ // })
|
|
|
+ // console.log(this.getFormData('sceneInventory'))
|
|
|
+ // }
|
|
|
|
|
|
},
|
|
|
// 注册表单的字段
|
|
|
initFormValue() {
|
|
|
- this.form.getFieldDecorator('inventoryType')
|
|
|
- this.form.getFieldDecorator('smartInventory')
|
|
|
- this.form.getFieldDecorator('thirdIndustryId')
|
|
|
+ // this.form.getFieldDecorator('inventoryType')
|
|
|
+ // this.form.getFieldDecorator('smartInventory')
|
|
|
+ // this.form.getFieldDecorator('thirdIndustryId')
|
|
|
// this.form.getFieldDecorator('sceneInventory')
|
|
|
},
|
|
|
// 验证网址
|
|
@@ -597,16 +598,16 @@
|
|
|
// params.titles = this.titleData
|
|
|
params.titles = this.$refs.material.titleData
|
|
|
}
|
|
|
- values.thirdIndustryId=this.thirdIndustryId;
|
|
|
+ values.thirdIndustryId=this.thirdIndustryId;
|
|
|
|
|
|
- if (this.adposition == 'smartInventory') {
|
|
|
+ if (this.adposition == 'smartInventorys') {
|
|
|
values.smartInventory=1;
|
|
|
- } else if (this.adposition == 'inventoryType') {
|
|
|
+ } else if (this.adposition == 'inventoryTypes') {
|
|
|
values.inventoryType=this.checkedList
|
|
|
- } else if (this.adposition == 'sceneInventory') {
|
|
|
+ } else if (this.adposition == 'sceneInventorys') {
|
|
|
+
|
|
|
+ values.sceneInventory=this.sceneInventory
|
|
|
|
|
|
- // values.sceneInventory
|
|
|
- console.log(this.getFormData('sceneInventory'))
|
|
|
}
|
|
|
|
|
|
postAction('/bytedance/batch/create/creative', {
|