fixing remove import file
This commit is contained in:
parent
e541bbb6d2
commit
ed683d0bb3
24 changed files with 201 additions and 831 deletions
|
|
@ -10,9 +10,9 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
|
||||
import type { RequestPeriodDisable } from "@/modules/03_recruiting/interface/request/Period";
|
||||
import type {
|
||||
DataOption,
|
||||
DataOption2,
|
||||
UploadType,
|
||||
} from "@/modules/02_organizational/interface/index/Main";
|
||||
} from "@/modules/02_organization/interface/index/Main";
|
||||
|
||||
const $q = useQuasar(); // show dialog
|
||||
const mixin = useCounterMixin();
|
||||
|
|
@ -40,10 +40,10 @@ const datePayment = ref<[Date, Date] | null>(null); //วันที่จ่
|
|||
const dateAnnouncement = ref<[Date, Date] | null>(null); //วันที่ประกาศ
|
||||
const dateExam = ref<Date | null>(null); //วันที่สอบ
|
||||
const dateAnnounce = ref<Date | null>(null); //วันที่ประกาศผล
|
||||
const positionPathOptions = ref<DataOption[]>([]);
|
||||
const organizationShortName = ref<DataOption>({ id: "", name: "" });
|
||||
const organizationName = ref<DataOption>({ id: "", name: "" });
|
||||
const organizationNameOptions = ref<DataOption[]>([]);
|
||||
const positionPathOptions = ref<DataOption2[]>([]);
|
||||
const organizationShortName = ref<DataOption2>({ id: "", name: "" });
|
||||
const organizationName = ref<DataOption2>({ id: "", name: "" });
|
||||
const organizationNameOptions = ref<DataOption2[]>([]);
|
||||
|
||||
const fileDocDataUpload = ref<File[]>([]);
|
||||
const fileDocs = ref<UploadType[]>([]);
|
||||
|
|
@ -337,11 +337,11 @@ function dateThaiRange(val: [Date, Date] | null) {
|
|||
}
|
||||
}
|
||||
|
||||
watch(organizationShortName, (count: DataOption, prevCount: DataOption) => {
|
||||
watch(organizationShortName, (count: DataOption2, prevCount: DataOption2) => {
|
||||
organizationNameOptions.value = [];
|
||||
});
|
||||
|
||||
watch(organizationName, (count: DataOption, prevCount: DataOption) => {
|
||||
watch(organizationName, (count: DataOption2, prevCount: DataOption2) => {
|
||||
positionPathOptions.value = [];
|
||||
});
|
||||
|
||||
|
|
@ -386,7 +386,7 @@ onMounted(async () => {
|
|||
dense
|
||||
lazy-rules
|
||||
:rules="[
|
||||
(val) =>
|
||||
(val:string) =>
|
||||
!!val || `${'กรุณากรอกชื่อรอบคัดเลือกคนพิการ/ชื่อประกาศ'}`,
|
||||
]"
|
||||
></q-input>
|
||||
|
|
@ -446,7 +446,7 @@ onMounted(async () => {
|
|||
lazy-rules
|
||||
input-class="text-right"
|
||||
:rules="[
|
||||
(val) => val >= 0 || `${'กรุณากรอกค่าธรรมเนียมให้ถูกต้อง'}`,
|
||||
(val:any) => val >= 0 || `${'กรุณากรอกค่าธรรมเนียมให้ถูกต้อง'}`,
|
||||
]"
|
||||
></q-input>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ import type {
|
|||
ResponsePayment,
|
||||
} from "@/modules/03_recruiting/interface/response/Period";
|
||||
import type {
|
||||
DataOption,
|
||||
DataOption2,
|
||||
UploadType,
|
||||
} from "@/modules/02_organizational/interface/index/Main";
|
||||
} from "@/modules/02_organization/interface/index/Main";
|
||||
|
||||
import ProfileTable from "@/modules/03_recruiting/components/Table1.vue";
|
||||
|
||||
|
|
@ -60,12 +60,12 @@ const dateAnnounce = ref<Date | null>(null); //วันประกาศผล
|
|||
const dateExam = ref<Date | null>(null); //วันที่สอบ
|
||||
const myFormPayment = ref<any>();
|
||||
const myFormPosition = ref<any>();
|
||||
const positionPathOptions = ref<DataOption[]>([]);
|
||||
const positionPathFilters = ref<DataOption[]>([]);
|
||||
const positionLevelOptions = ref<DataOption[]>([]);
|
||||
const positionLevelFilters = ref<DataOption[]>([]);
|
||||
const organizationShortName = ref<DataOption>();
|
||||
const organizationName = ref<DataOption>();
|
||||
const positionPathOptions = ref<DataOption2[]>([]);
|
||||
const positionPathFilters = ref<DataOption2[]>([]);
|
||||
const positionLevelOptions = ref<DataOption2[]>([]);
|
||||
const positionLevelFilters = ref<DataOption2[]>([]);
|
||||
const organizationShortName = ref<DataOption2>();
|
||||
const organizationName = ref<DataOption2>();
|
||||
const examTypeOptions = [
|
||||
{ name: "ทั่วไป", id: "normol" },
|
||||
{ name: "แพทย์", id: "docter" },
|
||||
|
|
@ -302,8 +302,8 @@ async function fetchPositionPath() {
|
|||
.get(config.API.positionPath)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
let option: DataOption[] = [];
|
||||
data.map((r: DataOption) => {
|
||||
let option: DataOption2[] = [];
|
||||
data.map((r: DataOption2) => {
|
||||
option.push({
|
||||
id: r.id.toString(),
|
||||
name: r.name.toString(),
|
||||
|
|
@ -329,8 +329,8 @@ async function fetchPositionLevel() {
|
|||
.get(config.API.positionLevel)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
let option: DataOption[] = [];
|
||||
data.map((r: DataOption) => {
|
||||
let option: DataOption2[] = [];
|
||||
data.map((r: DataOption2) => {
|
||||
option.push({
|
||||
id: r.id.toString(),
|
||||
name: r.name.toString(),
|
||||
|
|
@ -338,10 +338,10 @@ async function fetchPositionLevel() {
|
|||
});
|
||||
});
|
||||
positionLevelOptions.value = option.filter(
|
||||
(v: DataOption) => v.level === 0
|
||||
(v: DataOption2) => v.level === 0
|
||||
);
|
||||
positionLevelFilters.value = option.filter(
|
||||
(v: DataOption) => v.level === 0
|
||||
(v: DataOption2) => v.level === 0
|
||||
);
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -363,14 +363,14 @@ function filterSelector(val: any, update: Function, refData: string) {
|
|||
case "positionLevel":
|
||||
update(() => {
|
||||
positionLevelOptions.value = positionLevelFilters.value.filter(
|
||||
(v: DataOption) => v.name.indexOf(val) > -1
|
||||
(v: DataOption2) => v.name.indexOf(val) > -1
|
||||
);
|
||||
});
|
||||
break;
|
||||
case "position":
|
||||
update(() => {
|
||||
positionPathOptions.value = positionPathFilters.value.filter(
|
||||
(v: DataOption) => v.name.indexOf(val) > -1
|
||||
(v: DataOption2) => v.name.indexOf(val) > -1
|
||||
);
|
||||
});
|
||||
break;
|
||||
|
|
@ -775,7 +775,7 @@ onMounted(async () => {
|
|||
:readonly="checkRoutePermisson"
|
||||
lazy-rules
|
||||
:rules="[
|
||||
(val) => !!val || `${'กรุณากรอกชื่อรอบคัดเลือก/ชื่อประกาศ'}`,
|
||||
(val:string) => !!val || `${'กรุณากรอกชื่อรอบคัดเลือก/ชื่อประกาศ'}`,
|
||||
]"
|
||||
></q-input>
|
||||
</div>
|
||||
|
|
@ -1282,7 +1282,7 @@ onMounted(async () => {
|
|||
lazy-rules
|
||||
mask="###-#-#####-#"
|
||||
:rules="[
|
||||
(val) =>
|
||||
(val:any) =>
|
||||
(val && val.length > 0) ||
|
||||
'กรุณากรอกข้อมูลให้ครบ',
|
||||
]"
|
||||
|
|
@ -1298,7 +1298,7 @@ onMounted(async () => {
|
|||
dense
|
||||
lazy-rules
|
||||
:rules="[
|
||||
(val) =>
|
||||
(val:any) =>
|
||||
(val && val.length > 0) ||
|
||||
'กรุณากรอกข้อมูลให้ครบ',
|
||||
]"
|
||||
|
|
@ -1314,7 +1314,7 @@ onMounted(async () => {
|
|||
dense
|
||||
lazy-rules
|
||||
:rules="[
|
||||
(val) =>
|
||||
(val:any) =>
|
||||
(val && val.length > 0) ||
|
||||
'กรุณากรอกข้อมูลให้ครบ',
|
||||
]"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { checkPermission } from "@/utils/permissions";
|
|||
import { useRouter, useRoute } from "vue-router";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import type { DataNumObject } from "@/modules/01_metadata/interface/request/Calendar";
|
||||
import type { DataNumObject } from "@/modules/03_recruiting/interface/request/Calendar";
|
||||
|
||||
import TableCandidate from "@/modules/03_recruiting/components/TableCandidate.vue";
|
||||
import ExamFinished from "@/modules/03_recruiting/components/ExamFinished.vue";
|
||||
|
|
@ -234,7 +234,7 @@ async function changePage(
|
|||
|
||||
/** ดึงข้อมูล */
|
||||
async function fetchData(loading: boolean = true) {
|
||||
loading === true ?? showLoader();
|
||||
loading ?? showLoader();
|
||||
await http
|
||||
.get(
|
||||
config.API.candidateOfPeriodExam(status.value, examId.value) +
|
||||
|
|
@ -274,7 +274,7 @@ async function fetchData(loading: boolean = true) {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loading === true ?? hideLoader();
|
||||
loading ?? hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue