Commit 82fbf248 authored by 皮倩雯's avatar 皮倩雯

fix: '修复巡检反馈新增报错'

parent e2dc7161
Pipeline #80175 passed with stages
...@@ -125,6 +125,10 @@ const AddModal = props => { ...@@ -125,6 +125,10 @@ const AddModal = props => {
form.setFieldsValue({ form.setFieldsValue({
inspectionType: newArr, inspectionType: newArr,
}); });
} else {
form.setFieldsValue({
inspectionType: [],
});
} }
getGisPatrolObject(res.data.gisServerName); getGisPatrolObject(res.data.gisServerName);
...@@ -385,7 +389,7 @@ const AddModal = props => { ...@@ -385,7 +389,7 @@ const AddModal = props => {
i.fromField = data[0]; i.fromField = data[0];
i.fromTable = data[1]; i.fromTable = data[1];
}); });
obj.businessGroup = obj.businessGroup.toString(); obj.businessGroup = obj.businessGroup?.toString();
let list = []; let list = [];
let groupNameSever = ''; let groupNameSever = '';
// if (obj.gisLayer && obj.gisLayer.indexOf('&') !== -1) { // if (obj.gisLayer && obj.gisLayer.indexOf('&') !== -1) {
...@@ -832,7 +836,7 @@ const AddModal = props => { ...@@ -832,7 +836,7 @@ const AddModal = props => {
</Item> </Item>
</Col> </Col>
<Col span={23}> <Col span={23}>
<Item label="巡检性质" name="inspectionType" labelCol={{ span: 4 }}> <Item label="巡检类型" name="inspectionType" labelCol={{ span: 4 }}>
<Select <Select
mode="multiple" mode="multiple"
allowClear allowClear
......
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