| | |
| | | } |
| | | |
| | | /** |
| | | * 报警记录统计 |
| | | * @returns |
| | | */ |
| | | export const getStatistic = (params) => { |
| | | return request({ |
| | | url: "/api/blade-policeAlarmRecords/policeAlarmRecords/getStatistic", |
| | | method: "get", |
| | | params |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 获取从业人员有前科数量 |
| | | * @returns |
| | | */ |
| | |
| | | :class="{ isOneClick: criminalRecordFlag == 1 }">未化解({{ whj ? whj : |
| | | '0' |
| | | }})</el-button> |
| | | <el-button @click="filterBtn(3)" class="bjnr-btn" |
| | | :class="{ isOneClick: criminalRecordFlag == 1 }">移交E呼即办({{ ysehjb ? ysehjb : |
| | | '0' |
| | | }})</el-button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | handleResult:null, |
| | | yhj:0, |
| | | whj:0, |
| | | ysehjb:0, |
| | | typeValue: '', |
| | | typeOptions: [], |
| | | searchKey: '', |
| | |
| | | }).then(res=>{ |
| | | that.yhj = res.data.data.yhj |
| | | that.whj = res.data.data.whj |
| | | that.ysehjb = res.data.data.ysehjb |
| | | }) |
| | | }, |
| | | // 获取字典列表 |
| | |
| | | <el-button @click="searchBtn" icon="el-icon-search" class="bjnr-btn">搜索</el-button> |
| | | <el-button @click="clearRow" icon="el-icon-delete" class="bjnr-btn">清除</el-button> |
| | | </div> |
| | | <div class="search-item-box" style="overflow-wrap: break-word;"> |
| | | <el-button @click="filterBtn(2)" class="bjnr-btn" |
| | | :class="{ isOneClick: criminalRecordFlag == 1 }">已处置({{ ycz ? ycz : |
| | | '0' |
| | | }})</el-button> |
| | | <el-button @click="filterBtn(1)" class="bjnr-btn" |
| | | :class="{ isOneClick: criminalRecordFlag == 1 }">未处置({{ dcz ? dcz : |
| | | '0' |
| | | }})</el-button> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="list police-info" ref="tableBox"> |
| | |
| | | |
| | | <script> |
| | | import { initMapPosition } from '@/utils/mapPositionInit' |
| | | import { getList, getApplyAlarmType } from "@/api/policeAlarmRecordsManage/index.js" |
| | | import { getList, getApplyAlarmType,getStatistic } from "@/api/policeAlarmRecordsManage/index.js" |
| | | |
| | | let loading = null |
| | | |
| | | export default { |
| | | inject: ['userInfo'], |
| | | |
| | | data () { |
| | | data() { |
| | | return { |
| | | status:null, |
| | | dcz:0, |
| | | ycz:0, |
| | | boxShow: false, |
| | | alarmDescribe: '', |
| | | typeValue: '', |
| | |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | | created() { |
| | | this.getApplyAlarmType() |
| | | this.getStatistic() |
| | | this.onLoad() |
| | | const that = this |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | mounted () { |
| | | mounted() { |
| | | this.$parent.$parent.resize('400px', true) |
| | | |
| | | this.$nextTick(() => { |
| | |
| | | }, |
| | | |
| | | computed: { |
| | | positionColor () { |
| | | positionColor() { |
| | | return (row) => { |
| | | if (row.X && row.X != 0 || row.lng && row.lng != 0 || row.longitude && row.longitude != 0 || row.x && row.x != 0) { |
| | | return "#1AFA29" |
| | |
| | | } |
| | | }, |
| | | |
| | | positionDisabled () { |
| | | positionDisabled() { |
| | | return (row) => { |
| | | if (row.X && row.X != 0 || row.lng && row.lng != 0 || row.longitude && row.longitude != 0 || row.x && row.x != 0) { |
| | | return false |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | filterBtn(status){ |
| | | this.status = status |
| | | this.onLoad() |
| | | }, |
| | | // 切换登记类型 |
| | | typeChange () { |
| | | typeChange() { |
| | | this.pages.current = 1 |
| | | this.onLoad() |
| | | this.getStatistic() |
| | | }, |
| | | |
| | | // 搜索条件改变 |
| | | searchChange () { |
| | | searchChange() { |
| | | if (this.keyword.trim() == '') { |
| | | this.pages.current = 1 |
| | | this.onLoad() |
| | | this.getStatistic() |
| | | } |
| | | }, |
| | | |
| | | // 点击搜索 |
| | | searchBtn () { |
| | | searchBtn() { |
| | | this.pages.current = 1 |
| | | this.onLoad() |
| | | this.getStatistic() |
| | | }, |
| | | |
| | | // 重置搜索 |
| | | resetSearch () { |
| | | resetSearch() { |
| | | this.pages.current = 1 |
| | | this.alarmDescribe = '' |
| | | this.typeValue = '' |
| | | this.status = null; |
| | | this.onLoad() |
| | | this.getStatistic() |
| | | }, |
| | | |
| | | // 分页处理 |
| | | handleCurrentChange (current) { |
| | | handleCurrentChange(current) { |
| | | this.pages.current = current |
| | | this.onLoad() |
| | | this.getStatistic() |
| | | }, |
| | | |
| | | // 加载动画 |
| | | loading () { |
| | | loading() { |
| | | loading = this.$loading({ |
| | | lock: true, |
| | | text: '拼命加载中', |
| | |
| | | background: 'rgba(0, 0, 0, 0.5)' |
| | | }) |
| | | }, |
| | | getStatistic(){ |
| | | var that = this; |
| | | getStatistic({ |
| | | alarmDescribe: this.alarmDescribe, |
| | | alarmType: this.typeValue |
| | | }).then(res=>{ |
| | | that.dcz = res.data.data.dcz |
| | | that.ycz = res.data.data.ycz |
| | | }) |
| | | }, |
| | | |
| | | // 获取列表数据 |
| | | onLoad () { |
| | | onLoad() { |
| | | this.loading() |
| | | |
| | | getList({ |
| | | status:this.status, |
| | | current: this.pages.current, |
| | | size: this.pages.size, |
| | | alarmDescribe: this.alarmDescribe, |
| | |
| | | }, |
| | | |
| | | // 点击定位 |
| | | rowClick (row) { |
| | | rowClick(row) { |
| | | let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.longitude, row.latitude)[0] |
| | | let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.longitude, row.latitude)[1] |
| | | |
| | |
| | | }, |
| | | |
| | | // 查看详情 |
| | | goDetail (row) { |
| | | goDetail(row) { |
| | | this.$refs.PoliceDetailPopup.initOpen(row) |
| | | }, |
| | | |
| | | // 点击图标 |
| | | siteClick (e) { |
| | | siteClick(e) { |
| | | this.$refs.PoliceDetailPopup.initOpen(e.overlay.attrParams) |
| | | }, |
| | | |
| | | getApplyAlarmType () { |
| | | getApplyAlarmType() { |
| | | getApplyAlarmType().then(res => { |
| | | this.typeOptions = res.data.data |
| | | }) |
| | | }, |
| | | |
| | | // 清空按钮-清除图标图层 |
| | | clearRow () { |
| | | clearRow() { |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'scanLayer', |
| | | type: 'VectorLayer' |
| | |
| | | }, |
| | | |
| | | // 大小重置 |
| | | boxResize (val) { |
| | | boxResize(val) { |
| | | this.boxShow = val |
| | | }, |
| | | }, |
| | | |
| | | destroyed () { |
| | | destroyed() { |
| | | loading && loading.close() |
| | | |
| | | this.$parent.$parent.resize('0px') |