| | |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-check" |
| | | icon="el-icon-s-order" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleHistory(row)" |
| | | >历史</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-check" |
| | | icon="el-icon-video-camera-solid" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleStart(row)" |
| | | >视频</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-check" |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleManage(row)" |
| | | >处置</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-check" |
| | | icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleMap()" |
| | | @click.stop="handleMap(row)" |
| | | >定位</el-button |
| | | > |
| | | </template> |
| | |
| | | title="警情处置" |
| | | :visible.sync="dialogTableVisible" |
| | | append-to-body="true" |
| | | @close="innerVisibleVideo = false" |
| | | > |
| | | <el-dialog |
| | | class="old-video-dialog" |
| | |
| | | :visible.sync="innerVisibleVideo" |
| | | :close-on-press-escape="false" |
| | | append-to-body |
| | | @opened="openOldVideoBox()" |
| | | @opened="openOldVideoBox" |
| | | @close="closeOldVideoBox" |
| | | > |
| | | <video |
| | |
| | | </el-form> |
| | | </el-dialog> |
| | | |
| | | <el-drawer title="电子地图" append-to-body="true" :visible.sync="showMap"> |
| | | <iframe :src="mapUrl" frameborder="0" width="100%" height="100%"></iframe> |
| | | <el-drawer |
| | | title="电子地图" |
| | | append-to-body="true" |
| | | :visible.sync="showMap" |
| | | > |
| | | <iframe |
| | | id="mapDiv" |
| | | ref="mapDiv" |
| | | src="http://s16s652780.51mypc.cn/jfpt/map/index.html" |
| | | frameborder="0" |
| | | width="100%" |
| | | height="100%" |
| | | ></iframe> |
| | | </el-drawer> |
| | | </basic-container> |
| | | </template> |
| | |
| | | data() { |
| | | return { |
| | | showMap: false, |
| | | mapUrl: "https://s16s652780.51mypc.cn/jfpt/map/index.html", |
| | | hls: "", |
| | | videoSource: "", |
| | | dialogTableVisible: false, |
| | |
| | | indexLabel: "序号", |
| | | calcHeight: 30, |
| | | labelWidth: "100", |
| | | menuWidth: 300, |
| | | size:"mini", |
| | | menuWidth: 240, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | |
| | | border: true, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | selection: false, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | |
| | | ] |
| | | }, |
| | | { |
| | | label: "行政区", |
| | | label: "省份", |
| | | prop: "province", |
| | | search: true, |
| | | searchSpan: 3, |
| | | searchLabelWidth: 60, |
| | | placeholder: "行政区", |
| | | placeholder: "省份", |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.real_add, false), |
| | | viewBtn: this.vaildData(this.permission.real_view, false), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(this.permission.real_delete, false), |
| | | editBtn: this.vaildData(this.permission.real_edit, false) |
| | | }; |
| | |
| | | ...this.query |
| | | }; |
| | | values.releaseTimeRange = null; |
| | | }else{ |
| | | values = { |
| | | ...params, |
| | | ...this.query |
| | | }; |
| | | } |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | |
| | | data.records.sort((a,b)=>{ |
| | | return a.jtype - b.jtype; |
| | | }); |
| | | |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | |
| | | }; |
| | | } else { |
| | | return { |
| | | color: "#ff7627" |
| | | color: "#ff2727" |
| | | }; |
| | | } |
| | | }, |
| | |
| | | handleHistory(row) { |
| | | this.$router.push({ path: `/real/history/${row.deviceNumber}` }); |
| | | }, |
| | | handleMap() { |
| | | handleMap(row) { |
| | | this.showMap = true; |
| | | this.mapUrl = |
| | | "https://s16s652780.51mypc.cn/jfpt/map/index.html?openid=PatrolManagement"; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].locationObj = {x:row.jd,y:row.wd}; |
| | | }; |
| | | }) |
| | | }, |
| | | handleManage(row) { |
| | | this.form = row; |
| | |
| | | } else { |
| | | axios({ |
| | | url: |
| | | "http://192.168.0.102:1888/api/blade-jfpts/jingdan/jingdan/submit", |
| | | "/api/blade-jfpts/jingdan/jingdan/submit", |
| | | method: "post", |
| | | data: { |
| | | rName: row.rname, |
| | |
| | | var that = this; |
| | | axios({ |
| | | url: |
| | | "http://192.168.0.102:1888/api/blade-jfpts/alarm/alarm/deletejj?id=" + |
| | | "/api/blade-jfpts/alarm/alarm/deletejj?id=" + |
| | | row.id, |
| | | method: "post" |
| | | }).then(function() { |
| | |
| | | var that = this; |
| | | axios({ |
| | | url: |
| | | "http://192.168.0.102:1888/api/blade-jfpts/alarm/alarm/updateJtype?id=" + |
| | | "/api/blade-jfpts/alarm/alarm/updateJtype?id=" + |
| | | row.id + |
| | | "&czTime=" + |
| | | row.czTime + |
| | |
| | | if (dom.getAttribute("src") != "") { |
| | | dom.pause(); |
| | | |
| | | dom.setAttribute(""); |
| | | dom.setAttribute("src", ""); |
| | | |
| | | this.hls.destroy(); |
| | | } |
| | | }, |
| | | aKeyToCall(e, form) { |