impl get position over detail divions
wip: detail division for entry new division position finish v1 divison-position
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// Base
|
||||
import type { Employee } from '~/models/employee'
|
||||
import * as base from './_crud-base'
|
||||
|
||||
const path = '/api/v1/employee'
|
||||
@@ -29,9 +30,9 @@ export async function getValueLabelList(params: any = null): Promise<{ value: st
|
||||
const result = await getList(params)
|
||||
if (result.success) {
|
||||
const resultData = result.body?.data || []
|
||||
data = resultData.map((item: any) => ({
|
||||
value: item.id ? Number(item.id) : item.code,
|
||||
label: item.name,
|
||||
data = resultData.map((item: Employee) => ({
|
||||
value: item.id,
|
||||
label: `${item.person.frontTitle} ${item.person.name} ${item.person.endTitle}`.trim(),
|
||||
}))
|
||||
}
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user