ส่งเรื่องร้องเรียนไปยังขั้นตอนการสืบสวน

This commit is contained in:
setthawutttty 2023-11-24 10:47:44 +07:00
parent b876c951b0
commit d47140e0ec
5 changed files with 62 additions and 36 deletions

View file

@ -33,6 +33,9 @@ const props = defineProps({
},
});
const emit = defineEmits([
"returnPerson"
])
/** หัวตาราง */
const columns = ref<QTableProps["columns"]>([
{
@ -132,23 +135,23 @@ const initialPagination = ref<any>({
function onclickSend() {
// inputRef.value.validate();
dialogConfirm($q, () => props.sentApprove());
// dialogConfirm($q, () => props.sentApprove());
// if (selected.value.length > 0) {
// dialogConfirm(
// $q,
// async () => {
// success($q, `${props.title}`);
// console.log(selected.value);
// props.close?.();
// },
// `${props.title}`,
// `${props.title}`
// );
// } else {
// dialogMessageNotify($q, "");
// }
if (selected.value.length > 0) {
dialogConfirm(
$q,
async () => {
success($q, `ส่งข้อมูล${props.title}สำเร็จ`);
console.log(selected.value);
emit('returnPerson',selected.value)
props.close?.();
},
`ยืนยันการส่ง${props.title}`,
`ต้องการยืนยันการส่ง${props.title}หรือไม่`
);
} else {
dialogMessageNotify($q, "กรุณาเลือกรายชื่อ");
}
}
function onClickClose() {
@ -158,8 +161,10 @@ function onClickClose() {
watch([() => props.modal], () => {
inspectionResults.value = props.modal ? "" : "";
selected.value = props.modal ? [] : [];
selected.value.push(complainstStore.rowsAdd);
if(props.modal === true){
selected.value = complainstStore.rowsAdd;
}
});
</script>
<template>
@ -217,7 +222,7 @@ watch([() => props.modal], () => {
:columns="columns"
:rows="complainstStore.rowsAdd"
:filter="filter"
row-key="id"
row-key="personId"
flat
bordered
:paging="false"