[update 标准解读组件] 搜索后清空选中数据
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user