|
@ -14,7 +14,7 @@ import patrolActiveIcon from '../../static/img/patrolView/patrol-active.svg' |
|
|
import conserveIcon from '../../static/img/patrolView/conserve.svg' |
|
|
import conserveIcon from '../../static/img/patrolView/conserve.svg' |
|
|
import conserveActiveIcon from '../../static/img/patrolView/conserve-active.svg' |
|
|
import conserveActiveIcon from '../../static/img/patrolView/conserve-active.svg' |
|
|
|
|
|
|
|
|
function Index () { |
|
|
function Index() { |
|
|
const userInfo = Taro.getStorageSync('userInfo') || {}; |
|
|
const userInfo = Taro.getStorageSync('userInfo') || {}; |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const { params: { filter, kind } } = router |
|
|
const { params: { filter, kind } } = router |
|
@ -41,7 +41,7 @@ function Index () { |
|
|
Taro.setNavigationBarTitle({ title: '异常反馈' }) |
|
|
Taro.setNavigationBarTitle({ title: '异常反馈' }) |
|
|
} else if (kind == 'conserve') { |
|
|
} else if (kind == 'conserve') { |
|
|
Taro.setNavigationBarTitle({ title: '养护上报' }) |
|
|
Taro.setNavigationBarTitle({ title: '养护上报' }) |
|
|
}else if(isWait){ |
|
|
} else if (isWait) { |
|
|
Taro.setNavigationBarTitle({ title: '待办事项' }) |
|
|
Taro.setNavigationBarTitle({ title: '待办事项' }) |
|
|
} else { |
|
|
} else { |
|
|
Taro.setNavigationBarTitle({ title: '巡查上报' }) |
|
|
Taro.setNavigationBarTitle({ title: '巡查上报' }) |
|
@ -57,7 +57,7 @@ function Index () { |
|
|
getList(page == 0 ? true : false) |
|
|
getList(page == 0 ? true : false) |
|
|
}, [num]) |
|
|
}, [num]) |
|
|
|
|
|
|
|
|
function dealError (error) { |
|
|
function dealError(error) { |
|
|
Taro.showToast({ |
|
|
Taro.showToast({ |
|
|
title: error, |
|
|
title: error, |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
@ -73,8 +73,9 @@ function Index () { |
|
|
startTime: datePicker ? datePicker + ' 00:00:00' : '', |
|
|
startTime: datePicker ? datePicker + ' 00:00:00' : '', |
|
|
endTime: datePicker ? datePicker + ' 23:59:59' : '', |
|
|
endTime: datePicker ? datePicker + ' 23:59:59' : '', |
|
|
keyword: filterText, |
|
|
keyword: filterText, |
|
|
reportType: reportType, |
|
|
reportType: isWait ? 'anomaly' : reportType, |
|
|
userId: filter === 'my' ? userInfo.id : '', |
|
|
userId: filter === 'my' ? userInfo.id : '', |
|
|
|
|
|
handleState: isWait ? '待处理' : '', |
|
|
} |
|
|
} |
|
|
request.get(getReportList(), data).then(res => { |
|
|
request.get(getReportList(), data).then(res => { |
|
|
Taro.hideLoading() |
|
|
Taro.hideLoading() |
|
|