แก้ไขฟอร์มสืบสวน และผู้ถูกร้องเรียนของวินัย

This commit is contained in:
Warunee Tamkoo 2023-12-01 16:15:33 +07:00
parent ab15f989cc
commit 7af8370b08
8 changed files with 153 additions and 200 deletions

View file

@ -40,12 +40,15 @@ const props = defineProps({
type: Array,
default: [],
},
checkedVal: {
type: Boolean,
default: true,
},
});
const emit = defineEmits(["returnPerson"]);
/** หัวตาราง */
const selected = ref<any>([]);
const inspectionResults = ref<string>("");
const filter = ref<string>("");
@ -57,17 +60,16 @@ const initialPagination = ref<any>({
});
function onclickSend() {
dialogConfirm(
$q,
async () => {
// success($q, `${props.title}`);
emit("returnPerson", selected.value);
props.close?.();
},
`ยืนยันการส่ง${props.title}`,
`ต้องการยืนยันการส่ง${props.title}หรือไม่`
);
dialogConfirm(
$q,
async () => {
// success($q, `${props.title}`);
emit("returnPerson", selected.value);
props.close?.();
},
`ยืนยันการส่ง${props.title}`,
`ต้องการยืนยันการส่ง${props.title}หรือไม่`
);
}
function onClickClose() {
@ -78,7 +80,7 @@ watch([() => props.modal], () => {
inspectionResults.value = props.modal ? "" : "";
selected.value = props.modal ? [] : [];
if (props.modal === true) {
selected.value = props.rows;
selected.value = props.checkedVal ? props.rows : [];
}
});
</script>