From 766e98da1e14370083437c04a4d001ea2c9b4f5a Mon Sep 17 00:00:00 2001 From: ywyonui Date: Mon, 15 Sep 2025 22:18:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=B0=83=E6=95=B4=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=9A=84=E6=98=BE=E7=A4=BA=E5=92=8C=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=202=E3=80=81=E5=AE=8C=E5=96=84=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=BE=85=E5=8A=9E=E8=8E=B7=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/lcglApi.ts | 10 + src/api/base/xsQjApi.ts | 9 - src/api/base/xxtsApi.ts | 6 + .../LcglSpList/index.vue} | 124 +++++--- src/pages/base/qj/detail.vue | 4 +- .../base/xk/tf/components/progressList.vue | 276 ------------------ src/pages/base/xk/tf/detail.vue | 58 +++- 7 files changed, 151 insertions(+), 336 deletions(-) create mode 100644 src/api/base/lcglApi.ts create mode 100644 src/api/base/xxtsApi.ts rename src/{pages/base/qj/components/progressList.vue => components/LcglSpList/index.vue} (72%) delete mode 100644 src/pages/base/xk/tf/components/progressList.vue diff --git a/src/api/base/lcglApi.ts b/src/api/base/lcglApi.ts new file mode 100644 index 0000000..459ac83 --- /dev/null +++ b/src/api/base/lcglApi.ts @@ -0,0 +1,10 @@ +import { get } from "@/utils/request"; + +/** + * 获取审批流程 + * @param ywId 业务ID + * @param ywType 业务类型 + */ +export const getByYwIdAndYwTypeApi = (ywId: string, ywType: string) => { + return get("/api/lcglSp/getByYwIdAndYwType", { ywId, ywType }); +}; diff --git a/src/api/base/xsQjApi.ts b/src/api/base/xsQjApi.ts index 1412512..007e9fc 100644 --- a/src/api/base/xsQjApi.ts +++ b/src/api/base/xsQjApi.ts @@ -64,12 +64,3 @@ export const jzXsQjListApi = (params: any) => { export const getXsQjDetailApi = (id: string) => { return get("/api/xsQj/getDetail", { id }); }; - -/** - * 获取请假审批流程 - * @param ywId 业务ID - * @param ywType 业务类型 - */ -export const getXsQjApprovalProcessApi = (ywId: string, ywType: string = 'XS_QJ') => { - return get("/api/lcglSp/getByYwIdAndYwType", { ywId, ywType }); -}; diff --git a/src/api/base/xxtsApi.ts b/src/api/base/xxtsApi.ts new file mode 100644 index 0000000..07c515a --- /dev/null +++ b/src/api/base/xxtsApi.ts @@ -0,0 +1,6 @@ +import { get } from "@/utils/request"; + +// 根据ID获取消息推送详情 +export const xxtsFindByIdApi = async (params: any) => { + return await get("/api/xxts/findById", params); +}; \ No newline at end of file diff --git a/src/pages/base/qj/components/progressList.vue b/src/components/LcglSpList/index.vue similarity index 72% rename from src/pages/base/qj/components/progressList.vue rename to src/components/LcglSpList/index.vue index 59c4453..73c276f 100644 --- a/src/pages/base/qj/components/progressList.vue +++ b/src/components/LcglSpList/index.vue @@ -4,7 +4,7 @@ 审批进度 - + @@ -27,34 +27,57 @@ + + + + + 暂无审批进度信息 + 可能审批流程尚未启动或数据加载失败 + + 重新加载 + + @@ -272,5 +280,43 @@ if (props.qjId) { } } } + + .empty-state { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 40px 20px; + + .empty-icon { + margin-bottom: 16px; + } + + .empty-text { + font-size: 16px; + color: #333; + margin-bottom: 8px; + font-weight: 500; + } + + .empty-subtext { + font-size: 14px; + color: #999; + margin-bottom: 20px; + text-align: center; + } + + .retry-button { + padding: 8px 24px; + background-color: #007AFF; + border-radius: 4px; + cursor: pointer; + + .retry-text { + color: #FFFFFF; + font-size: 14px; + } + } + } } \ No newline at end of file diff --git a/src/pages/base/qj/detail.vue b/src/pages/base/qj/detail.vue index c187524..715bebd 100644 --- a/src/pages/base/qj/detail.vue +++ b/src/pages/base/qj/detail.vue @@ -36,7 +36,7 @@ - +