Browse Source

(*)新增编辑表单增加是否隐藏

dev
peng.peng 1 year ago
parent
commit
fcb19a2222
  1. 31
      web/client/src/sections/fillion/components/infor/details.js
  2. 1
      web/client/src/sections/fillion/components/transportationTable.js

31
web/client/src/sections/fillion/components/infor/details.js

@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
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 { putBridge } from "../../actions/infor"
import _ from 'lodash'
@ -327,10 +327,18 @@ const UserModal = (props) => {
showSearch={true}
name='townshipCode'
label='所属乡镇'
/> : <ProFormText width="md"
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称"
key={index}
/>
/> :
item.type == 'spot' ?
<ProFormCheckbox
name='spot'
label='是否隐藏'
width="md"
/>
:
<ProFormText width="md"
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称"
key={index}
/>
})}
</ProForm.Group>
@ -390,9 +398,16 @@ const UserModal = (props) => {
name='townshipCode'
label='所属乡镇'
/> :
<ProFormText width="md"
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称" key={index}
/>
item.type == 'spot' ?
<ProFormCheckbox
name='spot'
label='是否隐藏'
width="md"
/>
:
<ProFormText width="md"
name={item?.type} label={newlysay[index]?.name} placeholder="请输入名称" key={index}
/>
})}
</ProForm.Group>}

1
web/client/src/sections/fillion/components/transportationTable.js

@ -4141,6 +4141,7 @@ const data = [
{ name: "所在区县", type: 'districtcounty' },
{ name: "所在地市", type: 'locationCity' },
{ name: "面层厚度", type: 'surfaceThickness' },
{ name: "是否隐藏", type: 'spot' },
]
function mapStateToProps (state) {
const { auth, depMessage, villageList } = state

Loading…
Cancel
Save