|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
import { Tag } from 'ant-design-vue'
|
|
|
|
|
import { GetTablesByClient } from './api'
|
|
|
|
|
import { GetTablesByClient, GetTaskTypeConstList } from './api'
|
|
|
|
|
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
// {
|
|
|
|
@ -63,12 +63,12 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'divider-selects',
|
|
|
|
|
component: 'Divider',
|
|
|
|
|
label: '基本信息',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'divider-selects',
|
|
|
|
|
// component: 'Divider',
|
|
|
|
|
// label: '基本信息',
|
|
|
|
|
// colProps: { span: 24 },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'id',
|
|
|
|
@ -80,34 +80,21 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
field: 'name',
|
|
|
|
|
label: '模板名称',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'orderNo',
|
|
|
|
|
label: '排序号',
|
|
|
|
|
component: 'InputNumber',
|
|
|
|
|
defaultValue: 0,
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'status',
|
|
|
|
|
label: '是否启用',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
defaultValue: 0,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '启用',
|
|
|
|
|
checkedValue: 0,
|
|
|
|
|
unCheckedChildren: '禁用',
|
|
|
|
|
unCheckedValue: 1,
|
|
|
|
|
},
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'columnView',
|
|
|
|
|
label: '关联表',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: true,
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
@ -122,11 +109,78 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'status',
|
|
|
|
|
label: '是否启用',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
defaultValue: 0,
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '启用',
|
|
|
|
|
checkedValue: 0,
|
|
|
|
|
unCheckedChildren: '禁用',
|
|
|
|
|
unCheckedValue: 1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '审批类型',
|
|
|
|
|
field: 'auditType',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetTaskTypeConstList,
|
|
|
|
|
labelField: 'key',
|
|
|
|
|
showName: 'key',
|
|
|
|
|
valueField: 'value',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'markerNotifyURL',
|
|
|
|
|
label: '执行人变更回调地址',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
rows: 3,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'callbackURL',
|
|
|
|
|
label: '回调地址',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
rows: 3,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'note',
|
|
|
|
|
label: '备注',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
colProps: { span: 20 },
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
rows: 3,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'Space1',
|
|
|
|
|
component: 'Space',
|
|
|
|
|
colProps: {
|
|
|
|
|
span: 24,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'Space2',
|
|
|
|
|
component: 'Space',
|
|
|
|
|
colProps: {
|
|
|
|
|
span: 24,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
export const permissionFormSchema: FormSchema[] = [
|
|
|
|
|