| | |
| | | icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleMap()" |
| | | @click.stop="handleMap(row)" |
| | | >定位</el-button |
| | | > |
| | | </template> |
| | |
| | | </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" |
| | | src="https://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, |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | debugger |
| | | const { releaseTimeRange } = this.query; |
| | | let values = { |
| | | ...params |
| | |
| | | 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(); |
| | |
| | | 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"; |
| | | debugger; |
| | | var sddsds = document.getElementById("mapDiv"); |
| | | document.getElementById("mapDiv").contentWindow.dw(row.jd,row.wd) |
| | | }, |
| | | handleManage(row) { |
| | | this.form = row; |
| | |
| | | } else { |
| | | axios({ |
| | | url: |
| | | "http://192.168.0.102:1888/api/blade-jfpts/jingdan/jingdan/submit", |
| | | "https://s16s652780.51mypc.cn/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=" + |
| | | "https://s16s652780.51mypc.cn/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=" + |
| | | "https://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/updateJtype?id=" + |
| | | row.id + |
| | | "&czTime=" + |
| | | row.czTime + |