From fa84aaa9e2f96e1895e7a33e71bf7f744e2294fa Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sat, 08 May 2021 16:02:06 +0800
Subject: [PATCH] 警情办结
---
src/views/dataL/dataL.vue | 29 ++---------------------------
src/components/real-popup/main.vue | 17 ++++++++++-------
2 files changed, 12 insertions(+), 34 deletions(-)
diff --git a/src/components/real-popup/main.vue b/src/components/real-popup/main.vue
index 8e43d60..475a5c8 100644
--- a/src/components/real-popup/main.vue
+++ b/src/components/real-popup/main.vue
@@ -229,7 +229,7 @@
</el-button> -->
<el-button
type="success"
- @click.stop="updateJtyep(form, 1, '办结')"
+ @click.stop="updateJtyep(form, 2, '办结')"
>办结
</el-button>
@@ -553,7 +553,6 @@
)
.then(function () {
that.dialogTableVisible = false;
-
axios({
method: "post",
url: `/api/blade-jfpts/rvideo/stop`,
@@ -561,12 +560,16 @@
jid: row.id,
},
}).then((resdata) => {});
-
// that.onLoad(that.page, that.query);
- that.$router.push({
- path: "/policeTracking/track",
- query: that.form,
- });
+ if (t == "办结") {
+ console.log(t, 354343);
+ location.reload();
+ } else {
+ that.$router.push({
+ path: "/policeTracking/track",
+ query: that.form,
+ });
+ }
});
},
getDate() {
diff --git a/src/views/dataL/dataL.vue b/src/views/dataL/dataL.vue
index 49112ac..f9ac422 100644
--- a/src/views/dataL/dataL.vue
+++ b/src/views/dataL/dataL.vue
@@ -1005,15 +1005,9 @@
});
});
},
- stetDetails(d, imgdata) {
+ stetDetails(c, imgdata) {
this.name = "无数据" && this.a.deviceName;
//设备状态
- // [grey,green,red][
- // onlineStatus = 0,
- // onlineStatus = 1,
- // state!= "",
- // jtype != 2
- // ]
var states,
d = this.a.dtype;
if (d == 0) {
@@ -1025,25 +1019,6 @@
} else if (d == 2) {
states = "预警";
}
-
- // if (s != "") {
- // states = "故障";
- // } else {
- // if (j != 1) {
- // if (o == 1) {
- // states = "正常";
- // } else {
- // states = "掉线";
- // }
- // } else {
- // states = "预警";
- // }
- // }
- // console.log(o, 1000);
- // console.log(s, 1000);
- // console.log(j, 1000);
-
- // console.log(states, 1000);
this.state = states;
this.evaluate = "空气质量";
@@ -1074,7 +1049,7 @@
installation: this.a.stime, // 安装时间
heartbeat: this.a.heartbeat, // 心跳时间
};
- this.form = d;
+ this.form = c;
},
getdataG() {
var dataG = {
--
Gitblit v1.9.3