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

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

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