From 47f51196da049a91cc82ab08b3f659a479fb30fa Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 5 Aug 2024 14:09:22 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E7=BB=84=E4=BB=B6]=20=E6=90=9C=E7=B4=A2=E5=90=8E=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E9=80=89=E4=B8=AD=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StandardResolutionSheet.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/StandardResolutionSheet.vue b/src/components/StandardResolutionSheet.vue index 00b1303..be1a788 100644 --- a/src/components/StandardResolutionSheet.vue +++ b/src/components/StandardResolutionSheet.vue @@ -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