feat(WIP): processing 물자원조

- nations, nationList를 nationList로 통합
This commit is contained in:
2021-12-22 01:01:06 +09:00
parent f951f313d2
commit 95f079474e
9 changed files with 280 additions and 94 deletions
@@ -29,7 +29,7 @@
<div class="row">
<div class="col-6 col-md-3">
국가 :
<NationSelect :nations="nations" v-model="selectedNationID" />
<NationSelect :nations="nationList" v-model="selectedNationID" />
</div>
<div class="col-4 col-md-2 d-grid">
<b-button @click="submit">{{ commandName }}</b-button>
@@ -54,7 +54,7 @@ declare const mapTheme: string;
declare const commandName: string;
declare const procRes: {
nations: procNationList;
nationList: procNationList;
startYear: number,
};
@@ -74,12 +74,12 @@ export default defineComponent({
},
},
setup() {
const nations = new Map<number, procNationItem>();
for (const nationItem of procRes.nations) {
nations.set(nationItem.id, nationItem);
const nationList = new Map<number, procNationItem>();
for (const nationItem of procRes.nationList) {
nationList.set(nationItem.id, nationItem);
}
const selectedNationID = ref(procRes.nations[0].id);
const selectedNationID = ref(procRes.nationList[0].id);
const selectedCityObj = ref();//mapping용
function selectedNation(nationID: number) {
@@ -98,7 +98,7 @@ export default defineComponent({
return {
startYear: procRes.startYear,
mapTheme: ref(mapTheme),
nations: ref(nations),
nationList: ref(nationList),
selectedCityObj,
selectedNationID,
commandName,