แก้ไข display 1.ตรวจสอบคุณสมบัติ
This commit is contained in:
parent
f33ec8fbc5
commit
0b2bb5f252
12 changed files with 277 additions and 289 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch, computed } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { useQuasar } from "quasar";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
|
|
@ -10,8 +11,9 @@ import type { QTableProps } from "quasar";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
const route = useRoute();
|
||||
const $q = useQuasar();
|
||||
const mixins = useCounterMixin();
|
||||
const { showLoader, hideLoader, date2Thai } = mixins;
|
||||
const { showLoader, hideLoader, date2Thai, messageError } = mixins;
|
||||
|
||||
// const evaluateId = ref<string>(route.params.id.toString());
|
||||
|
||||
|
|
@ -75,6 +77,10 @@ const columns = ref<QTableProps["columns"]>([
|
|||
]);
|
||||
const row = ref<any>();
|
||||
|
||||
/**
|
||||
* function เรียกข้อมูลประวัติการประเมิน
|
||||
* @param id การประเมิน
|
||||
*/
|
||||
async function fetchListHistory(id: string) {
|
||||
const thaiOptions: Intl.DateTimeFormatOptions = {
|
||||
hour: "2-digit",
|
||||
|
|
@ -95,14 +101,16 @@ async function fetchListHistory(id: string) {
|
|||
}));
|
||||
|
||||
row.value = list;
|
||||
console.log(row.value);
|
||||
})
|
||||
.catch((err) => {})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
/** callbaclFunction เรียกข้อมูลประวัติการประเมิน ทำงานเมื่อ props.modal === true*/
|
||||
watch(
|
||||
() => props.modal,
|
||||
() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue