| | |
| | | @click="clickClearStationName"></uni-icons> |
| | | </view> |
| | | <view class="text-button-group"> |
| | | <a-button class="button" @click="clickStationNameCancel">取消</a-button> |
| | | <a-button class="button" @click="clickStationNameCancel">{{translate('cancel')}}</a-button> |
| | | <a-button type="primary" class="button" :disabled="stationEdit.name.trim() == ''" |
| | | @click="clickStationNameOK">确定</a-button> |
| | | @click="clickStationNameOK">{{translate('ok')}}</a-button> |
| | | </view> |
| | | </view> |
| | | <view class="bottom-content" v-else-if="mapOperationType =='add_station_pos'"> |
| | |
| | | <view class="img-button-group"> |
| | | <view fill="none" class="button" @click.stop="clickTeachingEdit"> |
| | | <text class="ico edit-line"></text> |
| | | <view class="text">编辑</view> |
| | | <view class="text">{{translate('edit')}}</view> |
| | | </view> |
| | | <view fill="none" class="button" @click.stop="clickTeachingDelete"> |
| | | <text class="ico red delete-outline "></text> |
| | | <view class="text">删除</view> |
| | | <view class="text">{{translate('delete')}}</view> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | bgProgressPercent: 0, |
| | | bgLoading: false |
| | | }) |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | async loadAgvState() { |
| | |
| | | const info = await getAgvState(this.vehicleIp) |
| | | return info |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | return {} |
| | | } |
| | | }, |
| | |
| | | const info = await stations(this.vehicleIp) |
| | | return info.station_list || [] |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | return [] |
| | | } |
| | | }, |
| | |
| | | const info = await getMapUrl(this.vehicleIp, id) |
| | | return info |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | return {} |
| | | } |
| | | }, |
| | |
| | | } |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | return { |
| | | Public: [], |
| | | Stations: [] |
| | |
| | | ]) |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | |
| | | } |
| | | }, |
| | |
| | | param: item, |
| | | }]) |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | async removeTeachingModeData(data) { |
| | |
| | | await delTeachingModeData(this.vehicleIp, data) |
| | | this.reloadTeachingMode() |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | clickPublicTeaching() { |
| | |
| | | }]) |
| | | this.mapOperationType = 'public_teaching' |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | async stationAdd(item) { |
| | |
| | | |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | async teachingStart(mode) { |
| | |
| | | } |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | |
| | | }, |
| | |
| | | this.askTeachingBiDirection(this.teachingModeCur) |
| | | } |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | |
| | | }, |
| | |
| | | } |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | |
| | |
| | | }]) |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | |
| | |
| | | stationTeaching.splice(curIndex, 1) |
| | | _this.teachingStart("Stations") |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | |
| | | } else { |
| | |
| | | } |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | clickTeachingEnd() { |
| | |
| | | _this.reloadTeachingMode() |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | } else { |
| | | _this.teachingStatus = "save" |
| | |
| | | |
| | | this.teachingStatus = "save" |
| | | try {} catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | |
| | | }, |
| | |
| | | |
| | | } |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | } |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | askTeachingBiDirection(teachingMode) { |
| | |
| | | this.reloadTeachingMode() |
| | | this.teachingStatus = "end" |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | clickBackTeaching() { |
| | |
| | | } |
| | | |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | |
| | | }, |
| | |
| | | } |
| | | }]) |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | async clickShowTeachingPath() { |
| | |
| | | ]) |
| | | console.log(this.ctxDataStr) |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | async clickPositionStation() { |
| | |
| | | |
| | | ]) |
| | | } catch (ex) { |
| | | showError(ex) |
| | | showError(ex,this.translate('error')) |
| | | } |
| | | }, |
| | | |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | | else return t; |
| | | }, |
| | | |
| | | } |
| | | } |