增加广告编辑选项
This commit is contained in:
parent
ab71289373
commit
36d08b4924
@ -216,6 +216,42 @@
|
|||||||
>
|
>
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="是否热门"
|
||||||
|
prop="ad_property.is_hot"
|
||||||
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="adForm.ad_property.is_hot"
|
||||||
|
:active-value="1"
|
||||||
|
:inactive-value="0"
|
||||||
|
:disabled="!writeable"
|
||||||
|
>
|
||||||
|
</el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="是否新游"
|
||||||
|
prop="ad_property.is_new"
|
||||||
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="adForm.ad_property.is_new"
|
||||||
|
:active-value="1"
|
||||||
|
:inactive-value="0"
|
||||||
|
:disabled="!writeable"
|
||||||
|
>
|
||||||
|
</el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="是否推荐"
|
||||||
|
prop="ad_property.is_recommend"
|
||||||
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="adForm.ad_property.is_recommend"
|
||||||
|
:active-value="1"
|
||||||
|
:inactive-value="0"
|
||||||
|
:disabled="!writeable"
|
||||||
|
>
|
||||||
|
</el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
@ -282,7 +318,10 @@ export default {
|
|||||||
dateRange: [],
|
dateRange: [],
|
||||||
companyid: 0,
|
companyid: 0,
|
||||||
ad_property: {
|
ad_property: {
|
||||||
is_shake: 0
|
is_shake: 0,
|
||||||
|
is_hot: 0,
|
||||||
|
is_new: 0,
|
||||||
|
is_recommend: 0
|
||||||
} //用于拓展属性
|
} //用于拓展属性
|
||||||
},
|
},
|
||||||
adFormRules: {
|
adFormRules: {
|
||||||
@ -307,7 +346,16 @@ export default {
|
|||||||
{ type: 'number', message: '计划数必须是数值', trigger: 'blur' }
|
{ type: 'number', message: '计划数必须是数值', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
'ad_property.is_shake': [
|
'ad_property.is_shake': [
|
||||||
{ type: 'number', message: '该项必须是数值', trigger: 'blur' }
|
{ type: 'number', message: '是否抖动必须是数值', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
'ad_property.is_hot': [
|
||||||
|
{ type: 'number', message: '是否热门必须是数值', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
'ad_property.is_new': [
|
||||||
|
{ type: 'number', message: '是否新游必须是数值', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
'ad_property.is_recommend': [
|
||||||
|
{ type: 'number', message: '是否推荐必须是数值', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -359,7 +407,10 @@ export default {
|
|||||||
|
|
||||||
if (typeof this.adForm.ad_property !== 'object') {
|
if (typeof this.adForm.ad_property !== 'object') {
|
||||||
this.adForm.ad_property = {
|
this.adForm.ad_property = {
|
||||||
is_shake: 0
|
is_shake: 0,
|
||||||
|
is_hot: 0,
|
||||||
|
is_new: 0,
|
||||||
|
is_recommend: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const gameid = this.adForm.gameid
|
const gameid = this.adForm.gameid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user