CN-1062 fix:左侧filter,type有半选的category,点击disable 报错;内置数据选择框需要禁用;左侧去掉一些勾选的,右侧删除一个,勾选又自动勾上了,但是右侧列表没变化;

This commit is contained in:
hyx
2023-06-08 17:17:41 +08:00
parent 6b0bb332db
commit 0d10a06522
5 changed files with 28 additions and 5 deletions

View File

@@ -109,6 +109,9 @@ export default {
})
}
},
init () {
this.isInit = true
},
changeStatus (status, id) {
if (!this.isInit) {
patch(api.knowledgeBaseEnable, { list: [{ knowledgeId: id, status: status }] }).then(response => {
@@ -126,6 +129,13 @@ export default {
})
}
},
selectable (row, rowIndex) {
if (row.isBuiltIn === 1) {
return false
} else {
return true
}
},
tableOperation ([command, row]) {
switch (command) {
default: