优化鹤壁

jc
fanluyan 11 months ago
parent 5c6d5ca653
commit 103c57accd

@ -2167,6 +2167,20 @@ export default {
//ip //ip
console.log(this.idParameter); 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({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
@ -2235,25 +2249,36 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
resetTerminalApi({ cmId: this.rowData.cmdId || this.rowData.cmdid }) let params = [
.then((res) => { {
if (res.code == 200) { name: "act",
this.$message({ value: "reset",
duration: 1500, },
showClose: true, {
message: "装置已复位", name: "mode",
type: "success", value: 0,
}); },
} else { ];
this.$message({ this.setTermFn(params);
duration: 1500, // resetTerminalApi({ cmId: this.rowData.cmdId || this.rowData.cmdid })
showClose: true, // .then((res) => {
message: res.msg, // if (res.code == 200) {
type: "error", // this.$message({
}); // duration: 1500,
} // showClose: true,
}) // message: "",
.catch((err) => {}); // type: "success",
// });
// } else {
// this.$message({
// duration: 1500,
// showClose: true,
// message: res.msg,
// type: "error",
// });
// }
// })
// .catch((err) => {});
}) })
.catch(() => { .catch(() => {
// this.$message({ // this.$message({
@ -2330,7 +2355,7 @@ export default {
this.lookTime = ""; this.lookTime = "";
this.showLookTime = false; this.showLookTime = false;
this.isShow = false; this.isShow = false;
this.activeName = "1"; this.activeName = "2";
this.tabsActive = "first"; this.tabsActive = "first";
this.samplingForm = {}; this.samplingForm = {};
this.deviceTimeForm = {}; this.deviceTimeForm = {};
@ -2456,7 +2481,7 @@ export default {
} }
.el-select { .el-select {
.el-input { .el-input {
width: 316px; width: 316px !important;
} }
} }
.el-input { .el-input {

Loading…
Cancel
Save