แก้ type InvestigateDisStore.ts
This commit is contained in:
parent
5d361bcbfc
commit
1bd658abb5
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
{ id: "6", name: "ไล่ออก" },
|
||||
]);
|
||||
async function fecthList(data: investigateDisDataRowType[]) {
|
||||
let datalist: any[] = data.map((e: any) => ({
|
||||
let datalist: investigateDisDataRowType[] = data.map((e: any) => ({
|
||||
subject: e.subject,
|
||||
interrogated: e.interrogated,
|
||||
fault: convertFault(e.fault),
|
||||
|
|
@ -44,7 +44,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
rows.value = datalist;
|
||||
}
|
||||
async function fecthDirector(data: directorType[]) {
|
||||
let datalistDirector: any[] = data.map((e: any) => ({
|
||||
let datalistDirector: directorType[] = data.map((e: directorType) => ({
|
||||
nameDirector: e.nameDirector,
|
||||
position: e.position,
|
||||
duty: e.duty,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue