แก้ไข id ดูข้อมูลทะเบียนประวัติ เมนูรายชื่อผู้ถูกพักราชการ
This commit is contained in:
parent
ecb81632ab
commit
7c7edc2a80
4 changed files with 81 additions and 85 deletions
|
|
@ -45,6 +45,7 @@ const reason = ref<string>("");
|
||||||
|
|
||||||
const data = reactive<dataDetail>({
|
const data = reactive<dataDetail>({
|
||||||
id: "",
|
id: "",
|
||||||
|
personId: "",
|
||||||
citizenId: "",
|
citizenId: "",
|
||||||
avataPath: "",
|
avataPath: "",
|
||||||
name: "",
|
name: "",
|
||||||
|
|
@ -83,6 +84,7 @@ const getData = async () => {
|
||||||
console.log(res.data.result);
|
console.log(res.data.result);
|
||||||
const dataGet = res.data.result;
|
const dataGet = res.data.result;
|
||||||
data.id = dataGet.id;
|
data.id = dataGet.id;
|
||||||
|
data.personId = dataGet.personId;
|
||||||
data.citizenId = dataGet.citizenId;
|
data.citizenId = dataGet.citizenId;
|
||||||
data.name = `${dataGet.prefix}${dataGet.firstName} ${dataGet.lastName}`;
|
data.name = `${dataGet.prefix}${dataGet.firstName} ${dataGet.lastName}`;
|
||||||
data.prefix = dataGet.prefix;
|
data.prefix = dataGet.prefix;
|
||||||
|
|
@ -210,7 +212,7 @@ const getClass = (val: boolean) => {
|
||||||
icon-right="mdi-open-in-new"
|
icon-right="mdi-open-in-new"
|
||||||
class="q-px-sm"
|
class="q-px-sm"
|
||||||
label="ดูข้อมูลทะเบียนประวัติ"
|
label="ดูข้อมูลทะเบียนประวัติ"
|
||||||
@click="router.push(`/registry/${data.id}`)"
|
@click="router.push(`/registry/${data.personId}`)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
|
|
@ -508,9 +510,7 @@ const getClass = (val: boolean) => {
|
||||||
dense
|
dense
|
||||||
readonly
|
readonly
|
||||||
v-model="data.offenseDetails"
|
v-model="data.offenseDetails"
|
||||||
:options="
|
:options="dataStore.offenseDetailsOps"
|
||||||
dataStore.offenseDetailsOps
|
|
||||||
"
|
|
||||||
label="ผลการสืบสวน"
|
label="ผลการสืบสวน"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
|
|
@ -528,15 +528,15 @@ const getClass = (val: boolean) => {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<q-input
|
<q-input
|
||||||
:class="getClass(edit)"
|
:class="getClass(edit)"
|
||||||
:outlined="edit"
|
:outlined="edit"
|
||||||
dense
|
dense
|
||||||
readonly
|
readonly
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="data.disciplinaryFaultLevel"
|
v-model="data.disciplinaryFaultLevel"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'ระดับโทษความผิด'}`"
|
:label="`${'ระดับโทษความผิด'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -1,78 +1,74 @@
|
||||||
interface listData{
|
interface listData {
|
||||||
id: string
|
id: string;
|
||||||
citizenId: string
|
citizenId: string;
|
||||||
prefix: string
|
prefix: string;
|
||||||
firstName: string
|
firstName: string;
|
||||||
lastName: string
|
lastName: string;
|
||||||
organization: string
|
organization: string;
|
||||||
position: string
|
position: string;
|
||||||
posNo: string
|
posNo: string;
|
||||||
positionLevel: string
|
positionLevel: string;
|
||||||
salary: number
|
salary: number;
|
||||||
status: string
|
status: string;
|
||||||
descriptionSuspend: string
|
descriptionSuspend: string;
|
||||||
startDateSuspend: Date,
|
startDateSuspend: Date;
|
||||||
endDateSuspend: Date,
|
endDateSuspend: Date;
|
||||||
title: string
|
title: string;
|
||||||
offenseDetails: string
|
offenseDetails: string;
|
||||||
disciplinaryFaultLevel: string
|
disciplinaryFaultLevel: string;
|
||||||
disciplinaryCaseFault: string
|
disciplinaryCaseFault: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface dataType{
|
interface dataType {
|
||||||
id: string
|
id: string;
|
||||||
citizenId: string
|
citizenId: string;
|
||||||
name:string
|
name: string;
|
||||||
prefix: string
|
prefix: string;
|
||||||
firstName: string
|
firstName: string;
|
||||||
lastName: string
|
lastName: string;
|
||||||
organization: string
|
organization: string;
|
||||||
position: string
|
position: string;
|
||||||
posNo: string
|
posNo: string;
|
||||||
positionLevel: string
|
positionLevel: string;
|
||||||
salary: number
|
salary: number;
|
||||||
status: string
|
status: string;
|
||||||
statusEn: string
|
statusEn: string;
|
||||||
descriptionSuspend: string
|
descriptionSuspend: string;
|
||||||
dateTotal:string
|
dateTotal: string;
|
||||||
startDateSuspend: Date,
|
startDateSuspend: Date;
|
||||||
endDateSuspend: Date,
|
endDateSuspend: Date;
|
||||||
title: string
|
title: string;
|
||||||
offenseDetails: string
|
offenseDetails: string;
|
||||||
disciplinaryFaultLevel: string
|
disciplinaryFaultLevel: string;
|
||||||
disciplinaryCaseFault: string
|
disciplinaryCaseFault: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface dataDetail{
|
interface dataDetail {
|
||||||
id: string
|
id: string;
|
||||||
citizenId: string
|
personId: string;
|
||||||
avataPath:string
|
citizenId: string;
|
||||||
name:string
|
avataPath: string;
|
||||||
prefix: string
|
name: string;
|
||||||
firstName: string
|
prefix: string;
|
||||||
lastName: string
|
firstName: string;
|
||||||
organization: string
|
lastName: string;
|
||||||
position: string
|
organization: string;
|
||||||
posNo: string
|
position: string;
|
||||||
positionLevel: string
|
posNo: string;
|
||||||
salary: number
|
positionLevel: string;
|
||||||
status: string
|
salary: number;
|
||||||
descriptionSuspend: string
|
status: string;
|
||||||
startDateSuspend: Date|null
|
descriptionSuspend: string;
|
||||||
endDateSuspend: Date|null
|
startDateSuspend: Date | null;
|
||||||
title: string
|
endDateSuspend: Date | null;
|
||||||
offenseDetails: string
|
title: string;
|
||||||
disciplinaryFaultLevel: string
|
offenseDetails: string;
|
||||||
disciplinaryCaseFault: string
|
disciplinaryFaultLevel: string;
|
||||||
|
disciplinaryCaseFault: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DataOption {
|
interface DataOption {
|
||||||
id:string
|
id: string;
|
||||||
name:string
|
name: string;
|
||||||
}
|
}
|
||||||
export type {
|
export type { listData, dataType, dataDetail, DataOption };
|
||||||
listData,
|
|
||||||
dataType,
|
|
||||||
dataDetail,
|
|
||||||
DataOption
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,9 @@ const resultEditPage = () =>
|
||||||
|
|
||||||
// รายชื่อผู้ถูกพักราชการ
|
// รายชื่อผู้ถูกพักราชการ
|
||||||
const listSuspendMainPage = () =>
|
const listSuspendMainPage = () =>
|
||||||
import("@/modules/11_discipline/components/7_ListSuspend/DismissOrder.vue");
|
import("@/modules/11_discipline/components/7_ListSuspend/ListsPage.vue");
|
||||||
const suspendEditPage = () =>
|
const suspendEditPage = () =>
|
||||||
import("@/modules/11_discipline/components/7_ListSuspend/OutRegistry.vue");
|
import("@/modules/11_discipline/components/7_ListSuspend/DetailPage.vue");
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue