feat(WIP): processing, 출병 추가
- 장수 선택기 추가 - v-model 안 쓰는 바보짓 수정 - proc 전역 변수를 procRes로 묶음
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<CitySelect :cities="citiesMap" :modelValue="selectedCityID" />
|
||||
<CitySelect :cities="citiesMap" v-model="selectedCityID" />
|
||||
</div>
|
||||
<div class="col">
|
||||
<b-button @click="submit">{{ commandName }}</b-button>
|
||||
@@ -44,10 +44,14 @@ import { Args } from "@/processing/args";
|
||||
import TopBackBar from "@/components/TopBackBar.vue";
|
||||
import BottomBar from "@/components/BottomBar.vue";
|
||||
declare const mapTheme: string;
|
||||
declare const cities: [number, string][];
|
||||
declare const currentCity: number;
|
||||
declare const distanceList: Record<number, number[]>;
|
||||
declare const commandName: string;
|
||||
declare const currentCity: number;
|
||||
declare const procRes: {
|
||||
distanceList: Record<number, number[]>,
|
||||
cities: [number, string][],
|
||||
}
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
MapLegacyTemplate,
|
||||
@@ -69,10 +73,9 @@ export default defineComponent({
|
||||
info?: string;
|
||||
}
|
||||
>();
|
||||
for (const [id, name] of cities) {
|
||||
for (const [id, name] of procRes.cities) {
|
||||
citiesMap.set(id, { name });
|
||||
}
|
||||
console.log(citiesMap);
|
||||
|
||||
const selectedCityID = ref(currentCity);
|
||||
|
||||
@@ -94,7 +97,7 @@ export default defineComponent({
|
||||
citiesMap: ref(citiesMap),
|
||||
selectedCityID,
|
||||
selectedCityObj: ref(undefined as MapCityParsed | undefined),
|
||||
distanceList,
|
||||
distanceList: procRes.distanceList,
|
||||
commandName,
|
||||
selected,
|
||||
submit,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<CitySelect :cities="citiesMap" :modelValue="selectedCityID" />
|
||||
<CitySelect :cities="citiesMap" v-model="selectedCityID" />
|
||||
</div>
|
||||
<div class="col">
|
||||
<b-button @click="submit">{{ commandName }}</b-button>
|
||||
@@ -44,10 +44,12 @@ import { Args } from "@/processing/args";
|
||||
import TopBackBar from "@/components/TopBackBar.vue";
|
||||
import BottomBar from "@/components/BottomBar.vue";
|
||||
declare const mapTheme: string;
|
||||
declare const cities: [number, string][];
|
||||
declare const currentCity: number;
|
||||
declare const distanceList: Record<number, number[]>;
|
||||
declare const commandName: string;
|
||||
declare const procRes: {
|
||||
distanceList: Record<number, number[]>,
|
||||
cities: [number, string][],
|
||||
}
|
||||
export default defineComponent({
|
||||
components: {
|
||||
MapLegacyTemplate,
|
||||
@@ -69,10 +71,9 @@ export default defineComponent({
|
||||
info?: string;
|
||||
}
|
||||
>();
|
||||
for (const [id, name] of cities) {
|
||||
for (const [id, name] of procRes.cities) {
|
||||
citiesMap.set(id, { name });
|
||||
}
|
||||
console.log(citiesMap);
|
||||
|
||||
const selectedCityID = ref(currentCity);
|
||||
|
||||
@@ -94,7 +95,7 @@ export default defineComponent({
|
||||
citiesMap: ref(citiesMap),
|
||||
selectedCityID,
|
||||
selectedCityObj: ref(undefined as MapCityParsed | undefined),
|
||||
distanceList,
|
||||
distanceList: procRes.distanceList,
|
||||
commandName,
|
||||
selected,
|
||||
submit,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<CitySelect :cities="citiesMap" :modelValue="selectedCityID" />
|
||||
<CitySelect :cities="citiesMap" v-model="selectedCityID" />
|
||||
</div>
|
||||
<div class="col">
|
||||
<b-button @click="submit">{{ commandName }}</b-button>
|
||||
@@ -38,9 +38,11 @@ import { Args } from "@/processing/args";
|
||||
import TopBackBar from "@/components/TopBackBar.vue";
|
||||
import BottomBar from "@/components/BottomBar.vue";
|
||||
declare const mapTheme: string;
|
||||
declare const cities: [number, string][];
|
||||
declare const currentCity: number;
|
||||
declare const commandName: string;
|
||||
declare const procRes: {
|
||||
cities: [number, string][],
|
||||
}
|
||||
export default defineComponent({
|
||||
components: {
|
||||
MapLegacyTemplate,
|
||||
@@ -61,10 +63,9 @@ export default defineComponent({
|
||||
info?: string;
|
||||
}
|
||||
>();
|
||||
for (const [id, name] of cities) {
|
||||
for (const [id, name] of procRes.cities) {
|
||||
citiesMap.set(id, { name });
|
||||
}
|
||||
console.log(citiesMap);
|
||||
|
||||
const selectedCityID = ref(currentCity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user