You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.5 KiB
106 lines
2.5 KiB
import { FormSchema } from '@/components/Form';
|
|
import { BasicColumn } from '@/components/Table';
|
|
import { useDictStore } from '@/store/modules/dict';
|
|
const dictStore = useDictStore();
|
|
const reformTasksDicts: Array<Object> = dictStore.selectDictArray("reformTasks")
|
|
|
|
const roomDicts: Array<Object> = dictStore.selectDictArray("superLeader")
|
|
import { getWorkPlaceTypeDict, getContactorDict, getUserInfoByid } from '../initiatesProjects/initiatesProjects.api'
|
|
|
|
// let manageOrgDict = await getWorkPlaceTypeDict({ workPlaceType: "1" })
|
|
// let supervisorDict = await getWorkPlaceTypeDict({ workPlaceType: "2" })
|
|
// let contructorDict = await getWorkPlaceTypeDict({ workPlaceType: "4" })
|
|
// let ownerDict = await getWorkPlaceTypeDict({ workPlaceType: "3" })
|
|
// let controlerDict = await getWorkPlaceTypeDict({ workPlaceType: "6" })
|
|
// let consultDict = await getWorkPlaceTypeDict({ workPlaceType: "5" })
|
|
// let manageOrgDict = []
|
|
// let supervisorDict = []
|
|
// let contructorDict = []
|
|
// let ownerDict = []
|
|
// let controlerDict = []
|
|
// let consultDict = []
|
|
|
|
|
|
export const changeFieldManageColumns: BasicColumn[] = [
|
|
|
|
{
|
|
title: '字段名称',
|
|
width: 150,
|
|
dataIndex: 'fieldName',
|
|
},
|
|
{
|
|
title: '是否可变更',
|
|
dataIndex: 'ischange',
|
|
width: 150,
|
|
format: 'dict|whether',
|
|
|
|
},
|
|
{
|
|
title: '是否需要上传附件',
|
|
dataIndex: 'isuploadfile',
|
|
width: 150,
|
|
format: 'dict|whether',
|
|
},
|
|
{
|
|
title: '是否需要审批',
|
|
dataIndex: 'isapproval',
|
|
width: 100,
|
|
format: 'dict|whether',
|
|
},
|
|
|
|
];
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
{
|
|
label: '字段名称',
|
|
field: 'fieldName',
|
|
component: 'Input',
|
|
//colProps: { span: 6 },
|
|
},
|
|
]
|
|
export const changeFieldManageFormSchema: FormSchema[] = [
|
|
{
|
|
label: '字段名称',
|
|
field: 'fieldName',
|
|
component: 'Input',
|
|
dynamicDisabled: true,
|
|
colProps: { span: 12 },
|
|
},
|
|
{
|
|
label: '是否可变更',
|
|
field: 'ischange',
|
|
component: 'DictSelect',
|
|
componentProps: {
|
|
dictType: 'whether',
|
|
},
|
|
required: true,
|
|
colProps: { span: 12 },
|
|
},
|
|
{
|
|
label: '是否需要上传附件',
|
|
field: 'isuploadfile',
|
|
component: 'DictSelect',
|
|
componentProps: {
|
|
dictType: 'whether',
|
|
},
|
|
required: true,
|
|
colProps: { span: 12 },
|
|
},
|
|
{
|
|
label: '是否需要审批',
|
|
field: 'isapproval',
|
|
component: 'DictSelect',
|
|
componentProps: {
|
|
dictType: 'whether',
|
|
},
|
|
required: true,
|
|
colProps: { span: 12 },
|
|
},
|
|
{
|
|
label: 'id',
|
|
field: 'id',
|
|
component: 'Input',
|
|
ifShow: false,
|
|
}
|
|
];
|