Commit 6bf22e2b authored by 皮倩雯's avatar 皮倩雯

fix: '巡检反馈提交失败修复'

parent 52b1dbb8
Pipeline #80628 passed with stages
...@@ -398,7 +398,7 @@ const AddModal = props => { ...@@ -398,7 +398,7 @@ const AddModal = props => {
// obj.gisLayer = list[1]; // obj.gisLayer = list[1];
// groupNameSever = list[0]; // groupNameSever = list[0];
// } // }
obj.inspectionType = obj.inspectionType.toString(); obj.inspectionType = obj.inspectionType?.toString();
if (type == 'add') { if (type == 'add') {
CM_Feedback_OperatePatrolFeedback({ CM_Feedback_OperatePatrolFeedback({
...obj, ...obj,
...@@ -837,7 +837,17 @@ const AddModal = props => { ...@@ -837,7 +837,17 @@ 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 }}
rules={[
{
required: true,
message: '请选择巡检类型',
},
]}
>
<Select <Select
mode="multiple" mode="multiple"
allowClear allowClear
...@@ -949,7 +959,7 @@ const AddModal = props => { ...@@ -949,7 +959,7 @@ const AddModal = props => {
</div> </div>
</Item> </Item>
</Col> </Col>
{form.getFieldsValue().feedbackRule !== '' ? ( {/* {form.getFieldsValue().feedbackRule !== '' ? (
<Col span={23}> <Col span={23}>
<Item <Item
label="关联事件" label="关联事件"
...@@ -973,7 +983,7 @@ const AddModal = props => { ...@@ -973,7 +983,7 @@ const AddModal = props => {
</Select> </Select>
</Item> </Item>
</Col> </Col>
) : ( ) : ( */}
<Col span={23}> <Col span={23}>
<Item label="关联事件" name="relationEvent" labelCol={{ span: 4 }}> <Item label="关联事件" name="relationEvent" labelCol={{ span: 4 }}>
<Select <Select
...@@ -992,7 +1002,6 @@ const AddModal = props => { ...@@ -992,7 +1002,6 @@ const AddModal = props => {
</Select> </Select>
</Item> </Item>
</Col> </Col>
)}
<Col span={23}> <Col span={23}>
<span style={{ fontSize: '12px', color: '#bfbcbc', marginLeft: '80px' }}> <span style={{ fontSize: '12px', color: '#bfbcbc', marginLeft: '80px' }}>
......
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