From 41e271b2ba045be683728a35eaf41510c6a03f94 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sun, 25 Apr 2021 14:29:33 +0800
Subject: [PATCH] 追踪页面数据更换
---
src/views/policeTracking/policeTracking.vue | 46 ++++++++++++++++++++++++++--------------------
1 files changed, 26 insertions(+), 20 deletions(-)
diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index d378b21..962ce5c 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -186,7 +186,7 @@
<h1 class="avue-group__title">人员信息</h1>
<el-button
@click="
- onSubmit('通知' + ensureNames, 1, ensureId), (flag = false)
+ onSubmit('通知' + ensureNames, ensureId), (flag = false)
"
size="small"
style="position: absolute; right: 0"
@@ -518,7 +518,7 @@
<script>
import axios from "axios";
-import { getclient } from "@/api/real/real";
+import { getList, getclient } from "@/api/real/real";
export default {
inject: ["reload"],
data() {
@@ -594,6 +594,7 @@
},
created() {
this.form = this.$route.query;
+ this.updatedPageData();
this.vaddress = this.form.vaddress;
this.getReceivingAlarm();
this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}`;
@@ -730,11 +731,11 @@
currenS,
};
},
- onSubmit(zc, jtype, ensureId) {
+ onSubmit(zc, ensureId) {
var that = this;
var subData = {
jid: this.form.id,
- jtype: jtype,
+ jtype: 1,
rid: this.form.alarmId,
bz: this.form.bz,
snumber: this.form.alarmId,
@@ -755,20 +756,11 @@
)
.then(function (res) {
that.getReceivingAlarm();
-
- if (jtype == 2) {
- var arr = [];
- that.$store.state.tags.tagList.forEach((item) => {
- if (item.value != that.$store.state.tags.tag.value) {
- arr.push(item);
- }
- });
- that.$store.state.tags.tagList = arr;
- that.$router.go(-1);
- }
+
+ that.updatedPageData();
});
},
-
+
getReceivingAlarm() {
axios
.get(`/api/blade-jfpts/operation/list?jid=${this.form.id}`)
@@ -789,7 +781,6 @@
if (that.form.securityArr.length > 0) {
res.data.data.records.forEach((item) => {
-
if (item.id == that.form.securityId) {
that.tableData.push({
id: item.id,
@@ -804,14 +795,17 @@
});
res.data.data.records.forEach((item) => {
- if (that.form.securityArr.indexOf(item.id) != -1 && item.id != that.form.securityId) {
+ if (
+ that.form.securityArr.indexOf(item.id) != -1 &&
+ item.id != that.form.securityId
+ ) {
that.tableData.push({
id: item.id,
ind: (i += 1),
name: item.name,
phone: item.phone,
online_status: item.online_status == 1 ? "在线" : "掉线",
- status: "已通知",
+ status: "已通知",
tenantName: item.tenantName,
});
}
@@ -849,7 +843,6 @@
},
handleSelectionChange(val) {
- console.log(val, 9898);
this.ensureNames = "";
this.ensureId = "";
val.forEach((item, index) => {
@@ -920,6 +913,19 @@
this.oldVideoSatart = true;
});
},
+
+ updatedPageData() {
+ var that = this;
+ axios({
+ method: "get",
+ url: "/api/blade-jfpts/alarm/alarm/page",
+ params: {
+ id: 285,
+ },
+ }).then(function (res) {
+ that.form = res.data.data.records[0];
+ });
+ },
},
};
</script>
--
Gitblit v1.9.3