เพิ่ม interface ให้ any
This commit is contained in:
parent
7d3c48142c
commit
77ccaec4e3
18 changed files with 259 additions and 73 deletions
|
|
@ -5,6 +5,7 @@ import { useRoute, useRouter } from "vue-router";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import CurrencyInput from "@/components/CurruncyInput.vue";
|
||||
import type { ResponseTitle } from "@/modules/05_placement/interface/response/Receive";
|
||||
import type { appointmentData,ResponseData } from "@/modules/05_placement/interface/response/AppointMent";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
|
@ -14,7 +15,12 @@ const route = useRoute();
|
|||
const router = useRouter();
|
||||
const mixin = useCounterMixin();
|
||||
|
||||
const appointment = ref<any>([]);
|
||||
const appointment = ref<appointmentData>({
|
||||
citizenId:"",
|
||||
prefixId:"",
|
||||
firstname:"",
|
||||
lastname:""
|
||||
});
|
||||
const myform = ref<any>();
|
||||
const edit = ref<boolean>(false);
|
||||
const profileId = ref<string>("");
|
||||
|
|
@ -52,7 +58,7 @@ const fecthappointmentByid = async () => {
|
|||
showLoader();
|
||||
await http
|
||||
.get(config.API.appointmentByid(paramsId.toString()))
|
||||
.then((res: any) => {
|
||||
.then((res: ResponseData) => {
|
||||
const data = res.data.result;
|
||||
appointment.value = data;
|
||||
profileId.value = data.profileId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue