- |
+ |
URL
URL
{{ station[propName] ? 'POKAŻ' : 'DODAJ' }}
-
-
+
+ {{ station.routesInfo.length }}
+
{{ station[propName] }}
@@ -64,14 +65,13 @@ import changeMixin from '../mixins/changeMixin';
import RoutesModal from '../components/RoutesModal.vue';
import TableActions from '../components/TableActions.vue';
import UpdateCard from '../components/UpdateCard.vue';
-import RouteList from '../components/RouteList.vue';
import { AuthState } from '../types/auth.types';
import { SceneryRowItem, Availability } from '../types/sceneries.types';
import { useSceneriesStore } from '../stores/sceneries.store';
import { useAuthStore } from '../stores/auth.store';
export default defineComponent({
- components: { RoutesModal, TableActions, UpdateCard, RouteList },
+ components: { RoutesModal, TableActions, UpdateCard },
mixins: [changeMixin],
data: () => ({
@@ -79,6 +79,26 @@ export default defineComponent({
authStore: useAuthStore(),
AuthState,
+
+ headers: [
+ { id: 'name', value: 'Nazwa', width: 150 },
+ { id: 'abbr', value: 'Skrót post.', width: 60 },
+ { id: 'hash', value: 'Hash', width: 120 },
+ { id: 'url', value: 'URL', width: 80 },
+ { id: 'projectUrl', value: 'URL projektu', width: 80 },
+ { id: 'lines', value: 'Linie', width: 80 },
+ { id: 'project', value: 'Projekt', width: 100 },
+ { id: 'reqLevel', value: 'Wym. poziom', width: 80 },
+ { id: 'signalType', value: 'Sygnalizacja', width: 150 },
+ { id: 'controlType', value: 'Sterowanie', width: 180 },
+ { id: 'SUP', value: 'SUP', width: 70 },
+ { id: 'ASDEK', value: 'ASDEK', width: 70 },
+ { id: 'authors', value: 'Autorzy', width: 200 },
+ { id: 'routes', value: 'Szlaki', width: 70 },
+ { id: 'checkpoints', value: 'Posterunki', width: 100 },
+ { id: 'hidden', value: 'Ukryty', width: 80 },
+ ],
+
headerNameList: {
name: 'Nazwa',
abbr: 'Skrót posterunku',
@@ -130,7 +150,7 @@ export default defineComponent({
return;
}
- let newValue = prompt(`Zmień wartość dla rubryki ${this.headerNameList[propertyName]}`, oldValue || '');
+ let newValue = prompt(`Zmień wartość dla rubryki ${this.headers.find(h => h.id === propertyName)?.value ?? ''}`, oldValue || '');
if (newValue == null) return;
(this.sceneriesStore.stationList[stationListRow] as any)[propertyName] = typeof oldValue === 'number' ? parseInt(newValue) : newValue;
// this.$set(this.stationList[stationListRow], propertyName, parseInt(newValue));
@@ -173,17 +193,18 @@ export default defineComponent({
|