diff --git a/src/api/module/cc.ts b/src/api/module/cc.ts new file mode 100644 index 0000000..2617d0e --- /dev/null +++ b/src/api/module/cc.ts @@ -0,0 +1,45 @@ +import { Method } from "alova"; +import { alovaInstance } from "@/utils/alova/alova-iview"; + +/** + * 应用内「抄送给我的」接口封装(2026-09-24)。 + * 走本应用后端 /api/notice/cc/My(身份=CAS 登录态,前端不传身份); + * 数据源是 flow.cc.sent 回调落的 notice_cc 表,点击行跳通知详情。 + */ + +function get(url: string, params?: Record): Method { + return new Method("GET", alovaInstance, url, { params }); +} + +export interface CcItem { + id: number; + noticeId: number; + flowInstanceId: number | null; + nodeId: string | null; + nodeName: string | null; + sentTime: string; + title: string | null; + deptName: string | null; + publisherName: string | null; + noticeStatus: number | null; + auditStatus: number | null; + auditStatusDesc: string | null; +} + +export interface CcPage { + total: number; + content: CcItem[]; + pageIndex: number; + pageSize: number; + totalPages: number; + hasNext: boolean; +} + +export const ccApi = { + /** 抄送给我的(分页,sent_time 倒序) */ + my(page = 1, size = 10): Method { + return get(`/api/notice/cc/My`, { page, size }); + }, +}; + +export default ccApi; diff --git a/src/router/routes.ts b/src/router/routes.ts index 4ff2d45..7ab0f71 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -82,6 +82,15 @@ const routes: RouteRecordRaw[] = [ meta: { title: "我的待审核", modId: 2100 }, }, + // 抄送给我的(流程 NOTIFY 知会;modId 25 深层页不在菜单树,菜单挂载待后端 GetUserMod 配置; + // 勿复用 23——/list/detail 已占,modId 撞车会让菜单解析兜底到错误页面) + { + path: "/cc", + name: "notice_cc", + component: () => import("@/views/notice/NoticeCc.vue"), + meta: { title: "抄送给我的", modId: 25, parentId: 1 }, + }, + /* ---- 旧版路径兼容重定向(书签、残留的平台模块配置) ---- */ { path: "/accept", redirect: "/" }, { path: "/details", redirect: "/list/detail" }, diff --git a/src/views/notice/NoticeCc.vue b/src/views/notice/NoticeCc.vue new file mode 100644 index 0000000..7bd26b7 --- /dev/null +++ b/src/views/notice/NoticeCc.vue @@ -0,0 +1,97 @@ + + + + +