|
|
|
@ -77,8 +77,9 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'disable',
|
|
|
|
|
label: '是否可用',
|
|
|
|
|
slot: 'disable',
|
|
|
|
|
defaultValue: 0,
|
|
|
|
|
component: 'RadioButtonGroup',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
options: [
|
|
|
|
@ -91,7 +92,10 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
field: 'note',
|
|
|
|
|
label: '备注',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 24 }
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
autoSize: { minRows: 5, maxRows: 5 }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
@ -114,8 +118,9 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'printType',
|
|
|
|
|
label: '打印类型',
|
|
|
|
|
required: true,
|
|
|
|
|
component: 'Select',
|
|
|
|
|
show: false,
|
|
|
|
|
defaultValue: 1,
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
@ -136,7 +141,7 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
|
label: '所属模块',
|
|
|
|
|
field: 'templateCode',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
required: true,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
@ -178,7 +183,8 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'isUseDataSource',
|
|
|
|
|
label: '是否使用数据源',
|
|
|
|
|
defaultValue: 0,
|
|
|
|
|
slot: 'isUseDataSource',
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
component: 'RadioButtonGroup',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
@ -188,13 +194,55 @@ export const temFormSchema: FormSchema[] = [
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'sourceSql',
|
|
|
|
|
label: '数据源',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 }
|
|
|
|
|
},
|
|
|
|
|
show: ({ values }) => {
|
|
|
|
|
return values.isUseDataSource
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'inParamColumn',
|
|
|
|
|
label: '入口参数',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
show: ({ values }) => {
|
|
|
|
|
return values.isUseDataSource
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'groupBy',
|
|
|
|
|
label: '分组字段',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
show: ({ values }) => {
|
|
|
|
|
return values.isUseDataSource
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'columnView',
|
|
|
|
|
label: '参数',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 }
|
|
|
|
|
},
|
|
|
|
|
show: ({ values }) => {
|
|
|
|
|
return values.isUseDataSource
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'printJsonContent',
|
|
|
|
|
label: '打印设计内容',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
autoSize: { minRows: 3, maxRows: 20 }
|
|
|
|
|
autoSize: { minRows: 5, maxRows: 20 }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|