| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-07 17:30:05 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-15 16:53:45 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-25 14:54:40 |
| | | * menu-name 监管信息 |
| | | */ |
| | | <template> |
| | | <basic-container class="fontcolorfff"> |
| | | <avue-crud |
| | | :option="option" |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-location-outline" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | <el-button icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="seeLocation(row)" |
| | | >位置查看</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-place" |
| | | @click.stop="seeLocation(row)">位置查看</el-button> |
| | | <el-button icon="el-icon-place" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="seeTrack(row)" |
| | | >轨迹查看 |
| | | @click.stop="seeTrack(row)">轨迹查看 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | class="see-location" |
| | | <el-dialog class="see-location" |
| | | title="位置查看" |
| | | :visible.sync="seeLocationFlag" |
| | | :modal-append-to-body="false" |
| | | width="width" |
| | | > |
| | | <!-- <div> |
| | | 基本信息 |
| | | <div><span>姓名:</span><span>123</span></div> |
| | | <div><span>电话:</span><span>123</span></div> |
| | | <div><span>所属公司:</span><span>123</span></div> |
| | | </div> --> |
| | | <Map ref="locationForm" /> |
| | | width="width"> |
| | | <Map v-if="seeLocationFlag" ref="locationForm" /> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | class="see-track" |
| | | <el-dialog class="see-track" |
| | | title="轨迹查看" |
| | | :visible.sync="seeTrackFlag" |
| | | :modal-append-to-body="false" |
| | | width="width" |
| | | > |
| | | width="width"> |
| | | |
| | | <div class="search"> |
| | | 选择时间:<el-date-picker |
| | | v-model="trackTime" |
| | | 选择时间:<el-date-picker v-model="trackTime" |
| | | type="datetimerange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | size="mini" |
| | | :editable="false" |
| | | end-placeholder="结束日期" |
| | | > |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | <el-button type="text" @click="lookTrack"> 查看轨迹 </el-button> |
| | | <el-button type="text" |
| | | @click="lookTrack"> |
| | | 查看轨迹 |
| | | </el-button> |
| | | </div> |
| | | |
| | | <Map ref="tarckForm" /> |
| | | <Map v-if="seeTrackFlag" ref="tarckForm" /> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getListSecurity } from "@/api/system/user"; |
| | | // import { |
| | | // getList, |
| | | // getDetail, |
| | |
| | | // import { datasing } from "./dataqualificationExamination"; |
| | | // import { getList } from "@/api/qualificationExamination/qualificationExamination"; |
| | | import { getLisperetaskDistribution } from "@/api/commandQuery/commandQuery"; |
| | | import { |
| | | getDirectiveLiveLocationVoList, |
| | | getDirectiveLocusInfoList, |
| | | } from "@/api/map/people"; |
| | | import { getDirectiveLiveLocationVoList, getDirectiveLocusInfoList, getNewPeople, getNewTark } from "@/api/map/people"; |
| | | |
| | | import peoplePng from "@/assets/img/people.png"; |
| | | |
| | | export default { |
| | |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | | adddata(row).then( |
| | |
| | | // } |
| | | console.log(this.data, "getLisperetaskDistribution"); |
| | | this.loading = false; |
| | | |
| | | //获取人员信息; |
| | | // for (var k in this.data) { |
| | | // console.log(this.data[k].receiveDirectiveIds); |
| | | // } |
| | | // var params = { |
| | | // id: |
| | | // }; |
| | | // getListSecurity(1, 10, params).then((res) => { |
| | | // console.log(res.data.data, 5555555555); |
| | | // }); |
| | | // this.selectionClear(); |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | |
| | | seeLocation(row) { |
| | | this.seeLocationFlag = true; |
| | | |
| | | getDirectiveLiveLocationVoList({ |
| | | type: 1, |
| | | userIds: row.receiveDirectiveIds, |
| | | }).then((result) => { |
| | | var res = result.data.data; |
| | | if (JSON.stringify(res) != "[]") { |
| | | res.forEach((data) => { |
| | | this.seeLocationFlag = true |
| | | |
| | | getDirectiveLiveLocationVoList({ type: 1, userIds: row.receiveDirectiveIds }).then((result) => { |
| | | getNewPeople().then(res => { |
| | | |
| | | if (JSON.stringify(res.data) != "{}") { |
| | | var arr = res.data.sort(function (a, b) { |
| | | return a['date'] < b['date'] ? 1 : -1 |
| | | }) |
| | | |
| | | this.$refs.locationForm.addEntitys( |
| | | { |
| | | LGTD: data.longitude, |
| | | LTTD: data.latitude, |
| | | LGTD: arr[0].gis_jd, |
| | | LTTD: arr[0].gis_wd, |
| | | name: "人员位置", |
| | | }, |
| | | peoplePng, |
| | |
| | | "peoplelayer", |
| | | "peopleAddlayer" |
| | | ); |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | // var res = result.data.data; |
| | | // if (JSON.stringify(res) != "[]") { |
| | | // res.forEach((data)=>{ |
| | | // this.$refs.locationForm.addEntitys( |
| | | // { |
| | | // LGTD: data.longitude, |
| | | // LTTD: data.latitude, |
| | | // name: "人员位置", |
| | | // }, |
| | | // peoplePng, |
| | | // 0.5, |
| | | // "peoplelayer", |
| | | // "peopleAddlayer" |
| | | // ); |
| | | // }) |
| | | // } |
| | | }); |
| | | }, |
| | | |
| | | seeTrack(row) { |
| | | this.trackTime = []; |
| | | this.rowData = ""; |
| | | this.rowData = ''; |
| | | this.rowData = row; |
| | | this.seeTrackFlag = true; |
| | | this.seeTrackFlag = true |
| | | }, |
| | | |
| | | lookTrack() { |
| | |
| | | startTime: start, |
| | | endTime: end, |
| | | }).then((res) => { |
| | | var result = res.data.data; |
| | | if (JSON.stringify(res) != "[]") { |
| | | result.forEach((item) => { |
| | | if (item.length > 1) { |
| | | getNewTark().then(res => { |
| | | |
| | | if (JSON.stringify(res.data.track) != "{}") { |
| | | |
| | | if (res.data.track.length > 1) { |
| | | let arr = []; |
| | | |
| | | item.forEach((data) => { |
| | | arr.push([Number(data.longitude), Number(data.latitude)]); |
| | | res.data.track.forEach((item) => { |
| | | arr.push([Number(item.gis_jd), Number(item.gis_wd)]); |
| | | }); |
| | | |
| | | this.$refs.tarckForm.addLines(arr); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | }) |
| | | |
| | | // var result = res.data.data; |
| | | // if (JSON.stringify(res) != "[]") { |
| | | // result.forEach((item) => { |
| | | // if (item.length > 1) { |
| | | // let arr = []; |
| | | |
| | | // item.forEach((data) => { |
| | | // arr.push([Number(data.longitude), Number(data.latitude)]); |
| | | // }); |
| | | |
| | | // this.$refs.tarckForm.addLines(arr); |
| | | // } |
| | | // }) |
| | | // } |
| | | }); |
| | | }, |
| | | |