From 4cb68e585d4508c896774713eaf83225e50be6e8 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 28 Jun 2021 17:55:12 +0800
Subject: [PATCH] 资讯列表查询修改

---
 src/views/article/article.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/views/article/article.vue b/src/views/article/article.vue
index b4f02c7..c2652a0 100644
--- a/src/views/article/article.vue
+++ b/src/views/article/article.vue
@@ -100,10 +100,10 @@
             },
             {
               label: "发布时间",
-              prop: "datetime",
+              prop: "dateTime",
               type: "datetime",
-              format: "yyyy-MM-dd hh:mm:ss",
-              valueFormat: "yyyy-MM-dd hh:mm:ss",
+              format: "yyyy-MM-dd HH:mm:ss",
+              valueFormat: "yyyy-MM-dd HH:mm:ss",
               searchRange:true,
               hide: true,
               addDisplay: false,
@@ -123,8 +123,8 @@
               editDisplay: false,
               viewDisplay: false,
               type: "date",
-              format: "yyyy-MM-dd hh:mm:ss",
-              valueFormat: "yyyy-MM-dd hh:mm:ss"
+              format: "yyyy-MM-dd HH:mm:ss",
+              valueFormat: "yyyy-MM-dd HH:mm:ss"
             },
             {
               label: "资讯内容",
@@ -268,15 +268,15 @@
         this.onLoad(this.page, this.query);
       },
       onLoad(page, params = {}) {
-        const {datetime} = this.query;
+        const {dateTime} = this.query;
         let values = {
           ...params,
         };
-        if (datetime) {
+        if (dateTime) {
           values = {
             ...params,
-            startTime: datetime[0],
-            endTime: datetime[1],
+            startTime: dateTime[0],
+            endTime: dateTime[1],
             ...this.query
           };
           values.datetime = null;

--
Gitblit v1.9.3