CN-1062 fix:左侧filter,type有半选的category,点击disable 报错;内置数据选择框需要禁用;左侧去掉一些勾选的,右侧删除一个,勾选又自动勾上了,但是右侧列表没变化;
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user