| | |
| | | this.calibratioStationType = "end" |
| | | this.$refs.refPopupCalibration.open() |
| | | } else { |
| | | this.teachingModeCur.teaching_flag = 0 |
| | | await teachingModeFlag(this.ip, this.teachingModeCur) |
| | | this.teachingMode = await getTeachingMode(this.ip) |
| | | |
| | | this.teachingStatus = "end" |
| | | this.askTeachingBiDirection(this.teachingModeCur) |
| | | |
| | | } |
| | | } else { |
| | | this.teachingModeCur.teaching_flag = 0 |
| | | await teachingModeFlag(this.ip, this.teachingModeCur) |
| | | this.teachingMode = await getTeachingMode(this.ip) |
| | | this.teachingStatus = "end" |
| | | this.askTeachingBiDirection(this.teachingModeCur) |
| | | } |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | |
| | | list[curIndex].y = infoAgv.y |
| | | |
| | | } |
| | | this.teachingStatus = "end" |
| | | this.teachingModeCur.teaching_flag = 0 |
| | | await teachingModeFlag(this.ip, this.teachingModeCur) |
| | | this.teachingMode = await getTeachingMode(this.ip) |
| | | this.askTeachingBiDirection(this.teachingModeCur) |
| | | |
| | | |
| | | } |
| | | } catch (ex) { |
| | |
| | | |
| | | } else if (this.calibratioStationType == "end") { |
| | | |
| | | this.teachingModeCur.teaching_flag = 0 |
| | | await teachingModeFlag(this.ip, this.teachingModeCur) |
| | | this.teachingMode = await getTeachingMode(this.ip) |
| | | this.askTeachingBiDirection(this.teachingModeCur) |
| | | |
| | | } |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | } |
| | | }, |
| | | askTeachingBiDirection(teachingMode) { |
| | | showModal("是否将当前示教路线设置为双向?", "示教结束").then((res) => { |
| | | if (res) { |
| | | teachingMode.bidirection = "1" |
| | | } else { |
| | | teachingMode.bidirection = "0" |
| | | } |
| | | teachingMode.teaching_flag = 0 |
| | | this.finishTeaching(teachingMode) |
| | | }) |
| | | |
| | | }, |
| | | async finishTeaching(teachingMode) { |
| | | try { |
| | | await teachingModeFlag(this.ip, teachingMode) |
| | | this.teachingMode = await getTeachingMode(this.ip) |
| | | this.teachingStatus = "end" |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | } |
| | |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.msg == "string" ? ex.msg : exStr |
| | | showModal(tip, "错误", false) |
| | | showModal(tip, "错误", false, "确定") |
| | | }, |
| | | |
| | | |