提交 5a0a5453 authored 作者: 王腾飞's avatar 王腾飞

2020.1.8

上级 facc52e2
...@@ -825,6 +825,8 @@ export default { ...@@ -825,6 +825,8 @@ export default {
}) })
}, },
showLableDia () { showLableDia () {
this.searchPageLableForm.pageNum = 1;
this.getSearchPageLable();
let _this = this; let _this = this;
this.dialogTableVisible = true; this.dialogTableVisible = true;
if (this.$route.query.flag === 'look') { if (this.$route.query.flag === 'look') {
...@@ -904,24 +906,24 @@ export default { ...@@ -904,24 +906,24 @@ export default {
//this.resourceLabel.unshift(row) //this.resourceLabel.unshift(row)
} else { //剩下最后一个再点的时候selection是个空数组,没有元素,没有对应的item.id,所以下边的代码不跑 } else { //剩下最后一个再点的时候selection是个空数组,没有元素,没有对应的item.id,所以下边的代码不跑
console.log(this.resourceLabel, "88888888888")//没有666说明二者不相等,不相等就删除resourceLabel中的对应项 console.log(this.resourceLabel, "88888888888")//没有666说明二者不相等,不相等就删除resourceLabel中的对应项
this.resourceLabel.map((item2, index) => { // this.resourceLabel.map((item2, index) => {
if (!item2.labelId) { // if (!item2.labelId) {
this.$set(item2, 'labelId', item2.id) // this.$set(item2, 'labelId', item2.id)
} // }
if (row.id === item2.labelId) { // if (row.id === item2.labelId) {
this.resourceLabel.splice(index, 1) // this.resourceLabel.splice(index, 1)
} // }
}) // })
} }
}) })
} else { } else {
this.resourceLabel.map((item2, index) => { this.resourceLabel.map((item2, index) => {
if (!item2.labelId) { // if (!item2.labelId) {
this.$set(item2, 'labelId', item2.id) // this.$set(item2, 'labelId', item2.id)
} // }
if (row.id === item2.labelId) { // if (row.id === item2.labelId) {
this.resourceLabel.splice(index, 1) // this.resourceLabel.splice(index, 1)
} // }
}) })
} }
...@@ -950,7 +952,6 @@ export default { ...@@ -950,7 +952,6 @@ export default {
} else { } else {
this.$message.warning('请选择资源标签') this.$message.warning('请选择资源标签')
} }
}, },
cancleSureLable () { cancleSureLable () {
this.dialogTableVisible = false this.dialogTableVisible = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论