เพิ่ม interface ให้ any

This commit is contained in:
setthawutttty 2023-09-22 16:10:30 +07:00
parent 7d3c48142c
commit 77ccaec4e3
18 changed files with 259 additions and 73 deletions

View file

@ -3,6 +3,7 @@ import { ref, computed,watchEffect } from "vue";
import { useQuasar } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import type { QTableProps } from "quasar";
import type { UserData } from "@/modules/05_placement/interface/response/AppointMent";
import http from "@/plugins/http";
@ -12,7 +13,7 @@ const { showLoader, success, messageError, dialogConfirm,hideLoader } = mixin;
const $q = useQuasar();
import DialogHeader from "@/modules/05_placement/components/AppointMent/DialogHeader.vue";
const selected = ref([]);
const selected = ref<UserData[]>([]);
const checkSelected = computed(() => {
if (selected.value.length === 0 || props.type === "") {
return true;
@ -98,7 +99,7 @@ const updateInput = (value: any) => {
emit("update:filterKeyword2", value);
};
const updateInputType = (value: any) => {
const updateInputType = (value: string) => {
emit("update:type", value);
};
//
@ -115,7 +116,7 @@ const clickAddlist = () => {
const createdAppoint = async () => {
let pId: string[] = [];
let Type = props.type as string
selected.value.forEach((e: any) => {
selected.value.forEach((e: UserData) => {
pId.push(e.personalId);
});
let data = {
@ -124,10 +125,10 @@ const createdAppoint = async () => {
showLoader();
await http
.put(config.API.apppointmentReport(Type), data)
.then((res: any) => {
.then((res) => {
success($q, "บันทึกสำเร็จ");
})
.catch((e: any) => {
.catch((e) => {
messageError($q, e);
})
.finally(() => {
@ -145,7 +146,7 @@ watchEffect(() => {
});
</script>
<template>
<q-dialog v-model="props.Modal">
<q-dialog v-model="props.Modal">
<q-card style="width: 1200px; max-width: 80vw">
<DialogHeader title="ส่งไปออกคำสั่ง" :close="clickClose" />
<q-separator />