ds1.0
fanluyan 2 years ago
parent 087ff69d36
commit 0075989360

@ -889,13 +889,14 @@ export default {
}, },
// //
handleDeviceReset() { handleDeviceReset() {
console.log(this.rowData);
this.$confirm("此操作将复位装置, 是否继续?", "提示", { this.$confirm("此操作将复位装置, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
resetTerminalApi({ cmId: this.rowData.cmdId }) resetTerminalApi({ cmId: this.rowData.cmdId || this.rowData.cmdid })
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$message({ this.$message({

@ -98,11 +98,10 @@ export default {
}) })
.then((res) => { .then((res) => {
this.queryTime = res.data.queryTime; this.queryTime = res.data.queryTime;
this.getNewListData(this.zztermid);
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
this.getNewListData(this.zztermid); this.getNewListData(this.zztermid);
this.i++; this.i++;
}, 5000); }, 3000);
}) })
.catch((err) => {}); .catch((err) => {});
}, },
@ -145,6 +144,7 @@ export default {
}, },
hide() { hide() {
this.isShow = false; this.isShow = false;
this.loading = false;
}, },
handleclose() { handleclose() {
this.isShow = false; this.isShow = false;

@ -639,12 +639,12 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.requestId = res.data.requestId; this.requestId = res.data.requestId;
this.realNewtime(); // this.realNewtime();
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
//console.log(this.requestList); //console.log(this.requestList);
this.realNewtime(); this.realNewtime();
this.timernum++; this.timernum++;
}, 3000); }, 2000);
}) })
.catch((err) => { .catch((err) => {
this.$message.error("查询失败"); this.$message.error("查询失败");

Loading…
Cancel
Save