From aeb6a64829d2929028444e0903d3662f1ccad0ba Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 23 Aug 2023 15:34:03 +0700 Subject: [PATCH 1/4] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20ui?= =?UTF-8?q?=20=E0=B9=80=E0=B8=A1=E0=B8=99=E0=B8=B9=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B8=9C=E0=B8=A5=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=AA=E0=B8=99=E0=B8=AD=E0=B8=82?= =?UTF-8?q?=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/3_result/DialogForm.vue | 187 +++++++++--------- 1 file changed, 96 insertions(+), 91 deletions(-) diff --git a/src/modules/07_insignia/components/3_result/DialogForm.vue b/src/modules/07_insignia/components/3_result/DialogForm.vue index e88727359..6a18795e0 100644 --- a/src/modules/07_insignia/components/3_result/DialogForm.vue +++ b/src/modules/07_insignia/components/3_result/DialogForm.vue @@ -1,4 +1,4 @@ -div + + + + diff --git a/src/modules/07_insignia/views/ResultPage.vue b/src/modules/07_insignia/views/ResultPage.vue index 74a90045a..119f024f4 100644 --- a/src/modules/07_insignia/views/ResultPage.vue +++ b/src/modules/07_insignia/views/ResultPage.vue @@ -4,6 +4,8 @@ import { ref, onMounted } from "vue"; import { useCounterMixin } from "@/stores/mixin"; import DialogForm from "@/modules/07_insignia/components/3_result/DialogForm.vue"; +import fileUploadview from "../components/3_result/fileUpload.vue"; + import type { OptionData } from "@/modules/07_insignia/interface/index/Main"; import type { QTableProps, QInput } from "quasar"; import { useQuasar } from "quasar"; @@ -14,23 +16,18 @@ const { date2Thai, dialogConfirm } = mixin; const $q = useQuasar(); const tab = ref("hight"); -const fileUpload = ref(""); -const reason = ref(""); -const documentTitle = ref(""); - const selectType = ref("1"); -const selectTypeOption = ref([{id: "1", name: "เบญจมาภรณ์มงกุฎไทย"}]); +const selectTypeOption = ref([ + { id: "1", name: "เบญจมาภรณ์มงกุฎไทย" }, +]); const selectRound = ref("1"); const selectRoundOption = ref([ { id: "1", name: "รอบการเสนอขอพระราชทานเครื่องราชฯ ปี 2566" }, ]); const filterKeyword = ref(""); -const filterDoc = ref(null); -const resetFilterRef = () => { - filterKeyword.value = ""; - filterDoc.value.focus(); -}; + + const pagination = ref({ sortBy: "filename", descending: true, @@ -48,14 +45,9 @@ const visibleColumns = ref([ "datepay", "typepay", "address", - "action" -]); -const visibleColumnsReference = ref([ - "no", - "fileName", - "annotation", - "file", + "action", ]); + const filterRef = ref(); const filter = ref(""); const columns = ref([ @@ -156,53 +148,7 @@ const columns = ref([ field: "", }, ]); -const colums2 = ref([ - { - name: "no", - align: "left", - label: "ลำดับ", - field: "no", - sortable: true, - }, - { - name: "fileName", - align: "left", - label: "ชื่อเอกสาร", - field: "fileName", - sortable: true, - - }, - { - name: "annotation", - align: "left", - label: "หมายเหตุ", - field: "annotation", - sortable: true, - - }, - { - name: "file", - align: "left", - label: "ไฟล์เอกสาร", - field: "file", - sortable: true, - }, -]); -const rows2 = ref([ - { - no:"1", - fileName:"test1", - annotation:"ทดสอบ", - file:"" - }, - { - no:"2", - fileName:"test2", - annotation:"ทดสอบ", - file:"" - } -]) const rows = ref([ { no: "1", @@ -234,21 +180,21 @@ const modal = ref(false); const close = () => { modal.value = false; -} +}; const addData = () => { modal.value = true; - console.log("addData") + console.log("addData"); }; const editData = (id: string) => { modal.value = true; - console.log("editData", id) + console.log("editData", id); }; const save = () => { - console.log("save function") -} + console.log("save function"); +}; const resetFilter = () => { // reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา @@ -272,7 +218,6 @@ const filterSelector = (val: any, update: Function, filtername: string) => { // ); // }); // break; - // default: // break; // } @@ -287,26 +232,34 @@ const filterSelector = (val: any, update: Function, filtername: string) => {
รอบ
- + input-class="text-bold text-grey" + >
- + @@ -314,378 +267,414 @@ const filterSelector = (val: any, update: Function, filtername: string) => {
- -
+
- -
- - เพิ่ม - -
-
- - - - - - - บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์ - - - - บันทึกผลการจ่ายใบกำกับ - - - - -
- - - -
- - - - - - -
-
- - - - -
- -
-
- -
- - เพิ่ม - -
-
- - - - - - - บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์ - - - - บันทึกผลการจ่ายใบกำกับ - - - - -
- - - -
- - - - - - -
-
- - - - -
- -
-
- -
- - เพิ่ม - -
-
- - - - - - - บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์ - - - - บันทึกผลการจ่ายใบกำกับ - - - - -
- - -
- - - - - - -
-
- - - - -
- -
- -
-
- -
- - - -
-
- -
-
- -
-
- - - - - - +
+ + เพิ่ม + +
+
+ + + + + + + บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์ + + + + บันทึกผลการจ่ายใบกำกับ + + + + +
+ + + +
+ + + + + + +
-
- - - - - +
+
+
+ +
+ + เพิ่ม + +
+
+ + + + + + + บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์ + + + + บันทึกผลการจ่ายใบกำกับ + + + + +
+ + + +
+ + + + + + +
+
+ + + + +
+ +
+
+ +
+ + เพิ่ม + +
+
+ + + + + + + บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์ + + + + บันทึกผลการจ่ายใบกำกับ + + + + +
+ + +
+ + + + + + +
+
+ + + + +
+ +
+ +
- +