ปรับ UI
This commit is contained in:
parent
30d342728b
commit
0612820928
45 changed files with 93 additions and 76 deletions
|
|
@ -349,6 +349,8 @@ async function fetchDataPersonal() {
|
|||
.get(config.API.registryNewByProfileId(profileId.value, empType.value))
|
||||
.then(async (res) => {
|
||||
formDetail.value = res.data.result;
|
||||
console.log(formDetail.value);
|
||||
|
||||
storeRegistry.isLeave = res.data.result.isLeave;
|
||||
|
||||
if (res.data.result.leaveReason) {
|
||||
|
|
@ -956,7 +958,7 @@ onMounted(async () => {
|
|||
{{ empType === "" ? "ระดับ" : "ระดับชั้นงาน" }}
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ formDetail?.posLevel?.posLevelName || "-" }}
|
||||
{{ `${ empType === "" ? '': formDetail?.posType?.posTypeShortName } ${formDetail?.posLevel?.posLevelName}` || "-" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -242,7 +242,10 @@ function selectType() {
|
|||
*/
|
||||
function selectPosType(item: DataOption) {
|
||||
const dataType = store.posTypeMain.find((e: DataType) => e.id === item.id);
|
||||
store.fetchLevel(dataType?.posLevels);
|
||||
const shortName =
|
||||
empType.value === "officer" ? "" : dataType?.posTypeShortName;
|
||||
|
||||
store.fetchLevel(dataType?.posLevels, shortName);
|
||||
store.labelOption.posType = item.name;
|
||||
store.labelOption.posLevel = "ทั้งหมด";
|
||||
store.formFilter.page = 1;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ const route = useRoute();
|
|||
const store = useRegistryNewDataStore();
|
||||
|
||||
const isIDP = ref<boolean | null>(null);
|
||||
const isEmployee = ref<boolean>(
|
||||
route.name?.toString() == "registryNewRequestEditEMP" ? true : false
|
||||
);
|
||||
|
||||
onBeforeMount(async () => {
|
||||
isIDP.value = await (route.name?.toString() == "registryNewRequestEditEMP"
|
||||
|
|
@ -39,6 +42,7 @@ onMounted(() => {
|
|||
@click="router.go(-1)"
|
||||
/>
|
||||
รายการคำร้องขอแก้ไขทะเบียนประวัติ
|
||||
{{ `(${isEmployee ? "ลูกจ้างประจำ" : "ข้าราชการ กทม.สามัญ"})` }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue