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

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

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