| | |
| | | var stationTracePageVersion = "20260319_station_trace_layout_v2"; |
| | | |
| | | Vue.component("devp-card", { |
| | | template: ` |
| | | <div class="mc-root"> |
| | |
| | | <div class="mc-action-row"> |
| | | <button type="button" class="mc-btn" @click="controlCommand">下发</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="resetCommand">复位</button> |
| | | <button type="button" class="mc-btn mc-btn-ghost" @click="openStationTracePage">运行轨迹</button> |
| | | <button v-if="showFakeTraceEntry" type="button" class="mc-btn mc-btn-ghost" @click="openFakeTracePage">仿真轨迹</button> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | window.open(baseUrl + "/views/watch/fakeTrace.html", "_blank"); |
| | | }, |
| | | openStationTracePage: function () { |
| | | window.open(baseUrl + "/views/watch/stationTrace.html?v=" + stationTracePageVersion, "_blank"); |
| | | }, |
| | | buildDetailEntries: function (item) { |
| | | return [ |
| | | { label: "编号", value: this.orDash(item.stationId) }, |