From dae2ccae8efacabe026424c86bde21ddcb36bb8c Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Mon, 08 Jul 2024 10:55:56 +0800
Subject: [PATCH] 公安模块添加时间查询

---
 src/views/publicSecurity/disputeExclusion.vue |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/src/views/publicSecurity/disputeExclusion.vue b/src/views/publicSecurity/disputeExclusion.vue
index 40b9a72..99ca775 100644
--- a/src/views/publicSecurity/disputeExclusion.vue
+++ b/src/views/publicSecurity/disputeExclusion.vue
@@ -143,6 +143,20 @@
           selection: true,
           dialogClickModal: false,
           column: [{
+              label: "上报时间",
+              prop: "dateRange",
+              type: "daterange",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd",
+              searchRange: true,
+              startPlaceholder: '开始日期',
+              endPlaceholder: '结束日期',
+              align: 'center',
+              search: true,
+              hide: true,
+              searchSpan: 5,
+              searchLabelWidth: 76,
+            }, {
               width: 130,
               span: 12,
               label: "姓名",
@@ -275,7 +289,7 @@
             {
               width: 140,
               span: 12,
-              label: "创建时间",
+              label: "上报时间",
               prop: "createTime",
               align: 'center',
               labelWidth: 110,
@@ -599,6 +613,12 @@
       searchChange(params, done) {
         this.query = params
         this.page.currentPage = 1
+        let dateRange = params.dateRange
+        if (params.dateRange) {
+          params.startTime = dateRange[0]
+          params.endTime = dateRange[1]
+          delete params.dateRange
+        }
         this.onLoad(this.page, params)
         done()
       },

--
Gitblit v1.9.3