ปรับ ประเมินบุคคล => ข้อมูลส่วนตัว
This commit is contained in:
parent
4d9be43479
commit
864c7c3637
6 changed files with 233 additions and 84 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
/** importComponents*/
|
||||
import HeaderDialog from "@/components/DialogHeader.vue";
|
||||
import TableView from "@/modules/06_evaluate/components/directorandmeet/Table.vue";
|
||||
|
||||
|
|
@ -28,17 +29,19 @@ const props = defineProps({
|
|||
|
||||
const tabMenu = ref<string>("director");
|
||||
|
||||
/** watch modal true fetchData */
|
||||
watch([() => props.modal, () => tabMenu.value], () => {
|
||||
props.modal && fetchData();
|
||||
});
|
||||
|
||||
/** function fetchData */
|
||||
function fetchData() {
|
||||
const functionMain =
|
||||
tabMenu.value === "director"
|
||||
? props.fetchDirector?.()
|
||||
: props.fetchMeeting?.();
|
||||
? props.fetchDirector?.() // fetchDataDirector
|
||||
: props.fetchMeeting?.(); // fetchDataMeeting
|
||||
|
||||
return functionMain;
|
||||
return functionMain; // returnFunction
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -85,10 +88,6 @@ function fetchData() {
|
|||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<!-- <q-card-actions align="right" class="bg-white text-teal">
|
||||
<q-btn flat label="OK" v-close-popup />
|
||||
</q-card-actions> -->
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -8,10 +8,11 @@ const props = defineProps({
|
|||
type: String,
|
||||
},
|
||||
row: {
|
||||
type: Object,
|
||||
type: Array as () => any[],
|
||||
},
|
||||
});
|
||||
|
||||
/** columnsDirector*/
|
||||
const columnsDrictor = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "no",
|
||||
|
|
@ -68,6 +69,8 @@ const columnsDrictor = ref<QTableProps["columns"]>([
|
|||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
|
||||
/** columnsMeeting*/
|
||||
const columnsMeeting = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "no",
|
||||
|
|
@ -107,6 +110,7 @@ const columnsMeeting = ref<QTableProps["columns"]>([
|
|||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
|
||||
const columns = ref<QTableProps["columns"]>([]);
|
||||
|
||||
onMounted(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue