diff --git a/weapp/src/packages/patrolView/index.jsx b/weapp/src/packages/patrolView/index.jsx index 995f1053..f0b524f0 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 @@ -40,7 +40,7 @@ function Index() { Taro.setNavigationBarTitle({ title: '在建项目' }) } else if (isAnomaly) { Taro.setNavigationBarTitle({ title: '异常反馈' }) - }else if(ishandle){ + } else if (ishandle) { Taro.setNavigationBarTitle({ title: '已办事项' }) } else if (kind == 'conserve') { Taro.setNavigationBarTitle({ title: '养护上报' }) @@ -60,7 +60,7 @@ function Index() { getList(page == 0 ? true : false) }, [num]) - function dealError(error) { + function dealError (error) { Taro.showToast({ title: error, icon: 'none', @@ -77,7 +77,7 @@ function Index() { endTime: datePicker ? datePicker + ' 23:59:59' : '', keyword: filterText, reportType: isWait || ishandle ? 'anomaly' : reportType, - userId: filter === 'my' ? userInfo.id : '', + userId: filter === 'my' && !ishandle ? userInfo.id : '', handleState: isWait ? '待处理' : ishandle ? '已处理' : '', performerId: isWait || ishandle ? userInfo.id : '' }