From fb026e6052b4d843d327312db398cf791ac57ab9 Mon Sep 17 00:00:00 2001
From: cyy <cuiqian2004@163.com>
Date: 星期日, 28 九月 2025 22:43:29 +0800
Subject: [PATCH] test
---
pages/station/index.vue | 39 +++++++++++++++++----------------------
1 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/pages/station/index.vue b/pages/station/index.vue
index a4e7884..c22a196 100644
--- a/pages/station/index.vue
+++ b/pages/station/index.vue
@@ -45,7 +45,7 @@
<view class="tip">璇疯緭鍏ョ珯鐐瑰悕绉�/view>
<view class="name-input">
<input ref="refInputName" :focus="true" placeholder="杈撳叆绔欑偣鍚嶇О" :value="stationEdit.name"
- @input="onInputName"></input>
+ @input="onInputName"/>
<uni-icons class="clear" color="#ccc" type="clear" size="20" v-if="showClearName"
@click="clickClearName"></uni-icons>
</view>
@@ -60,19 +60,19 @@
<view class="coordinate">
<text class="name">妯潗鏍�</text>
<input ref="refInputX" class="number-input" type="number" :value="stationEdit.x"
- @input="onInputX"></input>
+ @input="onInputX"/>
</view>
<view class="coordinate">
<text class="name">绔栧潗鏍�</text>
<input ref="refInputX" class="number-input" type="number" :value="stationEdit.y"
- @input="onInputY"></input>
+ @input="onInputY"/>
</view>
</view>
<view class="tip">璋冭妭鏈濆悜</view>
<view class="angle-group">
<image class="img-angle" :src="angleSvg" alt="SVG 鍥剧墖" />
- <image class="img-angle-pos" src="/images/Frame 153.svg" alt="SVG 鍥剧墖"
+ <image class="img-angle-pos" src="/images/Frame_153.svg" alt="SVG 鍥剧墖"
@touchstart="handleAngleTouchStart" @touchmove="handleAngleTouchMove" />
</view>
<a-button type="primary" class="button" @click="clickPosOK">瀹屾垚</a-button>
@@ -110,8 +110,10 @@
showToast,
showModal,
session,
+ showError,
+ showInfo
} from "@/comm/utils.js"
- // import OIFabric from "@/components/oi-fabric/index.vue"
+
import {
Button
} from 'antd-mobile-vue-next'
@@ -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 []
}
},
@@ -386,7 +388,7 @@
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -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