แก้ path วินัย

This commit is contained in:
STW_TTTY\stwtt 2024-09-24 10:07:49 +07:00
parent 3fc9258d99
commit fc9f22ba2b
4 changed files with 84 additions and 45 deletions

View file

@ -14,7 +14,7 @@ import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
import type {
FormData,
ArrayFileList,
} from "@/modules/11_discipline/interface/request/complaint";
} from "@/modules/11_discipline/interface/request/Complaint";
import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
@ -264,9 +264,15 @@ function deletePerson(id: string) {
/** ช่องทางการร้องเรียน และฟังก์ชั่นการดึงข้อมูลช่องทางการร้องเรียนมาจาก api*/
function getListChannel() {
http.get(config.API.complaintListOp()).then((res) => {
channelOptions.value = res.data.result.data;
});
http
.get(
config.API.complaintListOp(
mainStore.pathComplaintsChannal(route.name as string)
)
)
.then((res) => {
channelOptions.value = res.data.result.data;
});
}
/** ฟังก์ชั่นเช็คการแก้ไขฟอร์มแล้วไม่ได้กดบันทึก */