diff --git a/src/modules/02_organization/components/MainView.vue b/src/modules/02_organization/components/MainView.vue index bd35e4bd4..bbe2b8f88 100644 --- a/src/modules/02_organization/components/MainView.vue +++ b/src/modules/02_organization/components/MainView.vue @@ -29,6 +29,7 @@ const { showLoader, hideLoader, messageError } = useCounterMixin(); /** props*/ const historyId = defineModel("historyId", { required: true }); // id ประวัติโครงสร้าง const count = defineModel("count", { required: true }); +const isDeputy = defineModel("isDeputy", { default: false }); const nodeTree = ref(); // ข้อมูล Tree const nodeId = ref(""); // id ของ Tree @@ -267,6 +268,7 @@ onMounted(async () => { v-model:short-name="shortName" v-model:node-id="nodeId" v-model:org-root-id="orgRootId" + v-model:is-deputy="isDeputy" :fetch-data-table="fetchDataTable" :fetch-data-tree="fetchDataTree" /> diff --git a/src/modules/02_organization/components/TreeMain.vue b/src/modules/02_organization/components/TreeMain.vue index 9b76ab9da..d3842f755 100644 --- a/src/modules/02_organization/components/TreeMain.vue +++ b/src/modules/02_organization/components/TreeMain.vue @@ -32,6 +32,7 @@ const nodeId = defineModel("nodeId", { required: true }); const orgRootId = defineModel("orgRootId", { required: true, }); +const isDeputy = defineModel("isDeputy", { default: false }); const shortName = defineModel("shortName", { required: true }); const props = defineProps({ fetchDataTree: { @@ -101,6 +102,7 @@ const orgId = ref(""); * @param data ข่อมูล Tree */ function updateSelected(data: DataTree) { + isDeputy.value = data.isDeputy; orgRootId.value = data?.orgLevel === 0 ? data?.orgTreeId : data?.orgRootId; store.rootId = ( data.orgLevel === 0 ? data.orgTreeId : data.orgRootId diff --git a/src/modules/02_organization/interface/index/organizational.ts b/src/modules/02_organization/interface/index/organizational.ts index f5a6ee940..7e2365def 100644 --- a/src/modules/02_organization/interface/index/organizational.ts +++ b/src/modules/02_organization/interface/index/organizational.ts @@ -77,6 +77,7 @@ interface DataTree { totalRootPositionCurrentVacant: number; totalRootPositionNextUse: number; totalRootPositionNextVacant: number; + isDeputy: boolean; children?: DataTree[]; } diff --git a/src/modules/02_organization/views/main.vue b/src/modules/02_organization/views/main.vue index 6445ce540..be9eb7fcb 100644 --- a/src/modules/02_organization/views/main.vue +++ b/src/modules/02_organization/views/main.vue @@ -39,6 +39,7 @@ const count = ref(0); const modalCommand = ref(false); //ส่งไปออกคำสั่ง const modalRemark = ref(false); // หมายเหตุ +const isDeputy = ref(false); // สำนักงานปลัด /** * function เรียกข้อมูลโครงสร้าง แบบปัจุบันและ แบบร่าง @@ -333,6 +334,7 @@ onMounted(async () => { @click="ocClickAddStructure('ADD')" class="q-px-md" /> + @@ -447,6 +450,7 @@ onMounted(async () => { v-model:is-staff="store.isStaff as boolean" v-model:root-id="store.rootId" :system-name="'ORGANIZATION'" + v-model:is-deputy="isDeputy" /> diff --git a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue index 74a1ebe7c..bd9629db9 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue @@ -399,7 +399,6 @@ onMounted(() => { { { { v-model:pagination="pagination" :grid="modeView === 'card'" :visible-columns="visibleColumns" - :card-container-class="modeView === 'card' ? 'q-col-gutter-md' : ''" > diff --git a/src/modules/04_registryPerson/components/detail/Achievement/04_DeclarationHonor.vue b/src/modules/04_registryPerson/components/detail/Achievement/04_DeclarationHonor.vue index 7a5583e19..00b74a3e1 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/04_DeclarationHonor.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/04_DeclarationHonor.vue @@ -479,7 +479,6 @@ onMounted(() => { { :grid="modeView === 'card'" v-model:pagination="pagination" :visible-columns="visibleColumns" - :card-container-class="modeView === 'card' ? 'q-col-gutter-md' : ''" > diff --git a/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue b/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue index d1267fcb7..d151a27d9 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue @@ -557,6 +557,7 @@ onMounted(async () => { hideLoader(); }); + { v-model:pagination="pagination" :grid="modeView === 'card'" :visible-columns="visibleColumns" - :card-container-class="modeView === 'card' ? 'q-col-gutter-md' : ''" > diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue index 62dbb8150..bad5dd130 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue @@ -495,7 +495,6 @@ onMounted(() => { { { diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue index 8a3a31d27..2baf29a57 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue @@ -508,7 +508,6 @@ onMounted(() => { { flat bordered dense - :card-container-class="mode === 'card' ? 'q-col-gutter-md' : ''" :columns="columns" :rows="rows" :grid="mode === 'card'" @@ -612,69 +610,47 @@ onMounted(() => { diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWork.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWork.vue index e20012766..fae201801 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWork.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWork.vue @@ -452,6 +452,7 @@ onMounted(() => { fetchData(profileId.value); }); + { flat bordered dense - :card-container-class="mode === 'card' ? 'q-col-gutter-md' : ''" :columns="columns" :rows="rows" :grid="mode === 'card'" @@ -594,76 +593,44 @@ onMounted(() => { diff --git a/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue b/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue index 0051c3db2..f65e8de2a 100644 --- a/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue @@ -246,6 +246,7 @@ onMounted(() => { getData(); }); + { bordered v-model:pagination="pagination" flat - :card-container-class="mode === 'card' ? 'q-col-gutter-md' : ''" :grid="mode === 'card'" :visible-columns="visibleColumns" > @@ -371,50 +370,44 @@ onMounted(() => { diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue index 222fa2033..e27628e6b 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue @@ -635,7 +635,6 @@ onMounted(async () => { { @@ -1316,10 +1251,6 @@ onMounted(async () => { border: 1px solid #d0d0d0; } -.label-color { - color: #747474cc; -} - .bg-color { background-color: #fafafa; } diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue index 35d7bd696..ff65f9f40 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue @@ -439,7 +439,6 @@ onMounted(() => { v-model="visibleColumns" multiple outlined - v-if="mode === 'table'" dense options-dense :display-value="$q.lang.table.columns" @@ -550,9 +549,7 @@ onMounted(() => { @@ -795,10 +787,6 @@ onMounted(() => {