From 05a9eb677af28059a4df3cd13486241f7de1fe1f Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Thu, 13 Jul 2023 11:03:48 +0800 Subject: [PATCH] =?UTF-8?q?(*)=E5=BE=85=E5=8A=9E=E4=BA=8B=E9=A1=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/src/packages/patrolView/index.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/weapp/src/packages/patrolView/index.jsx b/weapp/src/packages/patrolView/index.jsx index 7012f31c..9f438116 100644 --- a/weapp/src/packages/patrolView/index.jsx +++ b/weapp/src/packages/patrolView/index.jsx @@ -14,7 +14,7 @@ import patrolActiveIcon from '../../static/img/patrolView/patrol-active.svg' import conserveIcon from '../../static/img/patrolView/conserve.svg' import conserveActiveIcon from '../../static/img/patrolView/conserve-active.svg' -function Index () { +function Index() { const userInfo = Taro.getStorageSync('userInfo') || {}; const router = useRouter() const { params: { filter, kind } } = router @@ -22,7 +22,7 @@ function Index () { const isPatrol = kind === 'patrol' || kind == 'conserve' ? true : false const isRoad = kind === 'road' ? true : false const isAnomaly = kind === 'anomaly' ? true : false - const isWait = kind === 'wait' ? true : false + const isWait = kind === 'wait' ? true : false const [reportType, setReportType] = useState(kind || 'patrol') const [datePicker, setDatePicker] = useState('') @@ -41,7 +41,7 @@ function Index () { Taro.setNavigationBarTitle({ title: '异常反馈' }) } else if (kind == 'conserve') { Taro.setNavigationBarTitle({ title: '养护上报' }) - }else if(isWait){ + } else if (isWait) { Taro.setNavigationBarTitle({ title: '待办事项' }) } else { Taro.setNavigationBarTitle({ title: '巡查上报' }) @@ -57,7 +57,7 @@ function Index () { getList(page == 0 ? true : false) }, [num]) - function dealError (error) { + function dealError(error) { Taro.showToast({ title: error, icon: 'none', @@ -73,8 +73,9 @@ function Index () { startTime: datePicker ? datePicker + ' 00:00:00' : '', endTime: datePicker ? datePicker + ' 23:59:59' : '', keyword: filterText, - reportType: reportType, + reportType: isWait ? 'anomaly' : reportType, userId: filter === 'my' ? userInfo.id : '', + handleState: isWait ? '待处理' : '', } request.get(getReportList(), data).then(res => { Taro.hideLoading()