shuishen
2022-09-26 357adae2a6f61352085ed0aaef11391f593840ff
部分更改
7 files modified
2 files added
168 ■■■■ changed files
public/index.html 4 ●●●● patch | view | raw | blame | history
src/assets/data/car.js 107 ●●●●● patch | view | raw | blame | history
src/styles/scssFile.scss 1 ●●●● patch | view | raw | blame | history
src/views/activity/index.vue 4 ●●● patch | view | raw | blame | history
src/views/home/index.vue 27 ●●●● patch | view | raw | blame | history
src/views/house/index.vue 4 ●●● patch | view | raw | blame | history
src/views/police/index.vue 4 ●●● patch | view | raw | blame | history
src/views/video/index.vue 4 ●●● patch | view | raw | blame | history
vue.config.js 13 ●●●●● patch | view | raw | blame | history
public/index.html
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-09-07 09:34:58
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-07 09:48:58
 * @LastEditTime: 2022-09-26 08:58:45
 * @FilePath: \srs-police-affairs\public\index.html
 * @Description: 
 * 
@@ -17,7 +17,7 @@
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>
        <%= htmlWebpackPlugin.options.title %>
        社区警务平台
    </title>
    <script src="./depend/vue.min.js"></script>
src/assets/data/car.js
New file
@@ -0,0 +1,107 @@
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-09-23 17:54:16
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-26 16:05:01
 * @FilePath: \srs-police-affairs\src\assets\data\car.js
 * @Description: 车辆相关数据
 *
 * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
 */
export default [{
    name: '1号警车',
    lng: 116.022877,
    lat: 28.685077,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '2号警车',
    lng: 116.029917,
    lat: 28.685360,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '3号警车',
    lng: 116.031044,
    lat: 28.679445,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '4号警车',
    lng: 115.966750,
    lat: 28.595163,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '5号警车',
    lng: 116.150081,
    lat: 28.580119,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '6号警车',
    lng: 116.029917,
    lat: 28.685360,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '7号警车',
    lng: 116.235801,
    lat: 28.654740,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '8号警车',
    lng: 116.210143,
    lat: 28.691634,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '9号警车',
    lng: 116.072665,
    lat: 28.639879,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '10号警车',
    lng: 116.121559,
    lat: 28.699041,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '11号警车',
    lng: 116.106692,
    lat: 28.758830,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '12号警车',
    lng: 116.043007,
    lat: 28.736032,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '13号警车',
    lng: 116.002395,
    lat: 28.695900,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '14号警车',
    lng: 116.009437,
    lat: 28.660863,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '15号警车',
    lng: 116.067097,
    lat: 28.621827,
    alt: 100,
    url: '/img/icon/car.png'
}, {
    name: '16号警车',
    lng: 115.944243,
    lat: 28.669108,
    alt: 100,
    url: '/img/icon/car.png'
}]
src/styles/scssFile.scss
New file
@@ -0,0 +1 @@
$bg-color: rgba(16, 29, 74, 0.9);
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-09-23 17:07:31
 * @LastEditTime: 2022-09-26 16:23:34
 * @FilePath: \srs-police-affairs\src\views\activity\index.vue
 * @Description: 安保活动
 * 
@@ -513,8 +513,6 @@
</script>
<style scoped lang="scss">
@import '@/styles/public/index.scss';
.container {
    height: 100%;
    position: relative;
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: 2022-09-23 17:07:26
 * @LastEditTime: 2022-09-26 16:23:15
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -235,6 +235,8 @@
<script>
let cylinderLayer = null
import carList from '@/assets/data/car.js'
export default {
    data () {
        return {
@@ -291,25 +293,7 @@
                }
            ],
            carList: [{
                name: '1号警车',
                lng: 116.022877,
                lat: 28.685077,
                alt: 100,
                url: '/img/icon/car.png'
            }, {
                name: '2号警车',
                lng: 116.029917,
                lat: 28.685360,
                alt: 100,
                url: '/img/icon/car.png'
            }, {
                name: '3号警车',
                lng: 116.031044,
                lat: 28.679445,
                alt: 100,
                url: '/img/icon/car.png'
            }],
            carList: [],
            phoneList: [{
                name: '1号手台',
@@ -411,6 +395,7 @@
        }
    },
    created () {
        this.carList = carList
    },
    mounted () {
        this.initPersonEcharts()
@@ -1159,8 +1144,6 @@
</script>
<style scoped lang="scss">
@import '@/styles/public/index.scss';
.container {
    color: #fff;
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-09-23 17:07:10
 * @LastEditTime: 2022-09-26 16:23:38
 * @FilePath: \srs-police-affairs\src\views\house\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -631,8 +631,6 @@
</script>
<style scoped lang="scss">
@import '@/styles/public/index.scss';
.container {
    position: relative;
    width: 400px;
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-09-23 17:12:11
 * @LastEditTime: 2022-09-26 16:23:49
 * @FilePath: \srs-police-affairs\src\views\police\index.vue
 * @Description: 辖区管理
 * 
@@ -338,8 +338,6 @@
</script>
<style scoped lang="scss">
@import '@/styles/public/index.scss';
.container {
    display: flex;
    flex-direction: column;
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-09-23 17:13:15
 * @LastEditTime: 2022-09-26 16:23:53
 * @FilePath: \srs-police-affairs\src\views\video\index.vue
 * @Description: 辖区管理
 * 
@@ -160,8 +160,6 @@
</script>
<style scoped lang="scss">
@import '@/styles/public/index.scss';
.container {
    position: relative;
    width: 400px;
vue.config.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-09-07 09:37:07
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-19 10:20:28
 * @LastEditTime: 2022-09-26 16:21:37
 * @FilePath: \srs-police-affairs\vue.config.js
 * @Description: 
 * 
@@ -19,6 +19,15 @@
const productionGzipExtensions = ['js', 'css']
module.exports = {
    css: {
        loaderOptions: {
            // 给 sass-loader 传递选项
            scss: {
                prependData: `@import "~@/styles/scssFile.scss";`
            },
        },
    },
    // 其他配置
    chainWebpack: (config) => {
        config.plugin('copy').use(CopywebpackPlugin, [
@@ -67,6 +76,8 @@
        ]
    },
    devServer: {
        open: false, // 编译完成是否打开网页
        host: '0.0.0.0', // 指定使用地址,默认localhost,0.0.0.0代表可以被外界访问