From 23750b4fdef4ffe5d901df452dccd0c7d5264cea Mon Sep 17 00:00:00 2001 From: chenxing Date: Tue, 1 Sep 2026 19:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E8=AE=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.mock | 2 +- src/App.vue | 8 ++++- src/api/module/notice.ts | 5 --- src/components/NoticeUpload.vue | 49 +++++++++++++++++++----------- src/router/routes.ts | 21 +++++++++---- src/utils/alova/alova-core.ts | 6 ++-- src/views/notice/NewNotice.vue | 2 +- src/views/notice/NoticeDetails.vue | 8 ----- src/views/notice/NoticeList.vue | 10 +++--- src/views/notice/NoticeSetting.vue | 14 ++------- vite.config.ts | 2 +- 11 files changed, 68 insertions(+), 59 deletions(-) diff --git a/.env.mock b/.env.mock index 2340b43..90dfc5c 100644 --- a/.env.mock +++ b/.env.mock @@ -2,7 +2,7 @@ # 启动:npm run dev:mock VITE_BASE_HOST= VITE_SSO_HOST= -VITE_SERVICE_HOST=http://localhost:8070 +VITE_SERVICE_HOST=http://localhost:8101 VITE_ZIYUANKU_HOST= VITE_ZHUANXIANG_HOST= VITE_IS_MOCK=true diff --git a/src/App.vue b/src/App.vue index e2b8747..cfbcd17 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,7 +62,7 @@ onMounted(async () => { } } catch (error: any) { console.error("加载用户信息失败", error); - if (error !== "redirect") { + if (error?.message !== "redirect") { Message.error("载入用户信息失败,请检查后端服务是否正常!"); } // 降级:使用默认值("/" 即已收到页,无需跳转) @@ -101,4 +101,10 @@ body { height: 100%; overflow-y: auto; } +/* 表格操作列(operatingHandle 渲染的 Tooltip 包裹层)横排且随单元格居中 */ +.ivu-table-cell > .ivu-tooltip { + display: inline-block; + vertical-align: middle; + margin: 0 2px; +} \ No newline at end of file diff --git a/src/api/module/notice.ts b/src/api/module/notice.ts index 1216136..39a8ff8 100644 --- a/src/api/module/notice.ts +++ b/src/api/module/notice.ts @@ -214,11 +214,6 @@ class SettingApi { sortDeptDic(ids: string) { return postForm(`${DICT}/Sort`, { ids }); } - /** 同步基础平台部门 */ - getDeptSync() { - return get(`${DICT}/Sync`); - } - // ========== 自定义组管理 ========== /** 获取联系组列表 */ getGroup(page: number, count: number) { diff --git a/src/components/NoticeUpload.vue b/src/components/NoticeUpload.vue index 1eb95df..56032b2 100644 --- a/src/components/NoticeUpload.vue +++ b/src/components/NoticeUpload.vue @@ -1,22 +1,24 @@ @@ -87,12 +89,23 @@ export default {