页面搭建
parent
e713b3c8b9
commit
3ddf3eb338
|
|
@ -152,7 +152,7 @@ const Page = ({ uploadUrl, downloadUrl, type, getFormInfo, formJsonData }) => {
|
||||||
label='保管人员'
|
label='保管人员'
|
||||||
name='custodian'
|
name='custodian'
|
||||||
>
|
>
|
||||||
<Input />
|
<Input disabled={type == 'view'}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={10}>
|
<Col span={10}>
|
||||||
|
|
@ -160,7 +160,7 @@ const Page = ({ uploadUrl, downloadUrl, type, getFormInfo, formJsonData }) => {
|
||||||
label='保管地点'
|
label='保管地点'
|
||||||
name='storageLocation'
|
name='storageLocation'
|
||||||
>
|
>
|
||||||
<Input />
|
<Input disabled={type == 'view'}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
@ -176,12 +176,12 @@ const Page = ({ uploadUrl, downloadUrl, type, getFormInfo, formJsonData }) => {
|
||||||
label='附件'
|
label='附件'
|
||||||
name='files'
|
name='files'
|
||||||
>
|
>
|
||||||
<Dragger {...props(item1.key)}>
|
{type !== 'view' &&<Dragger {...props(item1.key)} disabled={type == 'view'}>
|
||||||
<p className="ant-upload-drag-icon">
|
<p className="ant-upload-drag-icon">
|
||||||
<InboxOutlined />
|
<InboxOutlined />
|
||||||
</p>
|
</p>
|
||||||
<p className="ant-upload-text">点击或将文件拖拽到这里上传 支持扩展名:jpeg、png</p>
|
<p className="ant-upload-text">点击或将文件拖拽到这里上传 支持扩展名:jpeg、png</p>
|
||||||
</Dragger>
|
</Dragger>}
|
||||||
<div className='flex'>
|
<div className='flex'>
|
||||||
{fileListHj?.[item1.key]?.map((item) => {
|
{fileListHj?.[item1.key]?.map((item) => {
|
||||||
return <div className='flex align-center file-item' style={{marginTop:5,marginRight:'3%',width:'30%', minHeight: "50px", fontSize: 14, columnGap: 10, cursor: checkMediaType(item.fileName) == 'image' || checkMediaType(item.fileName) == 'pdf' ? 'pointer' : "not-allowed" }}>
|
return <div className='flex align-center file-item' style={{marginTop:5,marginRight:'3%',width:'30%', minHeight: "50px", fontSize: 14, columnGap: 10, cursor: checkMediaType(item.fileName) == 'image' || checkMediaType(item.fileName) == 'pdf' ? 'pointer' : "not-allowed" }}>
|
||||||
|
|
|
||||||
|
|
@ -140,12 +140,12 @@ const Page = ({ uploadUrl, downloadUrl, type, getFormInfo, formJsonData }) => {
|
||||||
label='附件'
|
label='附件'
|
||||||
name='files'
|
name='files'
|
||||||
>
|
>
|
||||||
<Dragger {...props(item1.key)}>
|
{type !== 'view'&&<Dragger {...props(item1.key)}>
|
||||||
<p className="ant-upload-drag-icon">
|
<p className="ant-upload-drag-icon">
|
||||||
<InboxOutlined />
|
<InboxOutlined />
|
||||||
</p>
|
</p>
|
||||||
<p className="ant-upload-text">点击或将文件拖拽到这里上传 支持扩展名:jpeg、png</p>
|
<p className="ant-upload-text">点击或将文件拖拽到这里上传 支持扩展名:jpeg、png</p>
|
||||||
</Dragger>
|
</Dragger>}
|
||||||
<div className='flex'>
|
<div className='flex'>
|
||||||
{fileListHj?.[item1.key]?.map((item) => {
|
{fileListHj?.[item1.key]?.map((item) => {
|
||||||
return <div className='flex align-center file-item' style={{marginTop:5,marginRight:'3%',width:'30%', minHeight: "50px", fontSize: 14, columnGap: 10, cursor: checkMediaType(item.fileName) == 'image' || checkMediaType(item.fileName) == 'pdf' ? 'pointer' : "not-allowed" }}>
|
return <div className='flex align-center file-item' style={{marginTop:5,marginRight:'3%',width:'30%', minHeight: "50px", fontSize: 14, columnGap: 10, cursor: checkMediaType(item.fileName) == 'image' || checkMediaType(item.fileName) == 'pdf' ? 'pointer' : "not-allowed" }}>
|
||||||
|
|
|
||||||
|
|
@ -251,11 +251,11 @@ const FormZdy = ({ fileKey,typeName = "ddForm", formJson, getFormInfo, type, for
|
||||||
showSearch
|
showSearch
|
||||||
style={{ width: '100%' }}
|
style={{ width: '100%' }}
|
||||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
||||||
placeholder="Please select"
|
|
||||||
allowClear
|
allowClear
|
||||||
fieldNames={item.fieldNames}
|
fieldNames={item.fieldNames}
|
||||||
treeData={item.treeData}
|
treeData={item.treeData}
|
||||||
treeCheckable={item.multiple}
|
treeCheckable={item.multiple}
|
||||||
|
disabled={type == 'view'}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</Form.Item>}
|
</Form.Item>}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue