Browse Source

structId 参数去除

dev
wenlele 1 year ago
parent
commit
4cf137dcff
  1. 2
      web/client/src/sections/service/components/automatic-Modal.jsx
  2. 2
      web/client/src/sections/service/containers/automaticReport.jsx

2
web/client/src/sections/service/components/automatic-Modal.jsx

@ -278,7 +278,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat
/>
<Form.TextArea field={s.strucId + "conclusion"} label='结论' style={{ width: 390 }} autosize={{ minRows: 2, maxRows: 10 }} placeholder="请输入结论" showClear
initValue={eidtData?.structList?.find(d => d.structId == s.strucId)?.conclusion || ""}
rules={[{ required: true, message: "请输入结构物描述" }]}
// rules={[{ required: true, message: "" }]}
/>
<Form.DatePicker field={s.strucId + 'reportTime'} label='开始结束时间' type='dateTimeRange' showClear
initValue={structFind?.reportStartTime && [moment(structFind?.reportStartTime).format('YYYY-MM-DD HH:mm:ss'), moment(structFind?.reportEndTime).format('YYYY-MM-DD HH:mm:ss')] || null} style={{ width: 390 }}

2
web/client/src/sections/service/containers/automaticReport.jsx

@ -138,7 +138,7 @@ const AutomaticReport = ({ dispatch, actions, user, clientHeight, loading, gener
d.codeName = dataList[d.codeName]
})
dispatch(service.postGenerateReport(row)).then((res) => {
dispatch(service.postGenerateReport({ ...row, structId: "" })).then((res) => {
if (res.success) {
setQuery({ limit: 10, page: 0 })
getData({ limit: 10, page: 0, keyword: keyword })

Loading…
Cancel
Save