แก้ไขฟอร์มสืบสวน และผู้ถูกร้องเรียนของวินัย
This commit is contained in:
parent
ab15f989cc
commit
7af8370b08
8 changed files with 153 additions and 200 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue