From 4fb73fab504ba81f360a699ec49c2d22f63e26f9 Mon Sep 17 00:00:00 2001 From: shanao Date: Fri, 13 Sep 2024 17:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accident/records/components/addOrEdit.vue | 7 +++++-- .../accident/records/components/list.vue | 20 +++++++++++++------ .../accident/records/components/listCount.vue | 3 ++- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/views/accident/records/components/addOrEdit.vue b/src/views/accident/records/components/addOrEdit.vue index 71a9240..2e61c62 100644 --- a/src/views/accident/records/components/addOrEdit.vue +++ b/src/views/accident/records/components/addOrEdit.vue @@ -55,8 +55,8 @@ @@ -206,6 +206,9 @@ export default { ).then((data) => { this.incidentLevels = JSON.parse(data.zTreeNodes) }) + }, + image(url, flag) { + return flag ? config.fileUrl + url : [config.fileUrl + url] } } } diff --git a/src/views/accident/records/components/list.vue b/src/views/accident/records/components/list.vue index 5203015..e0c2b0b 100644 --- a/src/views/accident/records/components/list.vue +++ b/src/views/accident/records/components/list.vue @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ v-model="searchForm.incidentDates" :default-time="['00:00:00', '23:59:59']" value-format="yyyy-MM-dd HH:mm:ss" - format="yyyy-MM-dd HH:mm:ss" + format="yyyy-MM-dd" style="width: 100%" type="daterange" range-separator="-" @@ -64,12 +64,15 @@ tooltip-effect="dark" style="width: 100%" > - - + + + - + @@ -87,6 +90,7 @@