bihuisong 2 miesięcy temu
commit
0768bbf0d0
100 zmienionych plików z 3556 dodań i 0 usunięć
  1. 22 0
      monitor_ui/.editorconfig
  2. 11 0
      monitor_ui/.env.development
  3. 8 0
      monitor_ui/.env.production
  4. 10 0
      monitor_ui/.env.staging
  5. 10 0
      monitor_ui/.eslintignore
  6. 199 0
      monitor_ui/.eslintrc.js
  7. 23 0
      monitor_ui/.gitignore
  8. 30 0
      monitor_ui/README.md
  9. 13 0
      monitor_ui/babel.config.js
  10. 12 0
      monitor_ui/bin/build.bat
  11. 12 0
      monitor_ui/bin/package.bat
  12. 12 0
      monitor_ui/bin/run-web.bat
  13. 35 0
      monitor_ui/build/index.js
  14. 107 0
      monitor_ui/package.json
  15. BIN
      monitor_ui/public/favicon.ico
  16. BIN
      monitor_ui/public/hk/VideoWebPlugin.exe
  17. 74 0
      monitor_ui/public/hk/jquery-1.12.4.min.js
  18. 1 0
      monitor_ui/public/hk/jsWebControl-1.0.0.min.js
  19. 1 0
      monitor_ui/public/hk/jsencrypt.min.js
  20. 2 0
      monitor_ui/public/hk/web-control_1.2.5.min.js
  21. 46 0
      monitor_ui/public/html/ie.html
  22. 295 0
      monitor_ui/public/index.html
  23. 2 0
      monitor_ui/public/robots.txt
  24. BIN
      monitor_ui/public/sliderVerifyPictures/1.jpg
  25. BIN
      monitor_ui/public/sliderVerifyPictures/10.jpg
  26. BIN
      monitor_ui/public/sliderVerifyPictures/11.jpg
  27. BIN
      monitor_ui/public/sliderVerifyPictures/12.jpg
  28. BIN
      monitor_ui/public/sliderVerifyPictures/13.jpg
  29. BIN
      monitor_ui/public/sliderVerifyPictures/14.jpg
  30. BIN
      monitor_ui/public/sliderVerifyPictures/15.jpg
  31. BIN
      monitor_ui/public/sliderVerifyPictures/16.jpg
  32. BIN
      monitor_ui/public/sliderVerifyPictures/17.jpg
  33. BIN
      monitor_ui/public/sliderVerifyPictures/18.jpg
  34. BIN
      monitor_ui/public/sliderVerifyPictures/19.jpg
  35. BIN
      monitor_ui/public/sliderVerifyPictures/2.jpg
  36. BIN
      monitor_ui/public/sliderVerifyPictures/20.jpg
  37. BIN
      monitor_ui/public/sliderVerifyPictures/3.jpg
  38. BIN
      monitor_ui/public/sliderVerifyPictures/4.jpg
  39. BIN
      monitor_ui/public/sliderVerifyPictures/5.jpg
  40. BIN
      monitor_ui/public/sliderVerifyPictures/6.jpg
  41. BIN
      monitor_ui/public/sliderVerifyPictures/7.jpg
  42. BIN
      monitor_ui/public/sliderVerifyPictures/8.jpg
  43. BIN
      monitor_ui/public/sliderVerifyPictures/9.jpg
  44. 33 0
      monitor_ui/src/App.vue
  45. 69 0
      monitor_ui/src/api/MonitoringCenter/index.js
  46. 60 0
      monitor_ui/src/api/broadcast/broadcast.js
  47. 115 0
      monitor_ui/src/api/centerMonitor/LabelManagement/setLabel.js
  48. 44 0
      monitor_ui/src/api/centerMonitor/aidevicedept/aidevicedept.js
  49. 52 0
      monitor_ui/src/api/centerMonitor/aideviceevent/aideviceevent.js
  50. 89 0
      monitor_ui/src/api/centerMonitor/camera/camera.js
  51. 44 0
      monitor_ui/src/api/centerMonitor/camera/camerachannel.js
  52. 18 0
      monitor_ui/src/api/centerMonitor/components/deptselector.js
  53. 21 0
      monitor_ui/src/api/centerMonitor/components/supermap.js
  54. 9 0
      monitor_ui/src/api/centerMonitor/dahua/dahua.js
  55. 304 0
      monitor_ui/src/api/centerMonitor/device/device.js
  56. 61 0
      monitor_ui/src/api/centerMonitor/meiqiguanGps/gasTankDevices.js
  57. 62 0
      monitor_ui/src/api/dahuaLog/dahuaLog.js
  58. 16 0
      monitor_ui/src/api/dataIndexEcharts/highcharts.js
  59. 17 0
      monitor_ui/src/api/haikang/haikang.js
  60. 80 0
      monitor_ui/src/api/login.js
  61. 16 0
      monitor_ui/src/api/menu.js
  62. 71 0
      monitor_ui/src/api/monitor/job.js
  63. 26 0
      monitor_ui/src/api/monitor/jobLog.js
  64. 18 0
      monitor_ui/src/api/monitor/online.js
  65. 68 0
      monitor_ui/src/api/system/config.js
  66. 76 0
      monitor_ui/src/api/system/dept.js
  67. 68 0
      monitor_ui/src/api/system/deptparty.js
  68. 52 0
      monitor_ui/src/api/system/dict/data.js
  69. 60 0
      monitor_ui/src/api/system/dict/type.js
  70. 26 0
      monitor_ui/src/api/system/logininfor.js
  71. 60 0
      monitor_ui/src/api/system/menu.js
  72. 44 0
      monitor_ui/src/api/system/notice.js
  73. 26 0
      monitor_ui/src/api/system/operlog.js
  74. 44 0
      monitor_ui/src/api/system/post.js
  75. 111 0
      monitor_ui/src/api/system/role.js
  76. 247 0
      monitor_ui/src/api/system/rules.js
  77. 140 0
      monitor_ui/src/api/system/user.js
  78. 8 0
      monitor_ui/src/api/system/version.js
  79. 10 0
      monitor_ui/src/api/sysutils/deptselector.js
  80. 7 0
      monitor_ui/src/api/tool/encrypt.js
  81. 76 0
      monitor_ui/src/api/tool/gen.js
  82. BIN
      monitor_ui/src/assets/401_images/401.gif
  83. BIN
      monitor_ui/src/assets/404_images/404.png
  84. BIN
      monitor_ui/src/assets/404_images/404_cloud.png
  85. 85 0
      monitor_ui/src/assets/iconfont/iconfont.css
  86. 1 0
      monitor_ui/src/assets/iconfont/iconfont.js
  87. 128 0
      monitor_ui/src/assets/iconfont/iconfont.json
  88. 53 0
      monitor_ui/src/assets/iconfont/iconfont.svg
  89. BIN
      monitor_ui/src/assets/iconfont/iconfont.ttf
  90. BIN
      monitor_ui/src/assets/iconfont/iconfont.woff
  91. BIN
      monitor_ui/src/assets/iconfont/iconfont.woff2
  92. 9 0
      monitor_ui/src/assets/icons/index.js
  93. 1 0
      monitor_ui/src/assets/icons/svg/404.svg
  94. 1 0
      monitor_ui/src/assets/icons/svg/bug.svg
  95. 1 0
      monitor_ui/src/assets/icons/svg/build.svg
  96. 1 0
      monitor_ui/src/assets/icons/svg/button.svg
  97. 1 0
      monitor_ui/src/assets/icons/svg/cascader.svg
  98. 1 0
      monitor_ui/src/assets/icons/svg/chart.svg
  99. 1 0
      monitor_ui/src/assets/icons/svg/checkbox.svg
  100. 0 0
      monitor_ui/src/assets/icons/svg/client.svg

+ 22 - 0
monitor_ui/.editorconfig

@@ -0,0 +1,22 @@
+# 告诉EditorConfig插件,这是根文件,不用继续往上查找
+root = true
+
+# 匹配全部文件
+[*]
+# 设置字符集
+charset = utf-8
+# 缩进风格,可选space、tab
+indent_style = space
+# 缩进的空格数
+indent_size = 2
+# 结尾换行符,可选lf、cr、crlf
+end_of_line = lf
+# 在文件结尾插入新行
+insert_final_newline = true
+# 删除一行中的前后空格
+trim_trailing_whitespace = true
+
+# 匹配md结尾的文件
+[*.md]
+insert_final_newline = false
+trim_trailing_whitespace = false

+ 11 - 0
monitor_ui/.env.development

@@ -0,0 +1,11 @@
+# 页面标题
+VUE_APP_TITLE =四平市态势感知平台
+
+# 开发环境配置
+ENV = 'development'
+
+# 若依管理系统/开发环境
+VUE_APP_BASE_API = '/dev-api'
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 8 - 0
monitor_ui/.env.production

@@ -0,0 +1,8 @@
+# 页面标题
+VUE_APP_TITLE = 四平市态势感知平台
+
+# 生产环境配置
+ENV = 'production'
+
+# 若依管理系统/生产环境
+VUE_APP_BASE_API = '/prod-api'

+ 10 - 0
monitor_ui/.env.staging

@@ -0,0 +1,10 @@
+# 页面标题
+VUE_APP_TITLE = 四平市态势感知平台
+
+NODE_ENV = production
+
+# 测试环境配置
+ENV = 'staging'
+
+# 若依管理系统/测试环境
+VUE_APP_BASE_API = '/stage-api'

+ 10 - 0
monitor_ui/.eslintignore

@@ -0,0 +1,10 @@
+# 忽略build目录下类型为js的文件的语法检查
+build/*.js
+# 忽略src/assets目录下文件的语法检查
+src/assets
+# 忽略public目录下文件的语法检查
+public
+# 忽略当前目录下为js的文件的语法检查
+*.js
+# 忽略当前目录下为vue的文件的语法检查
+*.vue

+ 199 - 0
monitor_ui/.eslintrc.js

@@ -0,0 +1,199 @@
+// ESlint 检查配置
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint',
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+    node: true,
+    es6: true,
+  },
+  extends: ['plugin:vue/recommended', 'eslint:recommended'],
+
+  // add your custom rules here
+  //it is base on https://github.com/vuejs/eslint-config-vue
+  rules: {
+    "vue/max-attributes-per-line": [2, {
+      "singleline": 10,
+      "multiline": {
+        "max": 1,
+        "allowFirstLine": false
+      }
+    }],
+    "vue/singleline-html-element-content-newline": "off",
+    "vue/multiline-html-element-content-newline":"off",
+    "vue/name-property-casing": ["error", "PascalCase"],
+    "vue/no-v-html": "off",
+    'accessor-pairs': 2,
+    'arrow-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'block-spacing': [2, 'always'],
+    'brace-style': [2, '1tbs', {
+      'allowSingleLine': true
+    }],
+    'camelcase': [0, {
+      'properties': 'always'
+    }],
+    'comma-dangle': [2, 'never'],
+    'comma-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'comma-style': [2, 'last'],
+    'constructor-super': 2,
+    'curly': [2, 'multi-line'],
+    'dot-location': [2, 'property'],
+    'eol-last': 2,
+    'eqeqeq': ["error", "always", {"null": "ignore"}],
+    'generator-star-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'handle-callback-err': [2, '^(err|error)$'],
+    'indent': [2, 2, {
+      'SwitchCase': 1
+    }],
+    'jsx-quotes': [2, 'prefer-single'],
+    'key-spacing': [2, {
+      'beforeColon': false,
+      'afterColon': true
+    }],
+    'keyword-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'new-cap': [2, {
+      'newIsCap': true,
+      'capIsNew': false
+    }],
+    'new-parens': 2,
+    'no-array-constructor': 2,
+    'no-caller': 2,
+    'no-console': 'off',
+    'no-class-assign': 2,
+    'no-cond-assign': 2,
+    'no-const-assign': 2,
+    'no-control-regex': 0,
+    'no-delete-var': 2,
+    'no-dupe-args': 2,
+    'no-dupe-class-members': 2,
+    'no-dupe-keys': 2,
+    'no-duplicate-case': 2,
+    'no-empty-character-class': 2,
+    'no-empty-pattern': 2,
+    'no-eval': 2,
+    'no-ex-assign': 2,
+    'no-extend-native': 2,
+    'no-extra-bind': 2,
+    'no-extra-boolean-cast': 2,
+    'no-extra-parens': [2, 'functions'],
+    'no-fallthrough': 2,
+    'no-floating-decimal': 2,
+    'no-func-assign': 2,
+    'no-implied-eval': 2,
+    'no-inner-declarations': [2, 'functions'],
+    'no-invalid-regexp': 2,
+    'no-irregular-whitespace': 2,
+    'no-iterator': 2,
+    'no-label-var': 2,
+    'no-labels': [2, {
+      'allowLoop': false,
+      'allowSwitch': false
+    }],
+    'no-lone-blocks': 2,
+    'no-mixed-spaces-and-tabs': 2,
+    'no-multi-spaces': 2,
+    'no-multi-str': 2,
+    'no-multiple-empty-lines': [2, {
+      'max': 1
+    }],
+    'no-native-reassign': 2,
+    'no-negated-in-lhs': 2,
+    'no-new-object': 2,
+    'no-new-require': 2,
+    'no-new-symbol': 2,
+    'no-new-wrappers': 2,
+    'no-obj-calls': 2,
+    'no-octal': 2,
+    'no-octal-escape': 2,
+    'no-path-concat': 2,
+    'no-proto': 2,
+    'no-redeclare': 2,
+    'no-regex-spaces': 2,
+    'no-return-assign': [2, 'except-parens'],
+    'no-self-assign': 2,
+    'no-self-compare': 2,
+    'no-sequences': 2,
+    'no-shadow-restricted-names': 2,
+    'no-spaced-func': 2,
+    'no-sparse-arrays': 2,
+    'no-this-before-super': 2,
+    'no-throw-literal': 2,
+    'no-trailing-spaces': 2,
+    'no-undef': 2,
+    'no-undef-init': 2,
+    'no-unexpected-multiline': 2,
+    'no-unmodified-loop-condition': 2,
+    'no-unneeded-ternary': [2, {
+      'defaultAssignment': false
+    }],
+    'no-unreachable': 2,
+    'no-unsafe-finally': 2,
+    'no-unused-vars': [2, {
+      'vars': 'all',
+      'args': 'none'
+    }],
+    'no-useless-call': 2,
+    'no-useless-computed-key': 2,
+    'no-useless-constructor': 2,
+    'no-useless-escape': 0,
+    'no-whitespace-before-property': 2,
+    'no-with': 2,
+    'one-var': [2, {
+      'initialized': 'never'
+    }],
+    'operator-linebreak': [2, 'after', {
+      'overrides': {
+        '?': 'before',
+        ':': 'before'
+      }
+    }],
+    'padded-blocks': [2, 'never'],
+    'quotes': [2, 'single', {
+      'avoidEscape': true,
+      'allowTemplateLiterals': true
+    }],
+    'semi': [2, 'never'],
+    'semi-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'space-before-blocks': [2, 'always'],
+    'space-before-function-paren': [2, 'never'],
+    'space-in-parens': [2, 'never'],
+    'space-infix-ops': 2,
+    'space-unary-ops': [2, {
+      'words': true,
+      'nonwords': false
+    }],
+    'spaced-comment': [2, 'always', {
+      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
+    }],
+    'template-curly-spacing': [2, 'never'],
+    'use-isnan': 2,
+    'valid-typeof': 2,
+    'wrap-iife': [2, 'any'],
+    'yield-star-spacing': [2, 'both'],
+    'yoda': [2, 'never'],
+    'prefer-const': 2,
+    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+    'object-curly-spacing': [2, 'always', {
+      objectsInObjects: false
+    }],
+    'array-bracket-spacing': [2, 'never']
+  }
+}

+ 23 - 0
monitor_ui/.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules/
+dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+**/*.log
+
+tests/**/coverage/
+tests/e2e/reports
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.local
+
+package-lock.json
+yarn.lock

+ 30 - 0
monitor_ui/README.md

@@ -0,0 +1,30 @@
+## 开发
+
+```bash
+# 克隆项目
+git clone https://gitee.com/y_project/RuoYi-Vue
+
+# 进入项目目录
+cd ruoyi-ui
+
+# 安装依赖
+npm install
+
+# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
+npm install --registry=https://registry.npm.taobao.org
+
+# 启动服务
+npm run dev
+```
+
+浏览器访问 http://localhost:80
+
+## 发布
+
+```bash
+# 构建测试环境
+npm run build:stage
+
+# 构建生产环境
+npm run build:prod
+```

+ 13 - 0
monitor_ui/babel.config.js

@@ -0,0 +1,13 @@
+module.exports = {
+  presets: [
+    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
+    '@vue/cli-plugin-babel/preset'
+  ],
+  'env': {
+    'development': {
+      // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
+      // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
+      'plugins': ['dynamic-import-node']
+    }
+  }
+}

+ 12 - 0
monitor_ui/bin/build.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 打包Web工程,生成dist文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run build:prod
+
+pause

+ 12 - 0
monitor_ui/bin/package.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 安装Web工程,生成node_modules文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm install --registry=https://registry.npm.taobao.org
+
+pause

+ 12 - 0
monitor_ui/bin/run-web.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 使用 Vue CLI 命令运行 Web 工程。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run dev
+
+pause

+ 35 - 0
monitor_ui/build/index.js

@@ -0,0 +1,35 @@
+const { run } = require('runjs')
+const chalk = require('chalk')
+const config = require('../vue.config.js')
+const rawArgv = process.argv.slice(2)
+const args = rawArgv.join(' ')
+
+if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
+  const report = rawArgv.includes('--report')
+
+  run(`vue-cli-service build ${args}`)
+
+  const port = 9526
+  const publicPath = config.publicPath
+
+  var connect = require('connect')
+  var serveStatic = require('serve-static')
+  const app = connect()
+
+  app.use(
+    publicPath,
+    serveStatic('./dist', {
+      index: ['index.html', '/']
+    })
+  )
+
+  app.listen(port, function () {
+    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
+    if (report) {
+      console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`))
+    }
+
+  })
+} else {
+  run(`vue-cli-service build ${args}`)
+}

+ 107 - 0
monitor_ui/package.json

@@ -0,0 +1,107 @@
+{
+  "name": "ruoyi",
+  "version": "3.4.0",
+  "description": "四平市态势感知平台",
+  "author": "若依",
+  "license": "MIT",
+  "scripts": {
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "preview": "node build/index.js --preview",
+    "lint": "eslint --ext .js,.vue src"
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  },
+  "lint-staged": {
+    "src/**/*.{js,vue}": [
+      "eslint --fix",
+      "git add"
+    ]
+  },
+  "keywords": [
+    "vue",
+    "admin",
+    "dashboard",
+    "element-ui",
+    "boilerplate",
+    "admin-template",
+    "management-system"
+  ],
+  "repository": {
+    "type": "git",
+    "url": "https://gitee.com/y_project/RuoYi-Cloud.git"
+  },
+  "dependencies": {
+    "@riophae/vue-treeselect": "0.4.0",
+    "@supermap/iclient-leaflet": "^10.2.1",
+    "@supermap/iclient-ol": "^10.1.3",
+    "axios": "0.24.0",
+    "chart.js": "^4.3.0",
+    "clipboard": "2.0.8",
+    "core-js": "3.19.1",
+    "echarts": "^4.9.0",
+    "echarts.js": "^3.0.0-beta3",
+    "element-ui": "2.15.6",
+    "file-saver": "2.0.5",
+    "fuse.js": "6.4.3",
+    "highlight.js": "9.18.5",
+    "js-beautify": "1.13.0",
+    "js-cookie": "3.0.1",
+    "jsencrypt": "^3.2.1",
+    "leaflet": "^1.8.0",
+    "leaflet-draw": "^1.0.4",
+    "leaflet-side-by-side": "^2.1.0",
+    "leaflet.markercluster": "^1.5.3",
+    "leaflet.pm": "^2.2.0",
+    "lib-flexible": "^0.3.2",
+    "moment": "^2.29.4",
+    "nprogress": "0.2.0",
+    "quill": "1.3.7",
+    "screenfull": "5.0.2",
+    "sortablejs": "1.10.2",
+    "vue": "^2.6.12",
+    "vue-chartjs": "^3.5.1",
+    "vue-count-to": "1.0.13",
+    "vue-cropper": "0.5.5",
+    "vue-json-tree-view": "^2.1.6",
+    "vue-json-viewer": "^2.2.22",
+    "vue-meta": "2.4.0",
+    "vue-meta-info": "^0.1.7",
+    "vue-router": "3.4.9",
+    "vuedraggable": "2.24.3",
+    "vuex": "3.6.0"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "4.4.6",
+    "@vue/cli-plugin-eslint": "4.4.6",
+    "@vue/cli-service": "4.4.6",
+    "babel-eslint": "10.1.0",
+    "babel-plugin-dynamic-import-node": "2.3.3",
+    "chalk": "4.1.0",
+    "compression-webpack-plugin": "5.0.2",
+    "connect": "3.6.6",
+    "eslint": "7.15.0",
+    "eslint-plugin-vue": "7.2.0",
+    "lint-staged": "10.5.3",
+    "px2rem-loader": "^0.1.9",
+    "runjs": "4.4.2",
+    "sass": "1.32.13",
+    "sass-loader": "10.1.1",
+    "script-ext-html-webpack-plugin": "2.1.5",
+    "svg-sprite-loader": "5.1.1",
+    "vue-loader": "^17.2.2",
+    "vue-template-compiler": "^2.6.12"
+  },
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ]
+}

BIN
monitor_ui/public/favicon.ico


BIN
monitor_ui/public/hk/VideoWebPlugin.exe


Plik diff jest za duży
+ 74 - 0
monitor_ui/public/hk/jquery-1.12.4.min.js


Plik diff jest za duży
+ 1 - 0
monitor_ui/public/hk/jsWebControl-1.0.0.min.js


Plik diff jest za duży
+ 1 - 0
monitor_ui/public/hk/jsencrypt.min.js


Plik diff jest za duży
+ 2 - 0
monitor_ui/public/hk/web-control_1.2.5.min.js


Plik diff jest za duży
+ 46 - 0
monitor_ui/public/html/ie.html


+ 295 - 0
monitor_ui/public/index.html

@@ -0,0 +1,295 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="renderer" content="webkit">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+  <link href="/SuperMap3D/Build/Cesium/Widgets/widgets.css" rel="stylesheet" />
+  <!--<title><%= webpackConfig.name %></title>-->
+  <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
+  <script type="text/javascript" src="/hk/jquery-1.12.4.min.js"></script>
+  <script type="text/javascript" src="/hk/jsencrypt.min.js"></script>
+  <script type="text/javascript" src="/hk/jsWebControl-1.0.0.min.js"></script>
+  <style>
+    html,
+    body,
+    #app {
+      height: 100%;
+      margin: 0px;
+      padding: 0px;
+    }
+    .chromeframe {
+      margin: 0.2em 0;
+      background: #ccc;
+      color: #000;
+      padding: 0.2em 0;
+    }
+
+    #loader-wrapper {
+      position: fixed;
+      top: 0;
+      left: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 999999;
+    }
+
+    #loader {
+      display: block;
+      position: relative;
+      left: 50%;
+      top: 50%;
+      width: 150px;
+      height: 150px;
+      margin: -75px 0 0 -75px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 2s linear infinite;
+      -ms-animation: spin 2s linear infinite;
+      -moz-animation: spin 2s linear infinite;
+      -o-animation: spin 2s linear infinite;
+      animation: spin 2s linear infinite;
+      z-index: 1001;
+    }
+
+    #loader:before {
+      content: "";
+      position: absolute;
+      top: 5px;
+      left: 5px;
+      right: 5px;
+      bottom: 5px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 3s linear infinite;
+      -moz-animation: spin 3s linear infinite;
+      -o-animation: spin 3s linear infinite;
+      -ms-animation: spin 3s linear infinite;
+      animation: spin 3s linear infinite;
+    }
+
+    #loader:after {
+      content: "";
+      position: absolute;
+      top: 15px;
+      left: 15px;
+      right: 15px;
+      bottom: 15px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -moz-animation: spin 1.5s linear infinite;
+      -o-animation: spin 1.5s linear infinite;
+      -ms-animation: spin 1.5s linear infinite;
+      -webkit-animation: spin 1.5s linear infinite;
+      animation: spin 1.5s linear infinite;
+    }
+
+
+    @-webkit-keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+    @keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+
+    #loader-wrapper .loader-section {
+      position: fixed;
+      top: 0;
+      width: 51%;
+      height: 100%;
+      background: #7171C6;
+      z-index: 1000;
+      -webkit-transform: translateX(0);
+      -ms-transform: translateX(0);
+      transform: translateX(0);
+    }
+
+    #loader-wrapper .loader-section.section-left {
+      left: 0;
+    }
+
+    #loader-wrapper .loader-section.section-right {
+      right: 0;
+    }
+
+
+    .loaded #loader-wrapper .loader-section.section-left {
+      -webkit-transform: translateX(-100%);
+      -ms-transform: translateX(-100%);
+      transform: translateX(-100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader-wrapper .loader-section.section-right {
+      -webkit-transform: translateX(100%);
+      -ms-transform: translateX(100%);
+      transform: translateX(100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader {
+      opacity: 0;
+      -webkit-transition: all 0.3s ease-out;
+      transition: all 0.3s ease-out;
+    }
+
+    .loaded #loader-wrapper {
+      visibility: hidden;
+      -webkit-transform: translateY(-100%);
+      -ms-transform: translateY(-100%);
+      transform: translateY(-100%);
+      -webkit-transition: all 0.3s 1s ease-out;
+      transition: all 0.3s 1s ease-out;
+    }
+
+    .no-js #loader-wrapper {
+      display: none;
+    }
+
+    .no-js h1 {
+      color: #222222;
+    }
+
+    #loader-wrapper .load_title {
+      font-family: 'Open Sans';
+      color: #FFF;
+      font-size: 19px;
+      width: 100%;
+      text-align: center;
+      z-index: 9999999999999;
+      position: absolute;
+      top: 60%;
+      opacity: 1;
+      line-height: 30px;
+    }
+
+    #loader-wrapper .load_title span {
+      font-weight: normal;
+      font-style: italic;
+      font-size: 13px;
+      color: #FFF;
+      opacity: 0.5;
+    }
+    .loading {
+      width: 40px;
+      height: 40px;
+      margin: 0 auto;
+      position: relative;
+      top: 40%;
+      position: relative;
+      -webkit-animation: load 1.5s linear infinite;
+    }
+
+    .loading div {
+      width: 100%;
+      height: 100%;
+      position: absolute;
+    }
+
+    .loading span {
+      display: inline-block;
+      width: 20px;
+      height: 20px;
+      border-radius: 50%;
+      background: #99CC66;
+      position: absolute;
+      left: 50%;
+      margin-top: -10px;
+      margin-left: -10px;
+      -webkit-animation: changeBgColor 3s ease infinite;
+    }
+
+    @-webkit-keyframes load {
+      0% {
+        -webkit-transform: rotate(0deg);
+      }
+      33.3% {
+        -webkit-transform: rotate(120deg);
+      }
+      66.6% {
+        -webkit-transform: rotate(240deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+      }
+    }
+
+    @-webkit-keyframes changeBgColor {
+      0%, 100% {
+        background: #2db2cc;
+      }
+      33.3% {
+        background: #FFFF66;
+      }
+      66.6% {
+        background: #FF6666;
+      }
+    }
+
+    .loading div:nth-child(2) {
+      -webkit-transform: rotate(120deg);
+    }
+
+    .loading div:nth-child(3) {
+      -webkit-transform: rotate(240deg);
+    }
+
+    .loading div:nth-child(2) span {
+      -webkit-animation-delay: 1s;
+    }
+
+    .loading div:nth-child(3) span {
+      -webkit-animation-delay: 2s;
+    }
+
+  </style>
+</head>
+<body>
+<script type="text/javascript" src="/SuperMap3D/Build/Cesium/Cesium.js"></script>
+<script src="./hk/jquery-1.12.4.min.js"></script>
+<script src="./hk/jsencrypt.min.js"></script>            <!-- 用于RSA加密 -->
+<script src="./hk/web-control_1.2.5.min.js"></script>   <!-- 用于前端与插件交互 -->
+<script type="text/javascript" src="/SuperMap3D/examples/webgl/js/supermap/SuperMap.Include.js"></script>
+<div id="app">
+  <div class="loading">
+    <div><span></span></div>
+    <div><span></span></div>
+    <div><span></span></div>
+  </div>
+  <div style="top: 48%; position: absolute; left: 50%; transform: translateX(-50%);">正在努力加载中,请稍候...</div>
+  <!--<div id="loader-wrapper">-->
+  <!--<div id="loader"></div>-->
+  <!--<div class="loader-section section-left"></div>-->
+  <!--<div class="loader-section section-right"></div>-->
+  <!--<div class="load_title">正在加载系统资源,请耐心等待</div>-->
+  <!--</div>-->
+</div>
+</body>
+</html>

+ 2 - 0
monitor_ui/public/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

BIN
monitor_ui/public/sliderVerifyPictures/1.jpg


BIN
monitor_ui/public/sliderVerifyPictures/10.jpg


BIN
monitor_ui/public/sliderVerifyPictures/11.jpg


BIN
monitor_ui/public/sliderVerifyPictures/12.jpg


BIN
monitor_ui/public/sliderVerifyPictures/13.jpg


BIN
monitor_ui/public/sliderVerifyPictures/14.jpg


BIN
monitor_ui/public/sliderVerifyPictures/15.jpg


BIN
monitor_ui/public/sliderVerifyPictures/16.jpg


BIN
monitor_ui/public/sliderVerifyPictures/17.jpg


BIN
monitor_ui/public/sliderVerifyPictures/18.jpg


BIN
monitor_ui/public/sliderVerifyPictures/19.jpg


BIN
monitor_ui/public/sliderVerifyPictures/2.jpg


BIN
monitor_ui/public/sliderVerifyPictures/20.jpg


BIN
monitor_ui/public/sliderVerifyPictures/3.jpg


BIN
monitor_ui/public/sliderVerifyPictures/4.jpg


BIN
monitor_ui/public/sliderVerifyPictures/5.jpg


BIN
monitor_ui/public/sliderVerifyPictures/6.jpg


BIN
monitor_ui/public/sliderVerifyPictures/7.jpg


BIN
monitor_ui/public/sliderVerifyPictures/8.jpg


BIN
monitor_ui/public/sliderVerifyPictures/9.jpg


+ 33 - 0
monitor_ui/src/App.vue

@@ -0,0 +1,33 @@
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+
+<script>
+    export default  {
+        name:  'App',
+        metaInfo () {
+            return {
+                title:this.title,
+                meta:[{
+                    charset: "utf-8"
+                },
+                    {
+                        name: "viewport",
+                        content: "width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
+                    }]
+            }
+        },
+        data() {
+            return {
+                title:"",
+            }
+        },
+        mounted() {
+            setTimeout(() => {
+                this.title = '四平市态势感知平台'
+            }, 2000)
+        },
+    }
+</script>

+ 69 - 0
monitor_ui/src/api/MonitoringCenter/index.js

@@ -0,0 +1,69 @@
+import request from '@/utils/request'
+
+// 查询参数列表
+export function countData (query) {
+  return request({
+    url: '/center-monitor/camera/selectAlldeviceCountAndDetailCount',
+    method: 'get',
+    params: query
+  })
+}
+
+//监控中心首页-当前设备状态
+export function listData (query) {
+  return request({
+    url: '/center-monitor/camera/selectDeviceAndCameraOnlineAndOfflineList',
+    method: 'get',
+    params: query
+  })
+}
+
+//区县离线设备扇形图
+export function listDatas (query) {
+  return request({
+    url: '/center-monitor/camera/selectQxOfflineDeviceCount',
+    method: 'get',
+    params: query
+  })
+}
+
+//离线设备类型扇形图
+export function list (query) {
+  return request({
+    url: '/center-monitor/camera/selectQxOfflineDeviceTypeCount',
+    method: 'get',
+    params: query
+  })
+}
+
+//日度折线图
+export function daylist (query) {
+  return request({
+    url: '/center-monitor/camera/selectDayLineChartCount/'+ query,
+    method: 'get'
+  })
+}
+
+//月度折线图
+export function monthlylist (query) {
+  return request({
+    url: '/center-monitor/camera/selectMonthlyLineChartCount/'+ query,
+    method: 'get'
+  })
+}
+
+//季度折线图
+export function quarterlist (query) {
+  return request({
+    url: '/center-monitor/camera/selectquarterlineChartCount/'+ query,
+    method: 'get',
+  })
+}
+
+//年度折线图
+export function yearlist (query) {
+  return request({
+    url: '/center-monitor/camera/selectYearlineChartCount/'+ query,
+    method: 'get',
+  })
+}

+ 60 - 0
monitor_ui/src/api/broadcast/broadcast.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询云广播设备列表
+export function listBroadcast(query) {
+  return request({
+    url: '/center-monitor/broadcast/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询云广播设备列表
+export function listBroadcastAll(query) {
+  return request({
+    url: '/center-monitor/broadcast/listBroadcastAll',
+    method: 'get',
+    params: query
+  })
+}
+// 查询部门列表
+export function selectDeptBroadcastData(query) {
+  return request({
+    url: '/center-monitor/broadcast/selectDeptBroadcastData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询云广播设备详细
+export function getBroadcast(id) {
+  return request({
+    url: '/center-monitor/broadcast/' + id,
+    method: 'get'
+  })
+}
+
+// 新增云广播设备
+export function addBroadcast(data) {
+  return request({
+    url: '/center-monitor/broadcast',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改云广播设备
+export function updateBroadcast(data) {
+  return request({
+    url: '/center-monitor/broadcast',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除云广播设备
+export function delBroadcast(id) {
+  return request({
+    url: '/center-monitor/broadcast/' + id,
+    method: 'delete'
+  })
+}

+ 115 - 0
monitor_ui/src/api/centerMonitor/LabelManagement/setLabel.js

@@ -0,0 +1,115 @@
+import request from '@/utils/request'
+
+// 查询标签列表
+export function listTable(query) {
+  return request({
+    url: '/center-monitor/SetLabel/getSetLabelList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 新增标签
+export function addLabel(data) {
+  return request({
+    url: '/center-monitor/SetLabel/addLabel',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改标签
+export function updateLabel(data) {
+  return request({
+    url: '/center-monitor/SetLabel/updateLabel',
+    method: 'post',
+    data: data
+  })
+}
+
+// 删除标签
+export function deleteLabel(id) {
+  return request({
+    url: '/center-monitor/SetLabel/deleteLabel/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询标签修改页
+export function getlabel(id) {
+   return request({
+     url: '/center-monitor/SetLabel/getLabels/' + id,
+     method: 'get',
+   })
+}
+
+// 设置标签页查询
+export function Searchtags(name) {
+  return request({
+    url: '/center-monitor/SetLabel/Searchtags/' + name,
+    method: 'get',
+  })
+}
+
+// 查询摄像头设备列表
+export function listdevice(query) {
+  return request({
+    url: '/center-monitor/SetLabel/getdevice',
+    method: 'get',
+    params: query
+  })
+}
+
+// 添加摄像头
+export function addCamera(data) {
+  return request({
+    url: '/center-monitor/SetLabel/addCamera',
+    method: 'post',
+    data: data
+  })
+}
+
+// 根据标签id查询摄像头设备列表
+export function getCameraByLabelId(query) {
+  return request({
+    url: '/center-monitor/SetLabel/getCameraByLabelId',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据标签id和摄像头id删除
+export function removeCameraByLabelId(data) {
+  return request({
+    url: '/center-monitor/SetLabel/removeCameraByLabelId',
+    method: 'delete',
+    params: data
+  })
+}
+
+// 获取大华摄像头的预置点
+export function getPresetPoints(channelId) {
+  return request({
+    url: '/center-monitor/DahuaController/getPresetPoints?channelId=' + channelId,
+    method: 'get'
+  })
+}
+
+// 选择预置点
+export function updatePresetPoint(data) {
+  return request({
+    url: '/center-monitor/SetLabel/updatePresetPoint',
+    method: 'post',
+    data: data
+  })
+}
+
+// 根据标签子表id和设备id查询预置点信息
+export function getCameraByIdAndDeviceId(query) {
+  return request({
+    url: '/center-monitor/SetLabel/getCameraByIdAndDeviceId',
+    method: 'get',
+    params: query
+  })
+}
+

+ 44 - 0
monitor_ui/src/api/centerMonitor/aidevicedept/aidevicedept.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询AI对应部门列表
+export function listAidevicedept(query) {
+  return request({
+    url: '/center-monitor/aidevicedept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询AI对应部门详细
+export function getAidevicedept(id) {
+  return request({
+    url: '/center-monitor/aidevicedept/' + id,
+    method: 'get'
+  })
+}
+
+// 新增AI对应部门
+export function addAidevicedept(data) {
+  return request({
+    url: '/center-monitor/aidevicedept',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI对应部门
+export function updateAidevicedept(data) {
+  return request({
+    url: '/center-monitor/aidevicedept',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除AI对应部门
+export function delAidevicedept(id) {
+  return request({
+    url: '/center-monitor/aidevicedept/' + id,
+    method: 'delete'
+  })
+}

+ 52 - 0
monitor_ui/src/api/centerMonitor/aideviceevent/aideviceevent.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询AI对应事件列表
+export function listAideviceevent(query) {
+  return request({
+    url: '/center-monitor/aideviceevent/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询AI对应事件详细
+export function getAideviceevent(id) {
+  return request({
+    url: '/center-monitor/aideviceevent/' + id,
+    method: 'get'
+  })
+}
+
+// 新增AI对应事件
+export function addAideviceevent(data) {
+  return request({
+    url: '/center-monitor/aideviceevent',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI对应事件
+export function updateAideviceevent(data) {
+  return request({
+    url: '/center-monitor/aideviceevent',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除AI对应事件
+export function delAideviceevent(id) {
+  return request({
+    url: '/center-monitor/aideviceevent/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询事件类型选项
+export function selectEventType() {
+  return request({
+    url: '/center-monitor/aideviceevent/selectEventType',
+    method: 'get'
+  })
+}

+ 89 - 0
monitor_ui/src/api/centerMonitor/camera/camera.js

@@ -0,0 +1,89 @@
+import request from '@/utils/request'
+
+// 查询摄像头列表
+export function listCamera(query) {
+  return request({
+    url: '/center-monitor/camera/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询摄像头列表
+export function listCameraByDept(query) {
+  return request({
+    url: '/center-monitor/camera/selectCameraListByDeptIdAndWorkingStatus',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询摄像头列表
+export function listStateLog(query) {
+  return request({
+    url: '/center-monitor/camera/listStateLog',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询摄像头详细
+export function getCamera(id) {
+  return request({
+    url: '/center-monitor/camera/' + id,
+    method: 'get'
+  })
+}
+
+// 查询摄像头通道ID
+export function selectchannelCodeByCameraId(cameraId) {
+  return request({
+    url: '/center-monitor/camerachannel/selectchannelCodeByCameraId/' + cameraId,
+    method: 'get'
+  })
+}
+
+// 新增摄像头
+export function addCamera(data) {
+  return request({
+    url: '/center-monitor/camera',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改摄像头
+export function updateCamera(data) {
+  return request({
+    url: '/center-monitor/camera',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除摄像头
+export function delCamera(id) {
+  return request({
+    url: '/center-monitor/camera/' + id,
+    method: 'delete'
+  })
+}
+
+// 刷新设备状态
+export function synchronizeOfflineCamera() {
+  return request({
+    url: '/center-monitor/DahuaController/synchronizeOfflineCamera',
+    method: 'post',
+  })
+}
+
+export function HKTVWall(params) {
+  return request({
+    url: '/center-monitor/camera/HKTVWall',
+    method: 'get',
+    params:params
+  })
+}
+
+
+

+ 44 - 0
monitor_ui/src/api/centerMonitor/camera/camerachannel.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询摄像头通道列表
+export function listCamerachannel(query) {
+  return request({
+    url: '/center-monitor/camerachannel/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询摄像头通道详细
+export function getCamerachannel(id) {
+  return request({
+    url: '/center-monitor/camerachannel/' + id,
+    method: 'get'
+  })
+}
+
+// 新增摄像头通道
+export function addCamerachannel(data) {
+  return request({
+    url: '/center-monitor/camerachannel',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改摄像头通道
+export function updateCamerachannel(data) {
+  return request({
+    url: '/center-monitor/camerachannel',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除摄像头通道
+export function delCamerachannel(id) {
+  return request({
+    url: '/center-monitor/camerachannel/' + id,
+    method: 'delete'
+  })
+}

+ 18 - 0
monitor_ui/src/api/centerMonitor/components/deptselector.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request.js'
+
+export function getDepts(query) {
+    return request({
+        url : '/system/sysutils/deptselector',
+        method : 'get',
+        params: query
+    })
+}
+
+export function getDataByDept(query) {
+    return request({
+        url : '/system/sysutils/getDataByDept',
+        method : 'get',
+        params: query
+    })
+}
+

+ 21 - 0
monitor_ui/src/api/centerMonitor/components/supermap.js

@@ -0,0 +1,21 @@
+import request from '@/utils/request.js'
+
+export function getSuperMap(codes) {
+    return request({
+        url : '/center-data/supermap/maplist?codes='+codes,
+        method : 'get',
+    })
+}
+
+
+
+
+
+export const iconList={
+    "marker":require('@/assets/images/cameraType/marker.png'),
+    "big-horn":require('@/assets/images/cameraType/big-horn.png'),
+    "camera":require('@/assets/images/cameraType/camera.png'),
+    "camera-not":require('@/assets/images/cameraType/camera-not.png'),
+    "not-online":require('@/assets/images/cameraType/not-online.png'),
+    "sensor":require('@/assets/images/cameraType/sensor.png'),
+}

+ 9 - 0
monitor_ui/src/api/centerMonitor/dahua/dahua.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 查询摄像头列表
+export function getDahuaVideoServer() {
+  return request({
+    url: '/center-monitor/DahuaController/getDahuaVideoServer',
+    method: 'get',
+  })
+}

+ 304 - 0
monitor_ui/src/api/centerMonitor/device/device.js

@@ -0,0 +1,304 @@
+import request from '@/utils/request'
+
+// 查询监测设备列表
+export function listDevice(query) {
+  return request({
+    url: '/center-monitor/device/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询监测设备列表
+export function listDeviceByDept(query) {
+  return request({
+    url: '/center-monitor/device/selectDeviceListByDeptIdAndWorkingStatus',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询监测设备列表
+export function listDeviceAll(query) {
+  return request({
+    url: '/center-monitor/device/listDeviceAll',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询监测设备详细
+export function getDevice(id) {
+  return request({
+    url: '/center-monitor/device/' + id,
+    method: 'get'
+  })
+}
+
+// 新增监测设备
+export function addDevice(data) {
+  return request({
+    url: '/center-monitor/device',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改监测设备
+export function updateDevice(data) {
+  return request({
+    url: '/center-monitor/device',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除监测设备
+export function delDevice(id) {
+  return request({
+    url: '/center-monitor/device/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询水流速监测设备列表
+export function selectWaterVelocityMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectWaterVelocityMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询水质监测设备列表
+export function selectWaterQualityMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectWaterQualityMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询大气监测设备列表
+export function selectAtmosphereMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectAtmosphereMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询土壤墒情监测设备列表
+export function selectSoilMoistureMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectSoilMoistureMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询水压监测设备列表
+export function selectWaterPressureMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectWaterPressureMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询病虫害监测设备列表
+export function selectInsectPestsMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectInsectPestsMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表
+export function selectDeptMonitoringData(query) {
+  return request({
+    url: '/center-monitor/device/selectDeptMonitoringData',
+    method: 'get',
+    params: query
+  })
+}
+// 查询水流速监测设备详细
+export function getWaterVelocity(id) {
+  return request({
+    url: '/center-monitor/device/getWaterVelocity/' + id,
+    method: 'get'
+  })
+}
+// 查询土壤监测设备详细
+export function getSoilMoisture(id) {
+  return request({
+    url: '/center-monitor/device/getSoilMoisture/' + id,
+    method: 'get'
+  })
+}
+// 查询水质监测设备详细
+export function getWaterQuality(id) {
+  return request({
+    url: '/center-monitor/device/getWaterQuality/' + id,
+    method: 'get'
+  })
+}
+// 查询水压监测设备详细
+export function getWaterPressure(id) {
+  return request({
+    url: '/center-monitor/device/getWaterPressure/' + id,
+    method: 'get'
+  })
+}
+// 查询大气监测设备详细
+export function getAtmosphere(id) {
+  return request({
+    url: '/center-monitor/device/getAtmosphere/' + id,
+    method: 'get'
+  })
+}
+
+// 查询病虫害监测设备详细
+export function getInsectPests(id) {
+  return request({
+    url: '/center-monitor/device/getInsectPests/' + id,
+    method: 'get'
+  })
+}
+
+// 根据设备编码查询水流度阈值
+export function selectWaterVelocityThresholdByCode(code) {
+  return request({
+    url: '/center-monitor/threshold/selectWaterVelocityThresholdByCode/' + code,
+    method: 'get'
+  })
+}
+
+// 根据设备编码查询水流度阈值
+export function addDeviceThreshold(data) {
+  return request({
+    url: '/center-monitor/threshold',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改监测设备
+export function updateDeviceThreshold(data) {
+  return request({
+    url: '/center-monitor/threshold',
+    method: 'put',
+    data: data
+  })
+}
+
+// 根据设备编码查询大气阈值
+export function selectAtmosphereThresholdByCode(code) {
+  return request({
+    url: '/center-monitor/atmosphereThreshold/selectAtmosphereThresholdByCode/' + code,
+    method: 'get'
+  })
+}
+
+// 新增大气阈值
+export function addDeviceAtmosphereThreshold(data) {
+  return request({
+    url: '/center-monitor/atmosphereThreshold',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改大气监测设备阈值
+export function updateDeviceAtmosphereThreshold(data) {
+  return request({
+    url: '/center-monitor/atmosphereThreshold',
+    method: 'put',
+    data: data
+  })
+}
+
+// 根据设备编码查询土壤阈值
+export function selectSoilMoistureThresholdByCode(code) {
+  return request({
+    url: '/center-monitor/soilMoistureThreshold/selectSoilMoistureThresholdByCode/' + code,
+    method: 'get'
+  })
+}
+
+// 新增土壤阈值
+export function addDeviceSoilMoistureThreshold(data) {
+  return request({
+    url: '/center-monitor/soilMoistureThreshold',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改土壤监测设备阈值
+export function updateDeviceSoilMoistureThreshold(data) {
+  return request({
+    url: '/center-monitor/soilMoistureThreshold',
+    method: 'put',
+    data: data
+  })
+}
+
+// 根据设备编码查询水质阈值
+export function selectWaterQualityThresholdByCode(code) {
+  return request({
+    url: '/center-monitor/waterQualityThreshold/selectWaterQualityThresholdByCode/' + code,
+    method: 'get'
+  })
+}
+
+// 新增水质阈值
+export function addDeviceWaterQualityThreshold(data) {
+  return request({
+    url: '/center-monitor/waterQualityThreshold',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改水质监测设备阈值
+export function updateDeviceWaterQualityThreshold(data) {
+  return request({
+    url: '/center-monitor/waterQualityThreshold',
+    method: 'put',
+    data: data
+  })
+}
+
+// 是否接开启告警功能
+export function changeWarn(id, openWarn) {
+  const data = {
+    id,
+    openWarn
+  }
+  return request({
+    url: '/center-monitor/device/changeWarn',
+    method: 'put',
+    data: data
+  })
+}
+
+// 是否接开启告警功能
+export function SendWaterPressCommand(data) {
+  return request({
+    url: '/center-monitor/device/SendWaterPressCommand',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 查询全部摄像头用于和检测设备一对多绑定
+export function selectAllCameraList(data) {
+  return request({
+    url: '/center-monitor/camera/selectAllCameraList',
+    method: 'get'
+  })
+}
+
+

+ 61 - 0
monitor_ui/src/api/centerMonitor/meiqiguanGps/gasTankDevices.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询煤气罐设备信息列表
+export function listDevices(query) {
+  return request({
+    url: '/center-monitor/gps/devices/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询煤气罐设备信息详细
+export function getDevices(id) {
+  return request({
+    url: '/center-monitor/gps/devices/' + id,
+    method: 'get'
+  })
+}
+
+// 新增煤气罐设备信息
+export function addDevices(data) {
+  return request({
+    url: '/center-monitor/gps/devices',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改煤气罐设备信息
+export function updateDevices(data) {
+  return request({
+    url: '/center-monitor/gps/devices',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除煤气罐设备信息
+export function delDevices(id) {
+  return request({
+    url: '/center-monitor/gps/devices/' + id,
+    method: 'delete'
+  })
+}
+
+export function listDevicesDept(query) {
+  return request({
+    url: '/center-monitor/gps/devices/listDept',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表
+export function selectDeptGpsData(query) {
+  return request({
+    url: '/center-monitor/gps/devices/selectDeptGpsData',
+    method: 'get',
+    params: query
+  })
+}

+ 62 - 0
monitor_ui/src/api/dahuaLog/dahuaLog.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询大华操作日志列表
+export function listLog(query) {
+  return request({
+    url: '/center-monitor/dahuaOperateLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询大华操作日志详细
+export function getLog(query) {
+  return request({
+    url: '/center-monitor/dahuaOperateLog/getDetailsById',
+    method: 'get',
+    params: query
+  })
+}
+
+// 新增大华操作日志
+export function addLog(data) {
+  return request({
+    url: '/center-monitor/dahuaOperateLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改大华操作日志
+export function updateLog(data) {
+  return request({
+    url: '/center-monitor/dahuaOperateLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除大华操作日志
+export function delLog(id) {
+  return request({
+    url: '/center-monitor/dahuaOperateLog/' + id,
+    method: 'delete'
+  })
+}
+
+// 全量同步大华操作日志
+export function getAllDataLog(query) {
+  return request({
+    url: '/center-monitor/dahuaOperateLog/synchronous',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取设备名称
+export function getDeviceNameList() {
+  return request({
+    url: '/center-monitor/dahuaOperateLog/getDeviceNameList',
+    method: 'get'
+  })
+}

+ 16 - 0
monitor_ui/src/api/dataIndexEcharts/highcharts.js

@@ -0,0 +1,16 @@
+import Highcharts from 'highcharts';
+// import exporting from 'highcharts/modules/exporting';
+// import highchartsMore from 'highcharts/highcharts-more';
+// import highcharts3d from 'highcharts/highcharts-3d';
+// import highchartsHeatmap from 'highcharts/modules/heatmap';
+// import HighchartsSolidGauge from 'highcharts/modules/solid-gauge';
+
+
+
+exporting(Highcharts);
+// highchartsMore(Highcharts);
+// highcharts3d(Highcharts);
+// highchartsHeatmap(Highcharts);
+// HighchartsSolidGauge(Highcharts);
+export default Highcharts;
+/**/

+ 17 - 0
monitor_ui/src/api/haikang/haikang.js

@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+// 查询摄像头
+export function getHaiKangVideoServer(param) {
+  return request({
+    url: '/center-monitor/HaiKangController/getHaiKangVideoServer',
+    method: 'get',
+    params: param
+  })
+}
+// 查询电视墙
+export function tvCameraList() {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/tvCameraList',
+    method: 'get',
+  })
+}

+ 80 - 0
monitor_ui/src/api/login.js

@@ -0,0 +1,80 @@
+import request from '@/utils/request'
+
+// 登录方法
+export function login(username, password, code, uuid) {
+  return request({
+    url: '/auth/login',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: { username, password, code, uuid }
+  })
+}
+
+// 注册方法
+export function register(data) {
+  return request({
+    url: '/auth/register',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+// 刷新方法
+export function refreshToken() {
+  return request({
+    url: '/auth/refresh',
+    method: 'post'
+  })
+}
+
+// 获取用户详细信息
+export function getInfo() {
+  return request({
+    url: '/system/user/getInfo',
+    method: 'get'
+  })
+}
+
+// 退出方法
+export function logout() {
+  return request({
+    url: '/auth/logout',
+    method: 'delete'
+  })
+}
+
+// 获取验证码
+export function getCodeImg() {
+  return request({
+    url: '/code',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}
+//获取登录页基本信息
+export function fontConfig() {
+  return request({
+    url: '/system/fontConfig/getSysFontConfig/Monitor',
+    method: 'get',
+  })
+}
+
+// 获取密码加密传输公钥
+export function getSecretKey() {
+  return request({
+    url: '/auth/getSecretKey',
+    headers: {
+      isToken: false
+    },
+    method: 'post'
+  })
+}
+

+ 16 - 0
monitor_ui/src/api/menu.js

@@ -0,0 +1,16 @@
+import request from '@/utils/request'
+
+// 获取路由
+export const getRouters = () => {
+  return request({
+    url: '/system/menu/getRouters',
+    method: 'get'
+  })
+}
+export const getRoutersMenu = (data) => {
+  return request({
+    url: '/system/menu/getRouters',
+    method: 'get',
+    params : data
+  })
+}

+ 71 - 0
monitor_ui/src/api/monitor/job.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询定时任务调度列表
+export function listJob(query) {
+  return request({
+    url: '/schedule/job/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询定时任务调度详细
+export function getJob(jobId) {
+  return request({
+    url: '/schedule/job/' + jobId,
+    method: 'get'
+  })
+}
+
+// 新增定时任务调度
+export function addJob(data) {
+  return request({
+    url: '/schedule/job',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改定时任务调度
+export function updateJob(data) {
+  return request({
+    url: '/schedule/job',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除定时任务调度
+export function delJob(jobId) {
+  return request({
+    url: '/schedule/job/' + jobId,
+    method: 'delete'
+  })
+}
+
+// 任务状态修改
+export function changeJobStatus(jobId, status) {
+  const data = {
+    jobId,
+    status
+  }
+  return request({
+    url: '/schedule/job/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+
+// 定时任务立即执行一次
+export function runJob(jobId, jobGroup) {
+  const data = {
+    jobId,
+    jobGroup
+  }
+  return request({
+    url: '/schedule/job/run',
+    method: 'put',
+    data: data
+  })
+}

+ 26 - 0
monitor_ui/src/api/monitor/jobLog.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询调度日志列表
+export function listJobLog(query) {
+  return request({
+    url: '/schedule/job/log/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除调度日志
+export function delJobLog(jobLogId) {
+  return request({
+    url: '/schedule/job/log/' + jobLogId,
+    method: 'delete'
+  })
+}
+
+// 清空调度日志
+export function cleanJobLog() {
+  return request({
+    url: '/schedule/job/log/clean',
+    method: 'delete'
+  })
+}

+ 18 - 0
monitor_ui/src/api/monitor/online.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request'
+
+// 查询在线用户列表
+export function list(query) {
+  return request({
+    url: '/system/online/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 强退用户
+export function forceLogout(tokenId) {
+  return request({
+    url: '/system/online/' + tokenId,
+    method: 'delete'
+  })
+}

+ 68 - 0
monitor_ui/src/api/system/config.js

@@ -0,0 +1,68 @@
+import request from '@/utils/request'
+
+// 查询参数列表
+export function listConfig(query) {
+  return request({
+    url: '/system/config/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询参数详细
+export function getConfig(configId) {
+  return request({
+    url: '/system/config/' + configId,
+    method: 'get'
+  })
+}
+
+// 根据参数键名查询参数值
+export function getConfigKey(configKey) {
+  return request({
+    url: '/system/config/configKey/' + configKey,
+    method: 'get'
+  })
+}
+
+// 新增参数配置
+export function addConfig(data) {
+  return request({
+    url: '/system/config',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改参数配置
+export function updateConfig(data) {
+  return request({
+    url: '/system/config',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除参数配置
+export function delConfig(configId) {
+  return request({
+    url: '/system/config/' + configId,
+    method: 'delete'
+  })
+}
+
+// 刷新参数缓存
+export function refreshCache() {
+  return request({
+    url: '/system/config/refreshCache',
+    method: 'delete'
+  })
+}
+
+//获取配置信息
+export function selectConfigKey(configKey) {
+  return request({
+    url: '/system/config/selectConfigKey/' + configKey,
+    method: 'get'
+  })
+}

+ 76 - 0
monitor_ui/src/api/system/dept.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/system/dept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/system/dept/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/system/dept/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门下拉树结构
+export function treeselect() {
+  return request({
+    url: '/system/dept/treeselect',
+    method: 'get'
+  })
+}
+
+// 查询全部部门下拉树结构
+export function treeselectAll() {
+  return request({
+    url: '/system/dept/treeselectAll',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询部门树结构
+export function roleDeptTreeselect(roleId) {
+  return request({
+    url: '/system/dept/roleDeptTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/system/dept',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/system/dept',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(deptId) {
+  return request({
+    url: '/system/dept/' + deptId,
+    method: 'delete'
+  })
+}

+ 68 - 0
monitor_ui/src/api/system/deptparty.js

@@ -0,0 +1,68 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/system/deptparty/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/system/deptparty/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/system/deptparty/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门下拉树结构
+export function treeselect() {
+  return request({
+    url: '/system/deptparty/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询部门树结构
+export function roleDeptTreeselect(roleId) {
+  return request({
+    url: '/system/deptparty/roleDeptTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/system/deptparty',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/system/deptparty',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(deptId) {
+  return request({
+    url: '/system/deptparty/' + deptId,
+    method: 'delete'
+  })
+}

+ 52 - 0
monitor_ui/src/api/system/dict/data.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询字典数据列表
+export function listData(query) {
+  return request({
+    url: '/system/dict/data/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典数据详细
+export function getData(dictCode) {
+  return request({
+    url: '/system/dict/data/' + dictCode,
+    method: 'get'
+  })
+}
+
+// 根据字典类型查询字典数据信息
+export function getDicts(dictType) {
+  return request({
+    url: '/system/dict/data/type/' + dictType,
+    method: 'get'
+  })
+}
+
+// 新增字典数据
+export function addData(data) {
+  return request({
+    url: '/system/dict/data',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典数据
+export function updateData(data) {
+  return request({
+    url: '/system/dict/data',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典数据
+export function delData(dictCode) {
+  return request({
+    url: '/system/dict/data/' + dictCode,
+    method: 'delete'
+  })
+}

+ 60 - 0
monitor_ui/src/api/system/dict/type.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询字典类型列表
+export function listType(query) {
+  return request({
+    url: '/system/dict/type/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典类型详细
+export function getType(dictId) {
+  return request({
+    url: '/system/dict/type/' + dictId,
+    method: 'get'
+  })
+}
+
+// 新增字典类型
+export function addType(data) {
+  return request({
+    url: '/system/dict/type',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典类型
+export function updateType(data) {
+  return request({
+    url: '/system/dict/type',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典类型
+export function delType(dictId) {
+  return request({
+    url: '/system/dict/type/' + dictId,
+    method: 'delete'
+  })
+}
+
+// 刷新字典缓存
+export function refreshCache() {
+  return request({
+    url: '/system/dict/type/refreshCache',
+    method: 'delete'
+  })
+}
+
+// 获取字典选择框列表
+export function optionselect() {
+  return request({
+    url: '/system/dict/type/optionselect',
+    method: 'get'
+  })
+}

+ 26 - 0
monitor_ui/src/api/system/logininfor.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询登录日志列表
+export function list(query) {
+  return request({
+    url: '/system/logininfor/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除登录日志
+export function delLogininfor(infoId) {
+  return request({
+    url: '/system/logininfor/' + infoId,
+    method: 'delete'
+  })
+}
+
+// 清空登录日志
+export function cleanLogininfor() {
+  return request({
+    url: '/system/logininfor/clean',
+    method: 'delete'
+  })
+}

+ 60 - 0
monitor_ui/src/api/system/menu.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询菜单列表
+export function listMenu(query) {
+  return request({
+    url: '/system/menu/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询菜单详细
+export function getMenu(menuId) {
+  return request({
+    url: '/system/menu/' + menuId,
+    method: 'get'
+  })
+}
+
+// 查询菜单下拉树结构
+export function treeselect() {
+  return request({
+    url: '/system/menu/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询菜单下拉树结构
+export function roleMenuTreeselect(roleId) {
+  return request({
+    url: '/system/menu/roleMenuTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增菜单
+export function addMenu(data) {
+  return request({
+    url: '/system/menu',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改菜单
+export function updateMenu(data) {
+  return request({
+    url: '/system/menu',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除菜单
+export function delMenu(menuId) {
+  return request({
+    url: '/system/menu/' + menuId,
+    method: 'delete'
+  })
+}

+ 44 - 0
monitor_ui/src/api/system/notice.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询公告列表
+export function listNotice(query) {
+  return request({
+    url: '/system/notice/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询公告详细
+export function getNotice(noticeId) {
+  return request({
+    url: '/system/notice/' + noticeId,
+    method: 'get'
+  })
+}
+
+// 新增公告
+export function addNotice(data) {
+  return request({
+    url: '/system/notice',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改公告
+export function updateNotice(data) {
+  return request({
+    url: '/system/notice',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除公告
+export function delNotice(noticeId) {
+  return request({
+    url: '/system/notice/' + noticeId,
+    method: 'delete'
+  })
+}

+ 26 - 0
monitor_ui/src/api/system/operlog.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询操作日志列表
+export function list(query) {
+  return request({
+    url: '/system/operlog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除操作日志
+export function delOperlog(operId) {
+  return request({
+    url: '/system/operlog/' + operId,
+    method: 'delete'
+  })
+}
+
+// 清空操作日志
+export function cleanOperlog() {
+  return request({
+    url: '/system/operlog/clean',
+    method: 'delete'
+  })
+}

+ 44 - 0
monitor_ui/src/api/system/post.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询岗位列表
+export function listPost(query) {
+  return request({
+    url: '/system/post/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询岗位详细
+export function getPost(postId) {
+  return request({
+    url: '/system/post/' + postId,
+    method: 'get'
+  })
+}
+
+// 新增岗位
+export function addPost(data) {
+  return request({
+    url: '/system/post',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改岗位
+export function updatePost(data) {
+  return request({
+    url: '/system/post',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除岗位
+export function delPost(postId) {
+  return request({
+    url: '/system/post/' + postId,
+    method: 'delete'
+  })
+}

+ 111 - 0
monitor_ui/src/api/system/role.js

@@ -0,0 +1,111 @@
+import request from '@/utils/request'
+
+// 查询角色列表
+export function listRole(query) {
+  return request({
+    url: '/system/role/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色详细
+export function getRole(roleId) {
+  return request({
+    url: '/system/role/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增角色
+export function addRole(data) {
+  return request({
+    url: '/system/role',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改角色
+export function updateRole(data) {
+  return request({
+    url: '/system/role',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色数据权限
+export function dataScope(data) {
+  return request({
+    url: '/system/role/dataScope',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色状态修改
+export function changeRoleStatus(roleId, status) {
+  const data = {
+    roleId,
+    status
+  }
+  return request({
+    url: '/system/role/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除角色
+export function delRole(roleId) {
+  return request({
+    url: '/system/role/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 查询角色已授权用户列表
+export function allocatedUserList(query) {
+  return request({
+    url: '/system/role/authUser/allocatedList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色未授权用户列表
+export function unallocatedUserList(query) {
+  return request({
+    url: '/system/role/authUser/unallocatedList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 取消用户授权角色
+export function authUserCancel(data) {
+  return request({
+    url: '/system/role/authUser/cancel',
+    method: 'put',
+    data: data
+  })
+}
+
+// 批量取消用户授权角色
+export function authUserCancelAll(data) {
+  return request({
+    url: '/system/role/authUser/cancelAll',
+    method: 'put',
+    params: data
+  })
+}
+
+// 授权用户选择
+export function authUserSelectAll(data) {
+  return request({
+    url: '/system/role/authUser/selectAll',
+    method: 'put',
+    params: data
+  })
+}

+ 247 - 0
monitor_ui/src/api/system/rules.js

@@ -0,0 +1,247 @@
+/**
+ * 验证非负整数(包含0及正整数)
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function checkNonnegativeInteger(rule, value, callback) {
+  if (value) {
+    value += ''
+    if(/(^(0|[1-9][0-9]*)$)/.test(value)) {
+      callback()
+    } else {
+      callback(new Error('只能输入数字,数值不能为负,且不能为小数'))
+    }
+  } else {
+    callback()
+  }
+}
+
+/**
+ * 验证正整数(不包含0的正整数)
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function checkPositiveInteger(rule, value, callback) {
+  if (value) {
+    value += ''
+    if(/(^[1-9]\d*$)/.test(value)) {
+      callback()
+    } else {
+      callback(new Error('只能输入数字,数值不能为负数或0,且不能为小数'))
+    }
+  } else {
+    callback()
+  }
+}
+
+/**
+ * 验证正数,且小数可2位(包含0及正整数)
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function checkPositiveDecimal(rule, value, callback) {
+  if (value) {
+    value += ''
+    // if(/(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(value)) {
+    // if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(value)) {
+    if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]{1,2}$)/.test(value)) {
+      callback()
+    } else {
+      callback(new Error('只能输入数字,且数值不能为负,小数限2位'))
+    }
+  } else {
+    callback()
+  }
+}
+/**
+ * 验证正数,且小数可4位(包含0及正整数)
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function checkPositiveDecimal4(rule, value, callback) {
+  if (value) {
+    value += ''
+    // if(/(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9]){0,3}$)/.test(value)) {
+    if(/(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]{1,4}$)/.test(value)) {
+      callback()
+    } else {
+      callback(new Error('只能输入数字,且数值不能为负,小数限4位'))
+    }
+  } else {
+    callback()
+  }
+}
+/**
+ * 验证手机号,座机号
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function validPhoneMobile(rule, value, callback){
+  if (value){
+    if (value === '') {
+      callback(new Error('请输入11位手机号'));
+    } else {
+      let regPone = null;
+      let mobile = /^1(3|4|5|6|7|8|9)\d{9}$/; //最新16手机正则
+      let tel = /^(0\d{2,3}-){0,1}\d{7,8}$/; //座机
+      if (value.charAt(0) == 0) {    // charAt查找第一个字符方法,用来判断输入的是座机还是手机号
+        regPone = tel;
+      } else {
+        regPone = mobile;
+      }
+      if (!regPone.test(value)) {
+        callback(new Error("请填写11位手机号或座机号(座机格式为 区号-座机号码)"))
+      }
+      callback();
+    }
+  }else {
+    callback();
+  }
+}
+
+/**
+ * 验证经度输入范围在-180-180之间,且小数可15位
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function checkLon(rule, value, callback) {
+  if (value) {
+    value += ''
+    if (value.match(/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,15})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/)) {
+      callback()
+    } else {
+      callback(new Error('经度为-180~180,小数限15位'))
+    }
+  } else {
+    callback()
+  }
+}
+/**
+ * 验证纬度输入范围在-90~90之间,且小数可15位
+ * @param {*} rule
+ * @param {*} value
+ * @param {*} callback
+ */
+export function checkLat(rule, value, callback) {
+  if (value) {
+    value += ''
+    if (value.match(/^(\-|\+)?([0-8]?\d{1}\.\d{0,15}|90\.0{0,6}|[0-8]?\d{1}|90)$/)) {
+      callback()
+    } else {
+      callback(new Error('纬度为-90~90,小数限15位'))
+    }
+  } else {
+    callback()
+  }
+}
+
+/**
+ * 温度校验
+ * @param rule
+ * @param value
+ * @param callback
+ */
+export function checkTemperature(rule, value, callback) {
+  if (value !== '') {
+    // 判断温度是否为数字
+    if (!/^-?\d+(\.\d+)?$/.test(value)) {
+      callback(new Error('温度值必须为数字'))
+    } else {
+      // 将温度转换为数字类型,方便后续比较大小
+      const num = Number(value)
+
+      // 判断温度的范围是否在 -50 到 50 之间
+      if (num < -50 || num > 50) {
+        callback(new Error('温度范围必须在-50℃ ~ 50℃之间'))
+      } else {
+        // 判断小数部分是否超过一位
+        const reg = /(?:\.)(\d+)/
+        let match = value.match(reg)
+        if (match && match[1].length > 1) {
+          callback(new Error('小数部分只能保留一位'))
+        }
+        // 判断整数部分是否超过两位,且第一位是否为0
+        match = value.match(/^-?(\d+)/)
+        if (match && (match[1].length > 2 || (match[1].length === 2 && match[1][0] === '0'))) {
+          callback(new Error('整数部分长度不能超过2位,且第一位不能是0'))
+        } else {
+          callback()
+        }
+      }
+    }
+  } else {
+    callback(new Error('温度值不能为空'))
+  }
+}
+
+/**
+ * 车牌号校验(含新能源)
+ * @param rule
+ * @param value
+ * @param callback
+ */
+export function carPhoneValid (rule, value, callback) {
+  const plateNumber = /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}([A-HJ-NP-Z0-9挂学警港澳]{1}|[应急]{2}))$/
+  if (plateNumber.test(value)) {
+    callback()
+  } else {
+    callback(new Error('请输入正确的车牌号'))
+  }
+}
+
+/**
+ * 英文和数字校验
+ * @param rule
+ * @param value
+ * @param callback
+ */
+export function englishAndNumValid(rule, value, callback) {
+  if (value) {
+    value += ''
+    if (value.match(/^[A-Za-z0-9]{4,40}$/)) {
+      callback()
+    } else {
+      callback(new Error('只能输入英文和数字'))
+    }
+  } else {
+    callback()
+  }
+}
+/**
+ * 英文和数字校验18位
+ * @param rule
+ * @param value
+ * @param callback
+ */
+export function englishAndshibaNumValid(rule, value, callback) {
+  if (value) {
+    value += ''
+    if (value.match(/^[A-Za-z0-9]{0,18}$/)) {
+      callback()
+    } else {
+      callback(new Error('只能输入0~18位英文和数字'))
+    }
+  } else {
+    callback()
+  }
+}
+
+export function englishOnly(rule, value, callback) {
+  if (value) {
+    value += ''
+    if (value.match(/^[a-zA-Z]{2,40}$/)) {
+      callback()
+    } else {
+      callback(new Error('请输入英文,且至少两个字符'))
+    }
+  } else {
+    callback()
+  }
+}
+

+ 140 - 0
monitor_ui/src/api/system/user.js

@@ -0,0 +1,140 @@
+import request from '@/utils/request'
+import { parseStrEmpty } from "@/utils/ruoyi";
+// 查询用户列表
+export function listUser(query) {
+  return request({
+    url: '/system/user/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用户详细
+export function getUser(userId) {
+  return request({
+    url: '/system/user/' + parseStrEmpty(userId),
+    method: 'get'
+  })
+}
+
+
+export function baseTest() {
+  var data = new Object();
+  data.name = 'firefirefire';
+  return request({
+    url: '/sooka-sponest-center-data/BaseController/baseTest',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 新增用户
+export function addUser(data) {
+  return request({
+    url: '/system/user',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改用户
+export function updateUser(data) {
+  return request({
+    url: '/system/user',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除用户
+export function delUser(userId) {
+  return request({
+    url: '/system/user/' + userId,
+    method: 'delete'
+  })
+}
+
+// 用户密码重置
+export function resetUserPwd(userId, password) {
+  const data = {
+    userId,
+    password
+  }
+  return request({
+    url: '/system/user/resetPwd',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户状态修改
+export function changeUserStatus(userId, status) {
+  const data = {
+    userId,
+    status
+  }
+  return request({
+    url: '/system/user/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 查询用户个人信息
+export function getUserProfile() {
+  return request({
+    url: '/system/user/profile',
+    method: 'get'
+  })
+}
+
+// 修改用户个人信息
+export function updateUserProfile(data) {
+  return request({
+    url: '/system/user/profile',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户密码重置
+export function updateUserPwd(oldPassword, newPassword) {
+  const data = {
+    oldPassword,
+    newPassword
+  }
+  return request({
+    url: '/system/user/profile/updatePwd',
+    method: 'put',
+    params: data
+  })
+}
+
+// 用户头像上传
+export function uploadAvatar(data) {
+  return request({
+    url: '/system/user/profile/avatar',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询授权角色
+export function getAuthRole(userId) {
+  return request({
+    url: '/system/user/authRole/' + userId,
+    method: 'get'
+  })
+}
+
+// 保存授权角色
+export function updateAuthRole(data) {
+  return request({
+    url: '/system/user/authRole',
+    method: 'put',
+    params: data
+  })
+}
+
+

+ 8 - 0
monitor_ui/src/api/system/version.js

@@ -0,0 +1,8 @@
+import request from '@/utils/request'
+
+export function getVersionInfo() {
+  return request({
+    url: '/system/version/getVersionInfo',
+    method: 'post'
+  })
+}

+ 10 - 0
monitor_ui/src/api/sysutils/deptselector.js

@@ -0,0 +1,10 @@
+import request from '../../utils/request'
+
+export function getDepts(query) {
+  return request({
+    url : '/system/sysutils/deptselector',
+    method : 'get',
+    params: query
+  })
+}
+

+ 7 - 0
monitor_ui/src/api/tool/encrypt.js

@@ -0,0 +1,7 @@
+import { JSEncrypt } from 'jsencrypt'
+
+export function encryptedData(publicKey,password){
+  const encryptor = new JSEncrypt()
+  encryptor.setPublicKey(publicKey)
+  return encryptor.encrypt(password+'')
+}

+ 76 - 0
monitor_ui/src/api/tool/gen.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+// 查询生成表数据
+export function listTable(query) {
+  return request({
+    url: '/code/gen/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询db数据库列表
+export function listDbTable(query) {
+  return request({
+    url: '/code/gen/db/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询表详细信息
+export function getGenTable(tableId) {
+  return request({
+    url: '/code/gen/' + tableId,
+    method: 'get'
+  })
+}
+
+// 修改代码生成信息
+export function updateGenTable(data) {
+  return request({
+    url: '/code/gen',
+    method: 'put',
+    data: data
+  })
+}
+
+// 导入表
+export function importTable(data) {
+  return request({
+    url: '/code/gen/importTable',
+    method: 'post',
+    params: data
+  })
+}
+
+// 预览生成代码
+export function previewTable(tableId) {
+  return request({
+    url: '/code/gen/preview/' + tableId,
+    method: 'get'
+  })
+}
+
+// 删除表数据
+export function delTable(tableId) {
+  return request({
+    url: '/code/gen/' + tableId,
+    method: 'delete'
+  })
+}
+
+// 生成代码(自定义路径)
+export function genCode(tableName) {
+  return request({
+    url: '/code/gen/genCode/' + tableName,
+    method: 'get'
+  })
+}
+
+// 同步数据库
+export function synchDb(tableName) {
+  return request({
+    url: '/code/gen/synchDb/' + tableName,
+    method: 'get'
+  })
+}

BIN
monitor_ui/src/assets/401_images/401.gif


BIN
monitor_ui/src/assets/404_images/404.png


BIN
monitor_ui/src/assets/404_images/404_cloud.png


Plik diff jest za duży
+ 85 - 0
monitor_ui/src/assets/iconfont/iconfont.css


Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/iconfont/iconfont.js


+ 128 - 0
monitor_ui/src/assets/iconfont/iconfont.json

@@ -0,0 +1,128 @@
+{
+  "id": "3263226",
+  "name": "integrated",
+  "font_family": "iconfont",
+  "css_prefix_text": "sj-icon-",
+  "description": "",
+  "glyphs": [
+    {
+      "icon_id": "3351060",
+      "name": "虫子",
+      "font_class": "bch",
+      "unicode": "e73f",
+      "unicode_decimal": 59199
+    },
+    {
+      "icon_id": "5334216",
+      "name": "预警",
+      "font_class": "wcl",
+      "unicode": "e634",
+      "unicode_decimal": 58932
+    },
+    {
+      "icon_id": "6303467",
+      "name": "老虎",
+      "font_class": "dwbh",
+      "unicode": "e694",
+      "unicode_decimal": 59028
+    },
+    {
+      "icon_id": "10454670",
+      "name": "待处理合同",
+      "font_class": "clz",
+      "unicode": "e628",
+      "unicode_decimal": 58920
+    },
+    {
+      "icon_id": "28365653",
+      "name": "评测中心",
+      "font_class": "pczx",
+      "unicode": "e600",
+      "unicode_decimal": 58880
+    },
+    {
+      "icon_id": "1132485",
+      "name": "消防工程",
+      "font_class": "szxf",
+      "unicode": "e641",
+      "unicode_decimal": 58945
+    },
+    {
+      "icon_id": "1305472",
+      "name": "任务",
+      "font_class": "rwzx",
+      "unicode": "e63f",
+      "unicode_decimal": 58943
+    },
+    {
+      "icon_id": "1727379",
+      "name": "33资源-线性",
+      "font_class": "szzx",
+      "unicode": "e8a4",
+      "unicode_decimal": 59556
+    },
+    {
+      "icon_id": "1727585",
+      "name": "404监控、摄像头-线性",
+      "font_class": "jkzx",
+      "unicode": "e900",
+      "unicode_decimal": 59648
+    },
+    {
+      "icon_id": "2223423",
+      "name": "树",
+      "font_class": "szly",
+      "unicode": "e660",
+      "unicode_decimal": 58976
+    },
+    {
+      "icon_id": "3789247",
+      "name": "三农",
+      "font_class": "szny",
+      "unicode": "e62c",
+      "unicode_decimal": 58924
+    },
+    {
+      "icon_id": "3868281",
+      "name": "数据看板",
+      "font_class": "shujzx",
+      "unicode": "eb66",
+      "unicode_decimal": 60262
+    },
+    {
+      "icon_id": "9833324",
+      "name": "智慧交通",
+      "font_class": "szjt",
+      "unicode": "e918",
+      "unicode_decimal": 59672
+    },
+    {
+      "icon_id": "11834349",
+      "name": "环保",
+      "font_class": "szhb",
+      "unicode": "e666",
+      "unicode_decimal": 58982
+    },
+    {
+      "icon_id": "12306464",
+      "name": "水滴",
+      "font_class": "szsl",
+      "unicode": "e682",
+      "unicode_decimal": 59010
+    },
+    {
+      "icon_id": "12771512",
+      "name": "代办事件",
+      "font_class": "sjzx",
+      "unicode": "e61e",
+      "unicode_decimal": 58910
+    },
+    {
+      "icon_id": "12820190",
+      "name": "应急管理",
+      "font_class": "szyj",
+      "unicode": "e632",
+      "unicode_decimal": 58930
+    }
+  ]
+}

Plik diff jest za duży
+ 53 - 0
monitor_ui/src/assets/iconfont/iconfont.svg


BIN
monitor_ui/src/assets/iconfont/iconfont.ttf


BIN
monitor_ui/src/assets/iconfont/iconfont.woff


BIN
monitor_ui/src/assets/iconfont/iconfont.woff2


+ 9 - 0
monitor_ui/src/assets/icons/index.js

@@ -0,0 +1,9 @@
+import Vue from 'vue'
+import SvgIcon from '@/components/SvgIcon'// svg component
+
+// register globally
+Vue.component('svg-icon', SvgIcon)
+
+const req = require.context('./svg', false, /\.svg$/)
+const requireAll = requireContext => requireContext.keys().map(requireContext)
+requireAll(req)

Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/icons/svg/404.svg


Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/icons/svg/bug.svg


Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/icons/svg/build.svg


Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/icons/svg/button.svg


Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/icons/svg/cascader.svg


+ 1 - 0
monitor_ui/src/assets/icons/svg/chart.svg

@@ -0,0 +1 @@
+<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z"/></svg>

Plik diff jest za duży
+ 1 - 0
monitor_ui/src/assets/icons/svg/checkbox.svg


+ 0 - 0
monitor_ui/src/assets/icons/svg/client.svg


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików