zhongrj
2024-04-26 6d85b1efe04107b22ca8182c48f761a3fa5f249d
反诈宣传统计新增
3 files modified
94 ■■■■ changed files
src/api/policeAlarmRecordsManage/index.js 12 ●●●●● patch | view | raw | blame | history
src/views/contradictionEventShow/index.vue 6 ●●●●● patch | view | raw | blame | history
src/views/policeAlarmRecordsManage/index.vue 76 ●●●● patch | view | raw | blame | history
src/api/policeAlarmRecordsManage/index.js
@@ -13,6 +13,18 @@
}
/**
 * 报警记录统计
 * @returns
 */
export const getStatistic = (params) => {
    return request({
        url: "/api/blade-policeAlarmRecords/policeAlarmRecords/getStatistic",
        method: "get",
        params
    })
}
/**
 * 获取从业人员有前科数量
 * @returns
 */
src/views/contradictionEventShow/index.vue
@@ -25,6 +25,10 @@
                        :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>
@@ -85,6 +89,7 @@
            handleResult:null,
            yhj:0,
            whj:0,
            ysehjb:0,
            typeValue: '',
            typeOptions: [],
            searchKey: '',
@@ -157,6 +162,7 @@
            }).then(res=>{
                that.yhj = res.data.data.yhj
                that.whj = res.data.data.whj
                that.ysehjb = res.data.data.ysehjb
            })
        },
        // 获取字典列表
src/views/policeAlarmRecordsManage/index.vue
@@ -35,6 +35,17 @@
                    <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">
@@ -73,15 +84,18 @@
<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: '',
@@ -98,8 +112,9 @@
        }
    },
    created () {
    created() {
        this.getApplyAlarmType()
        this.getStatistic()
        this.onLoad()
        const that = this
@@ -108,7 +123,7 @@
        })
    },
    mounted () {
    mounted() {
        this.$parent.$parent.resize('400px', true)
        this.$nextTick(() => {
@@ -117,7 +132,7 @@
    },
    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"
@@ -127,7 +142,7 @@
            }
        },
        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
@@ -139,42 +154,52 @@
    },
    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: '拼命加载中',
@@ -182,12 +207,23 @@
                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,
@@ -217,7 +253,7 @@
        },
        // 点击定位
        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]
@@ -247,23 +283,23 @@
        },
        // 查看详情
        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'
@@ -273,12 +309,12 @@
        },
        // 大小重置
        boxResize (val) {
        boxResize(val) {
            this.boxShow = val
        },
    },
    destroyed () {
    destroyed() {
        loading && loading.close()
        this.$parent.$parent.resize('0px')