|
@ -170,7 +170,7 @@ function LEDConfiguration({ id }) { |
|
|
setDelModal({ visible: false, id: null }); |
|
|
setDelModal({ visible: false, id: null }); |
|
|
} |
|
|
} |
|
|
function getLEDBusiness() { |
|
|
function getLEDBusiness() { |
|
|
ajax.getLEDBusiness({ road_id: id }).then((res) => { |
|
|
|
|
|
|
|
|
ajax.getLEDBusiness().then((res) => { |
|
|
if (res.status == 20000) { |
|
|
if (res.status == 20000) { |
|
|
setBusinessList(res.data) |
|
|
setBusinessList(res.data) |
|
|
} else { |
|
|
} else { |
|
@ -180,7 +180,7 @@ function LEDConfiguration({ id }) { |
|
|
setDelModal({ visible: false, id: null }); |
|
|
setDelModal({ visible: false, id: null }); |
|
|
} |
|
|
} |
|
|
function getModalLEDBusiness() { |
|
|
function getModalLEDBusiness() { |
|
|
ajax.getLEDBusiness().then((res) => { |
|
|
|
|
|
|
|
|
ajax.getLEDBusiness({ road_id: id }).then((res) => { |
|
|
if (res.status == 20000) { |
|
|
if (res.status == 20000) { |
|
|
setModalBusinessList(res.data) |
|
|
setModalBusinessList(res.data) |
|
|
} else { |
|
|
} else { |
|
@ -241,7 +241,7 @@ function LEDConfiguration({ id }) { |
|
|
rules={[{ required: true }]} |
|
|
rules={[{ required: true }]} |
|
|
name="business_type" |
|
|
name="business_type" |
|
|
> |
|
|
> |
|
|
<Select options={modalBusinessList|| []} disabled={modalData.status === "edit"} /> |
|
|
|
|
|
|
|
|
<Select options={(modalData.status === "add"?modalBusinessList:businessList)|| []} disabled={modalData.status === "edit"} /> |
|
|
</Form.Item> |
|
|
</Form.Item> |
|
|
<Form.Item |
|
|
<Form.Item |
|
|
label="LED显示文案" |
|
|
label="LED显示文案" |
|
|