|
|
|
@ -2167,6 +2167,20 @@ export default {
|
|
|
|
|
//ip地址解析结束
|
|
|
|
|
console.log(this.idParameter);
|
|
|
|
|
}
|
|
|
|
|
if (
|
|
|
|
|
JSON.parse(res.data.data).commandStatus == 255 &&
|
|
|
|
|
Object.keys(JSON.parse(res.data.data)).length === 1 &&
|
|
|
|
|
"commandStatus" in JSON.parse(res.data.data)
|
|
|
|
|
) {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 2000,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: "装置收到复位回应包",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
@ -2235,25 +2249,36 @@ export default {
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
resetTerminalApi({ cmId: this.rowData.cmdId || this.rowData.cmdid })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: "装置已复位",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: res.msg,
|
|
|
|
|
type: "error",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
let params = [
|
|
|
|
|
{
|
|
|
|
|
name: "act",
|
|
|
|
|
value: "reset",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "mode",
|
|
|
|
|
value: 0,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
this.setTermFn(params);
|
|
|
|
|
// resetTerminalApi({ cmId: this.rowData.cmdId || this.rowData.cmdid })
|
|
|
|
|
// .then((res) => {
|
|
|
|
|
// if (res.code == 200) {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// duration: 1500,
|
|
|
|
|
// showClose: true,
|
|
|
|
|
// message: "装置已复位",
|
|
|
|
|
// type: "success",
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// duration: 1500,
|
|
|
|
|
// showClose: true,
|
|
|
|
|
// message: res.msg,
|
|
|
|
|
// type: "error",
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// .catch((err) => {});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
// this.$message({
|
|
|
|
@ -2330,7 +2355,7 @@ export default {
|
|
|
|
|
this.lookTime = "";
|
|
|
|
|
this.showLookTime = false;
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
this.activeName = "1";
|
|
|
|
|
this.activeName = "2";
|
|
|
|
|
this.tabsActive = "first";
|
|
|
|
|
this.samplingForm = {};
|
|
|
|
|
this.deviceTimeForm = {};
|
|
|
|
@ -2456,7 +2481,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
.el-select {
|
|
|
|
|
.el-input {
|
|
|
|
|
width: 316px;
|
|
|
|
|
width: 316px !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-input {
|
|
|
|
|