From 658403dabd0ea9ab415cea747e7f5471a0c13337 Mon Sep 17 00:00:00 2001 From: ywyonui Date: Thu, 31 Jul 2025 23:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=8C=E5=96=84=E9=80=89?= =?UTF-8?q?=E8=AF=BE=E5=B7=A1=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/xcXmApi.ts | 43 ++ src/api/base/xkXcApi.ts | 36 ++ src/api/base/xkXcXmApi.ts | 36 ++ src/api/base/xkscApi.ts | 29 -- .../view/routine/kefuxuncha/xcXkkcDetail.vue | 368 +++++++++++------- 5 files changed, 344 insertions(+), 168 deletions(-) create mode 100644 src/api/base/xcXmApi.ts create mode 100644 src/api/base/xkXcApi.ts create mode 100644 src/api/base/xkXcXmApi.ts delete mode 100644 src/api/base/xkscApi.ts diff --git a/src/api/base/xcXmApi.ts b/src/api/base/xcXmApi.ts new file mode 100644 index 0000000..c9b1bf5 --- /dev/null +++ b/src/api/base/xcXmApi.ts @@ -0,0 +1,43 @@ +import { get, post } from "@/utils/request"; + +/** + * 分页查询 + */ +export const xcXmFindPageApi = async (params: any) => { + return await get("/api/xcXm/findPage", params); +}; + +/** + * 新增/修改 + */ +export const xcXmSaveApi = async (params: any) => { + return await post("/api/xcXm/save", params); +}; + +/** + * 删除 + */ +export const xcXmLogicDeleteApi = async (params: any) => { + return await post("/api/xcXm/logicDelete", params); +}; + +/** + * 根据id查询 + */ +export const xcXmFindByIdApi = async (params: any) => { + return await get("/api/xcXm/findById", params); +}; + +/** + * 查询全部 + */ +export const xcXmFindAllApi = async () => { + return await get("/api/xcXm/findAll"); +}; + +/** + * 根据巡查类型查询项目列表 + */ +export const xcXmFindByXcLxApi = async (xcLx: string) => { + return await get("/api/xcXm/findByXcLx", { xcLx }); +}; diff --git a/src/api/base/xkXcApi.ts b/src/api/base/xkXcApi.ts new file mode 100644 index 0000000..6f05b83 --- /dev/null +++ b/src/api/base/xkXcApi.ts @@ -0,0 +1,36 @@ +import { get, post } from "@/utils/request"; + +/** + * 分页查询 + */ +export const xkXcFindPageApi = async (params: any) => { + return await get("/api/xkXc/findPage", params); +}; + +/** + * 新增/修改 + */ +export const xkXcSaveApi = async (params: any) => { + return await post("/api/xkXc/save", params); +}; + +/** + * 删除 + */ +export const xkXcLogicDeleteApi = async (params: any) => { + return await post("/api/xkXc/logicDelete", params); +}; + +/** + * 根据id查询 + */ +export const xkXcFindByIdApi = async (params: any) => { + return await get("/api/xkXc/findById", params); +}; + +/** + * 查询全部 + */ +export const xkXcFindAllApi = async () => { + return await get("/api/xkXc/findAll"); +}; diff --git a/src/api/base/xkXcXmApi.ts b/src/api/base/xkXcXmApi.ts new file mode 100644 index 0000000..77eaef2 --- /dev/null +++ b/src/api/base/xkXcXmApi.ts @@ -0,0 +1,36 @@ +import { get, post } from "@/utils/request"; + +/** + * 分页查询 + */ +export const xkXcXmFindPageApi = async (params: any) => { + return await get("/api/xkXcXm/findPage", params); +}; + +/** + * 新增/修改 + */ +export const xkXcXmSaveApi = async (params: any) => { + return await post("/api/xkXcXm/save", params); +}; + +/** + * 删除 + */ +export const xkXcXmLogicDeleteApi = async (params: any) => { + return await post("/api/xkXcXm/logicDelete", params); +}; + +/** + * 根据id查询 + */ +export const xkXcXmFindByIdApi = async (params: any) => { + return await get("/api/xkXcXm/findById", params); +}; + +/** + * 查询全部 + */ +export const xkXcXmFindAllApi = async () => { + return await get("/api/xkXcXm/findAll"); +}; diff --git a/src/api/base/xkscApi.ts b/src/api/base/xkscApi.ts deleted file mode 100644 index f6829c5..0000000 --- a/src/api/base/xkscApi.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { get, post } from "@/utils/request"; - -/** - * 分页查询巡查记录 - */ -export const xkscFindPageApi = async (params: any) => { - return await get("/api/xksc/findPage", params); -}; - -/** - * 新增/修改巡查记录 - */ -export const xkscSaveApi = async (params: any) => { - return await post("/api/xksc/save", params); -}; - -/** - * 根据id查询巡查记录 - */ -export const xkscFindByIdApi = async (params: any) => { - return await get("/api/xksc/findById", params); -}; - -/** - * 删除巡查记录 - */ -export const xkscLogicDeleteApi = async (params: any) => { - return await post("/api/xksc/logicDelete", params); -}; diff --git a/src/pages/view/routine/kefuxuncha/xcXkkcDetail.vue b/src/pages/view/routine/kefuxuncha/xcXkkcDetail.vue index 42abaf5..8c4fdca 100644 --- a/src/pages/view/routine/kefuxuncha/xcXkkcDetail.vue +++ b/src/pages/view/routine/kefuxuncha/xcXkkcDetail.vue @@ -62,25 +62,55 @@ 巡查项目 - - @@ -128,56 +158,95 @@ - - - - - {{ formatTime(record.xctime) }} + + + @@ -203,9 +272,11 @@ @@ -542,13 +608,16 @@ onMounted(async () => { background-color: #f5f5f5; } +.bg-white { + background-color: white; +} + .header { height: 44px; background-color: #fff; } .inspection-tabs { - padding: 15px 15px 0 15px; background-color: #fff; margin-bottom: 10px; position: sticky; @@ -731,8 +800,19 @@ onMounted(async () => { padding: 12px 0; border-bottom: 1px solid #eee; + .item-score-result { + display: flex; + align-items: center; + justify-content: space-between;; + } + + &:first-child { + padding-top: 0; + } + &:last-child { border-bottom: none; + padding-bottom: 0; } } @@ -761,6 +841,9 @@ onMounted(async () => { } .inspection-list { + position: relative; + height: calc(100vh - 50px); + .inspection-record { .record-header { display: flex; @@ -794,18 +877,25 @@ onMounted(async () => { .record-content { .content-item { display: flex; - justify-content: space-between; margin-bottom: 5px; font-size: 14px; color: #333; .item-label { font-weight: bold; - margin-right: 10px; + flex: 0 0 80px; } } } } + + ::v-deep .zp-loading-fixed { + position: absolute; + } + + ::v-deep .d-load-main { + position: absolute; + } } .empty-records {