remove old sys

This commit is contained in:
Warunee Tamkoo 2024-11-21 13:56:50 +07:00
parent 00db6b6619
commit 1f76194664
254 changed files with 88 additions and 98844 deletions

View file

@ -5,7 +5,7 @@ import { useCounterMixin } from "@/stores/mixin";
import { useRoute } from "vue-router";
import axios from "axios";
import HeaderTop from "@/modules/04_registry/components/Information/top.vue";
import HeaderTop from "@/components/information/top.vue";
import http from "@/plugins/http";
import config from "@/app.config";

View file

@ -9,7 +9,6 @@ import http from "@/plugins/http";
import config from "@/app.config";
import type { QTableProps, QForm } from "quasar";
import type { InformationOps } from "@/modules/04_registry/interface/index/Main";
import type {
ResponseTitle,
DataProfile,
@ -18,9 +17,10 @@ import type {
Information,
DataOption,
DataOptioninfo,
docList,
} from "@/modules/04_registry/components/profileType";
import { defaultInformation } from "@/modules/04_registry/components/profileType";
DocList,
InformationOps,
} from "@/modules/05_placement/interface/index/ProfileType";
import { defaultInformation } from "@/modules/05_placement/interface/index/ProfileType";
import CardProfile from "@/components/CardProfile.vue";
@ -54,7 +54,7 @@ const status = ref<string>("");
const myForm = ref<QForm | null>(null);
const edit = ref<boolean>(false); //
const informaData = ref<Information>(defaultInformation); //
const rows = ref<docList[]>([]); //
const rows = ref<DocList[]>([]); //
const columns = ref<QTableProps["columns"]>([
{
name: "no",
@ -204,9 +204,9 @@ async function getData() {
.then(async (res: any) => {
const data = res.data.result;
dataProfile.value = res.data.result as unknown as DataProfile;
let list: docList[] = [];
let list: DocList[] = [];
if (data.docs.length > 0) {
data.docs.map((doc: docList) => {
data.docs.map((doc: DocList) => {
list.push({
pathName: doc.pathName ?? "",
fileName: doc.fileName ?? "",

View file

@ -16,7 +16,7 @@ import type {
OpfillterTypeSt,
} from "@/modules/05_placement/interface/request/Main";
import DialogHeader from "@/modules/04_registry/components/DialogHeader.vue";
import DialogHeader from "@/components/DialogHeader.vue";
import DialogOrder from "@/modules/05_placement/components/probation/DialogOrder.vue";
const $q = useQuasar(); // noti quasar
@ -577,7 +577,6 @@ onMounted(async () => {
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
class="col-xs-12 col-sm-3 col-md-2"
/>

View file

@ -260,7 +260,7 @@ interface DataProfile {
status: string;
positionType?: string;
positionLevel?: string;
rank: string;
rank?: string | null;
}
interface tableType {

View file

@ -0,0 +1,76 @@
interface InformationOps {
prefixOps: DataOption[];
prefixOldOps: DataOption[];
genderOps: DataOption[];
bloodOps: DataOption[];
statusOps: DataOption[];
religionOps: DataOption[];
employeeClassOps: DataOption[];
employeeTypeOps: DataOption[];
}
//ข้อมูลส่วนตัว
interface Information {
cardid: string | null;
prefix: string | null;
age: string | null;
prefixId: string | null;
firstname: string | null;
lastname: string | null;
birthDate: Date | null;
genderId: string | null;
bloodId: string | null;
nationality: string | null;
ethnicity: string | null;
statusId: string | null;
religionId: string | null;
tel: string | null;
employeeType: string | null;
employeeClass: string | null;
profileType: string | null;
rank?: string | null;
}
interface DataOption {
id: string;
name: string;
zipCode?: string;
}
interface DataOptioninfo {
id: string;
name: string;
}
interface DocList {
pathName: string;
fileName: string;
}
const defaultInformation: Information = {
cardid: null,
age: null,
prefix: null,
prefixId: null,
firstname: null,
lastname: null,
birthDate: null,
genderId: null,
bloodId: null,
nationality: null,
ethnicity: null,
statusId: null,
religionId: null,
tel: null,
employeeType: null,
employeeClass: null,
profileType: null,
};
export { defaultInformation };
export type {
Information,
DataOption,
DataOptioninfo,
DocList,
InformationOps,
};

View file

@ -261,6 +261,7 @@ interface DataProfile {
root: string;
rootShortName: string | null;
status: string;
rank?: string | null;
}
export type {