Browse Source

(*)养护抽查优化

dev
peng.peng 10 months ago
parent
commit
71c716c178
  1. 46
      web/client/src/sections/fillion/components/transportationTable.js
  2. 6
      web/client/src/sections/fillion/containers/maintenanceSpotCheck-new.js

46
web/client/src/sections/fillion/components/transportationTable.js

@ -1252,7 +1252,7 @@ const TransporTationTable = (props) => {
}
},
{
title: '是否隐藏字段',
title: '是否隐藏',
search: false,
dataIndex: 'time9',
valueType: 'dateRange',
@ -2458,6 +2458,28 @@ const TransporTationTable = (props) => {
getPopupContainer: (triggerNode) => triggerNode.parentNode,
}
},
{
title: '是否隐藏',
search: false,
dataIndex: 'time9',
valueType: 'dateRange',
width: 140,
render: (dom, record) => {
console.log(record.spot)
if (record.spot) {
return "是"
} else {
return "否"
}
},
fieldProps: {
getPopupContainer: (triggerNode) => triggerNode.parentNode,
}
},
{
title: '操作',
dataIndex: 'creatTime',
@ -3668,6 +3690,28 @@ const TransporTationTable = (props) => {
}
},
{
title: '是否隐藏',
search: false,
dataIndex: 'time9',
valueType: 'dateRange',
width: 140,
render: (dom, record) => {
console.log(record.spot)
if (record.spot) {
return "是"
} else {
return "否"
}
},
fieldProps: {
getPopupContainer: (triggerNode) => triggerNode.parentNode,
}
},
{
key: "direction",
hideInTable: true,

6
web/client/src/sections/fillion/containers/maintenanceSpotCheck-new.js

@ -140,9 +140,9 @@ const MaintenanceSpotCheck = (props) => {
const res = await dispatch(roadSpotPrepare({ countyPercentage: values.percentValue }))
setPreviewId(res?.payload.data?.previewId)
form.setFieldsValue({
'countryMil': res?.payload.data?.countryMil,
'townMil': res?.payload.data?.townMil,
'villageMil': res?.payload.data?.villageMil,
'countryMil': res?.payload.data?.countryMil.toFixed(3),
'townMil': res?.payload.data?.townMil.toFixed(3),
'villageMil': res?.payload.data?.villageMil.toFixed(3),
})
}
})

Loading…
Cancel
Save