guanqb
2022-11-10 16fbdb2fc5e4c76c0561cc0c6c706562978989a4
Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
7 files modified
520 ■■■■ changed files
src/App.vue 2 ●●● patch | view | raw | blame | history
src/styles/dc/index.scss 12 ●●●● patch | view | raw | blame | history
src/views/activity/index.vue 69 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 35 ●●●● patch | view | raw | blame | history
src/views/lyout/index.vue 91 ●●●●● patch | view | raw | blame | history
src/views/police/index.vue 239 ●●●●● patch | view | raw | blame | history
src/views/video/index.vue 72 ●●●●● patch | view | raw | blame | history
src/App.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 15:58:10
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-28 10:56:33
 * @LastEditTime: 2022-11-10 09:13:07
 * @FilePath: \srs-police-affairs\src\App.vue
 * @Description: app.vue
 * 
src/styles/dc/index.scss
@@ -20,7 +20,7 @@
.dc-zoom-controller {
    top: auto !important;
    bottom: 70px !important;
    left: 420px !important;
    left: 10px !important;
    width: 36px !important;
    height: auto !important;
    border-radius: 5px !important;
@@ -28,7 +28,6 @@
    z-index: 101 !important;
    background-color: $bg-color !important;
    transition: all .3s;
    &>div {
        display: flex;
@@ -51,6 +50,7 @@
}
.dc-zoom-controller.homebottom {
    left: 410px !important;
    bottom: 370px !important;
}
@@ -59,7 +59,7 @@
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 420px;
    left: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
@@ -70,7 +70,6 @@
    z-index: 99;
    background-color: $bg-color !important;
    transition: all .3s;
    // &.hover-effect {
    //     cursor: pointer;
@@ -83,13 +82,14 @@
}
.screen-full-btn.homebottom {
    left: 410px !important;
    bottom: 310px;
}
.dc-zoom-controller.shrink-btn {
    left: 20px !important;
    left: 410px !important;
}
.screen-full-btn.shrink-btn {
    left: 20px !important;
    left: 410px !important;
}
src/views/activity/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-11-08 14:26:29
 * @LastEditTime: 2022-11-10 16:15:42
 * @FilePath: \srs-police-affairs\src\views\activity\index.vue
 * @Description: 安保活动
 * 
@@ -11,19 +11,15 @@
<template>
    <div class="container">
        <div class="left-container">
        <div v-show='boxShow' class="container-content">
            <div class="title">活动信息</div>
            <div class="search-box">
                <div>
                    <div class="category">活动类型:</div>
                    <div class="category-value">
                        <el-select size="small" v-model="activityType" placeholder="请选择">
                            <el-option
                                v-for="item in activityOptions"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            ></el-option>
                            <el-option v-for="item in activityOptions" :key="item.value" :label="item.label"
                                :value="item.value"></el-option>
                        </el-select>
                    </div>
                </div>
@@ -37,25 +33,16 @@
                <div>
                    <div class="category">选择时间:</div>
                    <div class="category-value">
                        <el-date-picker
                            size="small"
                            v-model="selectTime"
                            type="date"
                            placeholder="选择日期"
                            style="width:268px"
                        ></el-date-picker>
                        <el-date-picker size="small" v-model="selectTime" type="date" placeholder="选择日期"
                            style="width:268px"></el-date-picker>
                    </div>
                </div>
            </div>
            <div class="result-content">
                <div class="table-box">
                    <div
                        class="row-box"
                        :class="{ on: currentClickIndex === index }"
                    <div class="row-box" :class="{ on: currentClickIndex === index }"
                        v-for="(item, index) in activityList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                        :key="index"
                        @click="goAbDetail(item, index)"
                    >
                        :key="index" @click="goAbDetail(item, index)">
                        <div class="row-title">常规安保</div>
                        <div class="row-content">
                            <div>
