From a1bd65f1caaa9bb2a516656f61034496e67ed610 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 7 Sep 2023 16:05:25 +0700 Subject: [PATCH 1/3] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=20TAB=20=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF=20?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20Table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 1 + .../07_insignia/components/2_Manage/Tab2.vue | 1 + .../07_insignia/components/2_Manage/Tab3.vue | 2 + .../07_insignia/components/2_Manage/Tab4.vue | 3 ++ .../components/2_Manage/listManage.vue | 3 +- .../components/3_result/DialogForm.vue | 2 + .../components/4_Allocate/Main.vue | 8 +++- .../07_insignia/components/5_Borrow/Main.vue | 46 +++++++++++++++++-- src/modules/07_insignia/store.ts | 2 + src/modules/07_insignia/storeAllocate.ts | 8 +++- src/modules/07_insignia/storeBrrow.ts | 4 ++ src/modules/07_insignia/storeResult.ts | 1 + src/modules/07_insignia/views/ResultPage.vue | 16 +++++-- 13 files changed, 87 insertions(+), 10 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 7c8af9609..26a57b105 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -225,6 +225,7 @@ onMounted(async () => { "officer", props.tab ); + DataStore.mainTab = props.tab; } } }); diff --git a/src/modules/07_insignia/components/2_Manage/Tab2.vue b/src/modules/07_insignia/components/2_Manage/Tab2.vue index 769b20258..7bf0aca0a 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab2.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab2.vue @@ -157,6 +157,7 @@ onMounted(async () => { "officer", props.tab ); + DataStore.mainTab = props.tab; } } }); diff --git a/src/modules/07_insignia/components/2_Manage/Tab3.vue b/src/modules/07_insignia/components/2_Manage/Tab3.vue index 6aa4cc83c..3ee740c1a 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab3.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab3.vue @@ -143,6 +143,7 @@ const columns = ref([ }, ]); onMounted(async () => { + organizationOptions.value = DataStore.optionsTypeOc; organization.value = await (DataStore.agency != null ? DataStore.agency @@ -156,6 +157,7 @@ onMounted(async () => { "officer", props.tab ); + DataStore.mainTab = props.tab; } } }); diff --git a/src/modules/07_insignia/components/2_Manage/Tab4.vue b/src/modules/07_insignia/components/2_Manage/Tab4.vue index 6c643a822..992f63d36 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab4.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab4.vue @@ -5,10 +5,12 @@ import { useQuasar } from "quasar"; import type { QTableProps } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; +import { useInsigniaDataStore } from "@/modules/07_insignia/store"; const $q = useQuasar(); const mixin = useCounterMixin(); const { showLoader, hideLoader, messageError } = mixin; +const DataStore = useInsigniaDataStore(); const props = defineProps({ roundId: { type: String, @@ -44,6 +46,7 @@ const rows = ref([]); onMounted(async () => { await fecthOrg(); + DataStore.mainTab = props.tab; }); watch(props, async () => { if (props.tab === "organization") { diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index 9f8d22610..fc5b0caa8 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -30,7 +30,7 @@ const round = ref(""); const roundName = ref(""); const optionRound = ref([]); const optiontypeOc = ref([]); -const tab = ref("pending"); +const tab = ref(""); const stat = ref({ allUserUser: 0, orgAllCount: 0, @@ -39,6 +39,7 @@ const stat = ref({ }); onMounted(async () => { + tab.value = DataStore.mainTab; await checkRole(); await fecthlistRound(); }); diff --git a/src/modules/07_insignia/components/3_result/DialogForm.vue b/src/modules/07_insignia/components/3_result/DialogForm.vue index 5feb02441..e5b50659c 100644 --- a/src/modules/07_insignia/components/3_result/DialogForm.vue +++ b/src/modules/07_insignia/components/3_result/DialogForm.vue @@ -408,6 +408,7 @@ const searchcardid = () => { borderless :enableTimePicker="false" week-start="0" + :readonly="disbleStatus || status == 'DONE'" >