| | |
| | | <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" |
| | |
| | | |
| | | <script> |
| | | import axios from "axios"; |
| | | import { getclient } from "@/api/real/real"; |
| | | import { getList, getclient } from "@/api/real/real"; |
| | | export default { |
| | | inject: ["reload"], |
| | | data() { |
| | |
| | | }, |
| | | 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}`; |
| | |
| | | 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, |
| | |
| | | ) |
| | | .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}`) |
| | |
| | | |
| | | if (that.form.securityArr.length > 0) { |
| | | res.data.data.records.forEach((item) => { |
| | | |
| | | if (item.id == that.form.securityId) { |
| | | that.tableData.push({ |
| | | id: item.id, |
| | |
| | | }); |
| | | |
| | | 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, |
| | | }); |
| | | } |
| | |
| | | }, |
| | | |
| | | handleSelectionChange(val) { |
| | | console.log(val, 9898); |
| | | this.ensureNames = ""; |
| | | this.ensureId = ""; |
| | | val.forEach((item, index) => { |
| | |
| | | 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> |