| | |
| | | cabinetCode: string |
| | | cabinetName: string |
| | | ipAddress: string |
| | | macAddress: string |
| | | macAddress: string | null |
| | | manufacturer: string |
| | | model: string |
| | | capacity: number |
| | |
| | | export interface DiscoveredCabinet { |
| | | deviceCode: string |
| | | ip: string |
| | | mac: string |
| | | mac: string | null |
| | | name: string | null |
| | | manufacturer: string | null |
| | | model: string | null |
| | | channelCount: number |
| | | onlineStatus: CabinetOnlineStatus |
| | | testStatus: CabinetTestStatus |
| | | currentTest: string |
| | |
| | | cabinetCode: payload.deviceCode, |
| | | cabinetName: payload.name, |
| | | ipAddress: payload.ip, |
| | | macAddress: payload.mac, |
| | | macAddress: payload.mac || null, |
| | | manufacturer: payload.manufacturer, |
| | | model: payload.model, |
| | | capacity: payload.specs, |
| | |
| | | Object.assign(form, { |
| | | deviceCode: device.deviceCode, |
| | | ip: device.ip, |
| | | mac: device.mac, |
| | | mac: device.mac || '', |
| | | name: device.name || device.deviceCode, |
| | | manufacturer: device.manufacturer || '', |
| | | model: device.model || '', |
| | | channelCount: device.channelCount, |
| | | onlineStatus: device.onlineStatus, |
| | | testStatus: device.testStatus, |
| | | currentTest: device.currentTest, |
| | |
| | | <table class="device-table"> |
| | | <thead><tr><th>设备编码</th><th>IP</th><th>MAC</th><th>操作</th></tr></thead> |
| | | <tbody> |
| | | <tr v-for="device in devices" :key="device.deviceCode"><td>{{ device.deviceCode }}</td><td>{{ device.ip }}</td><td>{{ device.mac }}</td><td><button type="button" @click="selectDevice(device)">选择</button></td></tr> |
| | | <tr v-for="device in devices" :key="device.deviceCode"><td>{{ device.deviceCode }}</td><td>{{ device.ip }}</td><td>{{ device.mac || '-' }}</td><td><button type="button" @click="selectDevice(device)">选择</button></td></tr> |
| | | <tr v-if="!deviceLoading && !devices.length"><td colspan="4" class="device-empty">暂无可发现设备</td></tr> |
| | | </tbody> |
| | | </table> |