Merge branch 'develop' into devTee
This commit is contained in:
commit
37f0ecbc1e
6 changed files with 199 additions and 225 deletions
|
|
@ -137,67 +137,52 @@ const API = {
|
|||
...file,
|
||||
};
|
||||
|
||||
const path = "https://bma-ehr-manual.frappet.synology.me";
|
||||
const path =
|
||||
import.meta.env.VITE_MANUAL_URL ??
|
||||
"https://bma-ehr-manual.frappet.synology.me";
|
||||
|
||||
const generatePopupPath = (routeName: any) => {
|
||||
if (routeName.includes("metadata")) {
|
||||
return `${path}/manual/chapter-2-admin-metadata`;
|
||||
}
|
||||
// if (routeName.includes("KPI")) {
|
||||
// return `${path}/manual/chapter-3-admin-evaluate`;
|
||||
// }
|
||||
if (routeName.includes("compete")) {
|
||||
return `${path}/manual/chapter-9-admin-recruit`;
|
||||
}
|
||||
if (routeName.includes("registryNew")) {
|
||||
} else if (routeName.includes("registryNew")) {
|
||||
return `${path}/manual/chapter-6-admin-registry`;
|
||||
}
|
||||
if (routeName.includes("registry-employee")) {
|
||||
} else if (routeName.includes("registry-employee")) {
|
||||
return `${path}/manual/chapter-7-admin-registry-employee`;
|
||||
}
|
||||
if (routeName.includes("qualify")) {
|
||||
return `${path}/manual/chapter-9-admin-recruit`;
|
||||
}
|
||||
if (routeName.includes("insignia")) {
|
||||
} else if (routeName.includes("insignia")) {
|
||||
return `${path}/manual/chapter-13-admin-insignia`;
|
||||
}
|
||||
if (routeName.includes("acting")) {
|
||||
return `${path}/manual/chapter-5-admin-acting`;
|
||||
}
|
||||
if (routeName.includes("positionEmployee")) {
|
||||
return `${path}/manual/chapter-6-admin-position-employee`;
|
||||
}
|
||||
if (routeName.includes("resign")) {
|
||||
} else if (routeName.includes("acting")) {
|
||||
return `${path}/manual/chapter-4-admin-acting`;
|
||||
} else if (routeName.includes("positionEmployee")) {
|
||||
return `${path}/manual/chapter-5-admin-position-employee`;
|
||||
} else if (routeName.includes("resign")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("retirement")) {
|
||||
} else if (routeName.includes("retirement")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("deceased")) {
|
||||
} else if (routeName.includes("deceased")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("exit-Interview")) {
|
||||
} else if (routeName.includes("exit-Interview")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("expulsion")) {
|
||||
} else if (routeName.includes("expulsion")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("discharged")) {
|
||||
} else if (routeName.includes("discharged")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("discipline")) {
|
||||
} else if (routeName.includes("discipline")) {
|
||||
return `${path}/manual/chapter-15-admin-discipline`;
|
||||
}
|
||||
if (routeName.includes("appeal")) {
|
||||
} else if (routeName.includes("appeal")) {
|
||||
return `${path}/manual/chapter-15-admin-discipline`;
|
||||
}
|
||||
if (routeName.includes("evaluate")) {
|
||||
return `${path}/manual/chapter-16-admin-KPI`;
|
||||
}
|
||||
if (routeName.includes("salary")) {
|
||||
} else if (routeName.includes("KPI")) {
|
||||
return `${path}/manual/chapter-18-admin-perf-evaluation`;
|
||||
} else if (routeName.includes("salary")) {
|
||||
return `${path}/manual/chapter-17-admin-salary`;
|
||||
}
|
||||
if (routeName.includes("development")) {
|
||||
} else if (
|
||||
routeName.includes("qualify") ||
|
||||
routeName.includes("recruiting") ||
|
||||
routeName.includes("compete") ||
|
||||
routeName.includes("disable") ||
|
||||
routeName.includes("manage")
|
||||
) {
|
||||
return `${path}/manual/chapter-9-admin-recruit`;
|
||||
} else if (routeName.includes("development")) {
|
||||
return `${path}/manual/chapter-19-admin-development`;
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
|
|
@ -226,12 +211,7 @@ const manualConfig = {
|
|||
order: `${path}/manual/chapter-8-admin-order`,
|
||||
OrderDetail: `${path}/manual/chapter-8-admin-order`,
|
||||
OrderAdd: `${path}/manual/chapter-8-admin-order`,
|
||||
disableperiod: `${path}/manual/chapter-9-admin-recruit`,
|
||||
manage: `${path}/manual/chapter-9-admin-recruit`,
|
||||
editorweb: `${path}/manual/chapter-9-admin-recruit`,
|
||||
manageDetaill: `${path}/manual/chapter-9-admin-recruit`,
|
||||
ExamForm: `${path}/manual/chapter-9-admin-recruit`,
|
||||
Payment: `${path}/manual/chapter-9-admin-recruit`,
|
||||
placement: `${path}/manual/chapter-10-admin-appointment`,
|
||||
transfer: `${path}/manual/chapter-10-admin-appointment`,
|
||||
receive: `${path}/manual/chapter-10-admin-appointment`,
|
||||
|
|
@ -241,6 +221,8 @@ const manualConfig = {
|
|||
"appoint-employee": `${path}/manual/chapter-10-admin-appointment`,
|
||||
other: `${path}/manual/chapter-10-admin-appointment`,
|
||||
probation: `${path}/manual/chapter-11-admin-probation`,
|
||||
probationDetail: `${path}/manual/chapter-11-admin-probation`,
|
||||
probationForm: `${path}/manual/chapter-11-admin-probation`,
|
||||
retirement: `${path}/manual/chapter-12-admin-retirement`,
|
||||
resign: `${path}/manual/chapter-12-admin-retirement`,
|
||||
ExitInterviewEditQuestion: `${path}/manual/chapter-12-admin-retirement`,
|
||||
|
|
@ -256,11 +238,13 @@ const manualConfig = {
|
|||
leaveRejectDetail: `${path}/manual/chapter-14-admin-leave`,
|
||||
leaveReport: `${path}/manual/chapter-14-admin-leave`,
|
||||
appealComplain: `${path}/manual/chapter-15-admin-discipline`,
|
||||
KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
"KPIList": `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
// KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
// "KPIList": `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
// KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
// KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
// KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
evaluate: `${path}/manual/chapter-16-admin-KPI`,
|
||||
evaluateDetail: `${path}/manual/chapter-16-admin-KPI`,
|
||||
};
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -258,8 +258,8 @@ onMounted(() => {
|
|||
"
|
||||
flat
|
||||
dense
|
||||
color="secondary"
|
||||
icon="mdi-dots-horizontal-circle-outline"
|
||||
color="grey-13"
|
||||
icon="mdi-dots-vertical"
|
||||
round
|
||||
>
|
||||
<q-menu>
|
||||
|
|
|
|||
|
|
@ -428,160 +428,11 @@ watch(
|
|||
:active="nodeId == prop.node.orgTreeId"
|
||||
@click.stop="updateSelected(prop.node)"
|
||||
active-class="my-list-link text-primary text-weight-medium"
|
||||
class="row col-12 text-dark q-py-xs q-pl-sm rounded-borders my-list"
|
||||
class="row col-12 text-dark items-center q-py-xs q-pl-sm rounded-borders my-list"
|
||||
>
|
||||
<q-item-section>
|
||||
<div>
|
||||
<q-item-label lines="1" class="text-weight-medium"
|
||||
>{{ prop.node.orgTreeName }}
|
||||
<q-btn
|
||||
v-if="store.typeOrganizational === 'draft'"
|
||||
flat
|
||||
dense
|
||||
color="secondary"
|
||||
icon="mdi-dots-horizontal-circle-outline"
|
||||
round
|
||||
dene
|
||||
class="q-ml-xs"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
dense
|
||||
v-for="(item, index) in prop.node.orgLevel === 4
|
||||
? listAdd.slice(1, 6)
|
||||
: listAdd"
|
||||
:key="index"
|
||||
style="min-width: 100px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
item.type === 'EDIT'
|
||||
? onClickEdit(prop.node)
|
||||
: item.type === 'ADD'
|
||||
? onClickAgency(
|
||||
prop.node.orgLevel + 1,
|
||||
prop.node
|
||||
)
|
||||
: item.type === 'DETAIL'
|
||||
? onClickDetail(
|
||||
prop.node.orgTreeId,
|
||||
prop.node.orgLevel
|
||||
)
|
||||
: item.type === 'DEL'
|
||||
? onClickDel(
|
||||
prop.node.orgLevel,
|
||||
prop.node.orgTreeId,
|
||||
prop.node.orgRootId
|
||||
)
|
||||
: item.type === 'SORT'
|
||||
? onClickSort(
|
||||
prop.node.orgRootId,
|
||||
prop.node.orgLevel
|
||||
)
|
||||
: item.type === 'HISTORY'
|
||||
? onClickHistory(
|
||||
prop.node.orgLevel,
|
||||
prop.node.orgTreeId
|
||||
)
|
||||
: null
|
||||
"
|
||||
>
|
||||
<q-item-section avatar style="min-width: 20px">
|
||||
<div class="row items-center">
|
||||
<q-icon
|
||||
size="xs"
|
||||
:color="item.color"
|
||||
:name="item.icon"
|
||||
/>
|
||||
<div v-if="prop.node.orgLevel === 0">
|
||||
<div
|
||||
class="q-pl-md"
|
||||
v-if="
|
||||
item.type === 'EDIT' ||
|
||||
item.type === 'DEL' ||
|
||||
item.type === 'HISTORY' ||
|
||||
item.type === 'SORT'
|
||||
"
|
||||
>
|
||||
{{ item.label }}หน่วยงาน
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else-if="item.type === 'ADD'"
|
||||
class="q-pl-md"
|
||||
>
|
||||
{{ item.label }}ส่วนราชการ
|
||||
</div>
|
||||
<div v-else class="q-pl-md">
|
||||
{{ item.label }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div
|
||||
class="q-pl-md"
|
||||
v-if="
|
||||
item.type === 'ADD' ||
|
||||
item.type === 'EDIT' ||
|
||||
item.type === 'DEL' ||
|
||||
item.type === 'HISTORY' ||
|
||||
item.type === 'SORT'
|
||||
"
|
||||
>
|
||||
{{ item.label }}ส่วนราชการ
|
||||
</div>
|
||||
<div v-else class="q-pl-md">
|
||||
{{ item.label }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
|
||||
<q-btn
|
||||
v-else
|
||||
flat
|
||||
dense
|
||||
color="secondary"
|
||||
icon="mdi-dots-horizontal-circle-outline"
|
||||
round
|
||||
class="q-pa-none q-ml-xs"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
dense
|
||||
v-for="(item, index) in listAdd.slice(5, 6)"
|
||||
:key="index"
|
||||
style="min-width: 100px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
onClickDetail(
|
||||
prop.node.orgTreeId,
|
||||
prop.node.orgLevel
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section avatar style="min-width: 20px">
|
||||
<q-icon
|
||||
size="17px"
|
||||
:color="item.color"
|
||||
:name="item.icon"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>{{ item.label }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
</q-item-label>
|
||||
<div>
|
||||
<div class="text-weight-medium">
|
||||
{{ prop.node.orgTreeName }}
|
||||
</div>
|
||||
<div class="text-weight-light text-grey-8">
|
||||
{{ prop.node.orgCode == null ? null : prop.node.orgCode }}
|
||||
|
|
@ -591,7 +442,144 @@ watch(
|
|||
: prop.node.orgTreeShortName
|
||||
}}
|
||||
</div>
|
||||
</q-item-section>
|
||||
</div>
|
||||
|
||||
<q-btn
|
||||
v-if="store.typeOrganizational === 'draft'"
|
||||
flat
|
||||
dense
|
||||
color="grey-13"
|
||||
icon="mdi-dots-vertical"
|
||||
round
|
||||
class="q-ml-xs"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
dense
|
||||
v-for="(item, index) in prop.node.orgLevel === 4
|
||||
? listAdd.slice(1, 6)
|
||||
: listAdd"
|
||||
:key="index"
|
||||
style="min-width: 100px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
item.type === 'EDIT'
|
||||
? onClickEdit(prop.node)
|
||||
: item.type === 'ADD'
|
||||
? onClickAgency(prop.node.orgLevel + 1, prop.node)
|
||||
: item.type === 'DETAIL'
|
||||
? onClickDetail(
|
||||
prop.node.orgTreeId,
|
||||
prop.node.orgLevel
|
||||
)
|
||||
: item.type === 'DEL'
|
||||
? onClickDel(
|
||||
prop.node.orgLevel,
|
||||
prop.node.orgTreeId,
|
||||
prop.node.orgRootId
|
||||
)
|
||||
: item.type === 'SORT'
|
||||
? onClickSort(prop.node.orgRootId, prop.node.orgLevel)
|
||||
: item.type === 'HISTORY'
|
||||
? onClickHistory(
|
||||
prop.node.orgLevel,
|
||||
prop.node.orgTreeId
|
||||
)
|
||||
: null
|
||||
"
|
||||
>
|
||||
<q-item-section avatar style="min-width: 20px">
|
||||
<div class="row items-center">
|
||||
<q-icon
|
||||
size="xs"
|
||||
:color="item.color"
|
||||
:name="item.icon"
|
||||
/>
|
||||
<div v-if="prop.node.orgLevel === 0">
|
||||
<div
|
||||
class="q-pl-md"
|
||||
v-if="
|
||||
item.type === 'EDIT' ||
|
||||
item.type === 'DEL' ||
|
||||
item.type === 'HISTORY' ||
|
||||
item.type === 'SORT'
|
||||
"
|
||||
>
|
||||
{{ item.label }}หน่วยงาน
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else-if="item.type === 'ADD'"
|
||||
class="q-pl-md"
|
||||
>
|
||||
{{ item.label }}ส่วนราชการ
|
||||
</div>
|
||||
<div v-else class="q-pl-md">
|
||||
{{ item.label }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<div
|
||||
class="q-pl-md"
|
||||
v-if="
|
||||
item.type === 'ADD' ||
|
||||
item.type === 'EDIT' ||
|
||||
item.type === 'DEL' ||
|
||||
item.type === 'HISTORY' ||
|
||||
item.type === 'SORT'
|
||||
"
|
||||
>
|
||||
{{ item.label }}ส่วนราชการ
|
||||
</div>
|
||||
<div v-else class="q-pl-md">
|
||||
{{ item.label }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
|
||||
<q-btn
|
||||
v-else
|
||||
flat
|
||||
dense
|
||||
color="grey-13"
|
||||
icon="mdi-dots-vertical"
|
||||
round
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
dense
|
||||
v-for="(item, index) in listAdd.slice(5, 6)"
|
||||
:key="index"
|
||||
style="min-width: 100px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
onClickDetail(prop.node.orgTreeId, prop.node.orgLevel)
|
||||
"
|
||||
>
|
||||
<q-item-section avatar style="min-width: 20px">
|
||||
<q-icon
|
||||
size="xs"
|
||||
:color="item.color"
|
||||
:name="item.icon"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>{{ item.label }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
</q-item>
|
||||
</template>
|
||||
</q-tree>
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ function appointEmployeePost() {
|
|||
await http
|
||||
.post(config.API.appointEmployee(), formData)
|
||||
.then(async () => {
|
||||
await router.push("/appoint-employee");
|
||||
await router.push("/placement/appoint-employee");
|
||||
await success($q, "ดำเนินการสำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
|
|||
|
|
@ -13,18 +13,7 @@ import type {
|
|||
export const useMenuDataStore = defineStore("menuUse", () => {
|
||||
/****************** เมนู **************************/
|
||||
/** รายการเมนู*/
|
||||
const menuList = ref<ListMenu[]>([
|
||||
{
|
||||
id: "dashboard",
|
||||
order: 0,
|
||||
icon: "mdi-home-variant-outline",
|
||||
sysName: "หน้าแรก",
|
||||
sysDescription: "หน้าแรก",
|
||||
path: "dashboard",
|
||||
parentId: null,
|
||||
children: [],
|
||||
},
|
||||
]);
|
||||
const menuList = ref<ListMenu[]>([]);
|
||||
|
||||
/** ข้อมูล Level3*/
|
||||
const childLevelTree = ref<ChildLevelTree>({
|
||||
|
|
@ -117,7 +106,19 @@ export const useMenuDataStore = defineStore("menuUse", () => {
|
|||
*/
|
||||
function fetchListMenu(data: ListMenu[]) {
|
||||
if (data) {
|
||||
menuList.value.push(...data);
|
||||
menuList.value = [
|
||||
{
|
||||
id: "dashboard",
|
||||
order: 0,
|
||||
icon: "mdi-home-variant-outline",
|
||||
sysName: "หน้าแรก",
|
||||
sysDescription: "หน้าแรก",
|
||||
path: "dashboard",
|
||||
parentId: null,
|
||||
children: [],
|
||||
},
|
||||
...data,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue