From 3675e202a47910821a86370ae64b60d3cfe93e79 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 02 一月 2025 14:17:53 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0

---
 src/directive/shareDirective.ts                                                            |   19 +++++++++++++++++++
 src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue |    2 ++
 src/directive/index.ts                                                                     |    2 ++
 3 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue b/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
index c7f29c5..2e03ba9 100644
--- a/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
+++ b/src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
@@ -161,6 +161,7 @@
 import { axisLabelFormatter } from '/@/utils/chart';
 import { LocalPlus } from '/@/utils/storage';
 import { debounce, getTextWidth, toPercent } from '/@/utils/util';
+import { isSharePage } from '/@/stores/chatRoom';
 
 const props = defineProps({
 	data: {
@@ -1169,6 +1170,7 @@
 	activeTab.value = 0;
 };
 const showCurve = (row) => {
+	if(isSharePage.value) return;
 	resetTab();
 	chartDlgIsShow.value = true;
 	const quotaChartCol = props.data?.quota_chart?.col;
diff --git a/src/directive/index.ts b/src/directive/index.ts
index 0349581..cd16539 100644
--- a/src/directive/index.ts
+++ b/src/directive/index.ts
@@ -8,6 +8,7 @@
 	wavesDirective,
 } from '/@/directive/customDirective';
 import { inputLimit } from '/@/directive/inputLimit';
+import shareDirective from './shareDirective';
 
 /**
  * 瀵煎嚭鎸囦护鏂规硶锛歷-xxx
@@ -30,5 +31,6 @@
 	inputLimit(app);
 	eleFocusDirective(app);
 	elementResizeDirective(app);
+	shareDirective(app);
 	focusDirective(app);
 }
diff --git a/src/directive/shareDirective.ts b/src/directive/shareDirective.ts
new file mode 100644
index 0000000..291d68b
--- /dev/null
+++ b/src/directive/shareDirective.ts
@@ -0,0 +1,19 @@
+import { App } from 'vue';
+import { isSharePage } from '../stores/chatRoom';
+
+/** @description 鍒嗕韩鐣岄潰鏄惁灞曠ず褰撳墠椤甸潰 */
+export default function shareDirective(app: App) {
+	// v-share=false锛岄粯璁や负 false
+	app.directive('share', {
+		mounted(el, binding) {
+			/** @description 榛樿鍒嗕韩鐘舵�侀殣钘� */
+			const isShow = binding.value ?? false;
+			if (isSharePage.value) {
+				!isShow && el.parentNode.removeChild(el);
+			} else {
+				/** @description 闈炲垎浜姸鎬侊紝isShow 灏辨槸瑕佸垹鎺夊綋鍓嶅厓绱� */
+				isShow && el.parentNode.removeChild(el);
+			}
+		},
+	});
+}

--
Gitblit v1.9.3