From 915202e2bf079143d874313071fc5364c42b89f2 Mon Sep 17 00:00:00 2001 From: panyuyi Date: Wed, 3 Jul 2024 10:15:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspectionRecords/components/RecordDetails.vue | 1 + .../dike/runManage/enginerring/inspectionRecords/index.vue | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/views/dike/runManage/enginerring/inspectionRecords/components/RecordDetails.vue b/src/views/dike/runManage/enginerring/inspectionRecords/components/RecordDetails.vue index b402eef..d3253b5 100644 --- a/src/views/dike/runManage/enginerring/inspectionRecords/components/RecordDetails.vue +++ b/src/views/dike/runManage/enginerring/inspectionRecords/components/RecordDetails.vue @@ -226,6 +226,7 @@ export default { type: String, default: "", }, + canEdit: { type: Boolean, default: false, diff --git a/src/views/dike/runManage/enginerring/inspectionRecords/index.vue b/src/views/dike/runManage/enginerring/inspectionRecords/index.vue index f5d52d2..1e33cc6 100644 --- a/src/views/dike/runManage/enginerring/inspectionRecords/index.vue +++ b/src/views/dike/runManage/enginerring/inspectionRecords/index.vue @@ -231,6 +231,11 @@ export default { .then(() => { let formData = this.$refs.recordRef.submit(); console.log("formData >>>>> ", formData); + formData.items.forEach((v) => { + if (!v.handleTime && v.handleContent && v.handleImages.length) { + v.handleTime = dayjs().format("YYYY-MM-DD HH:mm:ss"); + } + }); updateRecordData(formData).then((res) => { if (res) { this.$message.success("处理成功");