@@ -64,9 +51,7 @@
                            </div>
                            <div>
                                <div class="category">活动时间:</div>
                                <div
                                    class="category-value"
                                >2022-08-01 00:00:00 至 2022-09-01 00:00:00</div>
                                <div class="category-value">2022-08-01 00:00:00 至 2022-09-01 00:00:00</div>
                            </div>
                            <div>
                                <div class="category">活动详情:</div>
@@ -76,15 +61,9 @@
                    </div>
                </div>
                <div class="pages">
                    <el-pagination
                        background
                        layout="prev, pager, next"
                        :total="activityList.length"
                        :page-size="pagesize"
                        pager-count="3"
                        :current-page="currentPage"
                        @current-change="handleCurrentChange"
                    ></el-pagination>
                    <el-pagination background layout="prev, pager, next" :total="activityList.length"
                        :page-size="pagesize" pager-count="3" :current-page="currentPage"
                        @current-change="handleCurrentChange"></el-pagination>
                </div>
            </div>
        </div>
@@ -130,7 +109,7 @@
            </ul>
        </div>
        <div class="second-container">
        <div class="second-container" :style="{ left: `${boxShow == true ? '405px' : '5px'}` }">
            <el-tree :data="treeData" show-checkbox node-key="id" @check="treeCheckClick"></el-tree>
        </div>
@@ -174,12 +153,8 @@
            <div class="row-box">
                <div class="category">应急预案:</div>
                <div class="category-value">
                    <el-switch
                        v-model="polylineSwitch"
                        @change="switchChange"
                        active-color="#13ce66"
                        inactive-color="#ccc"
                    ></el-switch>
                    <el-switch v-model="polylineSwitch" @change="switchChange" active-color="#13ce66"
                        inactive-color="#ccc"></el-switch>
                </div>
            </div>
@@ -438,13 +413,16 @@
                    url: '/img/icon/activity.png'
                }
            ],
            activityDetails: {}
            activityDetails: {},
            boxShow: false,
        }
    },
    created () {
    },
    mounted () {
        this.$parent.resize('400px')
        this.$nextTick(() => {
            this.activityList.forEach(item => {
                this.$EventBus.$emit('layerPointAdd', {
@@ -649,6 +627,10 @@
            })
        },
        // 大小重置
        boxResize (val) {
            this.boxShow = val
        },
    },
    destroyed () {
@@ -676,6 +658,8 @@
        this.removeAll()
        tc.clear()
        this.$parent.resize('0px')
    }
}
</script>
@@ -685,7 +669,7 @@
    height: 100%;
    position: relative;
    .left-container {
    &-content {
        position: relative;
        display: flex;
        flex-direction: column;
@@ -863,7 +847,6 @@
        position: absolute;
        top: 10px;
        display: flex;
        left: 405px;
        flex-direction: column;
        width: 240px;
src/views/house/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-11-09 16:28:42
 * @LastEditTime: 2022-11-10 13:49:42
 * @FilePath: \srs-police-affairs\src\views\house\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -11,9 +11,7 @@
<template>
    <div class="container">
        <div :style="{
            width: `${contentShow ? '400px' : '0'}`
        }" class="container-content">
        <div v-show='boxShow' class="container-content">
            <div v-show="contentShow" class="search-box">
                <input v-model="searchValue" @input="searchChange" type="text" placeholder="请输入搜索条件" />
@@ -317,9 +315,6 @@
        <transition name="special-animal">
        </transition> -->
        <div class="container-btn">
            <shrink></shrink>
        </div>
        <el-dialog title="信息详情" :modal="true" :visible.sync="dialogVisible" :before-close="handleClose"
            :close-on-click-modal="true" class="police-affairs-details-box">
@@ -512,7 +507,8 @@
            searchValue: '',
            searchArray: [],
            searchValBoxShow: false
            searchValBoxShow: false,
            boxShow: false,
        }
    },
    created () {
@@ -522,6 +518,8 @@
        this.levelList = this.ridgepoleNum1.unit[0].storey
    },
    mounted () {
        this.$parent.resize('400px')
        this.$nextTick(() => {
            this.searchHouse = this.$route.query.searchName
@@ -667,29 +665,35 @@
            this.housingData = item
            this.searchValue = ''
        }
        },
        // 大小重置
        boxResize (val) {
            this.boxShow = val
        },
    },
    destroyed () {
        this.$EventBus.$emit('removeMxTileset', {
            titlesetName: 'sdTilesetLayer'
        })
        this.$parent.resize('0px')
    }
}
</script>
<style scoped lang="scss">
.container {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    &-content {
        width: 100%;
        height: 100%;
        color: #fff;
        background: $bg-color;
        transition: all .3s;
        li {
            list-style: none;
@@ -1210,13 +1214,6 @@
            }
        }
    }
    &-btn {
        position: relative;
        width: 36px;
        height: 100%;
    }
}
.progress {
src/views/lyout/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:24
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-11-07 15:10:23
 * @LastEditTime: 2022-11-10 14:11:08
 * @FilePath: \srs-police-affairs\src\views\lyout\index.vue
 * @Description: 
 * 
@@ -34,9 +34,14 @@
            <mapBox ref="modalForm" />
            <!-- 主体内容区域 -->
            <div class="main-content">
                <router-view></router-view>
            <div class="main-content" id="MainContent">
                <router-view ref='target-name'></router-view>
            </div>
            <el-button v-show='leftShow' class="flexible-btn"
                :icon="show ? 'el-icon-arrow-left' : 'el-icon-arrow-right'" id="FlexibleBtn" type="primary"
                @click="flexibelClick"></el-button>
        </div>
    </div>
</template>
@@ -71,6 +76,12 @@
                },
            ],
            show: false,
            leftShow: true,
            boxWidth: 0,
            currentUrl: '/lyout/home'
        }
    },
@@ -80,8 +91,22 @@
    },
    watch: {
        $route (to, from) {
            this.currentUrl = to.path
        $route: {
            handler (newPath, oldPath) {
                this.currentUrl = newPath.path
                this.$nextTick(() => {
                    document.querySelector('.dc-container .dc-zoom-controller').classList.remove('shrink-btn')
                    document.querySelector('.screen-full-btn').classList.remove('shrink-btn')
                })
                if (this.currentUrl == '/lyout/home') {
                    this.leftShow = false
                } else {
                    this.leftShow = true
                }
            },
            immediate: true
        }
    },
@@ -103,7 +128,40 @@
                params.childrenFlag = !params.childrenFlag
            }
        },
        flexibelClick () {
            this.show = !this.show
            if (this.$refs['target-name'].boxResize) this.$refs['target-name'].boxResize(this.show)
            if (this.show) {
                document.getElementById('MainContent').style.width = this.boxWidth
                var a = this.boxWidth.replace(/[^0-9]/ig, '')
                document.getElementById('FlexibleBtn').style.left = a + 'px'
                document.querySelector('.dc-container .dc-zoom-controller').classList.add('shrink-btn')
                document.querySelector('.screen-full-btn').classList.add('shrink-btn')
            } else {
                document.getElementById('MainContent').style.width = 0
                document.getElementById('FlexibleBtn').style.left = 0
                document.querySelector('.dc-container .dc-zoom-controller').classList.remove('shrink-btn')
                document.querySelector('.screen-full-btn').classList.remove('shrink-btn')
        }
        },
        resize (val) {
            this.boxWidth = val
            this.show = false
            if (this.$refs['target-name'].boxResize) this.$refs['target-name'].boxResize(this.show)
            document.getElementById('MainContent').style.width = 0
            document.getElementById('FlexibleBtn').style.left = 0
        },
    }
}
</script>
@@ -187,4 +245,27 @@
        }
    }
}
.flexible-btn {
    padding: 0 2px;
    position: fixed;
    top: 50%;
    left: 0px;
    z-index: 11;
    width: 32px;
    height: 64px;
    color: #fff;
    background: $bg-color;
    border-color: $bg-color;
    text-align: center;
    line-height: 32px;
    border-radius: 0 5px 5px 0;
    white-space: inherit !important;
    box-shadow: 1px 0px 4px 1px $bg-color;
    transform: translate(0px, -50%);
    i {
        font-size: 16px;
    }
}
</style>
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: 2022-10-29 15:10:34
 * @LastEditTime: 2022-11-10 13:51:10
 * @FilePath: \srs-police-affairs\src\views\police\index.vue
 * @Description: 辖区管理
 * 
@@ -11,44 +11,31 @@
<template>
    <div class="container">
        <div v-show='boxShow' class="container-content">
        <div class="switch-box">
            <el-select v-model="typeValue" @change="navClick" placeholder="请选择">
                <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                ></el-option>
                    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
            </el-select>
        </div>
        <div class="list-show" ref="tableBox" v-show="!detailFlag">
            <div class="search-box">
                <input
                    v-model="searchValue"
                    @input="searchChange"
                    type="text"
                    placeholder="请输入搜索条件"
                />
                    <input v-model="searchValue" @input="searchChange" type="text" placeholder="请输入搜索条件" />
                <button @click="searchClick" class="el-icon-search"></button>
            </div>
            <div v-show="searchValBoxShow" class="search-val-box">
                <div
                    @click="searchVlaClick(item)"
                    v-for="(item, index) in searchArray"
                    :key="index"
                >{{ item.name }}</div>
                    <div @click="searchVlaClick(item)" v-for="(item, index) in searchArray" :key="index">{{ item.name }}
                    </div>
            </div>
            <div class="list" v-show="navType == 1">
                <el-table
                    :data="carList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    <el-table :data="carList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                    :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'pointer' }"
                    :height="currentTableHeight"
                >
                        :height="currentTableHeight">
                    <el-table-column type="index" label="序号" width="50">
                        <template slot-scope="scope">
                            <span>{{ (currentPage - 1) * pagesize + scope.$index + 1 }}</span>
@@ -59,20 +46,10 @@
                    <el-table-column label="操作" align="center">
                        <template slot-scope="scope">
                            <el-button
                                @click="rowClick(scope.row)"
                                type="text"
                                size="small"
                                title="定位"
                            >
                                <el-button @click="rowClick(scope.row)" type="text" size="small" title="定位">
                                <i class="el-icon-location"></i>
                            </el-button>
                            <el-button
                                @click="carDetail(scope.row)"
                                type="text"
                                size="small"
                                title="轨迹"
                            >
                                <el-button @click="carDetail(scope.row)" type="text" size="small" title="轨迹">
                                <i class="el-icon-position"></i>
                            </el-button>
                        </template>
@@ -80,26 +57,19 @@
                </el-table>
                <div class="pages">
                    <el-pagination
                        background
                        layout="prev, pager, next"
                        :total="carList.length"
                        :page-size="pagesize"
                        pager-count="3"
                        :current-page="currentPage"
                        @current-change="handleCurrentChange"
                    ></el-pagination>
                        <el-pagination background layout="prev, pager, next" :total="carList.length"
                            :page-size="pagesize" pager-count="3" :current-page="currentPage"
                            @current-change="handleCurrentChange">
                        </el-pagination>
                </div>
            </div>
            <div class="list" v-show="navType == 2">
                <el-table
                    :data="phoneList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    <el-table :data="phoneList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                    :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'pointer' }"
                    :height="currentTableHeight"
                >
                        :height="currentTableHeight">
                    <el-table-column type="index" label="序号" width="50">
                        <template slot-scope="scope">
                            <span>{{ (currentPage - 1) * pagesize + scope.$index + 1 }}</span>
@@ -110,20 +80,10 @@
                    <el-table-column label="操作" align="center">
                        <template slot-scope="scope">
                            <el-button
                                @click="rowClick(scope.row)"
                                type="text"
                                size="small"
                                title="定位"
                            >
                                <el-button @click="rowClick(scope.row)" type="text" size="small" title="定位">
                                <i class="el-icon-location"></i>
                            </el-button>
                            <el-button
                                @click="carDetail(scope.row)"
                                type="text"
                                size="small"
                                title="轨迹"
                            >
                                <el-button @click="carDetail(scope.row)" type="text" size="small" title="轨迹">
                                <i class="el-icon-position"></i>
                            </el-button>
                        </template>
@@ -131,26 +91,19 @@
                </el-table>
                <div class="pages">
                    <el-pagination
                        background
                        layout="prev, pager, next"
                        :total="phoneList.length"
                        :page-size="pagesize"
                        pager-count="3"
                        :current-page="currentPage"
                        @current-change="handleCurrentChange"
                    ></el-pagination>
                        <el-pagination background layout="prev, pager, next" :total="phoneList.length"
                            :page-size="pagesize" pager-count="3" :current-page="currentPage"
                            @current-change="handleCurrentChange">
                        </el-pagination>
                </div>
            </div>
            <div class="list" v-show="navType == 3">
                <el-table
                    :data="dtList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    <el-table :data="dtList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                    :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'pointer' }"
                    :height="currentTableHeight"
                >
                        :height="currentTableHeight">
                    <el-table-column type="index" label="序号" width="50">
                        <template slot-scope="scope">
                            <span>{{ (currentPage - 1) * pagesize + scope.$index + 1 }}</span>
@@ -161,20 +114,10 @@
                    <el-table-column label="操作" align="center">
                        <template slot-scope="scope">
                            <el-button
                                @click="rowClick(scope.row)"
                                type="text"
                                size="small"
                                title="定位"
                            >
                                <el-button @click="rowClick(scope.row)" type="text" size="small" title="定位">
                                <i class="el-icon-location"></i>
                            </el-button>
                            <el-button
                                @click="carDetail(scope.row)"
                                type="text"
                                size="small"
                                title="轨迹"
                            >
                                <el-button @click="carDetail(scope.row)" type="text" size="small" title="轨迹">
                                <i class="el-icon-position"></i>
                            </el-button>
                        </template>
@@ -182,26 +125,19 @@
                </el-table>
                <div class="pages">
                    <el-pagination
                        background
                        layout="prev, pager, next"
                        :total="dtList.length"
                        :page-size="pagesize"
                        pager-count="3"
                        :current-page="currentPage"
                        @current-change="handleCurrentChange"
                    ></el-pagination>
                        <el-pagination background layout="prev, pager, next" :total="dtList.length"
                            :page-size="pagesize" pager-count="3" :current-page="currentPage"
                            @current-change="handleCurrentChange">
                        </el-pagination>
                </div>
            </div>
            <div class="list" v-show="navType == 4">
                <el-table
                    :data="zfList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    <el-table :data="zfList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                    style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                    :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'pointer' }"
                    :height="currentTableHeight"
                >
                        :height="currentTableHeight">
                    <el-table-column type="index" label="序号" width="50">
                        <template slot-scope="scope">
                            <span>{{ (currentPage - 1) * pagesize + scope.$index + 1 }}</span>
@@ -212,20 +148,10 @@
                    <el-table-column label="操作" align="center">
                        <template slot-scope="scope">
                            <el-button
                                @click="rowClick(scope.row)"
                                type="text"
                                size="small"
                                title="定位"
                            >
                                <el-button @click="rowClick(scope.row)" type="text" size="small" title="定位">
                                <i class="el-icon-location"></i>
                            </el-button>
                            <el-button
                                @click="carDetail(scope.row)"
                                type="text"
                                size="small"
                                title="轨迹"
                            >
                                <el-button @click="carDetail(scope.row)" type="text" size="small" title="轨迹">
                                <i class="el-icon-position"></i>
                            </el-button>
                        </template>
@@ -233,15 +159,10 @@
                </el-table>
                <div class="pages">
                    <el-pagination
                        background
                        layout="prev, pager, next"
                        :total="zfList.length"
                        :page-size="pagesize"
                        pager-count="3"
                        :current-page="currentPage"
                        @current-change="handleCurrentChange"
                    ></el-pagination>
                        <el-pagination background layout="prev, pager, next" :total="zfList.length"
                            :page-size="pagesize" pager-count="3" :current-page="currentPage"
                            @current-change="handleCurrentChange">
                        </el-pagination>
                </div>
            </div>
        </div>
@@ -272,15 +193,9 @@
                <li>
                    <div>选择时间:</div>
                    <div class="datetime">
                        <el-date-picker
                            v-model="trackTime"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            size="mini"
                            :editable="false"
                            end-placeholder="结束日期"
                        ></el-date-picker>
                            <el-date-picker v-model="trackTime" type="datetimerange" range-separator="至"
                                start-placeholder="开始日期" size="mini" :editable="false" end-placeholder="结束日期">
                            </el-date-picker>
                    </div>
                </li>
@@ -313,15 +228,9 @@
                <li>
                    <div>选择时间:</div>
                    <div class="datetime">
                        <el-date-picker
                            v-model="trackTime"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            size="mini"
                            :editable="false"
                            end-placeholder="结束日期"
                        ></el-date-picker>
                            <el-date-picker v-model="trackTime" type="datetimerange" range-separator="至"
                                start-placeholder="开始日期" size="mini" :editable="false" end-placeholder="结束日期">
                            </el-date-picker>
                    </div>
                </li>
@@ -330,34 +239,17 @@
                </li>
            </ul>
        </div>
        </div>
        <el-dialog
            :title="dialogTitle"
            :modal="true"
            :visible.sync="dialogVisible"
            :before-close="dialogBeforeClose"
            :close-on-click-modal="true"
            class="car-video-box"
        >
            <video
                src="/video/sp.mp4"
                autoplay
                controls
                width="100%"
                height="100%"
                ref="videoElement"
                style="object-fit: fill"
            ></video>
        <el-dialog :title="dialogTitle" :modal="true" :visible.sync="dialogVisible" :before-close="dialogBeforeClose"
            :close-on-click-modal="true" class="car-video-box">
            <video src="/video/sp.mp4" autoplay controls width="100%" height="100%" ref="videoElement"
                style="object-fit: fill"></video>
        </el-dialog>
        <el-dialog
            :title="phoneTitle"
            :modal="true"
            :visible.sync="phoneVisible"
            :before-close="phoneBeforeClose"
            :close-on-click-modal="true"
            class="phone-details-box"
        >
        <el-dialog :title="phoneTitle" :modal="true" :visible.sync="phoneVisible" :before-close="phoneBeforeClose"
            :close-on-click-modal="true" class="phone-details-box">
            <div class="item">
                <div>责任人:</div>
                <div>{{ phoneDetails.person }}</div>
@@ -419,7 +311,8 @@
                value: '4',
                label: '执法记录仪'
            }],
            typeValue: '1'
            typeValue: '1',
            boxShow: false,
        }
    },
    created () {
@@ -436,6 +329,8 @@
        window.addEventListener('resize', this.setTableHeight)
    },
    mounted () {
        this.$parent.resize('400px')
        this.navClick(1)
    },
    methods: {
@@ -682,7 +577,12 @@
        setTableHeight () {
            this.currentTableHeight = this.$refs.tableBox.offsetHeight - 88
        }
        },
        // 大小重置
        boxResize (val) {
            this.boxShow = val
        },
    },
    destroyed () {
@@ -712,18 +612,24 @@
        })
        window.removeEventListener('resize', this.setTableHeight)
        this.$parent.resize('0px')
    }
}
</script>
<style scoped lang="scss">
.container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 400px;
    height: 100%;
    &-content {
        width: 100%;
        height: 100%;
        color: #fff;
    background: $bg-color;
    .switch-box {
        padding: 6px;
@@ -833,6 +739,7 @@
            border-bottom: 1px solid #fff;
            cursor: pointer;
        }
        .back-btn::before {
            content: '\e6ea';
            font-family: element-icons;
@@ -843,6 +750,7 @@
            top: 4px;
            left: 8px;
        }
        .back-btn:hover::before {
            color: #5a9eeb;
        }
@@ -898,4 +806,5 @@
        }
    }
}
}
</style>
src/views/video/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-10-29 15:23:34
 * @LastEditTime: 2022-11-10 16:09:06
 * @FilePath: \srs-police-affairs\src\views\video\index.vue
 * @Description: 辖区管理
 * 
@@ -11,6 +11,7 @@
<template>
    <div class="container">
        <div v-show='boxShow' class="container-content">
        <div class="search-box">
            <input v-model="searchValue" @input="searchChange" type="text" placeholder="请输入搜索条件" />
            <button @click="searchClick" class="el-icon-search"></button>
@@ -23,23 +24,17 @@
        </div>
        <div v-show="true" class="search-val-box">
            <div
                @click="searchVlaClick(item)"
                v-for="(item, index) in searchArray"
                :key="index"
            >{{ item.name }}</div>
                <div @click="searchVlaClick(item)" v-for="(item, index) in searchArray" :key="index">{{ item.name }}
                </div>
        </div>
        <div class="list-show">
            <div class="car-list">
                <div class="list-box">
                    <el-table
                        :data="monitoringList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                        <el-table :data="monitoringList.slice((currentPage - 1) * pagesize, currentPage * pagesize)"
                        style="width: 100%"
                        :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                        :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }"
                        @cell-click="rowClick"
                    >
                            :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" @cell-click="rowClick">
                        <el-table-column type="index" label="序号" width="50">
                            <template slot-scope="scope">
                                <span>{{ (currentPage - 1) * pagesize + scope.$index + 1 }}</span>
@@ -50,36 +45,18 @@
                    </el-table>
                </div>
                <div class="pages">
                    <el-pagination
                        background
                        layout="prev, pager, next"
                        :total="monitoringList.length"
                        :page-size="pagesize"
                        pager-count="3"
                        :current-page="currentPage"
                        @current-change="handleCurrentChange"
                    ></el-pagination>
                        <el-pagination background layout="prev, pager, next" :total="monitoringList.length"
                            :page-size="pagesize" pager-count="3" :current-page="currentPage"
                            @current-change="handleCurrentChange"></el-pagination>
                    </div>
                </div>
            </div>
        </div>
        <el-dialog
            :title="dialogTitle"
            :modal="true"
            :visible.sync="dialogVisible"
            :before-close="dialogBeforeClose"
            :close-on-click-modal="true"
            class="car-video-box"
        >
            <video
                src="/video/sp.mp4"
                autoplay
                controls
                width="100%"
                height="100%"
                ref="videoElement"
                style="object-fit: fill"
            ></video>
        <el-dialog :title="dialogTitle" :modal="true" :visible.sync="dialogVisible" :before-close="dialogBeforeClose"
            :close-on-click-modal="true" class="car-video-box">
            <video src="/video/sp.mp4" autoplay controls width="100%" height="100%" ref="videoElement"
                style="object-fit: fill"></video>
        </el-dialog>
    </div>
</template>
@@ -101,7 +78,8 @@
            dialogVisible: false,
            searchValue: '',
            searchArray: [],
            searchValBoxShow: false
            searchValBoxShow: false,
            boxShow: false,
        }
    },
@@ -110,6 +88,8 @@
    },
    mounted () {
        this.$parent.resize('400px')
        this.initMonitoringIcon()
        graphicLayer = new EntityDraw()
    },
@@ -187,8 +167,12 @@
        removeDrawLayer () {
            graphicLayer.clearLayer()
        }
        },
        // 大小重置
        boxResize (val) {
            this.boxShow = val
        },
    },
    destroyed () {
@@ -198,17 +182,22 @@
        })
        graphicLayer.destroy()
        this.$parent.resize('0px')
    }
}
</script>
<style scoped lang="scss">
.container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 400px;
    height: 100%;
    &-content {
        width: 100%;
        height: 100%;
        color: #fff;
    background: $bg-color;
    .search-box {
@@ -311,4 +300,5 @@
        }
    }
}
}
</style>