Merge branch 'develop' into working
This commit is contained in:
commit
b82dd420eb
2 changed files with 27 additions and 18 deletions
|
|
@ -116,6 +116,9 @@ const dataPerson = reactive({
|
||||||
id: "",
|
id: "",
|
||||||
citizenId: "",
|
citizenId: "",
|
||||||
name: "",
|
name: "",
|
||||||
|
prefix: "",
|
||||||
|
firstName: "",
|
||||||
|
lastName: "",
|
||||||
position: "",
|
position: "",
|
||||||
type: "",
|
type: "",
|
||||||
level: "",
|
level: "",
|
||||||
|
|
@ -424,6 +427,9 @@ function fetchDataDetail(id: string) {
|
||||||
|
|
||||||
dataPerson.citizenId = data.citizenId ? data.citizenId : "-";
|
dataPerson.citizenId = data.citizenId ? data.citizenId : "-";
|
||||||
dataPerson.name = `${data.prefix}${data.firstName} ${data.lastName}`;
|
dataPerson.name = `${data.prefix}${data.firstName} ${data.lastName}`;
|
||||||
|
dataPerson.prefix = data.prefix,
|
||||||
|
dataPerson.firstName = data.firstName,
|
||||||
|
dataPerson.lastName = data.lastName,
|
||||||
dataPerson.position = data.position ? data.position : "-";
|
dataPerson.position = data.position ? data.position : "-";
|
||||||
dataPerson.type = data.posTypeName ? data.posTypeName : "-";
|
dataPerson.type = data.posTypeName ? data.posTypeName : "-";
|
||||||
dataPerson.level = data.posLevelName ? data.posLevelName : "-";
|
dataPerson.level = data.posLevelName ? data.posLevelName : "-";
|
||||||
|
|
@ -571,19 +577,19 @@ onMounted(async () => {
|
||||||
<div class="row q-col-gutter-md">
|
<div class="row q-col-gutter-md">
|
||||||
<div class="col-4 text-grey">เลขประจำตัวประชาชน</div>
|
<div class="col-4 text-grey">เลขประจำตัวประชาชน</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.citizenId }}
|
{{ dataPerson.citizenId ? dataPerson.citizenId:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ชื่อ-นามสกุล</div>
|
<div class="col-4 text-grey">ชื่อ-นามสกุล</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.name }}
|
{{ dataPerson.firstName ? dataPerson.name:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ตำแหน่ง</div>
|
<div class="col-4 text-grey">ตำแหน่ง</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.position }}
|
{{ dataPerson.position ? dataPerson.position:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ประเภทตำแหน่ง</div>
|
<div class="col-4 text-grey">ประเภทตำแหน่ง</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.type }}
|
{{ dataPerson.type ? dataPerson.type:'-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -591,15 +597,15 @@ onMounted(async () => {
|
||||||
<div class="row q-col-gutter-md">
|
<div class="row q-col-gutter-md">
|
||||||
<div class="col-4 text-grey">ระดับตำแหน่ง</div>
|
<div class="col-4 text-grey">ระดับตำแหน่ง</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.level }}
|
{{ dataPerson.level ? dataPerson.level:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ตำแหน่งทางการบริหาร</div>
|
<div class="col-4 text-grey">ตำแหน่งทางการบริหาร</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.positionSide }}
|
{{ dataPerson.positionSide ? dataPerson.positionSide:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">หน่วยงานที่สังกัด</div>
|
<div class="col-4 text-grey">หน่วยงานที่สังกัด</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataPerson.org }}
|
{{ dataPerson.org ? dataPerson.org:'-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -611,7 +617,7 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
<div class="row q-col-gutter-md q-mt-sm" v-if="isGov">
|
<div class="row q-col-gutter-md q-mt-sm">
|
||||||
<div class="col-9">
|
<div class="col-9">
|
||||||
<q-select
|
<q-select
|
||||||
dense
|
dense
|
||||||
|
|
@ -1000,7 +1006,7 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12" >
|
||||||
<q-card bordered tyle="border: 1px solid #d6dee1">
|
<q-card bordered tyle="border: 1px solid #d6dee1">
|
||||||
<div class="text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
<div class="text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
||||||
ข้อมูลผู้ค้ำประกัน
|
ข้อมูลผู้ค้ำประกัน
|
||||||
|
|
@ -1008,25 +1014,25 @@ onMounted(async () => {
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
<div
|
<div
|
||||||
class="row col-12 q-col-gutter-md q-pa-md"
|
class="row col-12 q-col-gutter-md q-pa-md"
|
||||||
v-if="isGuarantor"
|
|
||||||
>
|
>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="row q-col-gutter-md">
|
<div class="row q-col-gutter-md">
|
||||||
<div class="col-4 text-grey">เลขประจำตัวประชาชน</div>
|
<div class="col-4 text-grey">เลขประจำตัวประชาชน</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.citizenId }}
|
{{ dataGuarantor.citizenId ? dataGuarantor.citizenId :'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ชื่อ-นามสกุล</div>
|
<div class="col-4 text-grey">ชื่อ-นามสกุล</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.name }}
|
{{ dataGuarantor.firstName ? dataGuarantor.name:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ตำแหน่ง</div>
|
<div class="col-4 text-grey">ตำแหน่ง</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.position }}
|
{{ dataGuarantor.position ? dataGuarantor.position:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ประเภท</div>
|
<div class="col-4 text-grey">ประเภท</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.type }}
|
{{ dataGuarantor.type ? dataGuarantor.type :'-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1034,15 +1040,15 @@ onMounted(async () => {
|
||||||
<div class="row q-col-gutter-md">
|
<div class="row q-col-gutter-md">
|
||||||
<div class="col-4 text-grey">ระดับตำแหน่ง</div>
|
<div class="col-4 text-grey">ระดับตำแหน่ง</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.level }}
|
{{ dataGuarantor.level ? dataGuarantor.level:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ตำแหน่งทางการบริหาร</div>
|
<div class="col-4 text-grey">ตำแหน่งทางการบริหาร</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.positionSide }}
|
{{ dataGuarantor.positionSide ? dataGuarantor.positionSide:'-' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">หน่วยงานที่สังกัด</div>
|
<div class="col-4 text-grey">หน่วยงานที่สังกัด</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{ dataGuarantor.org }}
|
{{ dataGuarantor.org ? dataGuarantor.org:'-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ const visibleColumns = ref<string[]>(["scholarshipYear", "scholarshipType"]);
|
||||||
/** ดึงข้อมูล */
|
/** ดึงข้อมูล */
|
||||||
function getData() {
|
function getData() {
|
||||||
http
|
http
|
||||||
.get(config.API.developmentScholarship + `/user/${profilId.value}`)
|
.get(config.API.developmentScholarship + `/user/${profilId.value}?year=${year.value}&type=${type.value}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
rows.value = res.data.result;
|
rows.value = res.data.result;
|
||||||
})
|
})
|
||||||
|
|
@ -137,6 +137,8 @@ function convertType(val: string) {
|
||||||
return "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)";
|
return "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)";
|
||||||
case "EXECUTIVE":
|
case "EXECUTIVE":
|
||||||
return "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรประเภทนักบริหาร)";
|
return "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรประเภทนักบริหาร)";
|
||||||
|
case "RESEARCH":
|
||||||
|
return "ศึกษา ฝึกอบรม ประชุม ดูงาน และปฏิบัติการวิจัย ณ ต่างประเทศ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -264,6 +266,7 @@ onMounted(async () => {
|
||||||
bordered
|
bordered
|
||||||
:paging="true"
|
:paging="true"
|
||||||
dense
|
dense
|
||||||
|
hide-pagination
|
||||||
class="custom-table2"
|
class="custom-table2"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue