关联广告位多选
This commit is contained in:
parent
2cc8f2ed06
commit
0aacf9fed4
@ -221,6 +221,7 @@
|
||||
v-model="item.ld_property.related"
|
||||
placeholder="关联广告位"
|
||||
style="width: 70%"
|
||||
multiple
|
||||
>
|
||||
<el-option
|
||||
v-for="(pos,idx) in allPos"
|
||||
@ -432,7 +433,7 @@ export default {
|
||||
has_dot: false,
|
||||
is_shake: false,
|
||||
is_hide: true,
|
||||
related: '',
|
||||
related: [],
|
||||
},
|
||||
},
|
||||
allPos: [],
|
||||
@ -508,8 +509,9 @@ export default {
|
||||
has_dot: false,
|
||||
is_shake: false,
|
||||
is_hide: true,
|
||||
related: '',
|
||||
related: [],
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -575,10 +577,10 @@ export default {
|
||||
if (valid) {
|
||||
const posInfo = JSON.parse(JSON.stringify(this.allPos[index]))
|
||||
|
||||
if (posInfo.ld_property.related === posInfo.id) {
|
||||
this.$message.error('关联广告位不可选则自身!')
|
||||
return
|
||||
}
|
||||
// if (posInfo.ld_property.related === posInfo.id) {
|
||||
// this.$message.error('关联广告位不可选则自身!')
|
||||
// return
|
||||
// }
|
||||
|
||||
if (this.allPos[index].id) {
|
||||
// 更新
|
||||
|
@ -253,7 +253,6 @@ export default {
|
||||
if (data.errcode === 0) {
|
||||
this.isLoaded = false
|
||||
this.tableData = data.result
|
||||
console.log(this.tableData)
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user