CN-1062 fix:列表页切换模式后,status切换没有请求接口;卡片模式下点select,选中某个卡片后边框改变了,然后切换到table模式,再切回卡片模式,之前选中的卡片边框仍然是选中状态;删除提示框中,name列挪到第一列,category和source列数据需要映射,不显示原始数据;新增修改页:import列名改为tip;itemList中tip的交互;itemList中编辑按钮盖住了tip列的文字;itemList中edit交互问题;

This commit is contained in:
hyx
2023-06-09 09:45:08 +08:00
parent 0d10a06522
commit a1267daa72
4 changed files with 48 additions and 21 deletions

View File

@@ -44,7 +44,7 @@ export default {
tableData: {
handler (n) {
if (this.tableData && this.tableData.length > 0) {
this.isInit = false
//this.isInit = false
}
}
}
@@ -52,8 +52,7 @@ export default {
data () {
return {
operationWidth: '165', // 操作列宽
show: true,
isInit: true
show: true
}
},
methods: {
@@ -109,11 +108,8 @@ export default {
})
}
},
init () {
this.isInit = true
},
changeStatus (status, id) {
if (!this.isInit) {
if (id) {
patch(api.knowledgeBaseEnable, { list: [{ knowledgeId: id, status: status }] }).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })