|
@ -1,7 +1,7 @@ |
|
|
import React, { useEffect, useState } from 'react'; |
|
|
import React, { useEffect, useState } from 'react'; |
|
|
import { connect } from 'react-redux'; |
|
|
import { connect } from 'react-redux'; |
|
|
import { Form, Spin, Table } from 'antd'; |
|
|
import { Form, Spin, Table } from 'antd'; |
|
|
import { DrawerForm, ProForm, ProFormText, ProFormSelect } from '@ant-design/pro-form'; |
|
|
import { DrawerForm, ProForm, ProFormText, ProFormSelect, ProFormCheckbox } from '@ant-design/pro-form'; |
|
|
import { putRoadway, putSpecificVehicle, putHouseholds, putCircuit, putVehicle, putPurchase } from "../../actions/infor" |
|
|
import { putRoadway, putSpecificVehicle, putHouseholds, putCircuit, putVehicle, putPurchase } from "../../actions/infor" |
|
|
import { putBridge } from "../../actions/infor" |
|
|
import { putBridge } from "../../actions/infor" |
|
|
import _ from 'lodash' |
|
|
import _ from 'lodash' |
|
@ -327,7 +327,15 @@ const UserModal = (props) => { |
|
|
showSearch={true} |
|
|
showSearch={true} |
|
|
name='townshipCode' |
|
|
name='townshipCode' |
|
|
label='所属乡镇' |
|
|
label='所属乡镇' |
|
|
/> : <ProFormText width="md" |
|
|
/> : |
|
|
|
|
|
item.type == 'spot' ? |
|
|
|
|
|
<ProFormCheckbox |
|
|
|
|
|
name='spot' |
|
|
|
|
|
label='是否隐藏' |
|
|
|
|
|
width="md" |
|
|
|
|
|
/> |
|
|
|
|
|
: |
|
|
|
|
|
<ProFormText width="md" |
|
|
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称" |
|
|
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称" |
|
|
key={index} |
|
|
key={index} |
|
|
/> |
|
|
/> |
|
@ -390,6 +398,13 @@ const UserModal = (props) => { |
|
|
name='townshipCode' |
|
|
name='townshipCode' |
|
|
label='所属乡镇' |
|
|
label='所属乡镇' |
|
|
/> : |
|
|
/> : |
|
|
|
|
|
item.type == 'spot' ? |
|
|
|
|
|
<ProFormCheckbox |
|
|
|
|
|
name='spot' |
|
|
|
|
|
label='是否隐藏' |
|
|
|
|
|
width="md" |
|
|
|
|
|
/> |
|
|
|
|
|
: |
|
|
<ProFormText width="md" |
|
|
<ProFormText width="md" |
|
|
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称" key={index} |
|
|
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称" key={index} |
|
|
/> |
|
|
/> |
|
|