[update 标准解读组件] 搜索后清空选中数据

This commit is contained in:
danshihao
2024-08-05 14:09:22 +08:00
parent 44e5a6d9ac
commit 47f51196da
@@ -298,6 +298,12 @@ export default {
this.queryParam = {}
this.initDetailInfo()
},
// 清除选中状态
clearSelect () {
this.selectedTreeKeys = []
this.hightMenuId = null
this.clauseLabelInfo = {}
},
/**
* 拖拽回调
* @param min - 拖拽最小宽度
@@ -349,10 +355,14 @@ export default {
}
previewDocSplit(params).then(res => {
if (res.success) {
// 清除选中状态
this.clearSelect()
const data = res.result || {}
this.treeData = data.sarFileSplitMenuEO || []
this.spiltInfo = data.documentSplitInfo || {}
this.clauseContentList = data.documentSplitDetail || []
} else {
this.$message.warn(res.message)
}
}).finally(() => {
this.loading = false