| | |
| | | <script> |
| | | import { |
| | | showToast, |
| | | showModal |
| | | showModal, |
| | | showError, |
| | | showInfo |
| | | } from "@/comm/utils.js" |
| | | import { |
| | | Button |
| | |
| | | const info = await stations(this.ip) |
| | | this.stationList = info.station_list || [] |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | } |
| | | }, |
| | | async clickSave() { |
| | |
| | | showToast("未选择任务属性!") |
| | | return |
| | | } |
| | | uni.showLoading({ |
| | | title:"任务更新中" |
| | | }) |
| | | const task = { |
| | | taskGroupID: this.form.taskGroupID, |
| | | taskGroupName: name, |
| | |
| | | delta: 1, //返回层数,2则上上页 |
| | | }) |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | } |
| | | finally { |
| | | uni.hideLoading() |
| | | } |
| | | }, |
| | | clickCancel() { |
| | |
| | | }) |
| | | |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | } |
| | | |
| | | }, |
| | |
| | | closeMenu() { |
| | | this.$refs.refPopupMenu.close() |
| | | }, |
| | | showError(ex) { |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.msg == "string" ? ex.msg : exStr |
| | | showModal(tip, "错误", false,"确定") |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |