关联广告位多选

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"
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) {
//

View File

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