แก้ วินัย
This commit is contained in:
parent
e9b6e34f38
commit
8eecf62c90
5 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue