From 9809f91f0ef51a2dbaf50a874768368e1f71284c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 22 Oct 2021 17:40:37 +0800
Subject: [PATCH] +时间范围搜索

---
 src/views/qualificationExamination/qualificationExamination.vue |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/src/views/qualificationExamination/qualificationExamination.vue b/src/views/qualificationExamination/qualificationExamination.vue
index 003061a..b86de46 100644
--- a/src/views/qualificationExamination/qualificationExamination.vue
+++ b/src/views/qualificationExamination/qualificationExamination.vue
@@ -2,11 +2,11 @@
  * @Author: Morpheus
  * @Date: 2021-07-07 17:30:05
  * @Last Modified by: liu
- * @Last Modified time: 2021-10-11 14:54:11
+ * @Last Modified time: 2021-10-22 17:27:47
  * menu-name 监管信息
  */
 <template>
-  <basic-container>
+  <basic-container class="witerFontColorInput">
     <avue-crud
       :option="option"
       :table-loading="loading"
@@ -114,6 +114,29 @@
               },
             ],
             display: false,
+          },
+          {
+            label: "审查时间",
+            prop: "releaseTimeRange",
+            type: "date",
+            format: "yyyy-MM-dd",
+            valueFormat: "yyyy-MM-dd",
+            searchValue: [this.getStartTime(), this.getEndTime()],
+            searchRange: true,
+            searchSpan: 6,
+            searchLabelWidth: 80,
+            hide: true,
+            addDisplay: false,
+            editDisplay: false,
+            viewDisplay: false,
+            search: true,
+            rules: [
+              {
+                required: true,
+                message: "请输入时间",
+                trigger: "blur",
+              },
+            ],
           },
           // {
           //   label: "性别",
@@ -298,6 +321,27 @@
     },
   },
   methods: {
+    getStartTime() {
+      if (
+        this.$route.query.startTime != undefined &&
+        this.$route.query.startTime != null &&
+        this.$route.query.startTime != ""
+      ) {
+        return this.$route.query.startTime;
+      }
+      return "";
+    },
+    getEndTime() {
+      if (
+        this.$route.query.endTime != undefined &&
+        this.$route.query.endTime != null &&
+        this.$route.query.endTime != ""
+      ) {
+        return this.$route.query.endTime;
+      }
+      return "";
+    },
+
     rowSave(row, done, loading) {
       adddata(row).then(
         () => {
@@ -361,6 +405,8 @@
       this.onLoad(this.page);
     },
     searchChange(params, done) {
+      params["startTime"] = params.releaseTimeRange[0];
+      params["endTime"] = params.releaseTimeRange[1];
       this.query = params;
       this.page.currentPage = 1;
       this.onLoad(this.page, params);

--
Gitblit v1.9.3