| | |
| | | <template> |
| | | <view class="pages-map-task"> |
| | | <view class="no-content" v-if="unlinked"> |
| | | <image class="img" src="/images/image 25.png" alt=" 图片" mode="aspectFit" /> |
| | | <image class="img" src="/images/image_25.png" alt=" 图片" mode="aspectFit" /> |
| | | <view class="title">车辆连接失败</view> |
| | | <view class="space">请检查你的网络设置或重新加载</view> |
| | | </view> |
| | |
| | | <script> |
| | | import { |
| | | showToast, |
| | | showModal |
| | | showModal, |
| | | showError, |
| | | showInfo |
| | | } from "@/comm/utils.js" |
| | | import { |
| | | Button |
| | |
| | | const info = await getAgvState(this.vehicleIp) |
| | | return info |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | return {} |
| | | } |
| | | }, |
| | |
| | | const info = await stations(this.vehicleIp) |
| | | return info.station_list || [] |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | return [] |
| | | } |
| | | }, |
| | |
| | | uni.navigateTo({ |
| | | url: `/pages/task/log-list?ip=${this.vehicleIp}` |
| | | }) |
| | | }, |
| | | showError(ex) { |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.msg == "string" ? ex.msg : exStr |
| | | showModal(tip, "错误", false) |
| | | }, |
| | | |
| | | |
| | |
| | | margin-top: 75px; |
| | | margin-left: 120px; |
| | | width: 150px; |
| | | max-height: 50vh; |
| | | overflow: auto; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |