Browse Source

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

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

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

@ -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}
/> />

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

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

Loading…
Cancel
Save