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,26 +983,25 @@ const AddModal = props => { ...@@ -973,26 +983,25 @@ 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
placeholder="选择关联事件类型" placeholder="选择关联事件类型"
onChange={e => onChangeEvent(e)} onChange={e => onChangeEvent(e)}
showSearch showSearch
allowClear allowClear
> >
{eventData {eventData
? eventData.map((item, index) => ( ? eventData.map((item, index) => (
<Option key={index} value={item}> <Option key={index} value={item}>
{item} {item}
</Option> </Option>
)) ))
: ''} : ''}
</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