diff --git a/web/client/src/sections/service/components/automatic-Modal.jsx b/web/client/src/sections/service/components/automatic-Modal.jsx index 36a2313..2ddadec 100644 --- a/web/client/src/sections/service/components/automatic-Modal.jsx +++ b/web/client/src/sections/service/components/automatic-Modal.jsx @@ -140,7 +140,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat initValue={eidtData?.reportName || ""} rules={[{ required: true, message: "请输入报表名称" }]} /> - { @@ -161,7 +161,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat initValue={eidtData?.projectName || ""} rules={[{ required: true, message: "请输入项目名称" }]} /> - - { @@ -213,7 +213,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat initValue={eidtData?.reportStartTime && [moment(eidtData?.reportStartTime).format('YYYY-MM-DD HH:mm:ss'), moment(eidtData?.reportEndTime).format('YYYY-MM-DD HH:mm:ss')] || null} rules={[{ required: true, message: "请选择开始结束时间" }]} /> - s.codeName) || []} rules={[{ required: true, message: "请选择监测因素" }]} disabled={structId ? false : true} onChange={v => { @@ -259,7 +259,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat /> } - c.codeName == s.proto)?.sensorNames?.map(a => a.id) || []} rules={[{ required: true, message: "请选择测点选择" }]} > @@ -279,7 +279,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat } { ['4009', '3001', '4004', '4001', '4007'].includes(s.proto) && <> - c.codeName == s.proto)?.tempName?.find(c => c.index == 1)?.id || ""} > {s.sensor?.map((item) => {