แก้ วินัย

This commit is contained in:
setthawutttty 2025-07-08 10:44:23 +07:00
parent e9b6e34f38
commit 8eecf62c90
5 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,9 @@ async function onSubmit(data: any) {
.post(config.API.complaintAdd(), data)
.then((res) => {
success($q, "บันทึกข้อมูลสำเร็จ");
router.push(`/discipline/complaints/${res.data.result}`);
setTimeout(() => {
router.push(`/discipline/complaints/${res.data.result}`);
}, 1200);
})
.catch((e) => {
messageError($q, e);

View file

@ -381,10 +381,10 @@ watch(props.data, async () => {
onMounted(async () => {
mainStore.rowsAdd = [];
try {
showLoader();
route.name == "disciplineComplaintsAdd" && showLoader();
await Promise.all([getActive(), getListChannel()]);
} finally {
hideLoader();
route.name == "disciplineComplaintsAdd" && hideLoader();
}
});
</script>

View file

@ -1029,7 +1029,7 @@ onMounted(async () => {
class="text-center"
>
<q-btn
v-if="props.row.disciplineRejectDoc.length > 0"
v-if="props.row.disciplineRejectDoc && props.row.disciplineRejectDoc.length > 0"
flat
round
dense

View file

@ -262,7 +262,6 @@ function updateLevel(val: string) {
const listData: any = posTypeMainOp.value.find(
(item: PosType) => item.id == val
);
console.log(listData);
if (employeeClass.value === "officer") {
posLevelMainOp.value = listData ? listData.posLevels : [];
} else {