ส่งเรื่องร้องเรียนไปยังขั้นตอนการสืบสวน
This commit is contained in:
parent
b876c951b0
commit
d47140e0ec
5 changed files with 62 additions and 36 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue