|
|
|
@ -1289,7 +1289,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
isSave: true,
|
|
|
|
|
selectedIndex: null,
|
|
|
|
|
|
|
|
|
|
editRowSwitch: false //产品标识编辑开关 没保存前其他编辑不能按
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -1733,6 +1733,7 @@ export default {
|
|
|
|
|
this.editQuery = row;
|
|
|
|
|
}, //层级保存
|
|
|
|
|
levelSave(row) {
|
|
|
|
|
this.editRowSwitch = false
|
|
|
|
|
if (isBlank(row.nameCode)) {
|
|
|
|
|
this.$message.error('层级标识不能为空')
|
|
|
|
|
return
|
|
|
|
@ -1787,11 +1788,16 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
rowChange(index, val) {
|
|
|
|
|
// if (this.selectedIndex != null && this.selectedIndex != index){
|
|
|
|
|
// this.levelSave(val)
|
|
|
|
|
// }else
|
|
|
|
|
this.selectedIndex = index
|
|
|
|
|
|
|
|
|
|
if(this.editRowSwitch == true ){
|
|
|
|
|
this.$message.error('请先保存当前产品标识编辑')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("rowChange===",index)
|
|
|
|
|
this.selectedIndex = index
|
|
|
|
|
this.isSave = false
|
|
|
|
|
this.editRowSwitch = true
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteLevel(index, row) {
|
|
|
|
|