|
@ -59,9 +59,18 @@ console.log('roleList',roleList); |
|
|
])) |
|
|
])) |
|
|
export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '维修工角色编号', |
|
|
label: '维修工角色', |
|
|
field: 'workerRoleId', |
|
|
field: 'workerRoleId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
|
|
return roleList.find((item) => item.id == cellValue)?.name |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '维修工角色', |
|
|
|
|
|
field: 'workerRoleName', |
|
|
|
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -80,13 +89,22 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工程师角色', |
|
|
|
|
|
field: 'engineerRoleId', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
return roleList.find((item) => item.id == cellValue)?.name |
|
|
return roleList.find((account) => account.id == cellValue)?.name |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '工程师角色编号', |
|
|
label: '工程师角色', |
|
|
field: 'engineerRoleId', |
|
|
field: 'engineerRoleName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -106,9 +124,9 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
isDetail: false, |
|
|
return roleList.find((account) => account.id == cellValue)?.name |
|
|
isTable: false, |
|
|
}, |
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '班组类型', |
|
|
label: '班组类型', |
|
@ -127,10 +145,11 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '所属厂区编号', |
|
|
label: '所属厂区', |
|
|
field: 'factoryAreaNumber', |
|
|
field: 'factoryAreaNumber', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
search: { |
|
|
search: { |
|
|
show: true, |
|
|
show: true, |
|
|
component: 'Select', |
|
|
component: 'Select', |
|
@ -143,6 +162,16 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
filterable: true, |
|
|
filterable: true, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
//给列表用的
|
|
|
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
|
|
return FactoryAreaNoPage.find((account) => account.id == cellValue)?.name |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '所属厂区', |
|
|
|
|
|
field: 'factoryAreaName', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -161,10 +190,9 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//给列表用的
|
|
|
isDetail: false, |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
isTable: false, |
|
|
return FactoryAreaNoPage.find((account) => account.id == cellValue)?.name |
|
|
isTableForm: false, |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|