增加优先级提示 19101201
This commit is contained in:
parent
0d4836bfb3
commit
21ac6f1cd1
@ -90,7 +90,6 @@
|
||||
prop="ad_image"
|
||||
class="uploader-box"
|
||||
>
|
||||
<div @click="openModal">
|
||||
<el-upload
|
||||
class="uploader"
|
||||
:action="uploadUrl"
|
||||
@ -101,6 +100,7 @@
|
||||
:show-file-list="false"
|
||||
:before-upload="beforeUpload"
|
||||
>
|
||||
<span @click="openModal">
|
||||
<img
|
||||
v-if="adForm.ad_image"
|
||||
:src="adForm.ad_image"
|
||||
@ -110,8 +110,9 @@
|
||||
v-else
|
||||
class="el-icon-plus uploader-icon"
|
||||
/>
|
||||
</span>
|
||||
|
||||
</el-upload>
|
||||
</div>
|
||||
|
||||
<span
|
||||
class="ipt-tip"
|
||||
@ -209,6 +210,7 @@
|
||||
class="w100"
|
||||
:disabled="!writeable"
|
||||
/>
|
||||
<span class="ipt-tip">当前最高优先级:{{this.sortList[this.sortList.length-1]}},最低优先级:{{this.sortList[0]}}</span>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="广告标题"
|
||||
@ -379,6 +381,7 @@ export default {
|
||||
modeList: {},
|
||||
uploadUrl: `${process.env.VUE_APP_UPLOAD}`,
|
||||
targetList: [],
|
||||
sortList: [],
|
||||
// form
|
||||
adForm: {
|
||||
name: '',
|
||||
@ -720,6 +723,18 @@ export default {
|
||||
platform_id: this.adForm.channelid,
|
||||
})
|
||||
this.targetList = targetList.result
|
||||
|
||||
// 获取投放游戏的优先级列表
|
||||
if (this.adForm.gameid) {
|
||||
const adsRes = await this.getAd({
|
||||
gameid: this.adForm.gameid,
|
||||
})
|
||||
const ads = adsRes.message || []
|
||||
this.sortList = ads.map(item => {
|
||||
return item.ad_sort
|
||||
})
|
||||
this.sortList.sort()
|
||||
}
|
||||
},
|
||||
changeTarget(val) {
|
||||
this.adForm.ad_property.link = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user