018A初步完成
This commit is contained in:
@ -291,7 +291,8 @@
|
||||
MsgClose,
|
||||
MsgWarning,
|
||||
showPop,
|
||||
MsgInfo
|
||||
MsgInfo,
|
||||
MsgClear
|
||||
} from '@/utils/MsgPops.js'
|
||||
const pagePath = "/pages/4877/BJQ4877";
|
||||
|
||||
@ -1180,6 +1181,7 @@
|
||||
if (receive.deviceId !== this.formData.deviceId) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("收到设备的数据", receive)
|
||||
let data = recei.ReceiveData(receive, device, pagePath, recArr);
|
||||
console.log("处理后的数据:", data);
|
||||
@ -1206,6 +1208,7 @@
|
||||
}
|
||||
if (msg.length) {
|
||||
msg = msg.join(",");
|
||||
MsgClear(these);
|
||||
this.showMsg(msg);
|
||||
}
|
||||
|
||||
@ -1349,23 +1352,13 @@
|
||||
},
|
||||
|
||||
|
||||
showMsg(msg, isSucc) {
|
||||
let icoUrl = '/static/images/common/uploadErr.png';
|
||||
let borderColor = "#e034344d";
|
||||
let buttonBgColor = "#E03434";
|
||||
showMsg(msg, isSucc) {
|
||||
if (isSucc) {
|
||||
icoUrl = '/static/images/common/success.png';
|
||||
borderColor = "#BBE600";
|
||||
buttonBgColor = "#BBE600";
|
||||
MsgSuccess(msg,'',this);
|
||||
}
|
||||
else{
|
||||
MsgError(msg,'',this);
|
||||
}
|
||||
showPop({
|
||||
message: msg,
|
||||
iconUrl: icoUrl,
|
||||
borderColor: borderColor,
|
||||
buttonBgColor: buttonBgColor,
|
||||
buttonText: '确定',
|
||||
okCallback: null
|
||||
},this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user