From d8743368ffda9bc0fb2c6818f695a9a6b1079e57 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 19 九月 2025 18:22:15 +0800
Subject: [PATCH] laster
---
pages/station/index.vue | 33 ++++++++++++++-------------------
1 files changed, 14 insertions(+), 19 deletions(-)
diff --git a/pages/station/index.vue b/pages/station/index.vue
index 82b6154..abf4d17 100644
--- a/pages/station/index.vue
+++ b/pages/station/index.vue
@@ -110,6 +110,8 @@
showToast,
showModal,
session,
+ showError,
+ showInfo
} from "@/comm/utils.js"
// import OIFabric from "@/components/oi-fabric/index.vue"
import {
@@ -258,7 +260,7 @@
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
async loadAgvState() {
@@ -266,7 +268,7 @@
const info = await getAgvState(this.ip)
return info
} catch (ex) {
- this.showError(ex)
+ showError(ex)
return {}
}
},
@@ -275,7 +277,7 @@
const info = await stations(this.ip)
return info.station_list || []
} catch (ex) {
- this.showError(ex)
+ showError(ex)
return []
}
},
@@ -359,7 +361,7 @@
this.pressStationTimer = null;
},
clickDelStation(item) {
- showModal("纭鍒犻櫎绔欑偣", "璀﹀憡").then((res) => {
+ showModal("纭鍒犻櫎绔欑偣", "璀﹀憡",true,"纭畾","鍙栨秷").then((res) => {
if (res) {
this.deleteStation(item)
}
@@ -386,13 +388,13 @@
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
clickStationDelete() {
const _this = this
- showModal("纭鍒犻櫎绔欑偣", "璀﹀憡").then((res) => {
+ showModal("纭鍒犻櫎绔欑偣", "璀﹀憡",true,"纭畾","鍙栨秷").then((res) => {
if (res) {
_this.deleteStation(this.stationEdit)
_this.$refs.refPopupOperateStation.close()
@@ -433,7 +435,7 @@
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
async stationUpdate(item) {
@@ -449,7 +451,7 @@
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -497,7 +499,7 @@
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -527,7 +529,7 @@
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
clickClearName() {
@@ -664,17 +666,10 @@
this.angleSvg = `/static/images/angle${angle}.svg`
this.stationEdit.angle = angle * 3.14 / 180
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
- showError(ex) {
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.msg == "string" ? ex.msg : exStr
- showModal(tip, "閿欒", false)
- },
-
+
}
}
--
Gitblit v1.9.1