Browse Source

一图统揽优化

dev
wenlele 1 year ago
parent
commit
78d0f37488
  1. 8
      web/client/src/sections/analysis/containers/network.jsx

8
web/client/src/sections/analysis/containers/network.jsx

@ -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 => {
if (projectValue != v) {
setProjectValue(v) setProjectValue(v)
setSpinning(true) setSpinning(true)
form.current.setValue('projectId', v) 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 => {
if (thingId != v) {
setSpinning(true) setSpinning(true)
setThingId(v) setThingId(v)
form.current.setValue('thingId', v) form.current.setValue('thingId', v)
}
}} }}
/> />
</Form> </Form>

Loading…
Cancel
Save