2 <tr v-for="(connector, index) in getConnector()" class="cs-table__row">
6 :connector-id="index + 1"
9 <td class="cs-table__name-col">{{ getId() }}</td>
10 <td class="cs-table__model-col">{{ getModel() }}</td>
11 <td class="cs-table__vendor-col">{{ getVendor() }}</td>
12 <td class="cs-table__firmware-col">{{ getFirmwareVersion() }}</td>
16 <script setup lang="ts">
17 import CSConnector from './CSConnector.vue';
19 import { reactive } from 'vue';
20 import Utils from '@/composable/Utils';
25 } from '@/type/ChargingStationType';
27 const props = defineProps<{
28 chargingStation: ChargingStationData;
33 isTagModalVisible: boolean;
36 const state: State = reactive({
37 isTagModalVisible: false,
41 function getHashId(): string {
42 return props.chargingStation.hashId;
44 function getConnector(): Array<ConnectorStatus> {
45 return props.chargingStation.connectors.slice(1);
47 function getInfo(): ChargingStationInfo {
48 return props.chargingStation.stationInfo;
50 function getId(): string {
51 return Utils.ifUndefined<string>(getInfo().chargingStationId, 'Ø');
53 function getModel(): string {
54 return getInfo().chargePointModel;
56 function getVendor(): string {
57 return getInfo().chargePointVendor;
59 function getFirmwareVersion(): string {
60 return Utils.ifUndefined<string>(getInfo().firmwareVersion, 'Ø');
62 // function showTagModal(): void {
63 // state.isTagModalVisible = true;
65 // function hideTagModal(): void {
66 // state.isTagModalVisible = false;