Commit 15ae362b by 王宝涛

refactor(pybg): 调整配置文件结构并添加新字段

- 移除数值输入框的最大值限制
- 将照片上传组件包装在网格布局中实现并排显示
- 添加 wlzt 和 psqzp 新字段到模型定义中
- 更新上传组件的跨度配置以适应网格布局
- 重构表单配置结构以支持更灵活的布局控制
parent c90560c3
...@@ -112,6 +112,10 @@ export interface MesCheliangBgModel { ...@@ -112,6 +112,10 @@ export interface MesCheliangBgModel {
dhxx: string; dhxx: string;
wlzt: string;
psqzp: string;
bz: string; bz: string;
createDate: string; createDate: string;
......
...@@ -676,7 +676,7 @@ export const formProps: FormProps = { ...@@ -676,7 +676,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: 1000000, max: null,
step: 1, step: 1,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
...@@ -704,7 +704,7 @@ export const formProps: FormProps = { ...@@ -704,7 +704,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: 100, max: null,
step: 1, step: 1,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
...@@ -765,53 +765,85 @@ export const formProps: FormProps = { ...@@ -765,53 +765,85 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: '0d7ec3c4b4e54dfb9eeca107ec214d04', key: 'e62e58650790473488ca23b08fb8921c',
field: 'clqzp1', field: '',
label: '处理前照片', label: '',
type: 'upload', type: 'grid',
component: 'Upload',
colProps: { span: 24 },
componentProps: {
api: uploadApi,
span: '',
defaultValue: '',
accept: '.jpg,.jpeg,.png,.bmp',
maxNumber: 5,
maxSize: 5,
showLabel: true,
multiple: true,
disabled: false,
required: false,
isShow: true,
events: {},
listType: 'picture-card',
sourceType: 'album,camera',
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{
key: '42b8984cc17f4cacafa3ae1e885d8260',
field: 'clhzp1',
label: '处理后照片',
type: 'upload',
component: 'Upload',
colProps: { span: 24 }, colProps: { span: 24 },
component: 'Grid',
children: [
{
span: 12,
list: [
{
key: '0d7ec3c4b4e54dfb9eeca107ec214d04',
field: 'clqzp1',
label: '处理前照片',
type: 'upload',
component: 'Upload',
colProps: { span: 24 },
componentProps: {
api: uploadApi,
span: 7,
defaultValue: '',
accept: '.jpg,.jpeg,.png,.bmp',
maxNumber: 5,
maxSize: 5,
showLabel: true,
multiple: true,
disabled: false,
required: false,
isShow: true,
events: {},
listType: 'picture-card',
sourceType: 'album,camera',
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
},
{
span: 12,
list: [
{
key: '42b8984cc17f4cacafa3ae1e885d8260',
field: 'clhzp1',
label: '处理后照片',
type: 'upload',
component: 'Upload',
colProps: { span: 24 },
componentProps: {
api: '#{upload}#',
span: 7,
defaultValue: '',
accept: '.jpg,.jpeg,.png,.bmp',
maxNumber: 5,
maxSize: 5,
showLabel: true,
multiple: true,
disabled: false,
required: false,
isShow: true,
events: {},
listType: 'picture-card',
sourceType: 'album,camera',
tooltipConfig: { visible: false, title: '提示文本' },
},
},
],
},
],
componentProps: { componentProps: {
api: '#{upload}#', gutter: 0,
span: '', justify: 'start',
defaultValue: '', align: 'top',
accept: '.jpg,.jpeg,.png,.bmp',
maxNumber: 5,
maxSize: 5,
showLabel: true,
multiple: true,
disabled: false,
required: false,
isShow: true, isShow: true,
events: {}, showBorder: false,
listType: 'picture-card', bordercolor: '#d9d9d9',
sourceType: 'album,camera', bordershowtype: [true, true, true, true],
tooltipConfig: { visible: false, title: '提示文本' }, borderwidth: 1,
padding: '10px',
margin: '10px',
}, },
}, },
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment