|
@ -92,7 +92,7 @@ const Network = ({ |
|
|
> |
|
|
> |
|
|
<Form.Select |
|
|
<Form.Select |
|
|
filter |
|
|
filter |
|
|
showClear |
|
|
// showClear |
|
|
label='项目选择' |
|
|
label='项目选择' |
|
|
field="projectId" |
|
|
field="projectId" |
|
|
labelPosition="left" |
|
|
labelPosition="left" |
|
@ -101,9 +101,11 @@ const Network = ({ |
|
|
// value={projectValue} |
|
|
// value={projectValue} |
|
|
optionList={projectList || []} |
|
|
optionList={projectList || []} |
|
|
onSelect={v => { |
|
|
onSelect={v => { |
|
|
setProjectValue(v) |
|
|
if (projectValue != v) { |
|
|
setSpinning(true) |
|
|
setProjectValue(v) |
|
|
form.current.setValue('projectId', v) |
|
|
setSpinning(true) |
|
|
|
|
|
form.current.setValue('projectId', v) |
|
|
|
|
|
} |
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
<Form.Select |
|
|
<Form.Select |
|
@ -113,12 +115,14 @@ const Network = ({ |
|
|
style={{ width: 200, }} |
|
|
style={{ width: 200, }} |
|
|
placeholder="请选择结构物选择" |
|
|
placeholder="请选择结构物选择" |
|
|
filter |
|
|
filter |
|
|
showClear |
|
|
// showClear |
|
|
optionList={organizationsStruc?.map(d => ({ value: d.thingId, label: d.strucName })) || []} |
|
|
optionList={organizationsStruc?.map(d => ({ value: d.thingId, label: d.strucName })) || []} |
|
|
onSelect={v => { |
|
|
onSelect={v => { |
|
|
setSpinning(true) |
|
|
if (thingId != v) { |
|
|
setThingId(v) |
|
|
setSpinning(true) |
|
|
form.current.setValue('thingId', v) |
|
|
setThingId(v) |
|
|
|
|
|
form.current.setValue('thingId', v) |
|
|
|
|
|
} |
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
</Form> |
|
|
</Form> |
|
|