space to enter / แก้คำ /showload
This commit is contained in:
parent
51bd71ad83
commit
6a3eeaf2e5
7 changed files with 40 additions and 13 deletions
|
|
@ -12,7 +12,7 @@ import type { RoundData } from "@/modules/06_retirement/interface/index/Main";
|
|||
/** Use */
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { dialogConfirm, messageError } = mixin;
|
||||
const { dialogConfirm, messageError, showLoader, hideLoader } = mixin;
|
||||
const router = useRouter();
|
||||
|
||||
/** Prop */
|
||||
|
|
@ -90,6 +90,7 @@ async function clickSelect(action: string) {
|
|||
|
||||
// เพิ่มรอบประกาศเกษียณอายุราชการ API
|
||||
async function cerateRetirement(data: object) {
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.createProfile(), data)
|
||||
.then((res) => {
|
||||
|
|
@ -99,7 +100,9 @@ async function cerateRetirement(data: object) {
|
|||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
});
|
||||
hideLoader();
|
||||
})
|
||||
.finally(() => {});
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "position",
|
||||
align: "left",
|
||||
label: "ตำแหน่งในสายงาน",
|
||||
label: "ตำแหน่ง",
|
||||
sortable: true,
|
||||
field: "position",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -90,7 +90,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "positionType",
|
||||
align: "left",
|
||||
label: "ตำแหน่งประเภท",
|
||||
label: "ตำแหน่งประเภท/กลุ่มงาน",
|
||||
sortable: true,
|
||||
field: "positionType",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
|
|||
|
|
@ -310,6 +310,16 @@ watch(
|
|||
<div v-if="col.name === 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
</div>
|
||||
<div
|
||||
v-else-if="col.name == 'organizationPositionOld'"
|
||||
class="text-html"
|
||||
>
|
||||
{{
|
||||
props.row.organizationPositionOld
|
||||
? props.row.organizationPositionOld
|
||||
: "-"
|
||||
}}
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import type { DataOption } from "@/modules/14_KPI/interface/index/Main";
|
|||
import type {
|
||||
ResRound,
|
||||
ResDevelopment,
|
||||
} from "@/modules/14_KPI/interface/response/index";
|
||||
} from "@/modules/14_KPI/interface/response/Index";
|
||||
|
||||
/** importComponents*/
|
||||
import DialogIndividual from "@/modules/14_KPI/components/results/dialogIndividual.vue";
|
||||
|
|
@ -357,7 +357,14 @@ onMounted(async () => {
|
|||
<div v-if="col.name == 'no'">
|
||||
{{ (page - 1) * pageSize + props.rowIndex + 1 }}
|
||||
</div>
|
||||
<div v-else class="table_ellipsis2">
|
||||
<div
|
||||
v-else-if="col.name == 'organization'"
|
||||
class="text-html"
|
||||
style="width: 300px"
|
||||
>
|
||||
{{ props.row.organization ? props.row.organization : "-" }}
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ col.value ?? "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
|
|
|||
|
|
@ -446,7 +446,14 @@ onMounted(async () => {
|
|||
<div v-if="col.name == 'no'">
|
||||
{{ (page - 1) * pageSize + props.rowIndex + 1 }}
|
||||
</div>
|
||||
<div v-else class="table_ellipsis2">
|
||||
<div
|
||||
v-else-if="col.name == 'organization'"
|
||||
class="text-html"
|
||||
style="width: 300px"
|
||||
>
|
||||
{{ props.row.organization ? props.row.organization : "-" }}
|
||||
</div>
|
||||
<div v-else >
|
||||
{{ col.value ?? "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ const {
|
|||
messageError,
|
||||
dialogConfirm,
|
||||
success,
|
||||
findOrgName,
|
||||
findOrgNameHtml,
|
||||
dialogRemove,
|
||||
} = mixin;
|
||||
|
||||
|
|
@ -431,7 +431,7 @@ async function fetchProfileEvaluator(id: string) {
|
|||
evaluator.value.posLevelName = data.posLevelName;
|
||||
evaluator.value.isPosmasterAct = data.isPosmasterAct;
|
||||
evaluator.value.posmasterAct = data.posmasterAct[0];
|
||||
evaluator.value.org = findOrgName(data);
|
||||
evaluator.value.org = findOrgNameHtml(data);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -1287,7 +1287,7 @@ onUnmounted(() => {
|
|||
: "-"
|
||||
}}
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="col-3 text-html">
|
||||
{{ evaluator.org ? evaluator.org : "-" }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const $q = useQuasar();
|
|||
const mixin = useCounterMixin();
|
||||
const {
|
||||
messageError,
|
||||
findOrgName,
|
||||
findOrgNameHtml,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
date2Thai,
|
||||
|
|
@ -134,7 +134,7 @@ async function getMain() {
|
|||
formData.posExecutiveName = data.posExecutiveName;
|
||||
formData.posLevelName = data.posLevelName;
|
||||
formData.isProbation = data.isProbation;
|
||||
formData.org = findOrgName(data);
|
||||
formData.org = findOrgNameHtml(data);
|
||||
profileId.value = data.profileId;
|
||||
const promises = [];
|
||||
promises.push(getList(data.profileId)); // fetch รายการทดลองงาน
|
||||
|
|
@ -302,7 +302,7 @@ onMounted(async () => {
|
|||
: "-"
|
||||
}}
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="col-4 text-html">
|
||||
{{ formData.org ? formData.org : "-" }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue