shuishen
2023-05-06 eee3c8543668782c0af3dd43ebdf6c5338460f29
首页警力资源及警情信息更改
4 files modified
490 ■■■■■ changed files
src/utils/turfPolygon.js 25 ●●●● patch | view | raw | blame | history
src/views/home/index.vue 7 ●●●●● patch | view | raw | blame | history
src/views/police/index.vue 187 ●●●● patch | view | raw | blame | history
src/views/policeInfor/index.vue 271 ●●●● patch | view | raw | blame | history
src/utils/turfPolygon.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-31 10:52:25
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-18 20:13:04
 * @LastEditTime: 2023-05-06 10:45:56
 * @FilePath: \srs-police-affairs\src\utils\turfPolygon.js
 * @Description: 
 * 
@@ -53,8 +53,6 @@
        return turf.centroid(turf.polygon([arr])).geometry.coordinates
    }
}
export const computerCapacity = (data, type = '') => {
@@ -119,4 +117,25 @@
            3
        )
    }
}
export const getMapBounds = (data, type = '') => {
    let pointArr = []
    data.forEach(item => {
        if (item.lng && item.lat) {
            pointArr.push(turf.point([item.lng, item.lat]))
            return
        }
    })
    const features = turf.featureCollection(pointArr)
    console.log(turf.envelope(features))
    const scope = turf.envelope(features).bbox
    // const poly = turf.polygon([[[0, 29], [3.5, 29], [2.5, 32], [0, 29]]])
    return scope
}
src/views/home/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-05-04 19:18:48
 * @LastEditTime: 2023-05-05 16:07:00
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 *
@@ -1244,12 +1244,13 @@
                                        ...item,
                                        lng: item.longitude,
                                        lat: item.latitude,
                                        url: '/img/icon/camera.png',
                                        url: item.status == 1 ? '/img/icon/video.png' : '/img/icon/video-off.png',
                                        channelId: item.channelId,
                                        setStyle: {
                                            disableDepthTestDistance: Number.POSITIVE_INFINITY
                                        }
                                    },
                                    incident: this.siteClick
                                    incident: this.siteClick,
                                })
                            }
                        })
src/views/police/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-26 15:05:54
 * @LastEditTime: 2023-05-05 10:58:05
 * @FilePath: \srs-police-affairs\src\views\police\index.vue
 * @Description: 辖区管理
 * 
@@ -12,67 +12,127 @@
<template>
    <div class="police-page container">
        <div v-show="boxShow" class="container-content">
            <el-main v-loading="equimentLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading"
                element-loading-background="rgba(0, 0, 0, 0.5)" style="overflow: hidden;padding: 0px;">
            <el-main
                v-loading="equimentLoading"
                element-loading-text="拼命加载中"
                element-loading-spinner="el-icon-loading"
                element-loading-background="rgba(0, 0, 0, 0.5)"
                style="overflow: hidden;padding: 0px;"
            >
                <div class="switch-box" v-show="!detailFlag">
                    资源类别:
                    <el-select v-model="typeValue" @change="navClick" placeholder="请选择" class="type-select-css">
                        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
                            class="option-css"></el-option>
                    <el-select
                        v-model="typeValue"
                        @change="navClick"
                        placeholder="请选择"
                        class="type-select-css"
                    >
                        <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                            class="option-css"
                        ></el-option>
                    </el-select>
                </div>
                <div class="list-show" v-if="!detailFlag">
                    <div class="search-box">
                        <span style="display: inline-block; white-space: nowrap;">
                            资源名称:
                        </span>
                        <el-input size="small" placeholder="请输入…" v-model="searchValue" @change="searchChange" clearable>
                        </el-input>
                        <span style="display: inline-block; white-space: nowrap;">资源名称:</span>
                        <el-input
                            size="small"
                            placeholder="请输入…"
                            v-model="searchValue"
                            @change="searchChange"
                            clearable
                        ></el-input>
                    </div>
                    <div class="list" ref="tableBox">
                        <el-table :data="equimentTableData"
                        <el-table
                            :data="equimentTableData"
                            :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', borderColor: '#324e75' }"
                            :cell-style="{ 'text-align': 'center', borderColor: '#324e75', cursor: 'default' }"
                            :height="currentTableHeight">
                            <el-table-column prop="newName" :show-overflow-tooltip="true" label="名称"
                                :min-width="typeValue == 0 || typeValue == 2 ? '56%' : '68%'"></el-table-column>
                            <el-table-column prop="status" label="状态"
                                :min-width="typeValue == 0 || typeValue == 2 ? '14%' : '14%'">
                            :height="currentTableHeight"
                        >
                            <el-table-column
                                prop="newName"
                                :show-overflow-tooltip="true"
                                label="名称"
                                :min-width="typeValue == 0 || typeValue == 2 ? '56%' : '68%'"
                            ></el-table-column>
                            <el-table-column
                                prop="status"
                                label="状态"
                                :min-width="typeValue == 0 || typeValue == 2 ? '14%' : '14%'"
                            >
                                <template slot-scope="scope">
                                    <div class="state-box" :class="{ online: scope.row.status == '1' }"></div>
                                    <div
                                        class="state-box"
                                        :class="{ online: scope.row.status == '1' }"
                                    ></div>
                                </template>
                            </el-table-column>
                            <div slot="empty" style="text-align: center;">{{ emptyText }}</div>
                            <el-table-column label="操作" align="center"
                                :min-width="typeValue == 0 || typeValue == 2 ? '30%' : '18%'">
                            <el-table-column
                                label="操作"
                                align="center"
                                :min-width="typeValue == 0 || typeValue == 2 ? '30%' : '18%'"
                            >
                                <template slot-scope="scope">
                                    <el-button :disabled="whetherPosition(scope.row)" @click="rowClick(scope.row)"
                                        type="text" size="small" title="定位">
                                        <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i>
                                    <el-button
                                        :disabled="whetherPosition(scope.row)"
                                        @click="rowClick(scope.row)"
                                        type="text"
                                        size="small"
                                        title="定位"
                                    >
                                        <i
                                            class="el-icon-location"
                                            :style="{ color: positionColor(scope.row) }"
                                        ></i>
                                    </el-button>
                                    <el-button v-show="navType == 0 || navType == 2" @click="equipmentTrack(scope.row)"
                                        type="text" size="small" title="轨迹">
                                    <el-button
                                        v-show="navType == 0 || navType == 2"
                                        @click="equipmentTrack(scope.row)"
                                        type="text"
                                        size="small"
                                        title="轨迹"
                                    >
                                        <i class="el-icon-police-track"></i>
                                    </el-button>
                                    <el-button @click="play(scope.row)" type="text" size="small" title="播放视频">
                                    <el-button
                                        v-show="navType != 2"
                                        @click="play(scope.row)"
                                        type="text"
                                        size="small"
                                        title="播放视频"
                                    >
                                        <i class="el-icon-video-play"></i>
                                    </el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                        <div class="pages all-pagination-sty" ref="tablePagination" style="padding-top:-15px">
                            <el-pagination background layout="prev, pager, next" :page-size="equimentPage.pageSize"
                                :total="equimentPage.total" :pager-count="4" :current-page="equimentPage.currentPage"
                                @current-change="handleCurrentChange"></el-pagination>
                        <div
                            class="pages all-pagination-sty"
                            ref="tablePagination"
                            style="padding-top:-15px"
                        >
                            <el-pagination
                                background
                                layout="prev, pager, next"
                                :page-size="equimentPage.pageSize"
                                :total="equimentPage.total"
                                :pager-count="4"
                                :current-page="equimentPage.currentPage"
                                @current-change="handleCurrentChange"
                            ></el-pagination>
                        </div>
                    </div>
                </div>
            </el-main>
            <div class="track-box" v-show="detailFlag">
                <div class="track-box-info">
@@ -97,8 +157,8 @@
                            <div>状态:</div>
                            <div>
                                {{
                                    currentSelectEquipment.status ? (currentSelectEquipment.status == 0 ? '离线' : '在线') :
                                    ''
                                currentSelectEquipment.status ? (currentSelectEquipment.status == 0 ? '离线' : '在线') :
                                ''
                                }}
                            </div>
                        </li>
@@ -106,9 +166,16 @@
                        <li>
                            <div>选择时间:</div>
                            <div class="datetime">
                                <el-date-picker v-model="trackTime" type="daterange" unlink-panels range-separator="至"
                                    start-placeholder="开始日期" size="mini" :editable="false"
                                    end-placeholder="结束日期"></el-date-picker>
                                <el-date-picker
                                    v-model="trackTime"
                                    type="daterange"
                                    unlink-panels
                                    range-separator="至"
                                    start-placeholder="开始日期"
                                    size="mini"
                                    :editable="false"
                                    end-placeholder="结束日期"
                                ></el-date-picker>
                            </div>
                        </li>
@@ -124,17 +191,34 @@
        <div v-show="searchExtensivelyValBoxShow" class="searchExtensively-val-box">
            <div>
                <div @click="searchExtensivelyVlaClick(item)" v-for="(item, index) in searchExtensivelyArray" :key="index">
                    {{ item.name }}</div>
                <div
                    @click="searchExtensivelyVlaClick(item)"
                    v-for="(item, index) in searchExtensivelyArray"
                    :key="index"
                >{{ item.name }}</div>
            </div>
        </div>
        <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" :before-close="dialogBeforeClose" :modal="true"
            :modal-append-to-body="false" :close-on-click-modal="false" class="car-video-box">
        <el-dialog
            :title="dialogTitle"
            :visible.sync="dialogVisible"
            :before-close="dialogBeforeClose"
            :modal="true"
            :modal-append-to-body="false"
            :close-on-click-modal="false"
            class="car-video-box"
        >
            <video-loading v-show="videoPlayShow"></video-loading>
            <video autoplay controls width="100%" height="100%" ref="videoElement" id="videoElement"
                style="object-fit: fill"></video>
            <video
                autoplay
                controls
                width="100%"
                height="100%"
                ref="videoElement"
                id="videoElement"
                style="object-fit: fill"
            ></video>
        </el-dialog>
    </div>
</template>
@@ -156,7 +240,7 @@
    data () {
        return {
            emptyText: '',
            navType: 0,
            navType: 1,
            equimentLoading: false,
            dialogTitle: '',
            dialogVisible: false,
@@ -189,7 +273,7 @@
                //     label: '执法记录仪'
                // }
            ],
            typeValue: '0',
            typeValue: '1',
            boxShow: true,
            searchExtensivelyValue: '',
            searchExtensivelyValBoxShow: false,
@@ -889,7 +973,7 @@
            align-items: center;
            justify-content: space-around;
            &>div {
            & > div {
                flex: 1;
            }
        }
@@ -962,7 +1046,6 @@
                padding: 0;
                width: 100%;
                overflow: hidden !important;
                ;
            }
        }
@@ -1009,18 +1092,18 @@
                color: #fff;
                border-bottom: 1px solid #fff;
                &>div {
                & > div {
                    text-align: center;
                }
                &>div:first-child {
                & > div:first-child {
                    flex: 2;
                }
                &>div:last-child {
                & > div:last-child {
                    flex: 6;
                    &>div {
                    & > div {
                        width: 100% !important;
                    }
                }
@@ -1122,7 +1205,7 @@
        border-radius: 10px;
        overflow: hidden;
        &>div {
        & > div {
            height: 100%;
            overflow-y: auto;
src/views/policeInfor/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-27 20:03:16
 * @LastEditTime: 2023-05-06 11:10:51
 * @FilePath: \srs-police-affairs\src\views\policeInfor\index.vue
 * @Description: 辖区管理
 * 
@@ -12,67 +12,64 @@
<template>
    <div class="police-page container">
        <div v-show="boxShow" class="container-content" ref="containerContent">
            <div class="nav-tab" ref="navTabBox">
                <div class="nav" :class="navType == 0 ? 'choosed' : ''" @click="navClick(0)">实时警情</div>
                <div class="nav" :class="navType == 1 ? 'choosed' : ''" @click="navClick(1)">历史警情</div>
            <div class="time-select" ref="timeSelect">
                <el-date-picker
                    :clearable="false"
                    v-model="currentTime"
                    type="daterange"
                    align="center"
                    unlink-panels
                    range-separator="至"
                    start-placeholder="开始日期"
                    end-placeholder="结束日期"
                    @change="datePickerChange"
                    :picker-options="pickerOptions"
                ></el-date-picker>
            </div>
            <div class="time-select" v-show="navType == 1" ref="timeSelect">
                <el-date-picker :clearable="false" v-model="currentTime" type="daterange" align="center" unlink-panels
                    range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="datePickerChange"
                    popper-class="date-day-style"></el-date-picker>
            </div>
            <div v-if="navType == 0" class="police-info">
                <el-table :data="realPoliceInforData" style="width: 100%" :height="currentTableHeight"
            <div class="police-info">
                <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" class="police-infor-table" @cell-click="siteClick"
                    @cell-mouse-enter="tableEnter" @cell-mouse-leave="tabelLeave">
                    <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 prop="BJLX" label="报警类型">
                    </el-table-column>
                    <el-table-column label="操作" align="center" min-width="32%">
                        <template slot-scope="scope">
                            <el-button v-if="!whetherPosition(scope.row)" @click="clickData(scope.row)" type="text"
                                size="small" title="定位">
                                <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i>
                            </el-button>
                        </template>
                    </el-table-column>
                </el-table>
            </div>
            <div v-else class="police-info">
                <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" class="police-infor-table" @cell-mouse-enter="tableEnter"
                    @cell-mouse-leave="tabelLeave">
                    :row-class-name="tableRowClassName"
                    class="police-infor-table"
                    @cell-mouse-enter="tableEnter"
                    @cell-mouse-leave="tabelLeave"
                >
                    <template slot="empty">
                        <div>{{ historyEmptyText }}</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 prop="BJLX" label="报警类型">
                    </el-table-column>
                    <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 prop="BJLX" label="报警类型"></el-table-column>
                    <el-table-column label="操作" align="center" min-width="32%">
                        <template slot-scope="scope">
                            <el-button v-if="!whetherPosition(scope.row)" @click="clickData(scope.row)" type="text"
                                size="small" title="定位">
                                <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i>
                            <el-button
                                v-if="!whetherPosition(scope.row)"
                                @click="clickData(scope.row)"
                                type="text"
                                size="small"
                                title="定位"
                            >
                                <i
                                    class="el-icon-location"
                                    :style="{ color: positionColor(scope.row) }"
                                ></i>
                            </el-button>
                            <el-buttonalign-justify @click="siteClick(scope.row)" type="text" size="small" title="详情">
                            <el-buttonalign-justify
                                @click="siteClick(scope.row)"
                                type="text"
                                size="small"
                                title="详情"
                            >
                                <i class="el-icon-document"></i>
                            </el-buttonalign-justify>
                        </template>
@@ -81,12 +78,24 @@
            </div>
        </div>
        <el-dialog title="警情信息" :visible.sync="policeSituationVisible" :modal-append-to-body="false"
            :before-close="policeSituationBeforeClose" :modal="true" :close-on-click-modal="false"
            class="policeSituation-details-box">
        <el-dialog
            title="警情信息"
            :visible.sync="policeSituationVisible"
            :modal-append-to-body="false"
            :before-close="policeSituationBeforeClose"
            :modal="true"
            :close-on-click-modal="false"
            class="policeSituation-details-box"
        >
            <div class="btn-change">
                <div :class="{ on: policeInformationType == '接警信息' }" @click="alarmOrActAsPolice('接警信息')">接警信息</div>
                <div :class="{ on: policeInformationType == '出警信息' }" @click="alarmOrActAsPolice('出警信息')">出警信息</div>
                <div
                    :class="{ on: policeInformationType == '接警信息' }"
                    @click="alarmOrActAsPolice('接警信息')"
                >接警信息</div>
                <div
                    :class="{ on: policeInformationType == '出警信息' }"
                    @click="alarmOrActAsPolice('出警信息')"
                >出警信息</div>
            </div>
            <div v-show="policeInformationType == '接警信息'" class="box">
@@ -148,7 +157,10 @@
                </div>
            </div>
            <div v-show="policeInformationType == '出警信息' && JSON.stringify(CJdata) != '{}'" class="box">
            <div
                v-show="policeInformationType == '出警信息' && JSON.stringify(CJdata) != '{}'"
                class="box"
            >
                <div class="item">
                    <div>处警单位编号:</div>
                    <div>{{ CJdata.CJDWBH }}</div>
@@ -205,17 +217,19 @@
                </div>
            </div>
            <div v-show="policeInformationType == '出警信息' && JSON.stringify(CJdata) == '{}'" class="box no-data">暂无警情</div>
            <div
                v-show="policeInformationType == '出警信息' && JSON.stringify(CJdata) == '{}'"
                class="box no-data"
            >暂无警情</div>
        </el-dialog>
        <div class="cur-tooltip" v-show="currentTooltip"
            :style="{ top: currentPointerPosition.y + 'px', left: currentPointerPosition.x + 'px' }">
            <div class="type-name">
                报警内容
            </div>
            <div class="type-content">
                {{ currentBJNR }}
            </div>
        <div
            class="cur-tooltip"
            v-show="currentTooltip"
            :style="{ top: currentPointerPosition.y + 'px', left: currentPointerPosition.x + 'px' }"
        >
            <div class="type-name">报警内容</div>
            <div class="type-content">{{ currentBJNR }}</div>
        </div>
    </div>
</template>
@@ -249,7 +263,6 @@
                current: 1
            },
            navType: 1,
            currentTableHeight: 0,
            currentTime: [],
@@ -263,8 +276,48 @@
                x: 0,
                y: 0
            },
            currentTooltip: false,
            currentBJNR: ''
            currentBJNR: '',
            pickerOptions: {
                shortcuts: [
                    {
                        text: '最近一周',
                        onClick (picker) {
                            const end = new Date()
                            const start = new Date()
                            start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
                            picker.$emit('pick', [start, end])
                        }
                    },
                    {
                        text: '最近两周',
                        onClick (picker) {
                            const end = new Date()
                            const start = new Date()
                            start.setTime(start.getTime() - 3600 * 1000 * 24 * 14)
                            picker.$emit('pick', [start, end])
                        }
                    },
                    {
                        text: '最近一个月',
                        onClick (picker) {
                            const end = new Date()
                            const start = new Date()
                            start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
                            picker.$emit('pick', [start, end])
                        }
                    },
                    {
                        text: '最近三个月',
                        onClick (picker) {
                            const end = new Date()
                            const start = new Date()
                            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
                            picker.$emit('pick', [start, end])
                        }
                    }]
            },
        }
    },
@@ -291,7 +344,7 @@
            policeInforSiteLayer = new global.DC.PrimitiveLayer('policeInforSiteLayer')
            global.viewer.addLayer(policeInforSiteLayer)
            this.$EventBus.$emit('closeMxTileset')
            this.navClick(0)
            this.navClick()
            this.setTableHeight()
        })
@@ -360,7 +413,7 @@
        defaultDate () {
            var current = new Date()
            var seven = new Date(current.getTime() - 1 * 24 * 60 * 60 * 1000)
            var seven = new Date(current.getTime() - 7 * 24 * 60 * 60 * 1000)
            this.currentTime = [seven, current] //将值设置给插件绑定的数据
        },
@@ -642,26 +695,26 @@
            data.forEach((item, index) => {
                if (item.lng && item.lng != undefined && item.lng != '') {
                    let center = new global.DC.Position(Number(item.lng), Number(item.lat))
                    let point = new global.DC.PointPrimitive(center)
                    // let point = new global.DC.PointPrimitive(center)
                    policeInfoPositionList.push(center)
                    let num = 0
                    // let num = 0
                    timer[index] = setInterval(() => {
                        num++
                        if (num >= 10) {
                            num = 0
                        }
                    // timer[index] = setInterval(() => {
                    //     num++
                    //     if (num >= 10) {
                    //         num = 0
                    //     }
                        point.setStyle({
                            outlineColor: global.DC.Color.RED.withAlpha(0.5),//边框颜色
                            outlineWidth: num,//边框大小,
                            color: global.DC.Color.RED
                        })
                    }, 100)
                    //     point.setStyle({
                    //         outlineColor: global.DC.Color.RED.withAlpha(0.5),//边框颜色
                    //         outlineWidth: num,//边框大小,
                    //         color: global.DC.Color.RED
                    //     })
                    // }, 100)
                    point.attrParams = item
                    point.on(global.DC.MouseEventType.CLICK, this.siteClick)
                    policeInforSiteLayer.addOverlay(point)
                    // point.attrParams = item
                    // point.on(global.DC.MouseEventType.CLICK, this.siteClick)
                    // policeInforSiteLayer.addOverlay(point)
                }
            })
            this.$EventBus.$emit('layerPointAdd', {
@@ -718,38 +771,26 @@
        },
        setTableHeight () {
            if (this.navType == 0) {
                this.currentTableHeight = this.$refs.containerContent.offsetHeight - this.$refs.navTabBox.offsetHeight
            } else {
                this.currentTableHeight = this.$refs.containerContent.offsetHeight - this.$refs.navTabBox.offsetHeight - this.$refs.timeSelect.offsetHeight
            }
            this.currentTableHeight = this.$refs.containerContent.offsetHeight - this.$refs.timeSelect.offsetHeight
        },
        /**
         * @description: 实时历史警情切换
         * @param {*} type
         * @return {*}
         */
        async navClick (type) {
            this.navType = type
        async navClick () {
            const date = this.currentTime.map(item => {
                return this.dateFormat(item)
            })
            if (this.navType == 0) {
                await this.getAnswerPolices()
            } else {
                this.pages.current = 1
            this.pages.current = 1
                await this.getAlarmList({
                    start: date[0],
                    end: date[1],
                    current: this.pages.current
                })
            }
            await this.getAlarmList({
                start: date[0],
                end: date[1],
                current: this.pages.current
            })
            this.$nextTick(() => {
                this.setTableHeight()
@@ -842,22 +883,6 @@
        height: 100%;
        color: #fff;
        background: $bg-color;
        .nav-tab {
            height: 40px;
            line-height: 40px;
            display: flex;
            justify-content: space-around;
            .nav {
                flex: 1;
                cursor: pointer;
            }
            .choosed {
                background-color: #3d5ad5;
            }
        }
        .time-select {
            margin: 0;