关联广告位多选

This commit is contained in:
yulixing 2019-09-18 16:45:23 +08:00
parent 2cc8f2ed06
commit 0aacf9fed4
2 changed files with 8 additions and 7 deletions

View File

@ -221,6 +221,7 @@
v-model="item.ld_property.related" v-model="item.ld_property.related"
placeholder="关联广告位" placeholder="关联广告位"
style="width: 70%" style="width: 70%"
multiple
> >
<el-option <el-option
v-for="(pos,idx) in allPos" v-for="(pos,idx) in allPos"
@ -432,7 +433,7 @@ export default {
has_dot: false, has_dot: false,
is_shake: false, is_shake: false,
is_hide: true, is_hide: true,
related: '', related: [],
}, },
}, },
allPos: [], allPos: [],
@ -508,8 +509,9 @@ export default {
has_dot: false, has_dot: false,
is_shake: false, is_shake: false,
is_hide: true, is_hide: true,
related: '', related: [],
} }
}) })
} }
}) })
@ -575,10 +577,10 @@ export default {
if (valid) { if (valid) {
const posInfo = JSON.parse(JSON.stringify(this.allPos[index])) const posInfo = JSON.parse(JSON.stringify(this.allPos[index]))
if (posInfo.ld_property.related === posInfo.id) { // if (posInfo.ld_property.related === posInfo.id) {
this.$message.error('关联广告位不可选则自身!') // this.$message.error('广')
return // return
} // }
if (this.allPos[index].id) { if (this.allPos[index].id) {
// //

View File

@ -253,7 +253,6 @@ export default {
if (data.errcode === 0) { if (data.errcode === 0) {
this.isLoaded = false this.isLoaded = false
this.tableData = data.result this.tableData = data.result
console.log(this.tableData)
} }
}) })
.catch(err => { .catch(err => {