| | |
| | | height: 220px; |
| | | |
| | | .el-dialog__body { |
| | | position: relative; |
| | | |
| | | &>div { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | |
| | | .el-button { |
| | |
| | | } |
| | | |
| | | .el-input { |
| | | position: absolute; |
| | | width: calc(100% - 20px); |
| | | font-size: 14px; |
| | | top: 0; |
| | |
| | | |
| | | .police-btn-box { |
| | | position: absolute; |
| | | top: 124px; |
| | | bottom: 16px; |
| | | width: 100%; |
| | | } |
| | | |
| | |
| | | height: 180px; |
| | | |
| | | .el-dialog__body { |
| | | position: relative; |
| | | |
| | | &>div { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | |
| | | .el-button { |
| | | padding: 0; |
| | | background-color: rgba(8, 56, 185, 0.9); |
| | |
| | | background-color: rgba(8, 56, 185, 0.9); |
| | | } |
| | | |
| | | .police-btn-box { |
| | | position: absolute; |
| | | bottom: 16px; |
| | | width: 100%; |
| | | } |
| | | |
| | | .line { |
| | | display: flex; |
| | | justify-content: left; |
| | | position: absolute; |
| | | top: 48px; |
| | | } |
| | | |
| | | .value-name-box { |
| | |
| | | |
| | | .el-dialog .el-dialog__body { |
| | | font-size: countSizeVh(16); |
| | | |
| | | &>div { |
| | | padding: countSizeVh(14); |
| | | padding-top: 0; |
| | | } |
| | | } |
| | | |
| | | .el-dialog__header button { |
| | |
| | | } |
| | | |
| | | .police-btn-box { |
| | | top: countSizeVh(124); |
| | | bottom: countSizeVh(16); |
| | | } |
| | | |
| | | .value-name-box { |
| | |
| | | |
| | | .el-dialog .el-dialog__body { |
| | | font-size: countSizeVh(16); |
| | | |
| | | &>div { |
| | | padding: countSizeVh(14); |
| | | padding-top: 0; |
| | | |
| | | &>div { |
| | | line-height: countSizeVh(36); |
| | | } |
| | | } |
| | | } |
| | | |
| | | .police-btn-box { |
| | | bottom: countSizeVh(16); |
| | | } |
| | | |
| | | .line { |
| | | top: countSizeVh(52); |
| | | } |
| | | |
| | | .el-dialog__header button { |
| | |
| | | <div class="units">米</div> |
| | | </div> |
| | | </div> |
| | | <el-button @click="determine" v-show="!isChoosePoliceElementDisabled">确定</el-button> |
| | | <el-button @click="deletePoliceElement" |
| | | v-show="!isChoosePoliceElementDisabled && policeIconIsCreated">删除</el-button> |
| | | <el-button @click="cancel" v-show="!isChoosePoliceElementDisabled">取消</el-button> |
| | | |
| | | <div class="police-btn-box"> |
| | | <el-button @click="determine" v-show="!isChoosePoliceElementDisabled">确定</el-button> |
| | | <el-button @click="deletePoliceElement" |
| | | v-show="!isChoosePoliceElementDisabled && policeIconIsCreated">删除</el-button> |
| | | <el-button @click="cancel" v-show="!isChoosePoliceElementDisabled">取消</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-04-03 17:07:39 |
| | | * @LastEditTime: 2023-04-03 17:40:35 |
| | | * @FilePath: \srs-police-affairs\src\views\policeInfor\index.vue |
| | | * @Description: 辖区管理 |
| | | * |
| | |
| | | <div v-if="navType == 0" class="police-info"> |
| | | <el-table :data="realPoliceInforData" style="width: 100%" :height="currentTableHeight" |
| | | :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'pointer' }" |
| | | :row-class-name="tableRowClassName" @row-click="clickData"> |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'default' }" |
| | | :row-class-name="tableRowClassName"> |
| | | <template slot="empty"> |
| | | <div>{{ realEmptyText }}</div> |
| | | </template> |
| | | <el-table-column prop="JJDWMC" :show-overflow-tooltip="true" label="接警单位" |
| | | min-width="80%"></el-table-column> |
| | | <el-table-column prop="BJSJ" label="报警时间" min-width="50%"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" min-width="32%"> |
| | | <template slot-scope="scope"> |
| | | <el-button :disabled="whetherPosition(scope.row)" @click="rowClick(scope.row)" type="text" |
| | | <el-button :disabled="whetherPosition(scope.row)" @click="clickData(scope.row)" type="text" |
| | | size="small" title="定位"> |
| | | <i class="el-icon-location"></i> |
| | | </el-button> |
| | | <el-button v-show="navType == 0 || navType == 2" @click="equipmentTrack(scope.row)" type="text" |
| | | size="small" title="详情"> |
| | | <i class="el-icon-position"></i> |
| | | <el-button @click="siteClick(scope.row)" type="text" size="small" title="详情"> |
| | | <i class="el-icon-document"></i> |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-table :data="historyPoliceInforData" style="width: 100%" :height="currentTableHeight" |
| | | :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'default' }" |
| | | :row-class-name="tableRowClassName" @row-click="clickData"> |
| | | :row-class-name="tableRowClassName"> |
| | | <template slot="empty"> |
| | | <div>{{ historyEmptyText }}</div> |
| | | </template> |
| | | <el-table-column prop="JJDWMC" :show-overflow-tooltip="true" label="接警单位" |
| | | min-width="34%"></el-table-column> |
| | | <el-table-column prop="BJSJ" label="报警时间"> |
| | | min-width="80%"></el-table-column> |
| | | <el-table-column prop="BJSJ" label="报警时间" min-width="50%"> |
| | | </el-table-column> |
| | | <el-table-column prop="BJLX" label="报警类型"> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" min-width="20%"> |
| | | <el-table-column label="操作" align="center" min-width="32%"> |
| | | <template slot-scope="scope"> |
| | | <el-button :disabled="whetherPosition(scope.row)" @click="rowClick(scope.row)" type="text" |
| | | <el-button :disabled="whetherPosition(scope.row)" @click="clickData(scope.row)" type="text" |
| | | size="small" title="定位"> |
| | | <i class="el-icon-location"></i> |
| | | </el-button> |
| | | <el-button v-show="navType == 0 || navType == 2" @click="equipmentTrack(scope.row)" type="text" |
| | | size="small" title="详情"> |
| | | <i class="el-icon-position"></i> |
| | | </el-button> |
| | | <el-buttonalign-justify @click="siteClick(scope.row)" type="text" size="small" title="详情"> |
| | | <i class="el-icon-document"></i> |
| | | </el-buttonalign-justify> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import { initMapPosition } from '@/utils/mapPositionInit' |
| | | import { BjlxData } from "@/assets/police" |
| | | |
| | | let loading = null |
| | | |
| | | export default { |
| | | inject: ['userInfo'], |
| | | |
| | |
| | | return { |
| | | realPoliceInforData: [], // 实时 |
| | | historyPoliceInforData: [], |
| | | |
| | | realEmptyText: "", |
| | | |
| | | historyEmptyText: "", |
| | | |
| | | boxShow: false, |
| | | pages: { |
| | | total: 0, |
| | |
| | | policeInforSiteLayer = new global.DC.PrimitiveLayer('policeInforSiteLayer') |
| | | global.viewer.addLayer(policeInforSiteLayer) |
| | | |
| | | this.navClick(1) |
| | | this.navClick(0) |
| | | this.setTableHeight() |
| | | }) |
| | | |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | loading () { |
| | | loading = this.$loading({ |
| | | lock: true, |
| | | text: '拼命加载中', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.2)' |
| | | }) |
| | | }, |
| | | |
| | | // 接出警切换 |
| | | alarmOrActAsPolice (type) { |
| | | this.policeInformationType = type |
| | |
| | | |
| | | // 获取实时接警记录 |
| | | getAnswerPolices () { |
| | | this.loading() |
| | | this.realPoliceInforData = [] |
| | | this.realEmptyText = "" |
| | | |
| | | // getAnswerPolices({ deptId: this.userInfo.dept_id }).then(res => { |
| | | getAnswerPolices({ deptId: this.userInfo.dept_id }).then(res => { |
| | | |
| | | // if (res.data && res.data.length) { |
| | | // this.realPoliceInforData = res.data.map((item, index) => { |
| | | // const bjlxText = BjlxData.filter(i => item.BJLX == i.BJLX)[0].VALUE || '' |
| | | if (res.data && res.data.length) { |
| | | this.realPoliceInforData = res.data.map((item, index) => { |
| | | const bjlxText = BjlxData.filter(i => item.BJLX == i.BJLX)[0].VALUE || '' |
| | | |
| | | // return { ...item, index: index + 1, lng: item.ZDDWXZB, lat: item.ZDDWYZB, BJLX: bjlxText } |
| | | // }) |
| | | // } else { |
| | | // this.realPoliceInforData = [] |
| | | // } |
| | | return { ...item, index: index + 1, lng: item.ZDDWXZB, lat: item.ZDDWYZB, BJLX: bjlxText } |
| | | }) |
| | | } else { |
| | | this.realPoliceInforData = [] |
| | | this.realEmptyText = "暂无实时警情信息" |
| | | } |
| | | |
| | | // this.addPoliceInforSiteLayer(this.realPoliceInforData) |
| | | // }) |
| | | |
| | | this.realPoliceInforData = [{ |
| | | ZDDWXZB: 117.97, |
| | | ZDDWYZB: 28.45, |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所,今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }, |
| | | { |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所,今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }, |
| | | { |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }, |
| | | { |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }, |
| | | { |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }, |
| | | { |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }, |
| | | { |
| | | JJDWMC: '信州公安局派出所', |
| | | JJYXM: '欧阳西门', |
| | | BJSJ: '2022-12-12 12:12:12', |
| | | BJRXM: '西门庆祝', |
| | | LXDH: 17335843642, |
| | | BJNR: '今日在某小区查获私人赌博场所', |
| | | SFDZ: '上饶市信州区万达华府小区', |
| | | BJLX: '聚众赌博', |
| | | MEMO: '人群聚集赌博' |
| | | }] |
| | | |
| | | this.realPoliceInforData = this.realPoliceInforData.map((item, index) => { |
| | | return { ...item, index: index + 1, lng: item.ZDDWXZB, lat: item.ZDDWYZB } |
| | | this.addPoliceInforSiteLayer(this.realPoliceInforData) |
| | | setTimeout(() => { |
| | | loading && loading.close() |
| | | }, 500) |
| | | }) |
| | | |
| | | this.addPoliceInforSiteLayer(this.realPoliceInforData) |
| | | // this.realPoliceInforData = [{ |
| | | // ZDDWXZB: 117.97, |
| | | // ZDDWYZB: 28.45, |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所,今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }, |
| | | // { |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所,今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }, |
| | | // { |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }, |
| | | // { |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }, |
| | | // { |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }, |
| | | // { |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }, |
| | | // { |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | | // BJRXM: '西门庆祝', |
| | | // LXDH: 17335843642, |
| | | // BJNR: '今日在某小区查获私人赌博场所', |
| | | // SFDZ: '上饶市信州区万达华府小区', |
| | | // BJLX: '聚众赌博', |
| | | // MEMO: '人群聚集赌博' |
| | | // }] |
| | | |
| | | // this.realPoliceInforData = this.realPoliceInforData.map((item, index) => { |
| | | // return { ...item, index: index + 1, lng: item.ZDDWXZB, lat: item.ZDDWYZB } |
| | | // }) |
| | | |
| | | // this.addPoliceInforSiteLayer(this.realPoliceInforData) |
| | | }, |
| | | |
| | | // 获取历史接警记录 |
| | | getAlarmList (params) { |
| | | this.pages.total = 0 |
| | | this.loading() |
| | | this.historyPoliceInforData = [] |
| | | this.historyEmptyText = "" |
| | | |
| | | getAlarmList({ ...params, size: this.pages.size, jjdwbh: this.userInfo.dept_id }).then(res => { |
| | | |
| | |
| | | } else { |
| | | this.pages.total = 0 |
| | | this.historyPoliceInforData = [] |
| | | this.realEmptyText = "暂无历史警情信息" |
| | | } |
| | | |
| | | this.addPoliceInforSiteLayer(this.historyPoliceInforData) |
| | | setTimeout(() => { |
| | | loading && loading.close() |
| | | }, 500) |
| | | }) |
| | | |
| | | // this.historyPoliceInforData = [{ |
| | |
| | | }, |
| | | |
| | | destroyed () { |
| | | loading && loading.close() |
| | | |
| | | window.removeEventListener('resize', this.setTableHeight) |
| | | |
| | | policeInforSiteLayer != null && policeInforSiteLayer.remove() |