Merge branch 'nice_dev' into develop
This commit is contained in:
commit
c6c643e213
7 changed files with 61 additions and 23 deletions
|
|
@ -2,27 +2,32 @@
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { onMounted, reactive, ref } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
|
||||||
|
import type { FormBasicinfo } from "@/modules/15_development/interface/request/Main";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const { showLoader, hideLoader, dialogConfirm } = useCounterMixin();
|
const { showLoader, hideLoader, dialogConfirm } = useCounterMixin();
|
||||||
|
|
||||||
onMounted(() => {
|
const formData = reactive<FormBasicinfo>({
|
||||||
console.log("ข้อมูลเบื้องต้น");
|
|
||||||
});
|
|
||||||
|
|
||||||
const formData = reactive<any>({
|
|
||||||
year: new Date().getFullYear(),
|
year: new Date().getFullYear(),
|
||||||
org: "",
|
org: "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานครกองบริหารทั้วไป",
|
||||||
projectName: "",
|
projectName: "",
|
||||||
reason: "",
|
reason: "",
|
||||||
objective: "",
|
objective: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const options = ref<any>(["Google", "Facebook", "Twitter", "Apple", "Oracle"]);
|
const options = ref<any>([
|
||||||
|
"สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานครกองบริหารทั้วไป",
|
||||||
|
"สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานคร",
|
||||||
|
]);
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
dialogConfirm($q, () => {});
|
dialogConfirm($q, () => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
console.log("ข้อมูลเบื้องต้น");
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive } from "vue";
|
import { ref } from "vue";
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
|
|
||||||
import BasicInfo from "@/modules/15_development/components/BasicInfo.vue";
|
import BasicInfo from "@/modules/15_development/components/BasicInfo.vue";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<script setup lang="ts"></script>
|
|
||||||
|
|
||||||
<template></template>
|
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
|
||||||
|
|
@ -3,6 +3,10 @@ import { onMounted, ref, reactive } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
import type {
|
||||||
|
FormGroupTarget,
|
||||||
|
FormGroupRelate,
|
||||||
|
} from "@/modules/15_development/interface/request/Main";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
|
|
@ -80,12 +84,16 @@ const rows3 = ref<any>([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
const rows4 = ref<any>([{ related: "เจ้าหน้าที่", amount: 10 }]);
|
const rows4 = ref<any>([{ related: "เจ้าหน้าที่", amount: 10 }]);
|
||||||
const options = ref<any>(["Google", "Facebook", "Twitter", "Apple", "Oracle"]);
|
const options = ref<any>([
|
||||||
|
"ข้าราชการกรุงเทพมหานคร",
|
||||||
|
"ข้าราชการกรุงเทพมหานครสามัญ",
|
||||||
|
"เจ้าหน้าที่ดำเนิดการ",
|
||||||
|
]);
|
||||||
|
|
||||||
const modalGroupTarget = ref<boolean>(false);
|
const modalGroupTarget = ref<boolean>(false);
|
||||||
const modalRelate = ref<boolean>(false);
|
const modalRelate = ref<boolean>(false);
|
||||||
|
|
||||||
const formGroupTarget = reactive({
|
const formGroupTarget = reactive<FormGroupTarget>({
|
||||||
groupTarget: "",
|
groupTarget: "",
|
||||||
groupTargetSub: "",
|
groupTargetSub: "",
|
||||||
position: "",
|
position: "",
|
||||||
|
|
@ -95,7 +103,7 @@ const formGroupTarget = reactive({
|
||||||
amount: null,
|
amount: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
const formGroupRelate = reactive({
|
const formGroupRelate = reactive<FormGroupRelate>({
|
||||||
relate: "",
|
relate: "",
|
||||||
amount: null,
|
amount: null,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
34
src/modules/15_development/interface/request/Main.ts
Normal file
34
src/modules/15_development/interface/request/Main.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
interface FormQueryProject {
|
||||||
|
year: number;
|
||||||
|
keyword: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface FormBasicinfo {
|
||||||
|
year: number;
|
||||||
|
org: string;
|
||||||
|
projectName: string;
|
||||||
|
reason: string;
|
||||||
|
objective: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface FormGroupTarget {
|
||||||
|
groupTarget: string;
|
||||||
|
groupTargetSub: string;
|
||||||
|
position: string;
|
||||||
|
posType: string;
|
||||||
|
level: string;
|
||||||
|
type: string;
|
||||||
|
amount: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface FormGroupRelate {
|
||||||
|
relate: string;
|
||||||
|
amount: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type {
|
||||||
|
FormQueryProject,
|
||||||
|
FormBasicinfo,
|
||||||
|
FormGroupTarget,
|
||||||
|
FormGroupRelate,
|
||||||
|
};
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
interface DataOption {
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type { DataOption };
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
|
|
||||||
|
import type { FormQueryProject } from "@/modules/15_development/interface/request/Main";
|
||||||
|
|
||||||
// store
|
// store
|
||||||
export const useDevelopmentDataStore = defineStore(
|
export const useDevelopmentDataStore = defineStore(
|
||||||
"developmentDataStore",
|
"developmentDataStore",
|
||||||
() => {
|
() => {
|
||||||
const formFilter = reactive({
|
const formFilter = reactive<FormQueryProject>({
|
||||||
year: new Date().getFullYear(),
|
year: new Date().getFullYear(),
|
||||||
keyword: "",
|
keyword: "",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue