From 3941cd8ab65f7b059bfb50f58ed480b1cc16cac9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 4 Apr 2024 13:10:37 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9C=E0=B8=B9=E0=B8=81=20API=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=82=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/BasicInfo.vue | 6 + .../components/FollowResult.vue | 83 ++---------- .../15_development/components/Other.vue | 108 ++++++++++----- .../15_development/components/Target.vue | 123 +++++++++--------- 4 files changed, 160 insertions(+), 160 deletions(-) diff --git a/src/modules/15_development/components/BasicInfo.vue b/src/modules/15_development/components/BasicInfo.vue index 1da06b539..e55e2c727 100644 --- a/src/modules/15_development/components/BasicInfo.vue +++ b/src/modules/15_development/components/BasicInfo.vue @@ -50,6 +50,7 @@ function updateAgency(name: string) { dense lazy-rules outlined + class="inputgreen" :model-value="Number(store.formAddProject.year) + 543" :label="`${'ปีงบประมาณ'}`" > @@ -69,7 +70,9 @@ function updateAgency(name: string) { -import { onMounted, reactive, ref, watchEffect } from "vue"; +import { reactive, ref } from "vue"; import { useQuasar } from "quasar"; import type { FormFollowResult } from "@/modules/15_development/interface/request/Main"; @@ -15,80 +15,16 @@ const $q = useQuasar(); const store = useDevelopmentDataStore(); const { showLoader, hideLoader, dialogConfirm } = useCounterMixin(); -const formData = reactive({ - metricType: "", - indicators: "", - target: "", - calculation: "", - measuRement: "", - results: "", - obstacles: "", - suggestions: "", - project: "", -}); - -const group = ref([]); -const metricTypeOp = ref([ - { - id: "id1", - name: "name1", - }, - { - id: "id2", - name: "name2", - }, - { - id: "id3", - name: "name3", - }, -]); const projectOp = ref([ { id: "OFFER", - name: "โครงการที่ เสนอขอ TN", + name: "โครงการที่เสนอขอ TN", }, { id: "NOOFFER", - name: "โครงการที่ ไม่ เสนอขอ TN", + name: "โครงการที่ไม่เสนอขอ TN", }, ]); - -const optionsTNFirst = ref([ - { - label: "ผ่านการพิจารณา ได้รับการจัดงบประมาณตามข้อบัญญัติ", - value: store.formAddProject.isPassAllocate, - }, - { - label: - "ผ่านการพิจารณา ไม่ได้รับการจัดสรรงบประมาณตามข้อบัญญัติ แต่ได้รับการจัดสรรเงินนอกงบประมาณ", - value: store.formAddProject.isPassNoAllocate, - }, - { - label: "ไม่ผ่านการพิจารณา แต่ได้รับการจัดสรรเงินนอกงบประมาณ", - value: store.formAddProject.isNoPass, - }, -]); -const optionsTNSecon = ref([ - { - label: "แต่ได้รับการจัดสรรงบประมาณตามข้อบัญญัติ", - value: store.formAddProject.isBudget, - }, - { - label: "แต่ได้รับการจัดสรรเงินนอกงบประมาณ", - value: store.formAddProject.isOutBudget, - }, -]); - -watchEffect(() => {}); - -onMounted(() => { - optionsTNFirst.value.forEach((checkbox, index) => { - if (index === 0) checkbox.value = store.formAddProject.isPassAllocate; - else if (index === 1) - checkbox.value = store.formAddProject.isPassNoAllocate; - else if (index === 2) checkbox.value = store.formAddProject.isNoPass; - }); -});