Commit 3f76e2bb authored by 皮倩雯's avatar 皮倩雯

fix: '巡检反馈增加分组'

parent 06887645
Pipeline #60890 passed with stages
...@@ -112,26 +112,48 @@ const AddModal = props => { ...@@ -112,26 +112,48 @@ const AddModal = props => {
form.validateFields().then(validate => { form.validateFields().then(validate => {
if (validate) { if (validate) {
let obj = form.getFieldsValue(); let obj = form.getFieldsValue();
CM_Feedback_OperatePatrolFeedback({ if (type == 'add') {
...obj, CM_Feedback_OperatePatrolFeedback({
id: formObj.id, ...obj,
}).then(res => { }).then(res => {
if (res.msg == '') { if (res.msg == '') {
form.resetFields(); form.resetFields();
callBackSubmit(); callBackSubmit();
notification.success({ notification.success({
message: '提示', message: '提示',
duration: 3, duration: 3,
description: type == 'add' ? '添加成功' : '编辑成功', description: type == 'add' ? '添加成功' : '编辑成功',
}); });
} else { } else {
notification.error({ notification.error({
message: '提示', message: '提示',
duration: 3, duration: 3,
description: res.msg, description: res.msg,
}); });
} }
}); });
} else {
CM_Feedback_OperatePatrolFeedback({
...obj,
id: formObj.id,
}).then(res => {
if (res.msg == '') {
form.resetFields();
callBackSubmit();
notification.success({
message: '提示',
duration: 3,
description: type == 'add' ? '添加成功' : '编辑成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
});
}
} }
}); });
}; };
...@@ -366,6 +388,11 @@ const AddModal = props => { ...@@ -366,6 +388,11 @@ const AddModal = props => {
<Input placeholder="巡检对象名称不可重复" /> <Input placeholder="巡检对象名称不可重复" />
</Item> </Item>
</Col> </Col>
<Col span={23}>
<Item label="分组" name="groupType" labelCol={{ span: 4 }}>
<Input placeholder="请输入分组名称" />
</Item>
</Col>
<Col span={23}> <Col span={23}>
<Item label="GIS图层" name="gisLayer" labelCol={{ span: 4 }}> <Item label="GIS图层" name="gisLayer" labelCol={{ span: 4 }}>
<Input placeholder="请输入GIS图层" /> <Input placeholder="请输入GIS图层" />
...@@ -373,7 +400,7 @@ const AddModal = props => { ...@@ -373,7 +400,7 @@ const AddModal = props => {
</Col> </Col>
<Col span={23}> <Col span={23}>
<Item label="GIS条件" name="gisFilterValue" labelCol={{ span: 4 }}> <Item label="GIS条件" name="gisFilterValue" labelCol={{ span: 4 }}>
<Input placeholder="请输入GIS条件" /> <Input placeholder="示例:设备级别 = '小区阀门' (设备级别来自图层表字段)" />
</Item> </Item>
</Col> </Col>
<Col span={23}> <Col span={23}>
......
...@@ -30,6 +30,12 @@ const patrolFeedback = () => { ...@@ -30,6 +30,12 @@ const patrolFeedback = () => {
key: 'layerName', key: 'layerName',
align: 'center', align: 'center',
}, },
{
title: '分组',
dataIndex: 'groupType',
key: 'groupType',
align: 'center',
},
{ {
title: 'GIS图层', title: 'GIS图层',
dataIndex: 'gisLayer', dataIndex: 'gisLayer',
......
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