From e181f04c642204e79749af93fa921875ff6c21ba Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 20 五月 2025 10:46:35 +0800
Subject: [PATCH] refactor(qms): 重构趋势图展示逻辑

---
 src/plugins/modal.ts |  154 +++++++++++++++++++++++++-------------------------
 1 files changed, 77 insertions(+), 77 deletions(-)

diff --git a/src/plugins/modal.ts b/src/plugins/modal.ts
index c18cb0b..a8b0548 100644
--- a/src/plugins/modal.ts
+++ b/src/plugins/modal.ts
@@ -1,81 +1,81 @@
-import { ElMessage, ElMessageBox, ElNotification, ElLoading, MessageBoxData } from 'element-plus';
+import { MessageBoxData } from 'element-plus';
 import { LoadingInstance } from 'element-plus/es/components/loading/src/loading';
 let loadingInstance: LoadingInstance;
 export default {
-	// 娑堟伅鎻愮ず
-	msg(content: string) {
-		ElMessage.info(content);
-	},
-	// 閿欒娑堟伅
-	msgError(content: string) {
-		ElMessage.error(content);
-	},
-	// 鎴愬姛娑堟伅
-	msgSuccess(content: string) {
-		ElMessage.success(content);
-	},
-	// 璀﹀憡娑堟伅
-	msgWarning(content: string) {
-		ElMessage.warning(content);
-	},
-	// 寮瑰嚭鎻愮ず
-	alert(content: string) {
-		ElMessageBox.alert(content, '绯荤粺鎻愮ず');
-	},
-	// 閿欒鎻愮ず
-	alertError(content: string) {
-		ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'error' });
-	},
-	// 鎴愬姛鎻愮ず
-	alertSuccess(content: string, s: string, p: { dangerouslyUseHTMLString: boolean }) {
-		ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'success' });
-	},
-	// 璀﹀憡鎻愮ず
-	alertWarning(content: string) {
-		ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'warning' });
-	},
-	// 閫氱煡鎻愮ず
-	notify(content: string) {
-		ElNotification.info(content);
-	},
-	// 閿欒閫氱煡
-	notifyError(content: string) {
-		ElNotification.error(content);
-	},
-	// 鎴愬姛閫氱煡
-	notifySuccess(content: string) {
-		ElNotification.success(content);
-	},
-	// 璀﹀憡閫氱煡
-	notifyWarning(content: string) {
-		ElNotification.warning(content);
-	},
-	// 纭绐椾綋
-	confirm(content: string): Promise<MessageBoxData> {
-		return ElMessageBox.confirm(content, '绯荤粺鎻愮ず', {
-			confirmButtonText: '纭畾',
-			cancelButtonText: '鍙栨秷',
-			type: 'warning'
-		});
-	},
-	// 鎻愪氦鍐呭
-	prompt(content: string) {
-		return ElMessageBox.prompt(content, '绯荤粺鎻愮ず', {
-			confirmButtonText: '纭畾',
-			cancelButtonText: '鍙栨秷',
-			type: 'warning'
-		});
-	},
-	// 鎵撳紑閬僵灞�
-	loading(content: string) {
-		loadingInstance = ElLoading.service({
-			lock: true,
-			text: content,
-			background: 'rgba(0, 0, 0, 0.7)'
-		});
-	},
-	// 鍏抽棴閬僵灞�
-	closeLoading() {
-		loadingInstance.close();
-	}
+  // 娑堟伅鎻愮ず
+  msg(content: any) {
+    ElMessage.info(content);
+  },
+  // 閿欒娑堟伅
+  msgError(content: any) {
+    ElMessage.error(content);
+  },
+  // 鎴愬姛娑堟伅
+  msgSuccess(content: any) {
+    ElMessage.success(content);
+  },
+  // 璀﹀憡娑堟伅
+  msgWarning(content: any) {
+    ElMessage.warning(content);
+  },
+  // 寮瑰嚭鎻愮ず
+  alert(content: any) {
+    ElMessageBox.alert(content, '绯荤粺鎻愮ず');
+  },
+  // 閿欒鎻愮ず
+  alertError(content: any) {
+    ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'error' });
+  },
+  // 鎴愬姛鎻愮ず
+  alertSuccess(content: any) {
+    ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'success' });
+  },
+  // 璀﹀憡鎻愮ず
+  alertWarning(content: any) {
+    ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'warning' });
+  },
+  // 閫氱煡鎻愮ず
+  notify(content: any) {
+    ElNotification.info(content);
+  },
+  // 閿欒閫氱煡
+  notifyError(content: any) {
+    ElNotification.error(content);
+  },
+  // 鎴愬姛閫氱煡
+  notifySuccess(content: any) {
+    ElNotification.success(content);
+  },
+  // 璀﹀憡閫氱煡
+  notifyWarning(content: any) {
+    ElNotification.warning(content);
+  },
+  // 纭绐椾綋
+  confirm(content: any): Promise<MessageBoxData> {
+    return ElMessageBox.confirm(content, '绯荤粺鎻愮ず', {
+      confirmButtonText: '纭畾',
+      cancelButtonText: '鍙栨秷',
+      type: 'warning'
+    });
+  },
+  // 鎻愪氦鍐呭
+  prompt(content: any) {
+    return ElMessageBox.prompt(content, '绯荤粺鎻愮ず', {
+      confirmButtonText: '纭畾',
+      cancelButtonText: '鍙栨秷',
+      type: 'warning'
+    });
+  },
+  // 鎵撳紑閬僵灞�
+  loading(content: string) {
+    loadingInstance = ElLoading.service({
+      lock: true,
+      text: content,
+      background: 'rgba(0, 0, 0, 0.7)'
+    });
+  },
+  // 鍏抽棴閬僵灞�
+  closeLoading() {
+    loadingInstance.close();
+  }
 };

--
Gitblit v1.9.3