diff --git a/src/modules/01_metadataNew/components/position/01ListPosition.vue b/src/modules/01_metadataNew/components/position/01ListPosition.vue index bab365a26..ebb40820c 100644 --- a/src/modules/01_metadataNew/components/position/01ListPosition.vue +++ b/src/modules/01_metadataNew/components/position/01ListPosition.vue @@ -4,45 +4,11 @@ import { useCounterMixin } from "@/stores/mixin"; import http from "@/plugins/http"; import config from "@/app.config"; import { useQuasar } from "quasar"; -import type { DataOption } from "@/modules/01_metadataNew/interface/index/Main"; +import type { DataOption,FormPositionSelect,ListMenu,RowDetailPositions } from "@/modules/01_metadataNew/interface/request/position/index"; import type { QTableProps } from "quasar"; import DialogAddPosition from "@/modules/01_metadataNew/components/position/DialogAddPosition.vue"; -interface FormPositionSelect { - positionId: string; - posTypeId: string; - positionName: string; - positionField: string; - positionType: string; - positionLevel: string; - positionExecutive: string; - positionExecutiveField: string; - positionArea: string; -} -interface ListMenu { - label: string; - icon: string; - type: string; - color: string; -} -interface OptionLevel { - id: string; - posLevelName: string; -} -interface RowDetailPositions { - id: string; - positionId: string; - positionName: string; - positionField: string; - positionType: string; - positionLevel: string; - positionExecutive: string; - positionExecutiveField: string; - positionArea: string; - posTypeId: string; - posLevelId: string; - posExecutiveId: string; -} + const modalAddPosition = ref(false); const levelOpsMain = ref([]); diff --git a/src/modules/01_metadataNew/interface/request/position/index.ts b/src/modules/01_metadataNew/interface/request/position/index.ts index 8c1e1d37f..39a89f3d4 100644 --- a/src/modules/01_metadataNew/interface/request/position/index.ts +++ b/src/modules/01_metadataNew/interface/request/position/index.ts @@ -1,48 +1,86 @@ interface Pagination { - rowsPerPage: number; - } - - interface DataOption { - id: string; - name: string; - } - - interface FormPositionSelect { - positionId: string; - positionName: string; - positionField: string; - positionType: string; - positionLevel: string; - positionExecutive: string; - positionExecutiveField: string; - positionArea: string; - } + rowsPerPage: number; +} - interface FormPositionSelectRef { - positionName: object | null; - positionField: object | null; - positionType: object | null; - positionLevel: object | null; - positionExecutive: object | null; - positionExecutiveField: object | null; - positionArea: object | null; - [key: string]: any; - } +interface DataOption { + id: string; + name: string; +} - interface OptionType { - id: string; - posTypeName: string; - } +interface FormPositionSelect { + positionId: string; + positionName: string; + positionField: string; + positionType: string; + positionLevel: string; + positionExecutive: string; + positionExecutiveField: string; + positionArea: string; +} - interface OptionLevel { - id: string; - posLevelName: string; - } +interface FormPositionSelectRef { + positionName: object | null; + positionField: object | null; + positionType: object | null; + positionLevel: object | null; + positionExecutive: object | null; + positionExecutiveField: object | null; + positionArea: object | null; + [key: string]: any; +} - interface OptionExecutive { - id: string; - posExecutiveName: string; - } - - export type { Pagination, DataOption,FormPositionSelect,FormPositionSelectRef,OptionType,OptionLevel,OptionExecutive }; - \ No newline at end of file +interface OptionType { + id: string; + posTypeName: string; +} + +interface OptionLevel { + id: string; + posLevelName: string; +} + +interface OptionExecutive { + id: string; + posExecutiveName: string; +} + +interface FormPositionSelect { + positionId: string; + posTypeId: string; + positionName: string; + positionField: string; + positionType: string; + positionLevel: string; + positionExecutive: string; + positionExecutiveField: string; + positionArea: string; +} +interface ListMenu { + label: string; + icon: string; + type: string; + color: string; +} + +interface RowDetailPositions { + id: string; + positionId: string; + positionName: string; + positionField: string; + positionType: string; + positionLevel: string; + positionExecutive: string; + positionExecutiveField: string; + positionArea: string; + posTypeId: string; + posLevelId: string; + posExecutiveId: string; +} + + +export type { + Pagination, DataOption, FormPositionSelect, FormPositionSelectRef, OptionType, OptionLevel, + OptionExecutive, + ListMenu, + RowDetailPositions +};