updated competency cal
This commit is contained in:
parent
df49f223e7
commit
7f53399af5
5 changed files with 401 additions and 47 deletions
|
|
@ -11,6 +11,7 @@ import config from "@/app.config";
|
|||
|
||||
const props = defineProps({
|
||||
getData: Function,
|
||||
default: () => console.log("not function"),
|
||||
});
|
||||
const {
|
||||
dialogConfirm,
|
||||
|
|
@ -93,7 +94,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
|
||||
function closeDialog() {
|
||||
modal.value = false;
|
||||
props.getData?.();
|
||||
props.getData?.(type.value);
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
|
|
@ -122,13 +123,14 @@ function onSubmit() {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-dialog v-model="modal" persistent>
|
||||
<q-dialog v-model="modal" persistent style="width: 60vw">
|
||||
<q-card style="width: 1200px; max-width: 80vw">
|
||||
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
||||
<DialogHeader :tittle="'ประเมิน'" :close="closeDialog" />
|
||||
<q-separator />
|
||||
<q-card-section class="q-pt-none">
|
||||
<q-card-section class="q-pt-none" style="min-height: 70vh">
|
||||
<div class="col-12 q-pa-sm">
|
||||
<q-table
|
||||
ref="table"
|
||||
|
|
@ -205,8 +207,8 @@ function onSubmit() {
|
|||
</q-card-section>
|
||||
<q-separator />
|
||||
|
||||
<q-card-actions align="right" class="bg-white text-teal">
|
||||
<q-btn label="บันทึก" color="secondary" type="submit"
|
||||
<q-card-actions align="right" class="q-pa-md">
|
||||
<q-btn unelevated label="บันทึก" color="secondary" type="submit"
|
||||
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||
>
|
||||
</q-card-actions>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue