Browse Source

fix 小程序-异常反馈页面选择道路类型后无法修改

dev
巴林闲侠 2 years ago
parent
commit
3ecba532bb
  1. 1
      weapp/src/packages/components/inputPicker/index.jsx
  2. 7
      weapp/src/packages/patrol/index.jsx
  3. 15
      web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js

1
weapp/src/packages/components/inputPicker/index.jsx

@ -30,7 +30,6 @@ export default function InputPicker (props) {
const handlePickerChange = (e) => {
onInput(curSelector[e.detail.value])
}
return (
<View className='input-picker'>
<View className='input-box'>

7
weapp/src/packages/patrol/index.jsx

@ -496,7 +496,7 @@ const Index = () => {
}
useEffect(() => {
if (!isView) {
let newRoadList = roadList.filter(e => e.routeName.match(road))
let newRoadList = roadList.filter(e => e?.routeName?.match(road))
let codeRoadSel = []
if (newRoadList.length && road != '') {
newRoadList.forEach((e, index) => {
@ -600,6 +600,7 @@ const Index = () => {
onInput={setProjectType}
selector={prjTypeSelector}
isView={isView}
onlySelect={true}
/> : ''
}
@ -609,7 +610,9 @@ const Index = () => {
title='反馈类型:'
placeholder='请选择反馈类型'
value={projectType}
onInput={setProjectType}
onInput={(v) => {
setProjectType(v)
}}
selector={prjTypeSelector}
isView={isView}
onlySelect={true}

15
web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js

@ -13,6 +13,10 @@ const icon = [
'assets/images/quanju/lupai.png',
'assets/images/quanju/zerenpai.png'
]
import { unitList } from '../../../../../fillion/containers/assess'
const fuckoff = true
const RightCenter = (props) => {
const { highwaysData, dispatch } = props
@ -77,7 +81,7 @@ const RightCenter = (props) => {
option={{
xAxis: {
type: 'category',
data: data.map(d => d.unit),
data: fuckoff ? data.map(d => d.unit) : unitList,
axisTick: {
show: false
}
@ -93,7 +97,14 @@ const RightCenter = (props) => {
},
series: [
{
data: data.map(d => d.totalPoints),
data: fuckoff ? data.map(d => d.totalPoints) : unitList.map(u => {
let corPoint = data.find(d => d.unit === u)
if (corPoint) {
return corPoint.totalPoints
} else {
return 0
}
}),
type: 'bar',
showBackground: true,
backgroundStyle: {

Loading…
Cancel
Save