diff --git a/src/components/table/setting/knowledgeBaseTableForCard.vue b/src/components/table/setting/knowledgeBaseTableForCard.vue index a9ce8b12..e11cc7ec 100644 --- a/src/components/table/setting/knowledgeBaseTableForCard.vue +++ b/src/components/table/setting/knowledgeBaseTableForCard.vue @@ -256,7 +256,7 @@
@@ -283,8 +283,8 @@ @@ -427,7 +427,6 @@ export default { }, xAxis: { type: 'time', - boundaryGap: ['1%', '3%'], axisLine: { show: false }, @@ -605,10 +604,19 @@ export default { }, submitConfirm () { this.showConfirmDialog = true + this.$nextTick(() => { + this.handleActiveBar() + }) }, submit () { this.$refs.knowledgeUpload.submit() }, + cancle(){ + this.showAddUpdateDialog = false + this.$nextTick(() => { + this.handleActiveBar() + }) + }, clickCard (data, event) { if (data.isSelected) { // 原来为选中,当前点击后未选中 const index = this.checkList.indexOf(data) @@ -704,6 +712,9 @@ export default { this.getCurTabData() if (tab.index === '1') { this.init() + this.$nextTick(() => { + this.handleActiveBar() + }) } }, clearSelect () { @@ -743,6 +754,9 @@ export default { this.switchKnowledgeId = id return false }, + cancleSwitch(){ + this.showConfirmSwitch = false + }, switchLearning () { const hint = this.aiTaggingList.find(d => d.knowledgeId === this.switchKnowledgeId) const toStatus = hint.status === 0 ? 1 : 0