From fc46c447f49fa6a838d2b591def2537b3171f6b0 Mon Sep 17 00:00:00 2001 From: panyuyi Date: Tue, 26 Mar 2024 13:46:04 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=B3=E5=A0=A4?= =?UTF-8?q?=E5=8A=A8=E7=89=A9=E7=A1=AE=E8=AE=A4=E6=93=8D=E4=BD=9Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../governanceRecords/index.vue | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/views/dike/runManage/pestAnimalControl/governanceRecords/index.vue b/src/views/dike/runManage/pestAnimalControl/governanceRecords/index.vue index d15fbfd..63c9b09 100644 --- a/src/views/dike/runManage/pestAnimalControl/governanceRecords/index.vue +++ b/src/views/dike/runManage/pestAnimalControl/governanceRecords/index.vue @@ -14,6 +14,7 @@ import { updateDikeAnimalRecordData, getDikeAnimalRecordDetails, deleteDikeAnimalRecordDetails, + updateDikeAnimalRecordStatus, } from "@/api/dike"; export default { @@ -21,8 +22,8 @@ export default { data() { return { paramsData: { - status: "", - location: "", + status: null, + location: null, }, dialogVisible: false, imageDialog: false, @@ -175,17 +176,24 @@ export default { }, // 确认 handleConfirm(row) { + console.log("row >>>>> ", row); this.$confirm("是否确认?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }) .then(() => { - // 确认 - // this.$message({ - // type: "success", - // message: "确认成功!", - // }); + console.log("?????????"); + updateDikeAnimalRecordStatus({ + id: row.id, + status: "1", + }).then(() => { + this.getTableData(); + this.$message({ + type: "success", + message: "确认成功!", + }); + }); }) .catch(() => {}); }, @@ -308,8 +316,8 @@ export default { }, // 重置搜索 resetSearch() { - this.paramsData.status = ""; - this.paramsData.location = ""; + this.paramsData.status = null; + this.paramsData.location = null; this.getTableData(); }, // 获取计划列表 @@ -392,7 +400,7 @@ export default { /> 状态: - + From ee9183bc37706e7e99dee5edee4ebf03354de7e2 Mon Sep 17 00:00:00 2001 From: panyuyi Date: Tue, 26 Mar 2024 13:49:42 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../runManage/superVisionInspetion/methodsManage/index.vue | 6 ++++++ .../projectManage/projectReportPage.vue | 2 +- .../runManage/superVisionInspetion/tasksManage/index.vue | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/dike/runManage/superVisionInspetion/methodsManage/index.vue b/src/views/dike/runManage/superVisionInspetion/methodsManage/index.vue index 1f53626..4f86384 100644 --- a/src/views/dike/runManage/superVisionInspetion/methodsManage/index.vue +++ b/src/views/dike/runManage/superVisionInspetion/methodsManage/index.vue @@ -136,6 +136,7 @@ export default { style="margin-right: 16px; margin-bottom: 8px; float: right" type="success" @click="handleAddMethod()" + v-hasPermi="['df:run:sup:meth:add']" >添加 @@ -168,11 +169,13 @@ export default { type="text" size="small" @click="handleEditMethod(scope.row)" + v-hasPermi="['df:run:sup:meth:edit']" >编辑 预览 @@ -180,18 +183,21 @@ export default { type="text" size="small" @click="handleExportMethod(scope.row)" + v-hasPermi="['df:run:sup:meth:down']" >导出 复制 配置数据项 diff --git a/src/views/dike/runManage/superVisionInspetion/projectManage/projectReportPage.vue b/src/views/dike/runManage/superVisionInspetion/projectManage/projectReportPage.vue index 79a91e5..18dac2a 100644 --- a/src/views/dike/runManage/superVisionInspetion/projectManage/projectReportPage.vue +++ b/src/views/dike/runManage/superVisionInspetion/projectManage/projectReportPage.vue @@ -1,7 +1,7 @@