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

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

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