|
@ -140,7 +140,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat |
|
|
initValue={eidtData?.reportName || ""} |
|
|
initValue={eidtData?.reportName || ""} |
|
|
rules={[{ required: true, message: "请输入报表名称" }]} |
|
|
rules={[{ required: true, message: "请输入报表名称" }]} |
|
|
/> |
|
|
/> |
|
|
<Form.Select label="所属项目" field="projectId" placeholder="请选择项目" style={{ width: 300 }} filter |
|
|
<Form.Select label="所属项目" field="projectId" placeholder="请选择项目" showClear style={{ width: 300 }} filter |
|
|
initValue={eidtData?.projectId || ""} |
|
|
initValue={eidtData?.projectId || ""} |
|
|
rules={[{ required: true, message: "请选择项目" }]} |
|
|
rules={[{ required: true, message: "请选择项目" }]} |
|
|
onChange={v => { |
|
|
onChange={v => { |
|
@ -161,7 +161,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat |
|
|
initValue={eidtData?.projectName || ""} |
|
|
initValue={eidtData?.projectName || ""} |
|
|
rules={[{ required: true, message: "请输入项目名称" }]} |
|
|
rules={[{ required: true, message: "请输入项目名称" }]} |
|
|
/> |
|
|
/> |
|
|
<Form.Select label="报表类型" field="reportType" placeholder="请选择报表类型" style={{ width: 300 }} |
|
|
<Form.Select label="报表类型" field="reportType" placeholder="请选择报表类型" showClear style={{ width: 300 }} |
|
|
rules={[{ required: true, message: "请选择报表类型" }]} |
|
|
rules={[{ required: true, message: "请选择报表类型" }]} |
|
|
initValue={eidtData?.reportType || ""} |
|
|
initValue={eidtData?.reportType || ""} |
|
|
optionList={[{ value: "月报表", label: "月报表" }, { value: "季报表", label: "季报表" }, { value: "年报表", label: "年报表" }]} |
|
|
optionList={[{ value: "月报表", label: "月报表" }, { value: "季报表", label: "季报表" }, { value: "年报表", label: "年报表" }]} |
|
@ -190,7 +190,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat |
|
|
rules={[{ required: true, message: "请输入批准者" }]} |
|
|
rules={[{ required: true, message: "请输入批准者" }]} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<Form.Select label="结构物" field="structId" placeholder="请选择结构物" style={{ width: 300 }} filter |
|
|
<Form.Select label="结构物" field="structId" placeholder="请选择结构物" showClear style={{ width: 300 }} filter |
|
|
rules={[{ required: true, message: "请选择结构物" }]} disabled={projectId ? false : true} |
|
|
rules={[{ required: true, message: "请选择结构物" }]} disabled={projectId ? false : true} |
|
|
initValue={eidtData?.structId || ""} |
|
|
initValue={eidtData?.structId || ""} |
|
|
onChange={v => { |
|
|
onChange={v => { |
|
@ -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} |
|
|
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: "请选择开始结束时间" }]} |
|
|
rules={[{ required: true, message: "请选择开始结束时间" }]} |
|
|
/> |
|
|
/> |
|
|
<Form.Select label="包含的监测因素" field="factorId" placeholder="请选择监测因素" style={{ width: 300 }} filter multiple={true} |
|
|
<Form.Select label="包含的监测因素" field="factorId" placeholder="请选择监测因素" showClear style={{ width: 300 }} filter multiple={true} |
|
|
initValue={eidtData?.factors?.map(s => s.codeName) || []} |
|
|
initValue={eidtData?.factors?.map(s => s.codeName) || []} |
|
|
rules={[{ required: true, message: "请选择监测因素" }]} disabled={structId ? false : true} |
|
|
rules={[{ required: true, message: "请选择监测因素" }]} disabled={structId ? false : true} |
|
|
onChange={v => { |
|
|
onChange={v => { |
|
@ -259,7 +259,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat |
|
|
/> |
|
|
/> |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
<Form.Select label="测点选择" field={s.proto + "sensorNames"} multiple={true} placeholder="请选择测点选择" style={{ width: 300 }} filter |
|
|
<Form.Select label="测点选择" field={s.proto + "sensorNames"} multiple={true} placeholder="请选择测点选择" style={{ width: 300 }} showClear filter |
|
|
initValue={eidtData?.factors?.find(c => c.codeName == s.proto)?.sensorNames?.map(a => a.id) || []} |
|
|
initValue={eidtData?.factors?.find(c => c.codeName == s.proto)?.sensorNames?.map(a => a.id) || []} |
|
|
rules={[{ required: true, message: "请选择测点选择" }]} |
|
|
rules={[{ required: true, message: "请选择测点选择" }]} |
|
|
> |
|
|
> |
|
@ -279,7 +279,7 @@ const AutomaticModal = ({ actions, dispatch, apiRoot, qiniuUrl, visible, eidtDat |
|
|
} |
|
|
} |
|
|
{ |
|
|
{ |
|
|
['4009', '3001', '4004', '4001', '4007'].includes(s.proto) && <> |
|
|
['4009', '3001', '4004', '4001', '4007'].includes(s.proto) && <> |
|
|
<Form.Select label="关联温度的测点" field={s.proto + "tempName1"} placeholder="请选择关联的温度测点" style={{ width: 300 }} filter |
|
|
<Form.Select label="关联温度的测点" field={s.proto + "tempName1"} showClear placeholder="请选择关联的温度测点" style={{ width: 300 }} filter |
|
|
initValue={eidtData?.factors?.find(c => c.codeName == s.proto)?.tempName?.find(c => c.index == 1)?.id || ""} |
|
|
initValue={eidtData?.factors?.find(c => c.codeName == s.proto)?.tempName?.find(c => c.index == 1)?.id || ""} |
|
|
> |
|
|
> |
|
|
{s.sensor?.map((item) => { |
|
|
{s.sensor?.map((item) => { |
|
|