|
@ -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 |
|
@ -40,7 +40,7 @@ function Index() { |
|
|
Taro.setNavigationBarTitle({ title: '在建项目' }) |
|
|
Taro.setNavigationBarTitle({ title: '在建项目' }) |
|
|
} else if (isAnomaly) { |
|
|
} else if (isAnomaly) { |
|
|
Taro.setNavigationBarTitle({ title: '异常反馈' }) |
|
|
Taro.setNavigationBarTitle({ title: '异常反馈' }) |
|
|
}else if(ishandle){ |
|
|
} else if (ishandle) { |
|
|
Taro.setNavigationBarTitle({ title: '已办事项' }) |
|
|
Taro.setNavigationBarTitle({ title: '已办事项' }) |
|
|
} else if (kind == 'conserve') { |
|
|
} else if (kind == 'conserve') { |
|
|
Taro.setNavigationBarTitle({ title: '养护上报' }) |
|
|
Taro.setNavigationBarTitle({ title: '养护上报' }) |
|
@ -60,7 +60,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', |
|
@ -77,7 +77,7 @@ function Index() { |
|
|
endTime: datePicker ? datePicker + ' 23:59:59' : '', |
|
|
endTime: datePicker ? datePicker + ' 23:59:59' : '', |
|
|
keyword: filterText, |
|
|
keyword: filterText, |
|
|
reportType: isWait || ishandle ? 'anomaly' : reportType, |
|
|
reportType: isWait || ishandle ? 'anomaly' : reportType, |
|
|
userId: filter === 'my' ? userInfo.id : '', |
|
|
userId: filter === 'my' && !ishandle ? userInfo.id : '', |
|
|
handleState: isWait ? '待处理' : ishandle ? '已处理' : '', |
|
|
handleState: isWait ? '待处理' : ishandle ? '已处理' : '', |
|
|
performerId: isWait || ishandle ? userInfo.id : '' |
|
|
performerId: isWait || ishandle ? userInfo.id : '' |
|
|
} |
|
|
} |
|
|