| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="历史视频"> |
| | | <el-button type="primary" @click.stop="oldVideoSatart = true" |
| | | >视频播放 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="备注"> |
| | | <el-input |
| | | disabled="true" |
| | |
| | | width="100%" |
| | | height="100%" |
| | | ></iframe> |
| | | |
| | | <el-dialog |
| | | class="ss-video-dialog" |
| | | width="100%" |
| | | title="历史回放" |
| | | :visible.sync="oldVideoSatart" |
| | | :close-on-press-escape="false" |
| | | :close-on-click-modal="false" |
| | | append-to-body |
| | | > |
| | | <video |
| | | :src="vaddress" |
| | | muted="muted" |
| | | autoplay="autoplay" |
| | | loop |
| | | id="old_video" |
| | | style="width: 100%; height: 100%; object-fit: fill" |
| | | controls |
| | | ></video> |
| | | </el-dialog> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | |
| | | multipleSelection: [], |
| | | ensureNames: "", |
| | | baseUrl: "", |
| | | oldVideoSatart: false, |
| | | vaddress: null, |
| | | peopleListX: [], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.form = this.$route.query; |
| | | 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}`; |
| | | 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}`; |
| | | }, |
| | | mounted() { |
| | | this.getList(); |
| | |
| | | updated() { |
| | | var arr = []; |
| | | this.tableData.forEach((item) => { |
| | | if (item.roleName == "管理员") { |
| | | if (item.id == this.form.oneId) { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | |
| | | getList() { |
| | | var that = this; |
| | | axios |
| | | .get("/api/blade-user/pages?current=1&size=9999&deptId=&work_status=") |
| | | .get( |
| | | `/api/blade-user/page?current=1&size=9999&work_status=&deptId=` |
| | | ) |
| | | .then(function (res) { |
| | | that.tableData = []; |
| | | var i = 0; |
| | | |
| | | res.data.data.records.forEach((item) => { |
| | | if (item.roleName == "处警员" || item.roleName == "管理员") { |
| | | if (item.id == that.form.oneId) { |
| | | that.tableData.push({ |
| | | id: item.id, |
| | | ind: (i += 1), |
| | | name: item.name, |
| | | phone: item.phone, |
| | | online_status: item.online_status == 1 ? "在线" : "掉线", |
| | | roleName: item.roleName + "(负责人)", |
| | | tenantName: item.tenantName, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | res.data.data.records.forEach((item) => { |
| | | if (item.roleName == "处警员" && item.id != that.form.oneId) { |
| | | that.tableData.push({ |
| | | id: item.id, |
| | | ind: (i += 1), |
| | | name: item.name, |
| | | phone: item.phone, |