解决修改模板时,无法删除模板里面的指标问题
This commit is contained in:
parent
f981a1e3e9
commit
492aba9701
@ -516,7 +516,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 删除维度
|
// 删除维度
|
||||||
handleDelateWeidu (item, index, type, isTarget = false) {
|
handleDelateWeidu (item, index, type, isTarget = false) {
|
||||||
if (item.id && !isTarget) {
|
if (item.id) {
|
||||||
// 删除维度 标记维度
|
// 删除维度 标记维度
|
||||||
item.isDelete = 1
|
item.isDelete = 1
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@ -525,7 +525,7 @@ export default {
|
|||||||
if (type === -1) {
|
if (type === -1) {
|
||||||
this.info.modelItems = this.info.modelItems.filter((i, xia) => xia !== index)
|
this.info.modelItems = this.info.modelItems.filter((i, xia) => xia !== index)
|
||||||
} else {
|
} else {
|
||||||
this.info.modelItems[type].tagetLibItems.isDelete = 1 // = this.info.modelItems[type].tagetLibItems.filter((i, xia) => xia !== index)
|
this.info.modelItems[type].tagetLibItems = this.info.modelItems[type].tagetLibItems.filter((i, xia) => xia !== index)
|
||||||
}
|
}
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user