Commit 49caf071 authored by 涂伟's avatar 涂伟

fix: '维保在线任务量配置优化'

parent cd98204a
Pipeline #89178 passed with stages
......@@ -36,6 +36,12 @@ const BaseConfig = (props, ref) => {
const [startLen, setstartLen] = useState(1); // 开始日期
const [Unit, setValue] = useState();
const [visibleChecked, setVisibleChecked] = useState(false);
const [onlineTasks, setOnlineTasks] = useState(0);
const handleInputChange = (value) => {
setOnlineTasks(value);
}
useEffect(() => {
if (props.keepTimeData) {
......@@ -804,11 +810,6 @@ const BaseConfig = (props, ref) => {
{randerZqsz(Unit)}
</Form.Item>
</Col>
<Col span={24}>
<Form.Item labelCol={{ span: 5 }} valuePropName="checked" label="动态周期" name="isDynamicCycle">
<Switch checkedChildren="开启" unCheckedChildren="关闭" />
</Form.Item>
</Col>
{(Unit === 'week' || Unit === 'month') && (
<Col span={24}>
<Form.Item labelCol={{ span: 5 }} name="time" label="制定执行时间">
......@@ -822,14 +823,6 @@ const BaseConfig = (props, ref) => {
</Col>
)}
<Col span={24}>
<Form.Item labelCol={{ span: 5 }} name="onLines" label="在线任务量">
<InputNumber
min={0} max={20}
/>
</Form.Item>
</Col>
{visibleChecked && Unit !== 'day' && (
<Col span={24}>
<Form.Item labelCol={{ span: 5 }} name="zxsj" label="执行时间">
......@@ -837,6 +830,35 @@ const BaseConfig = (props, ref) => {
</Form.Item>
</Col>
)}
<Col span={24}>
<Form.Item labelCol={{ span: 5 }} valuePropName="checked" label="动态周期" name="isDynamicCycle">
<Switch checkedChildren="开启" unCheckedChildren="关闭" />
</Form.Item>
</Col>
<Col span={24}>
<Form.Item labelCol={{ span: 5 }} name="onLines" label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title={`配置自动生成定时任务后,此方案仅同时存在${onlineTasks}条任务`} >
<InfoCircleOutlined
style={{
color: 'rgb(24, 144, 255)',
marginLeft: '5px',
marginRight: '3px',
}}
/>
</Tooltip>
在线任务量
</div>
}>
<InputNumber
min={0}
max={20}
onChange={handleInputChange}
/>
</Form.Item>
</Col>
</Row>
)}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment