From f9b459a3fefd5fab0ee8e19268adb9d9eadab2a7 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期二, 17 十二月 2024 18:16:58 +0800
Subject: [PATCH] 预测项setting的值修改最大输入长度为1000

---
 src/hooks/web/useMessage.ts |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/hooks/web/useMessage.ts b/src/hooks/web/useMessage.ts
index ac2b552..2bbf5cb 100644
--- a/src/hooks/web/useMessage.ts
+++ b/src/hooks/web/useMessage.ts
@@ -90,6 +90,30 @@
         cancelButtonText: t('common.cancel'),
         type: 'warning'
       })
+    },
+    // 启用窗体
+    enableConfirm(ids, content?: string, tip?: string) {
+      return ElMessageBox.confirm(
+        content ? content : t('确定启用选中的'+ ids.length +'项数据?'),
+        tip ? tip : t('common.confirmTitle'),
+        {
+          confirmButtonText: t('common.ok'),
+          cancelButtonText: t('common.cancel'),
+          type: 'warning'
+        }
+      )
+    },
+    // 禁用窗体
+    disableConfirm(ids, content?: string, tip?: string) {
+      return ElMessageBox.confirm(
+        content ? content : t('确定禁用选中的'+ ids.length +'项数据?'),
+        tip ? tip : t('common.confirmTitle'),
+        {
+          confirmButtonText: t('common.ok'),
+          cancelButtonText: t('common.cancel'),
+          type: 'warning'
+        }
+      )
     }
   }
 }

--
Gitblit v1.9.3