Skip to content

Commit

Permalink
update filter  67
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEP00H committed Aug 30, 2023
1 parent 6da6378 commit c158ddf
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
3 changes: 2 additions & 1 deletion components/budget/charts/DropDownYearList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ export default {
data() {
return {
yearList: [
{ label: "2561-2566", value: "" },
{ label: "2561-2567", value: "" },
{ label: "2561", value: 61 },
{ label: "2562", value: 62 },
{ label: "2563", value: 63 },
{ label: "2564", value: 64 },
{ label: "2565", value: 65 },
{ label: "2566", value: 66 },
{ label: "2567", value: 67 },
],
};
},
Expand Down
7 changes: 2 additions & 5 deletions components/budget/charts/HorizontalBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
class="bg-black flex text-white w-fit wv-b6 px-[10px] py-[6px] rounded-[5px] cursor-pointer"
@click="handleModal"
>
<img
src="~/assets/icons/seemore.svg"
class=" mr-2"
/>
<img src="~/assets/icons/seemore.svg" class="mr-2" />
ดูรายการใช้งบ
</div>
</ModalDetails>
Expand Down Expand Up @@ -309,7 +306,7 @@ export default {
).length,
};
} else {
this.updateSelectYearStrategy({ label: "2561-2566", value: "" });
this.updateSelectYearStrategy({ label: "2561-2567", value: "" });
this.filterYears = this.isModalDetails;
}
},
Expand Down
11 changes: 6 additions & 5 deletions components/budget/charts/ModalDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,16 @@ export default {
filterYears: [],
defaultByFilter: [],
isProject: false,
selectFilter: "2561-2566",
selectFilter: "2561-2567",
yearList: [
{ label: "2561-2566", value: "" },
{ label: "2561-2567", value: "" },
{ label: "2561", value: 61 },
{ label: "2562", value: 62 },
{ label: "2563", value: 63 },
{ label: "2564", value: 64 },
{ label: "2565", value: 65 },
{ label: "2566", value: 66 },
{ label: "2567", value: 67 },
],
};
},
Expand Down Expand Up @@ -213,11 +214,11 @@ export default {
});
} else {
if (this.page === "organize")
this.updateSelectYearOrganize({ label: "2561-2566", value: "" });
this.updateSelectYearOrganize({ label: "2561-2567", value: "" });
if (this.page === "strategy")
this.updateSelectYearStrategy({ label: "2561-2566", value: "" });
this.updateSelectYearStrategy({ label: "2561-2567", value: "" });
if (this.page === "keyword")
this.updateSelectKeywordStrategy({ label: "2561-2566", value: "" });
this.updateSelectKeywordStrategy({ label: "2561-2567", value: "" });
this.filterYears = this.isModalDetails;
}
},
Expand Down
2 changes: 1 addition & 1 deletion components/expore/SurveyByKeyword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export default {
const groupOrganize = Object.keys(_.groupBy(response.items, "nameOrganization"));
this.filterOrganize = [`${groupOrganize.length} หน่วยงาน`, ...groupOrganize];
this.selectFilter = this.filterOrganize[0];
this.updateSelectKeywordStrategy({ label: "2561-2566", value: "" });
this.updateSelectKeywordStrategy({ label: "2561-2567", value: "" });
this.updateIsModalDetails(response);
this.updateSubTitleModal(
`ที่มีคำว่า “${this.selectedKey.Word}” ในชื่อ ซึ่งของบโดย “${this.filterOrganize.length} หน่วยงาน”`,
Expand Down
13 changes: 8 additions & 5 deletions components/expore/SurveyByOrganize.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
id="byYears"
class="mt-7 md:w-[80%] mx-auto lg:w-full flex lg:space-x-[35px] min-h-screen flex-col lg:flex-row justify-center relative"
>
<div class="fixed w-full bottom-0 ">
<div class="fixed w-full bottom-0">
<div
id="scrollTopTop"
@click="scrollToTop"
Expand Down Expand Up @@ -39,7 +39,9 @@
</div>
<div class="lg:max-w-[685px] mt-3 flex-1 flex flex-col justify-between">
<div class="flex items-center">
<p class="wv-h8 font-bold mr-2 wv-kondolar" id="topic-pointer">หน่วยงานที่ได้รับงบในปี</p>
<p class="wv-h8 font-bold mr-2 wv-kondolar" id="topic-pointer">
หน่วยงานที่ได้รับงบในปี
</p>
<el-select
v-model="selectFilterYear"
placeholder="Select"
Expand Down Expand Up @@ -163,15 +165,16 @@ export default {
],
selectedFilter: "งบมากไปน้อย",
isFilterModal: false,
selectFilterYear: "2561-2566",
selectFilterYear: "2561-2567",
yearList: [
{ label: "2561-2566", value: "" },
{ label: "2561-2567", value: "" },
{ label: "2561", value: 61 },
{ label: "2562", value: 62 },
{ label: "2563", value: 63 },
{ label: "2564", value: 64 },
{ label: "2565", value: 65 },
{ label: "2566", value: 66 },
{ label: "2567", value: 67 },
],
};
},
Expand Down Expand Up @@ -250,7 +253,7 @@ export default {
.length,
};
} else {
this.updateSelectYearOrganize({ label: "2561-2566", value: "" });
this.updateSelectYearOrganize({ label: "2561-2567", value: "" });
this.filterYears = this.isModalDetails;
}
this.fetchByOrganizeYear(year);
Expand Down
2 changes: 1 addition & 1 deletion pages/about/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default Vue.extend({
names: [
"<a href='https://www.linkedin.com/mwlite/in/pimpatipan-angkharuengrattana-560898209' target='_blank'>พิมพ์ปฏิภาณ อังคเรืองรัตนา<a/>,&nbsp;",
"<a href='https://github.com/palminister' target='_blank'>ธนภัทร จำนงรัตน์ </a>,&nbsp;",
"ณัฐกิตติ์ แซ่ตัน",
"ณัฐกิตติ์ แซ่ตัน,&nbsp",
"<a href='https://github.com/napatswift' target='_blank'>ณภัทร ดลภาวิจิต</a>,&nbsp;",
"<a href='https://github.com/mixth' target='_blank'>ณรัฐ สุชาติสุนทร</a>,&nbsp;",
"<a href='https://github.com/MEEP00H' target='_blank'>โสภณ จำปาซ่อนกลิ่น</a>",
Expand Down
6 changes: 3 additions & 3 deletions store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export const state = (): State => ({
project_type: "",
project_id: "",
},
selectYearOrganize: { label: "2561-2566", value: "" },
selectYearStrategy: { label: "2561-2566", value: "" },
selectKeywordStrategy: { label: "2561-2566", value: "" },
selectYearOrganize: { label: "2561-2567", value: "" },
selectYearStrategy: { label: "2561-2567", value: "" },
selectKeywordStrategy: { label: "2561-2567", value: "" },
selectedSurvey: [],
});

Expand Down

0 comments on commit c158ddf

Please sign in to comment.