Browse Source

测试bug修复

master
ljlong_2630 8 months ago
parent
commit
65a07146f0
  1. 8
      src/views/eam/mold/moldAccounts/moldAccounts.data.ts

8
src/views/eam/mold/moldAccounts/moldAccounts.data.ts

@ -83,14 +83,14 @@ export const MoldAccounts = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: '150', width: '150',
}, },
api: () => factoryDeptList, api: () => factoryList,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return factoryDeptList.find((account) => account.id == cellValue)?.name return factoryList.find((account) => account.id == cellValue)?.name
}, },
search: { search: {
show: true, show: true,
component: 'Select', component: 'Select',
api: () => factoryDeptList, api: () => factoryList,
componentProps: { componentProps: {
optionsAlias: { optionsAlias: {
labelField: 'name', labelField: 'name',
@ -101,7 +101,7 @@ export const MoldAccounts = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'Select', component: 'Select',
api: () => factoryDeptList, api: () => factoryList,
componentProps: { componentProps: {
disabled: false, disabled: false,
optionsAlias: { optionsAlias: {

Loading…
Cancel
Save