Commit f86d88f5 authored by 田翔's avatar 田翔

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

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