|
|
@@ -351,15 +351,6 @@
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
|
|
|
-<!-- <u-popup :show="!onlineStatus" mode="center" :closeOnClickOverlay="true" :closeable="true" @close="onlineStatus=false">-->
|
|
|
-<!-- <view style="-->
|
|
|
-<!-- margin:2%;padding:10%; /* 背景色 */color: #000; padding: 10px; /* 内边距 */border-radius: 5px; /* 圆角 */font-size: 16px; /* 文字大小 */text-align: center; /* 文字居中 */ ">-->
|
|
|
-<!-- <view style="width: 100px;margin-top:40rpx;">设备未在线</view>-->
|
|
|
-<!-- <view>无法操作</view>-->
|
|
|
-<!-- </view>-->
|
|
|
-
|
|
|
-<!-- </u-popup>-->
|
|
|
-
|
|
|
<u-popup :show="planPopDlg" @close="closePlanPop" mode="center" :closeable="true">
|
|
|
<view style="position: relative;width: 400rpx;background: none;padding:40rpx;">
|
|
|
<view class="control_item" style="width: 100%">
|
|
|
@@ -508,13 +499,13 @@
|
|
|
<view class="prop-item-left">工作模式</view>
|
|
|
<view class="prop-item-right" @click="showWorkPicker">
|
|
|
<view v-if="workMode == 1">
|
|
|
- 微压循环<uni-icons type="forward" size="16"></uni-icons>
|
|
|
+ 1<uni-icons type="forward" size="16"></uni-icons>
|
|
|
</view>
|
|
|
<view v-if="workMode == 2">
|
|
|
- 常温二煎的一煎<uni-icons type="forward" size="16"></uni-icons>
|
|
|
+ 2<uni-icons type="forward" size="16"></uni-icons>
|
|
|
</view>
|
|
|
<view v-if="workMode == 3">
|
|
|
- 常温二煎的二煎<uni-icons type="forward" size="16"></uni-icons>
|
|
|
+ 3<uni-icons type="forward" size="16"></uni-icons>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -629,11 +620,9 @@ export default {
|
|
|
return {
|
|
|
onlineStatus:false,
|
|
|
modeList:[[
|
|
|
- {id:1,text:"微压循环"},
|
|
|
- {id:2,text:"常温二煎的一煎"},
|
|
|
- {id:3,text:"常温二煎的二煎"},
|
|
|
- {id:3,text:"密闭微压"},
|
|
|
- {id:3,text:"常温常压"},
|
|
|
+ {id:1,text:"1"},
|
|
|
+ {id:2,text:"2"},
|
|
|
+ {id:3,text:"3"},
|
|
|
]],
|
|
|
productSize:"",
|
|
|
productImage:"",
|
|
|
@@ -1911,15 +1900,23 @@ export default {
|
|
|
|
|
|
self.deviceInfo = res.data;
|
|
|
self.deviceType = res.data.type;
|
|
|
- self.onlineStatus = self.deviceInfo == 3?true:false;
|
|
|
- if(!self.onlineStatus){
|
|
|
- uni.showModal({
|
|
|
- title: '系统提示',
|
|
|
- content: "设备未在线,无法操作",
|
|
|
- confirmText: '确定',
|
|
|
- showCancel:false,
|
|
|
- })
|
|
|
+ let online = self.deviceInfo == 3?true:false;
|
|
|
+ if(!online){
|
|
|
+ if(!self.onlineStatus){
|
|
|
+ uni.showModal({
|
|
|
+ title: '系统提示',
|
|
|
+ content: "设备未在线,无法操作",
|
|
|
+ confirmText: '确定',
|
|
|
+ showCancel:false,
|
|
|
+ success(res){
|
|
|
+ if(res.confirm){
|
|
|
+ self.onlineStatus = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
console.log("当前设备类型:"+JSON.stringify(self.deviceInfo.type))
|
|
|
self.location = {
|
|
|
latitude: self.deviceInfo.latitude,
|