CN-1062 知识库列表的两个模式,将builtIn=1的数据的选择禁用;修改问题:切换列表模式时,编辑、删除按钮的可用状态异常;
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
inactive-color="#C0CEDB"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
:disabled="scope.row.isBuiltIn === 1"
|
||||
@change="changeStatus($event,scope.row.knowledgeId)"
|
||||
>
|
||||
</el-switch>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
inactive-color="#C0CEDB"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
:disabled="data.isBuiltIn === 1"
|
||||
@change="changeStatus($event,data.knowledgeId)"
|
||||
>
|
||||
</el-switch>
|
||||
|
||||
@@ -342,6 +342,11 @@ export default {
|
||||
this.showDelDialog()
|
||||
},
|
||||
modeChange (mode) {
|
||||
console.log(this.batchDeleteObjs)
|
||||
this.disableDelete = true
|
||||
this.isSelectedStatus = false
|
||||
this.batchDeleteObjs = []
|
||||
this.secondBatchDeleteObjs = []
|
||||
this.listMode = mode
|
||||
const { query } = this.$route
|
||||
const newUrl = urlParamsHandler(window.location.href, query, { listMode: mode })
|
||||
|
||||
Reference in New Issue
Block a user