From 352f7bbb74f1b6c57b3d3e576849d0565932fbd4 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 20 五月 2026 16:50:36 +0800
Subject: [PATCH] 审批模板集成页面

---
 src/views/officeProcessAutomation/NoticeAnnouncement/notice-manage/noticeAnnouncementUtils.js |   81 ++++------------------------------------
 1 files changed, 8 insertions(+), 73 deletions(-)

diff --git a/src/views/officeProcessAutomation/NoticeAnnouncement/notice-manage/noticeAnnouncementUtils.js b/src/views/officeProcessAutomation/NoticeAnnouncement/notice-manage/noticeAnnouncementUtils.js
index f6b789d..7f420c9 100644
--- a/src/views/officeProcessAutomation/NoticeAnnouncement/notice-manage/noticeAnnouncementUtils.js
+++ b/src/views/officeProcessAutomation/NoticeAnnouncement/notice-manage/noticeAnnouncementUtils.js
@@ -90,89 +90,24 @@
   };
 }
 
+/** @deprecated 涓嶅啀娉ㄥ叆婕旂ず鏁版嵁锛屽垵濮嬪垪琛ㄤ负绌� */
 export function createInitialMockNotices() {
-  return [
-    {
-      id: "notice_1",
-      noticeNo: "NA202605100001",
-      title: "鍏充簬鍙伴澶╂皵灞呭鍔炲叕鐨勭揣鎬ラ�氱煡",
-      noticeType: "emergency",
-      priority: "urgent",
-      contentHtml:
-        "<p><strong>绱ф�ラ�氱煡</strong></p><p>鍙楀彴椋庡奖鍝嶏紝鏄庢棩锛�5鏈�17鏃ワ級鍏ㄤ綋鍛樺伐灞呭鍔炲叕锛岃鍚勯儴闂ㄨ礋璐d汉鍋氬ソ宸ヤ綔瀹夋帓涓庡憳宸ヨ仈缁溿��</p>",
-      publishDate: "2026-05-16",
-      expireDate: "2026-05-20",
-      readScope: "all",
-      targetDeptIds: [],
-      requireReadConfirm: true,
-      publishStatus: "published",
-      publisherName: "琛屾斂閮�",
-      publishTime: "2026-05-16 08:30:00",
-      readCount: 128,
-      createTime: "2026-05-16 08:00:00",
-      updateTime: "2026-05-16 08:30:00",
-    },
-    {
-      id: "notice_2",
-      noticeNo: "NA202605120002",
-      title: "2026骞寸鍗堣妭鏀惧亣瀹夋帓鍏憡",
-      noticeType: "employee",
-      priority: "high",
-      contentHtml:
-        "<p>鏍规嵁鍥藉娉曞畾鑺傚亣鏃ュ畨鎺掞紝绔崍鑺傛斁鍋囨椂闂翠负 6鏈�8鏃ヨ嚦6鏈�10鏃ワ紝鍏�3澶┿��6鏈�7鏃ワ紙鍛ㄥ叚锛夋甯镐笂鐝��</p>",
-      publishDate: "2026-05-12",
-      expireDate: "2026-06-15",
-      readScope: "all",
-      targetDeptIds: [],
-      requireReadConfirm: false,
-      publishStatus: "published",
-      publisherName: "浜哄姏璧勬簮閮�",
-      publishTime: "2026-05-12 10:00:00",
-      readCount: 256,
-      createTime: "2026-05-12 09:30:00",
-      updateTime: "2026-05-12 10:00:00",
-    },
-    {
-      id: "notice_3",
-      noticeNo: "NA202605140003",
-      title: "鍔炲叕鍖哄煙娑堥槻婕旂粌閫氱煡",
-      noticeType: "company",
-      priority: "normal",
-      contentHtml: "<p>瀹氫簬 5鏈�25鏃� 14:00 鍦ㄦ�婚儴澶фゼ杩涜娑堥槻婕旂粌锛岃鍚勯儴闂ㄦ彁鍓嶅畨鎺掍汉鍛樺弬鍔犮��</p>",
-      publishDate: "2026-05-14",
-      expireDate: "2026-05-26",
-      readScope: "department",
-      targetDeptIds: ["101", "102", "103"],
-      requireReadConfirm: false,
-      publishStatus: "draft",
-      publisherName: "琛屾斂閮�",
-      publishTime: "",
-      readCount: 0,
-      createTime: "2026-05-14 15:00:00",
-      updateTime: "2026-05-14 15:00:00",
-    },
-  ];
+  return [];
 }
 
+/** 涓嶅啀浣跨敤鍓嶇鏈湴缂撳瓨锛屽垪琛ㄦ暟鎹互鎺ュ彛涓哄噯锛涘苟娓呴櫎鍘嗗彶 localStorage 鏁版嵁 */
 export function loadStoredNotices() {
   try {
-    const raw = localStorage.getItem(STORAGE_KEY);
-    if (!raw) return null;
-    const data = JSON.parse(raw);
-    return Array.isArray(data) ? data : null;
-  } catch {
-    return null;
-  }
-}
-
-export function saveStoredNotices(rows) {
-  try {
-    localStorage.setItem(STORAGE_KEY, JSON.stringify(rows));
+    localStorage.removeItem(STORAGE_KEY);
   } catch {
     /* ignore */
   }
+  return [];
 }
 
+/** @deprecated 淇濈暀绌哄疄鐜帮紝閬垮厤鏃ц皟鐢ㄦ姤閿欙紱涓嶅仛浠讳綍鎸佷箙鍖� */
+export function saveStoredNotices() {}
+
 export function nextNoticeNo() {
   return `NA${dayjs().format("YYYYMMDD")}${String(Math.floor(Math.random() * 9000) + 1000)}`;
 }

--
Gitblit v1.9.3