จัดโค้ด รายการการสอบสวนความผิดทางวินัย

This commit is contained in:
setthawutttty 2023-11-10 15:32:11 +07:00
parent f4ee2b89fc
commit c216c29abe
7 changed files with 167 additions and 132 deletions

View file

@ -14,7 +14,7 @@ const selected = ref<directorType[]>([]);
const mixin = useCounterMixin();
const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin;
//
/** ค้นหาคอลัม */
const visibleColumns2 = ref<string[]>([
"no",
"nameDirector",
@ -24,6 +24,8 @@ const visibleColumns2 = ref<string[]>([
"telephone",
"role"
]);
/**ข้อมูลหัว ตาราง*/
const columns2 = ref<QTableProps["columns"]>([
{
name: "no",
@ -104,6 +106,7 @@ const columns2 = ref<QTableProps["columns"]>([
},
]);
/** รับ props มาจากหน้าหลัก */
const props = defineProps({
Modal: Boolean,
clickClose: Function,
@ -119,8 +122,8 @@ const checkSelected = computed(() => {
console.log(checkSelected.value);
});
//popup
const saveDirector = () => {
/** popup ยืนยันส่งัว */
function saveDirector(){
dialogConfirm(
$q,
() => DirectorSave(),
@ -128,17 +131,22 @@ const saveDirector = () => {
"ต้องการยืนยันเพิ่มรายชื่อกรรมการ?"
);
};
//
const DirectorSave = async () => {};
/** ส่งไปออกคำสั่ง */
async function DirectorSave(){};
const emit = defineEmits(["update:filterKeyword2", "update:selected"]);
const updateInput = (value: any) => {
function updateInput(value: any){
emit("update:filterKeyword2", value);
};
//
const Reset = () => {
/**รีเซ็ตค่าในช่องค้นหา */
function Reset(){
emit("update:filterKeyword2", "");
};
/** เช็คค่า props.Modal === true */
watchEffect(() => {
if (props.Modal === true) {
selected.value = [];
@ -172,6 +180,7 @@ watchEffect(() => {
/>
</template>
</q-input>
<d-table
:columns="columns2"
:rows="rows2"
@ -181,15 +190,6 @@ watchEffect(() => {
selection="multiple"
v-model:selected="selected"
>
<template v-slot:header-selection="scope">
<!-- <q-checkbox
keep-color
color="primary"
dense
v-model="scope.selected"
/> -->
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td>