feat(WIP): processing 물자원조
- nations, nationList를 nationList로 통합
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user