CN-1062 知识库列表的两个模式,将builtIn=1的数据的选择禁用;修改问题:切换列表模式时,编辑、删除按钮的可用状态异常;

This commit is contained in:
hyx
2023-06-08 14:35:30 +08:00
parent 70c4ea44e6
commit 95dc00acec
3 changed files with 7 additions and 0 deletions

View File

@@ -76,6 +76,7 @@
inactive-color="#C0CEDB" inactive-color="#C0CEDB"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
:disabled="scope.row.isBuiltIn === 1"
@change="changeStatus($event,scope.row.knowledgeId)" @change="changeStatus($event,scope.row.knowledgeId)"
> >
</el-switch> </el-switch>

View File

@@ -28,6 +28,7 @@
inactive-color="#C0CEDB" inactive-color="#C0CEDB"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
:disabled="data.isBuiltIn === 1"
@change="changeStatus($event,data.knowledgeId)" @change="changeStatus($event,data.knowledgeId)"
> >
</el-switch> </el-switch>

View File

@@ -342,6 +342,11 @@ export default {
this.showDelDialog() this.showDelDialog()
}, },
modeChange (mode) { modeChange (mode) {
console.log(this.batchDeleteObjs)
this.disableDelete = true
this.isSelectedStatus = false
this.batchDeleteObjs = []
this.secondBatchDeleteObjs = []
this.listMode = mode this.listMode = mode
const { query } = this.$route const { query } = this.$route
const newUrl = urlParamsHandler(window.location.href, query, { listMode: mode }) const newUrl = urlParamsHandler(window.location.href, query, { listMode: mode })