From 59487a2fb9c773c6f3d7983fc5cec5452d07391c Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Thu, 28 Jul 2022 09:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/src/config.js | 2 +- weapp/src/packages/patrolView/index.jsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weapp/src/config.js b/weapp/src/config.js index 71b3443d..0182ed94 100644 --- a/weapp/src/config.js +++ b/weapp/src/config.js @@ -8,7 +8,7 @@ const baseConfig = { }; const development = { - baseUrl: 'https://3024-117-90-36-177.jp.ngrok.io', + baseUrl: 'https://c5a6-117-90-37-10.ap.ngrok.io', webUrl: 'https://smartwater.anxinyun.cn', pcode: 'fce4afe2-5b6a-408a-ab18-a2afa7fa027c', imgUrl: 'http://test.resources.anxinyun.cn/', diff --git a/weapp/src/packages/patrolView/index.jsx b/weapp/src/packages/patrolView/index.jsx index 44a05fb7..a8beeffb 100644 --- a/weapp/src/packages/patrolView/index.jsx +++ b/weapp/src/packages/patrolView/index.jsx @@ -20,7 +20,7 @@ function Index() { const { params: { filter } } = router const [isPatrol, setIsPatrol] = useState(true) - const [datePicker, setDatePicker] = useState(moment().format('YYYY-MM-DD')) + const [datePicker, setDatePicker] = useState('') const [listData, setListData] = useState([]) const [filterText, setFilterText] = useState('') const [systemInfo, setSystemInfo] = useState('') @@ -51,8 +51,8 @@ function Index() { const data = { limit, page, - startTime: datePicker + ' 00:00:00', - endTime: datePicker + ' 23:59:59', + startTime: datePicker ? datePicker + ' 00:00:00' : '', + endTime: datePicker ? datePicker + ' 23:59:59' : '', keyword: filterText, reportType: isPatrol ? 'patrol' : 'conserve', userId: filter === 'my' ? userInfo.id : '',