From 64a07733d11138f4120d824c5d1f091d37af33e5 Mon Sep 17 00:00:00 2001 From: hejunjie Date: Thu, 13 Mar 2025 00:00:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=8A=A8=E7=89=A9?= =?UTF-8?q?=E9=98=B2=E6=B2=BB=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pestAnimalControl2/InspectionRecords/index.vue | 4 ++-- .../pestAnimalControl2/acceptanceRecords/index.vue | 4 ++-- .../componentsDetails/acceptanceDetails.vue | 4 ++-- .../componentsDetails/inspectionRecordDetails.vue | 12 ++++++------ .../componentsDetails/maintenanceDetails.vue | 6 +++--- .../pestAnimalControl2/defectList/index.vue | 4 ++-- .../pestAnimalControl2/maintenanceRecords/index.vue | 4 ++-- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue b/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue index 9c743b8..d6059f2 100644 --- a/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue +++ b/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue @@ -203,7 +203,7 @@ 查看 编辑 查看 @@ -225,7 +225,7 @@ type="text" size="small" :disabled="scope.row.detail.status === '5'" - v-hasPermi="['df:run:patrol:acceptance:list:item:edit']" + v-hasPermi="['df:run:pestanimal2:acceptance:list:item:edit']" @click="handleCheckDetails(scope.row, 'edit')" >编辑 diff --git a/src/views/dike/runManage/pestAnimalControl2/componentsDetails/acceptanceDetails.vue b/src/views/dike/runManage/pestAnimalControl2/componentsDetails/acceptanceDetails.vue index 953c77f..777e4b2 100644 --- a/src/views/dike/runManage/pestAnimalControl2/componentsDetails/acceptanceDetails.vue +++ b/src/views/dike/runManage/pestAnimalControl2/componentsDetails/acceptanceDetails.vue @@ -157,13 +157,13 @@ 通过 驳回 diff --git a/src/views/dike/runManage/pestAnimalControl2/componentsDetails/inspectionRecordDetails.vue b/src/views/dike/runManage/pestAnimalControl2/componentsDetails/inspectionRecordDetails.vue index 859adfc..28f7d20 100644 --- a/src/views/dike/runManage/pestAnimalControl2/componentsDetails/inspectionRecordDetails.vue +++ b/src/views/dike/runManage/pestAnimalControl2/componentsDetails/inspectionRecordDetails.vue @@ -81,7 +81,7 @@ :disabled="$route.query.mode === 'check'" class="flex-shrink-0 myml-12" type="success" - v-hasPermi="['df:run:patrol:inspection:detail:add']" + v-hasPermi="['df:run:pestanimal2:inspection:detail:add']" @click="addProblems" >新增 @@ -90,7 +90,7 @@ :disabled="$route.query.mode === 'check'" class="flex-shrink-0" @click="delProblems" - v-hasPermi="['df:run:patrol:inspection:detail:allDel']" + v-hasPermi="['df:run:pestanimal2:inspection:detail:allDel']" size="small" >删除 @@ -237,7 +237,7 @@ size="small" style="margin-right: 10px" type="text" - v-hasPermi="['df:run:patrol:inspection:detail:item:upload']" + v-hasPermi="['df:run:pestanimal2:inspection:detail:item:upload']" >上传图片 @@ -255,7 +255,7 @@ size="small" :disabled="$route.query.mode === 'check'" slot="reference" - v-hasPermi="['df:run:patrol:inspection:detail:item:del']" + v-hasPermi="['df:run:pestanimal2:inspection:detail:item:del']" >删除 @@ -267,14 +267,14 @@
保存并提交 保存 diff --git a/src/views/dike/runManage/pestAnimalControl2/componentsDetails/maintenanceDetails.vue b/src/views/dike/runManage/pestAnimalControl2/componentsDetails/maintenanceDetails.vue index 16be4f5..c0ef28c 100644 --- a/src/views/dike/runManage/pestAnimalControl2/componentsDetails/maintenanceDetails.vue +++ b/src/views/dike/runManage/pestAnimalControl2/componentsDetails/maintenanceDetails.vue @@ -116,7 +116,7 @@ style="margin-right: 16px;" size="small" type="primary" - v-hasPermi="['df:run:patrol:maintenance:detail:attachment']" + v-hasPermi="['df:run:pestanimal2:maintenance:detail:attachment']" >上传
文件上传支持.jpg.png.tif.gif 单张图片5M以内,最多上传3张
@@ -134,13 +134,13 @@ 保存并提交 保存 返回 diff --git a/src/views/dike/runManage/pestAnimalControl2/defectList/index.vue b/src/views/dike/runManage/pestAnimalControl2/defectList/index.vue index affe36a..d09558c 100644 --- a/src/views/dike/runManage/pestAnimalControl2/defectList/index.vue +++ b/src/views/dike/runManage/pestAnimalControl2/defectList/index.vue @@ -204,14 +204,14 @@ 领单 查看 diff --git a/src/views/dike/runManage/pestAnimalControl2/maintenanceRecords/index.vue b/src/views/dike/runManage/pestAnimalControl2/maintenanceRecords/index.vue index becead3..6108e55 100644 --- a/src/views/dike/runManage/pestAnimalControl2/maintenanceRecords/index.vue +++ b/src/views/dike/runManage/pestAnimalControl2/maintenanceRecords/index.vue @@ -229,14 +229,14 @@ 查看 编辑 Date: Thu, 13 Mar 2025 11:42:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=8A=A8?= =?UTF-8?q?=E7=89=A9=E9=98=B2=E6=B2=BB=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dike/pestAnimalControl2.js | 97 +++++++++++++++++++ .../InspectionRecords/index.vue | 6 +- .../acceptanceRecords/index.vue | 6 +- .../componentsDetails/acceptanceDetails.vue | 17 ++-- .../componentsDetails/defectDetails.vue | 8 +- .../inspectionRecordDetails.vue | 26 ++--- .../componentsDetails/maintenanceDetails.vue | 24 ++--- .../pestAnimalControl2/defectList/index.vue | 6 +- .../maintenanceRecords/index.vue | 6 +- 9 files changed, 146 insertions(+), 50 deletions(-) create mode 100644 src/api/dike/pestAnimalControl2.js diff --git a/src/api/dike/pestAnimalControl2.js b/src/api/dike/pestAnimalControl2.js new file mode 100644 index 0000000..3de0d97 --- /dev/null +++ b/src/api/dike/pestAnimalControl2.js @@ -0,0 +1,97 @@ +// 堤防相关接口 +import request from "@/utils/request"; +export * from "../sluice/analysis"; + +/*************************************巡查记录管理**************************************/ +// 堤防巡视检查记录列表v2 +export function postV2RecordList(data) { + return request({ + url: "/run/dw/v2/record/list", + method: "post", + data, + }); +} +// 堤防巡视检查记录新增或修改v2 +export function postV2Record(data, commit) { + return request({ + url: `/run/dw/v2/record/${commit}`, + method: "post", + data, + }); +} + +// 堤防巡视检查记录详情v2 +export function gettV2Record(id) { + return request({ + url: `/run/dw/v2/record/${id}`, + method: "get", + }); +} + +/*************************************缺陷清单管理**************************************/ +// 堤防巡查缺陷列表v2 +export function postV2ProblemList(data) { + return request({ + url: "/run/dw/v2/problem/list", + method: "post", + data, + }); +} +/*************************************养护记录管理**************************************/ +// 堤防养护列表v2 +export function postV2YhList(data) { + return request({ + url: "/run/dw/v2/yh/list", + method: "post", + data, + }); +} + +// 堤防养护详情v2 +export function getV2Yh(id) { + return request({ + url: `/run/dw/v2/yh/${id}`, + method: "get", + }); +} + +// 堤防养护新增或修改v2 +export function postV2Yh(data, commit) { + return request({ + url: `/run/dw/v2/yh/${commit}`, + method: "post", + data, + }); +} +/*************************************验收记录管理**************************************/ +// 审批列表 +export function postV2ApprovalList(data) { + return request({ + url: "/run/dw/v2/yh/approval/list", + method: "post", + data, + }); +} +// 审批通过 +export function postV2ApprovalPassed(data, id) { + return request({ + url: `/run/dw/v2/yh/approval/passed/${id}`, + method: "post", + data, + }); +} +// 审批驳回 +export function postV2ApprovalRejected(data, id) { + return request({ + url: `/run/dw/v2/yh/approval/rejected/${id}`, + method: "post", + data, + }); +} +// 审批意见 +export function getV2ApprovalComment(formId) { + return request({ + url: `/run/dw/v2/yh/approval/comment/${formId}`, + method: "get", + }); +} diff --git a/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue b/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue index d6059f2..68de296 100644 --- a/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue +++ b/src/views/dike/runManage/pestAnimalControl2/InspectionRecords/index.vue @@ -136,8 +136,8 @@ > - - + +