Commit f86d88f5 authored by 田翔's avatar 田翔

fix: 增加是否执行区域任务配置

parent 7cf476bf
Pipeline #91291 passed with stages
......@@ -11,10 +11,11 @@ const ConfigCase = (props, ref) => {
useEffect(() => {
form.resetFields();
const { EventsInformation, IsSendMessage, IsHookingGis } = editMsg;
const { EventsInformation, IsSendMessage, IsAreaTaskHandle, IsHookingGis } = editMsg;
const obj = {
EventsInformation: EventsInformation === 1,
IsSendMessage: IsSendMessage === 1,
IsAreaTaskHandle: IsAreaTaskHandle === 1,
IsHookingGis: IsHookingGis === 1,
};
......@@ -52,6 +53,9 @@ const ConfigCase = (props, ref) => {
case 'IsSendMessage':
value = changedFields[0].value ? 1 : 0;
break;
case 'IsAreaTaskHandle':
value = changedFields[0].value ? 1 : 0;
break;
case 'IsHookingGis':
value = changedFields[0].value ? 1 : 0;
break;
......@@ -116,6 +120,14 @@ const ConfigCase = (props, ref) => {
>
<Switch checkedChildren="是" unCheckedChildren="否" />
</Form.Item>
<Form.Item
valuePropName="checked"
label="是否执行区域任务"
name="IsAreaTaskHandle"
style={{ display: editMsg.NodeType !== '1' ? 'flex' : 'none' }}
>
<Switch checkedChildren="是" unCheckedChildren="否" />
</Form.Item>
</Form>
</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