no message
This commit is contained in:
parent
e031968ec5
commit
92cc7ba7d9
6 changed files with 32 additions and 7 deletions
|
|
@ -6,8 +6,8 @@ const suspend = `${env.API_URI}/discipline/suspend`;
|
||||||
const appeal = `${env.API_URI}/discipline/complaint_appeal`;
|
const appeal = `${env.API_URI}/discipline/complaint_appeal`;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
directorList: (page: number, pageSize: number, keyword: string) =>
|
directorList: (page: number, pageSize: number, keyword: string,path?:string) =>
|
||||||
`${disciplineMain}/director?page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
|
`${disciplineMain}/director/${path}?page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
|
||||||
director: () => `${disciplineMain}/director`,
|
director: () => `${disciplineMain}/director`,
|
||||||
directorbyId: (id: string) => `${disciplineMain}/director/${id}`,
|
directorbyId: (id: string) => `${disciplineMain}/director/${id}`,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import { useInvestigateDisStore } from "@/modules/11_discipline/store/Investigat
|
||||||
import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore";
|
import { useInvestigateFactStore } from "@/modules/11_discipline/store/InvestigateFactStore";
|
||||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
||||||
|
|
||||||
import type { FormData } from "@/modules/11_discipline/interface/request/investigateFact";
|
import type { FormData } from "@/modules/11_discipline/interface/request/InvestigateFact";
|
||||||
import type { OptionData } from "@/modules/07_insignia/interface/index/Main";
|
import type { OptionData } from "@/modules/07_insignia/interface/index/Main";
|
||||||
|
|
||||||
import CalandarDialog from "@/modules/11_discipline/components/2_InvestigateFacts/CalandarDialog.vue";
|
import CalandarDialog from "@/modules/11_discipline/components/2_InvestigateFacts/CalandarDialog.vue";
|
||||||
|
|
@ -373,7 +373,8 @@ async function getList() {
|
||||||
config.API.directorList(
|
config.API.directorList(
|
||||||
page.value,
|
page.value,
|
||||||
rowsPerPage.value,
|
rowsPerPage.value,
|
||||||
filterKeyword.value
|
filterKeyword.value,
|
||||||
|
mainStore.pathDirector(route.name as string)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -445,7 +445,8 @@ async function fetchDListDirector() {
|
||||||
config.API.directorList(
|
config.API.directorList(
|
||||||
page.value,
|
page.value,
|
||||||
rowsPerPage.value,
|
rowsPerPage.value,
|
||||||
filterKeyword2.value
|
filterKeyword2.value,
|
||||||
|
mainStore.pathDirector(route.name as string)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,11 @@ import { useQuasar } from "quasar";
|
||||||
|
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
import { useRoute } from "vue-router";
|
||||||
import { checkPermission } from "@/utils/permissions";
|
import { checkPermission } from "@/utils/permissions";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useDisciplineDirectorDataStore } from "@/modules/11_discipline/store/DirectorStore";
|
import { useDisciplineDirectorDataStore } from "@/modules/11_discipline/store/DirectorStore";
|
||||||
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
||||||
|
|
||||||
import type { DirectorRowsResponse } from "@/modules/11_discipline/interface/response/director";
|
import type { DirectorRowsResponse } from "@/modules/11_discipline/interface/response/director";
|
||||||
|
|
||||||
|
|
@ -15,6 +17,8 @@ import DialogEdit from "@/modules/11_discipline/components/6_BasicInformation/Di
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const dataStore = useDisciplineDirectorDataStore();
|
const dataStore = useDisciplineDirectorDataStore();
|
||||||
|
const mainStore = useDisciplineMainStore();
|
||||||
|
const route = useRoute();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { messageError, showLoader, hideLoader, dialogRemove, success } = mixin;
|
const { messageError, showLoader, hideLoader, dialogRemove, success } = mixin;
|
||||||
|
|
||||||
|
|
@ -53,7 +57,8 @@ async function getList() {
|
||||||
config.API.directorList(
|
config.API.directorList(
|
||||||
currentPage.value,
|
currentPage.value,
|
||||||
rowsPerPage.value,
|
rowsPerPage.value,
|
||||||
filterKeyword.value
|
filterKeyword.value,
|
||||||
|
mainStore.pathDirector(route.name as string)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
|
||||||
|
|
@ -333,6 +333,24 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* แปลง status เป็น text #กรรมการ
|
||||||
|
* @param val status
|
||||||
|
* @returns text
|
||||||
|
*/
|
||||||
|
function pathDirector(val: string) {
|
||||||
|
switch (val) {
|
||||||
|
case "disciplineInvestigatefactsEdit":
|
||||||
|
case "disciplineInvestigatefactsDetail":
|
||||||
|
return "inves";
|
||||||
|
case "disciplineDisciplinaryEdit":
|
||||||
|
case "disciplineDisciplinaryDetail":
|
||||||
|
return "discip";
|
||||||
|
case "disciplineDirector":
|
||||||
|
return "main";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* แปลง status เป็น text #สอบสวนความผิดทางวินัย
|
* แปลง status เป็น text #สอบสวนความผิดทางวินัย
|
||||||
* @param val status
|
* @param val status
|
||||||
|
|
@ -481,5 +499,6 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
pathInves,
|
pathInves,
|
||||||
pathDiscip,
|
pathDiscip,
|
||||||
pathComplaintsChannal,
|
pathComplaintsChannal,
|
||||||
|
pathDirector
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,6 @@ function closeModal() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearValue() {
|
function clearValue() {
|
||||||
commandType.value = "";
|
|
||||||
commandNo.value = "";
|
commandNo.value = "";
|
||||||
commandYear.value = new Date().getFullYear();
|
commandYear.value = new Date().getFullYear();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue