อัพเดท type //เมนูเครื่องราช

This commit is contained in:
AnandaTon 2023-07-17 14:02:44 +07:00
parent d626279c6c
commit 27b4e9dd4c
8 changed files with 221 additions and 239 deletions

View file

@ -228,6 +228,30 @@ const menuList = readonly<any[]>([
path: "insigniaProposals", path: "insigniaProposals",
role: "insignia", role: "insignia",
}, },
{
key: 8.2,
label: "จัดทำรายชื่อข้าราชการสามัญ" /* รายชื่อผู้สอบผ่าน */,
path: "insigniaNameList",
role: "insignia",
},
{
key: 8.3,
label: "อนุมัติรายชื่อข้าราชการสามัญ" /* รายชื่อผู้สอบผ่าน */,
path: "insigniaNameApprove",
role: "insignia",
},
{
key: 8.4,
label: "บันทึกผลการได้รับพระราช..." /* รายชื่อผู้สอบผ่าน */,
path: "insigniaRecord",
role: "insignia",
},
{
key: 8.5,
label: "รายงาน" /* รายชื่อผู้สอบผ่าน */,
path: "insigniaReport",
role: "insignia",
},
], ],
}, },
{ {

View file

@ -1 +1,9 @@
export type {}; interface FormProprsalsRound {
id: number;
name: string;
year: number;
startDate: number;
endDate: number;
status: string;
}
export type { FormProprsalsRound };

View file

@ -167,5 +167,9 @@ const $q = useQuasar();
const dateStart = ref<any>(new Date()); const dateStart = ref<any>(new Date());
const dateEnd = ref<any>(new Date()); const dateEnd = ref<any>(new Date());
const roundInsig = ref<string>("");
const year = ref<string>("");
const datelast = ref<string>("");
const routeName = router.currentRoute.value.name; const routeName = router.currentRoute.value.name;
</script> </script>

View file

@ -116,7 +116,7 @@
size="12px" size="12px"
flat flat
round round
color="indigo" color="light-blue-8"
@click.stop.prevent="clickProposals(props.row.id)" @click.stop.prevent="clickProposals(props.row.id)"
icon="mdi-file-download" icon="mdi-file-download"
> >
@ -161,6 +161,7 @@ import { ref, useAttrs } from "vue";
import type { QTableProps } from "quasar"; import type { QTableProps } from "quasar";
import router from "@/router"; import router from "@/router";
import { useQuasar } from "quasar"; import { useQuasar } from "quasar";
import type { FormProprsalsRound } from " @/modules/07_insignia/interface/request/Main.ts";
const $q = useQuasar(); // noti quasar const $q = useQuasar(); // noti quasar
const modal = ref<boolean>(false); const modal = ref<boolean>(false);
@ -229,7 +230,7 @@ const columns = ref<QTableProps["columns"]>([
]); ]);
// () // ()
const rows = ref<any[]>([ const rows = ref<FormProprsalsRound[]>([
{ {
round: "รอบการเสนอขอพระราชทานเครื่องราชฯ", round: "รอบการเสนอขอพระราชทานเครื่องราชฯ",
year: "2566", year: "2566",

View file

@ -0,0 +1 @@
export type {};

View file

@ -0,0 +1,13 @@
interface FormRegistryEmployee {
no: string;
name: string;
positionNum: string;
position: string;
path: string;
type: string;
level: string;
affiliation: string;
yearly: number;
pay: string;
}
export type { FormRegistryEmployee };

View file

@ -0,0 +1 @@
export type {};

View file

@ -118,14 +118,30 @@
v-close-popup v-close-popup
@click="editDetail(props.row)" @click="editDetail(props.row)"
> >
<q-item-section style="min-width: 0px" avatar class="q-py-sm"> <q-item-section
<q-icon color="blue" size="xs" name="mdi-account-settings" /> style="min-width: 0px"
avatar
class="q-py-sm"
>
<q-icon
color="blue"
size="xs"
name="mdi-account-settings"
/>
</q-item-section> </q-item-section>
<q-item-section>กำหนดตำแหน</q-item-section> <q-item-section>กำหนดตำแหน</q-item-section>
</q-item> </q-item>
<q-separator /> <q-separator />
<q-item clickable v-close-popup @click="clickDelete('test')"> <q-item
<q-item-section style="min-width: 0px" avatar class="q-py-sm"> clickable
v-close-popup
@click="clickDelete('test')"
>
<q-item-section
style="min-width: 0px"
avatar
class="q-py-sm"
>
<q-icon color="red" size="xs" name="mdi-delete" /> <q-icon color="red" size="xs" name="mdi-delete" />
</q-item-section> </q-item-section>
<q-item-section>ลบ</q-item-section> <q-item-section>ลบ</q-item-section>
@ -163,6 +179,7 @@ import { useRouter } from "vue-router";
import http from "@/plugins/http"; import http from "@/plugins/http";
import config from "@/app.config"; import config from "@/app.config";
import type { treeTab } from "@/modules/05_placement/interface/index/Main"; import type { treeTab } from "@/modules/05_placement/interface/index/Main";
import { FormRegistryEmployee } from "@/modules/08_registryEmployee/request/Main.ts";
const props = defineProps({ const props = defineProps({
next: { next: {
@ -210,93 +227,6 @@ const columnsModal = [
}, },
]; ];
const rowsModal = [
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางนัทธ์ เหล่าสกุล",
positionNum: "สกก.3",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "40,000",
},
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นายภูวนัย ต้นทอง",
positionNum: "กทม.2",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "35,000",
},
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางปริศนา ตรีวุฒิ",
positionNum: "กบห.3",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "38,000",
},
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางเมษา เกียรติบวรสกุล ",
positionNum: "สกก.3",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "25,000",
},
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางพริมา พงศ์พินิจ",
positionNum: "สกก.3",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "30,000",
},
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางพรพักตร์ พาใจขวัญ",
positionNum: "สกก.3",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "40,000",
},
{
no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางชลธิมา คมสกุล ",
positionNum: "สกก.3",
position: "นักบริหาร",
path: "บริหาร",
type: "บริหาร",
level: "ชำนาญการพิเศษ",
affiliation: "ฝ่ายบริหารงานทั่วไป",
yearly: 2565,
pay: "15,000",
},
];
const paginationModal = ref({ const paginationModal = ref({
sortBy: "desc", sortBy: "desc",
descending: false, descending: false,
@ -390,7 +320,7 @@ const columns = ref<QTableProps["columns"]>([
}, },
]); ]);
const rows = [ const rows = ref<FormRegistryEmployee[]>([
{ {
no: "0ac56905-1a74-4606-a120-233340adde95", no: "0ac56905-1a74-4606-a120-233340adde95",
name: "นางนัทธ์ เหล่าสกุล", name: "นางนัทธ์ เหล่าสกุล",
@ -535,7 +465,7 @@ const rows = [
yearly: 2565, yearly: 2565,
pay: "20,250", pay: "20,250",
}, },
]; ]);
onMounted(async () => { onMounted(async () => {
await nodeTree(); await nodeTree();