แก้ไข display 1.ตรวจสอบคุณสมบัติ
This commit is contained in:
parent
f33ec8fbc5
commit
0b2bb5f252
12 changed files with 277 additions and 289 deletions
|
|
@ -75,7 +75,6 @@ function closeModal() {
|
|||
/**hook lifecycle*/
|
||||
onMounted(() => {
|
||||
props.data && fetchCheckSpec(props.data);
|
||||
|
||||
setTimeout(() => {
|
||||
education.value = props.educations
|
||||
? props.educations
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
() => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue