shuishen
2022-09-20 869006b242f91e324a305d0f366fe0320755bdf2
声明未使用报错+deep警告
4 files modified
67 ■■■■■ changed files
.eslintrc.js 41 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 8 ●●●● patch | view | raw | blame | history
src/views/house/index.vue 12 ●●●● patch | view | raw | blame | history
src/views/police/index.vue 6 ●●●● patch | view | raw | blame | history
.eslintrc.js
@@ -1,17 +1,28 @@
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-09-07 09:34:58
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-20 14:35:16
 * @FilePath: \srs-police-affairs\.eslintrc.js
 * @Description:
 *
 * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
 */
module.exports = {
  root: true,
  env: {
    node: true
  },
  'extends': [
    'plugin:vue/essential',
    'eslint:recommended'
  ],
  parserOptions: {
    parser: 'babel-eslint'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
  }
    root: true,
    env: {
        node: true
    },
    'extends': [
        'plugin:vue/essential',
        'eslint:recommended'
    ],
    parserOptions: {
        parser: 'babel-eslint'
    },
    rules: {
        'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
        "no-unused-vars": "off"
    }
}
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-20 14:30:31
 * @LastEditTime: 2022-09-20 14:38:00
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -771,15 +771,15 @@
                background: #ff0000;
            }
        }
        ::v-deep .el-table tr:nth-child(2n) {
        :deep(.el-table tr:nth-child(2n)) {
            background: #03254c;
            color: #fff;
        }
        ::v-deep .el-table tr:nth-child(2n-1) {
        :deep(.el-table tr:nth-child(2n-1)) {
            background: #26426a;
            color: #fff;
        }
        ::v-deep .el-table tr:hover td {
        :deep(.el-table tr:hover td) {
            color: #000;
        }
    }
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-17 17:59:21
 * @LastEditTime: 2022-09-20 14:38:38
 * @FilePath: \srs-police-affairs\src\views\house\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -571,22 +571,22 @@
            }
        }
        .police-info {
            ::v-deep .el-table tr:nth-child(2n) {
            :deep(.el-table tr:nth-child(2n)) {
                background: #03254c;
                color: #fff;
            }
            ::v-deep .el-table tr:nth-child(2n-1) {
            :deep(.el-table tr:nth-child(2n-1)) {
                background: #26426a;
                color: #fff;
            }
            ::v-deep .el-table tr:hover td {
            :deep(.el-table tr:hover td) {
                color: #000;
                cursor: pointer;
            }
            ::v-deep .el-dialog__header {
            :deep(.el-dialog__header) {
                margin-top: 150px;
            }
            ::v-deep .el-dialog__title {
            :deep(.el-dialog__title) {
                line-height: 24px;
                font-size: 24px;
                font-weight: 700;
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-17 09:58:40
 * @LastEditTime: 2022-09-20 14:34:22
 * @FilePath: \srs-police-affairs\src\views\police\index.vue
 * @Description: 辖区管理
 * 
@@ -113,8 +113,8 @@
        },
        getData () {
            for (let i = 0; i < 5; i++) {
                // let lng = 120.381058 + Math.random() * 0.5
                // let lat = 31.101156 + Math.random() * 0.5
                let lng = 120.381058 + Math.random() * 0.5
                let lat = 31.101156 + Math.random() * 0.5
                let carNum = Math.random() * 5000000 + ''
                // this.arr.push({ "carID": `#${carNum.slice(0, 6)}`, "carType": "大众", "position": `(${lng.toFixed(6)},${lat.toFixed(6)})` })
                this.arr.push({ "carID": `#${carNum.slice(0, 6)}`, "carType": "大众" })