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 @@ - +