diff --git a/components/controlPage/index.vue b/components/controlPage/index.vue
index 80b8f71..34ef360 100644
--- a/components/controlPage/index.vue
+++ b/components/controlPage/index.vue
@@ -15,8 +15,8 @@
- 急停有效:
-
+ 急停状态:
+
自动装填:
@@ -46,14 +46,14 @@
- 急停有效:
+ 急停状态:
- :
- 有效
+ :
+ 急停
:
- 无效
+ 正常
@@ -149,7 +149,7 @@
编码器位置:
- {{deviceData.encoderPosition}}mm
+ {{deviceData.encoderPosition}}圈
@@ -186,11 +186,11 @@
设备控制
- 对接
- 装填
- 退货
- 急停
- 恢复
+ 对接
+ 装填
+ 退货
+ 急停
+ 恢复
@@ -235,32 +235,45 @@
lightFlag: 1,//设备状态:0-正常、1-异常
},
errorIcon:'../../static/image/error.png',
- normalIcon:'../../static/image/normal.png'
+ normalIcon:'../../static/image/normal.png',
+ stopIcon:'../../static/image/stopIcon.png'
}
},
methods:{
- controlDevice(value){
+ controlDevice(value,contents){
console.log(value)
- httpPost({
- url:`/zhxx/dt/horizonLoadIControl/${value}`,
- data:{}
- }).then((res)=>{
- console.log(res)
-
- if(res.data.code==200){
- this.$eventBus.emit('showToast',{title:res.data.msg,duration:1000,icon:'success'})
- }else {
- console.log(22222)
- this.$eventBus.emit('showToast',{title:res.data.msg?res.data.msg:'请求失败',duration:1000,icon:'error'})
+ let that=this;
+
+ uni.showModal({
+ title:'提示',
+ content:`是否执行${contents}操作?`,
+ success:function(states) {
+ if(states.confirm){
+ httpPost({
+ url:`/zhxx/dt/horizonLoadIControl/${value}`,
+ data:{}
+ }).then((res)=>{
+ console.log(res)
+
+ if(res.data.code==200){
+ that.$eventBus.emit('showToast',{title:res.data.msg,duration:1000,icon:'success'})
+ }else {
+ console.log(res.data.msg)
+ that.$eventBus.emit('showToast',{title:res.data.msg?res.data.msg:'请求失败',duration:1000,icon:'error'})
+ }
+ }).catch((Error)=>{
+ // console.log(Error)
+ uni.showToast({
+ title: Error,
+ icon: "error",
+ duration: 1000
+ })
+ })
+ }else{
+ console.log('fewfewfew')
+ }
}
- }).catch((Error)=>{
- // console.log(Error)
- uni.showToast({
- title: Error,
- icon: "error",
- duration: 1000
- })
- })
+ })
}
},
computed:{
@@ -393,8 +406,8 @@
}
.Icon{
- width: 24px;
- height: 24px;
+ width: 18px;
+ height: 20px;
}
.left-bottom{
diff --git a/static/image/error.png b/static/image/error.png
index 89ba7df..d61559e 100644
Binary files a/static/image/error.png and b/static/image/error.png differ
diff --git a/static/image/logo.png b/static/image/logo.png
index c4828b0..36e28c2 100644
Binary files a/static/image/logo.png and b/static/image/logo.png differ
diff --git a/static/image/logo2.png b/static/image/logo2.png
new file mode 100644
index 0000000..c4828b0
Binary files /dev/null and b/static/image/logo2.png differ
diff --git a/static/image/normal.png b/static/image/normal.png
index 141be39..d3407d5 100644
Binary files a/static/image/normal.png and b/static/image/normal.png differ
diff --git a/static/image/stopIcon.png b/static/image/stopIcon.png
new file mode 100644
index 0000000..1e919d6
Binary files /dev/null and b/static/image/stopIcon.png differ