แก้ วินัย
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 {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { defineStore } from "pinia";
|
|||
import type { QTableProps } from "quasar";
|
||||
|
||||
import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
|
||||
import type { FaultTypeOption } from "@/modules/11_discipline/interface/request/Result";
|
||||
import type { FaultTypeOption } from "@/modules/11_discipline/interface/request/result";
|
||||
import type { ArrayPersonAdd } from "@/modules/11_discipline/interface/response/investigate";
|
||||
|
||||
export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||
|
|
@ -736,7 +736,6 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
* @param data ข้อมูลรายการบุคคล
|
||||
*/
|
||||
async function fetchData(data: ArrayPersonAdd[], type?: string) {
|
||||
console.log("🚀 ~ fetchData ~ data:", data);
|
||||
const dataList: any = data.map((item: any) => ({
|
||||
profileType: item.profileType
|
||||
? item.profileType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue