แก้ไข display 1.ตรวจสอบคุณสมบัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-16 10:33:44 +07:00
parent f33ec8fbc5
commit 0b2bb5f252
12 changed files with 277 additions and 289 deletions

View file

@ -75,7 +75,6 @@ function closeModal() {
/**hook lifecycle*/
onMounted(() => {
props.data && fetchCheckSpec(props.data);
setTimeout(() => {
education.value = props.educations
? props.educations

View file

@ -29,9 +29,6 @@ const evaluateId = ref<string>(route.params.id.toString());
/** emit */
const emit = defineEmits(["update:form"]);
const performance = ref<string>("");
const performanceOwner = ref<string>("");
/** form ผู้เซ็นเอกสาร*/
const formCommand = reactive<FormCommand>({
commanderFullname: "",
@ -414,6 +411,7 @@ onMounted(async () => {
downloadFile("6-ผลงานที่จะส่งประเมิน (เอกสารหมายเลข 11)");
});
/** callback function */
watch(
() => store.checkFileupload,
() => {

View file

@ -77,12 +77,8 @@ async function downloadFile(url: string) {
},
})
.then((res) => {
console.log(url);
const blob = new Blob([res.data]);
const objectUrl = URL.createObjectURL(blob);
console.log(objectUrl);
emit("update:file", objectUrl, url);
})
.catch((err) => {

View file

@ -135,6 +135,10 @@ const author = ref<string>("");
const subject = ref<string>("");
const assignedPosition = ref<string>("");
/**
* function เรยกขอมลผลงาน
* @param id ประเม
*/
async function fetcheSigner(id: string) {
showLoader();
await http
@ -151,8 +155,9 @@ async function fetcheSigner(id: string) {
});
}
/** lifecycleHook*/
onMounted(async () => {
await checkDoc();
await checkDoc();
await fetcheSigner(evaluateId.value);
});
</script>

View file

@ -5,12 +5,11 @@ import { useRoute } from "vue-router";
import env from "@/api";
/** importStore*/
import { useEvaluateStore } from "@/modules/06_evaluate/store";
import { useCounterMixin } from "@/stores/mixin";
/** use*/
const mixin = useCounterMixin();
const stroe = useEvaluateStore();
const $q = useQuasar();
const route = useRoute();