dylan 2 年之前
父节点
当前提交
b7adc969fb
共有 100 个文件被更改,包括 6523 次插入0 次删除
  1. 30 0
      src/App.vue
  2. 53 0
      src/api/base/region.js
  3. 55 0
      src/api/baseinfo/map/dangerarea.js
  4. 55 0
      src/api/baseinfo/map/leaveline.js
  5. 55 0
      src/api/baseinfo/map/mapregion.js
  6. 50 0
      src/api/baseinfo/monitorpoint.js
  7. 50 0
      src/api/baseinfo/monitorsite.js
  8. 76 0
      src/api/baseinfo/org.js
  9. 70 0
      src/api/baseinfo/project.js
  10. 108 0
      src/api/baseinfo/region.js
  11. 61 0
      src/api/baseinfo/rtu.js
  12. 67 0
      src/api/baseinfo/serviceperson.js
  13. 18 0
      src/api/baseinfo/warn/warnsetting.js
  14. 51 0
      src/api/baseinfo/wateruseconsumer.js
  15. 31 0
      src/api/business/count/count.js
  16. 148 0
      src/api/business/inspection/inspection.js
  17. 72 0
      src/api/business/inspection/inspectionreport.js
  18. 21 0
      src/api/business/inspection/plan.js
  19. 132 0
      src/api/business/manage/manage.js
  20. 34 0
      src/api/business/monitor/waterflowrate.js
  21. 147 0
      src/api/business/order/order.js
  22. 109 0
      src/api/business/order/process.js
  23. 174 0
      src/api/business/warning/warning.js
  24. 13 0
      src/api/common.js
  25. 23 0
      src/api/data/dataGround.js
  26. 23 0
      src/api/data/dataRain.js
  27. 23 0
      src/api/data/dataRiver.js
  28. 23 0
      src/api/data/dataRsvr.js
  29. 27 0
      src/api/data/rtuImport.js
  30. 123 0
      src/api/flow/flow.js
  31. 116 0
      src/api/home/home.js
  32. 64 0
      src/api/logs.js
  33. 78 0
      src/api/notice/notice.js
  34. 13 0
      src/api/notice/noticeattach.js
  35. 22 0
      src/api/report/report.js
  36. 24 0
      src/api/report/weekreport.js
  37. 50 0
      src/api/resource/attach.js
  38. 59 0
      src/api/resource/oss.js
  39. 72 0
      src/api/resource/sms.js
  40. 50 0
      src/api/system/client.js
  41. 81 0
      src/api/system/dept.js
  42. 89 0
      src/api/system/dict.js
  43. 89 0
      src/api/system/dictbiz.js
  44. 106 0
      src/api/system/menu.js
  45. 39 0
      src/api/system/param.js
  46. 60 0
      src/api/system/post.js
  47. 89 0
      src/api/system/role.js
  48. 97 0
      src/api/system/scope.js
  49. 102 0
      src/api/system/tenant.js
  50. 50 0
      src/api/system/tenantpackage.js
  51. 77 0
      src/api/system/topmenu.js
  52. 130 0
      src/api/system/user.js
  53. 69 0
      src/api/tool/code.js
  54. 50 0
      src/api/tool/datasource.js
  55. 97 0
      src/api/user.js
  56. 23 0
      src/api/versionmanage/version.js
  57. 94 0
      src/api/warning/originalWarnInfo.js
  58. 94 0
      src/api/warning/warning.js
  59. 34 0
      src/api/work/process.js
  60. 81 0
      src/api/work/work.js
  61. 45 0
      src/cache.js
  62. 126 0
      src/components/basic-block/main.vue
  63. 55 0
      src/components/basic-container/main.vue
  64. 24 0
      src/components/error-page/403.vue
  65. 24 0
      src/components/error-page/404.vue
  66. 24 0
      src/components/error-page/500.vue
  67. 32 0
      src/components/error-page/style.scss
  68. 123 0
      src/components/flow-design/main.vue
  69. 129 0
      src/components/iframe/main.vue
  70. 121 0
      src/components/third-register/main.vue
  71. 21 0
      src/config/env.js
  72. 118 0
      src/config/iconList.js
  73. 64 0
      src/config/website.js
  74. 6 0
      src/docker/Dockerfile
  75. 25 0
      src/error.js
  76. 110 0
      src/lang/en.js
  77. 28 0
      src/lang/index.js
  78. 110 0
      src/lang/zh.js
  79. 1076 0
      src/libs/webgl/OrbitControls.js
  80. 0 0
      src/libs/webgl/fonts/FangSong_Regular.json
  81. 13 0
      src/libs/webgl/fonts/LICENSE
  82. 11 0
      src/libs/webgl/fonts/README.md
  83. 190 0
      src/libs/webgl/fonts/droid/NOTICE
  84. 18 0
      src/libs/webgl/fonts/droid/README.txt
  85. 0 0
      src/libs/webgl/fonts/droid/droid_sans_bold.typeface.json
  86. 0 0
      src/libs/webgl/fonts/droid/droid_sans_mono_regular.typeface.json
  87. 0 0
      src/libs/webgl/fonts/droid/droid_sans_regular.typeface.json
  88. 0 0
      src/libs/webgl/fonts/droid/droid_serif_bold.typeface.json
  89. 0 0
      src/libs/webgl/fonts/droid/droid_serif_regular.typeface.json
  90. 0 0
      src/libs/webgl/fonts/gentilis_bold.typeface.json
  91. 0 0
      src/libs/webgl/fonts/gentilis_regular.typeface.json
  92. 0 0
      src/libs/webgl/fonts/helvetiker_bold.typeface.json
  93. 0 0
      src/libs/webgl/fonts/helvetiker_regular.typeface.json
  94. 0 0
      src/libs/webgl/fonts/optimer_bold.typeface.json
  95. 0 0
      src/libs/webgl/fonts/optimer_regular.typeface.json
  96. 9 0
      src/libs/webgl/fonts/ttf/README.md
  97. 二进制
      src/libs/webgl/fonts/ttf/kenpixel.ttf
  98. 二进制
      src/libs/webgl/three-3d/img/base.png
  99. 二进制
      src/libs/webgl/three-3d/img/box2.png
  100. 二进制
      src/libs/webgl/three-3d/img/grid1.png

+ 30 - 0
src/App.vue

@@ -0,0 +1,30 @@
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default {
+  name: "app",
+  data() {
+    return {};
+  },
+  watch: {},
+  created() {
+
+  },
+  methods: {},
+  computed: {}
+};
+</script>
+<style lang="scss">
+#app {
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+}
+.avue--detail .el-col{
+  margin-bottom: 0;
+}
+</style>

+ 53 - 0
src/api/base/region.js

@@ -0,0 +1,53 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/region/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getLazyTree = (parentCode, params) => {
+  return request({
+    url: '/api/galaxy-system/region/lazy-tree',
+    method: 'get',
+    params: {
+      ...params,
+      parentCode
+    }
+  })
+}
+
+export const getDetail = (code) => {
+  return request({
+    url: '/api/galaxy-system/region/detail',
+    method: 'get',
+    params: {
+      code
+    }
+  })
+}
+
+export const remove = (id) => {
+  return request({
+    url: '/api/galaxy-system/region/remove',
+    method: 'post',
+    params: {
+      id,
+    }
+  })
+}
+
+export const submit = (row) => {
+  return request({
+    url: '/api/galaxy-system/region/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 55 - 0
src/api/baseinfo/map/dangerarea.js

@@ -0,0 +1,55 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/map/dangerarea/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/map/dangerarea/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/map/dangerarea/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getImportPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/map/dangerarea/import/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getPolygon = (params) => {
+    return request({
+        url: '/api/galaxy-business/map/dangerarea/polygon',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}

+ 55 - 0
src/api/baseinfo/map/leaveline.js

@@ -0,0 +1,55 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/map/leaveline/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/map/leaveline/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/map/leaveline/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getImportPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/map/leaveline/import/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getPolyline = (params) => {
+    return request({
+        url: '/api/galaxy-business/map/leaveline/polyline',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}

+ 55 - 0
src/api/baseinfo/map/mapregion.js

@@ -0,0 +1,55 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/map/region/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/map/region/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/map/region/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getImportPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/map/region/import/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getPolygon = (params) => {
+    return request({
+        url: '/api/galaxy-business/map/region/polygon',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}

+ 50 - 0
src/api/baseinfo/monitorpoint.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorpoint/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorpoint/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorpoint/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorpoint/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorpoint/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+

+ 50 - 0
src/api/baseinfo/monitorsite.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorsite/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorsite/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorsite/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorsite/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/base/monitorsite/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+

+ 76 - 0
src/api/baseinfo/org.js

@@ -0,0 +1,76 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/org/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/org/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/org/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/org/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/org/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getLazyTree = (parentId, params) => {
+    return request({
+        url: '/api/galaxy-business/base/org/lazy-tree',
+        method: 'get',
+        params: {
+            ...params,
+            parentId
+        }
+    })
+}
+
+export const getTree = () => {
+    return request({
+        url: '/api/galaxy-business/base/org/tree',
+        method: 'get',
+    })
+}
+
+export const getOrgTree = (orgId) => {
+    return request({
+        url: '/api/galaxy-business/base/org/tree/' + orgId,
+        method: 'get',
+    })
+}
+

+ 70 - 0
src/api/baseinfo/project.js

@@ -0,0 +1,70 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/project/base/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const getUserProjectList = () => {
+    return request({
+        url: '/api/galaxy-business/project/base/org/list',
+        method: 'get',
+
+    })
+}
+
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/project/base/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/project/base/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/project/base/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/project/base/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const warnSetting = (params) => {
+    return request({
+        url: '/api/galaxy-business/project/base/setting/warning/submit',
+        method: 'post',
+        params: {
+            ...params,
+        }
+    })
+}
+

+ 108 - 0
src/api/baseinfo/region.js

@@ -0,0 +1,108 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-system/region/list',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getChildrenList = () => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/children/list',
+        method: 'get',
+    })
+}
+
+export const getLazyTree = (parentCode, params) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/lazy-tree',
+        method: 'get',
+        params: {
+            ...params,
+            parentCode
+        }
+    })
+}
+
+
+export const getTree = () => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/tree',
+        method: 'get',
+    })
+}
+
+export const getOriginalSubTree = (adcd) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/original/tree/' + adcd,
+        method: 'get',
+    })
+}
+
+
+export const getOriginalTree = () => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/original/tree',
+        method: 'get',
+    })
+}
+
+
+export const getDetail = (code) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/detail',
+        method: 'get',
+        params: {
+            code
+        }
+    })
+}
+
+export const remove = (id) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/remove',
+        method: 'post',
+        params: {
+            id,
+        }
+    })
+}
+
+export const submit = (row) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const importSubmit = (row) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/import',
+        method: 'post',
+        data: row
+    })
+}
+
+export const excludeRegion = (data) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/exclude',
+        method: 'post',
+        data: data
+    })
+}
+
+
+export const resetRegion = (data) => {
+    return request({
+        url: '/api/galaxy-business/baseinfo/region/reset',
+        method: 'post',
+        data: data
+    })
+}

+ 61 - 0
src/api/baseinfo/rtu.js

@@ -0,0 +1,61 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/base/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getRtuKindList = (code) => {
+    return request({
+        url: '/api/galaxy-business/rtu/base/dict/list',
+        method: 'get',
+        params: {
+            code,
+        }
+    })
+}
+
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/rtu/base/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/base/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/base/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/rtu/base/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+

+ 67 - 0
src/api/baseinfo/serviceperson.js

@@ -0,0 +1,67 @@
+import request from '@/router/axios';
+
+
+export const getOrgTree = () => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/org/dict',
+        method: 'get',
+
+    })
+}
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getList = () => {
+    return request({
+        url: '/api/galaxy-business/serviceperson/list',
+        method: 'get',
+    })
+}
+
+

+ 18 - 0
src/api/baseinfo/warn/warnsetting.js

@@ -0,0 +1,18 @@
+import request from '@/router/axios';
+
+export const getSettingDetail = () => {
+    return request({
+        url: '/api/galaxy-business/base/warn/setting/detail',
+        method: 'get',
+    })
+}
+
+export const submitSetting = (data) => {
+    return request({
+        url: '/api/galaxy-business/base/warn/setting/submit',
+        method: 'post',
+        data: data
+    })
+}
+
+

+ 51 - 0
src/api/baseinfo/wateruseconsumer.js

@@ -0,0 +1,51 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/base/wateruse/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/base/wateruse/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/base/wateruse/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/base/wateruse/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/base/wateruse/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+

+ 31 - 0
src/api/business/count/count.js

@@ -0,0 +1,31 @@
+import request from '@/router/axios';
+export const getMonitorSiteCountPage = (params) => {
+    return request({
+        url: '/api/galaxy-business/count/monitorsite/page',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getOrgWaterFlowCountPage = (params) => {
+    return request({
+        url: '/api/galaxy-business/count/org/wateruse/page',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getWaterUseConsumerCountPage = (params) => {
+    return request({
+        url: '/api/galaxy-business/count/wateruseconsumer/wateruse/page',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+

+ 148 - 0
src/api/business/inspection/inspection.js

@@ -0,0 +1,148 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/update',
+        method: 'post',
+        data: row
+    })
+}
+
+
+
+export const getDetailByCode = (rtuCode) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/detail',
+        method: 'get',
+        params: {
+            rtuCode
+        }
+    })
+}
+
+export const getRemainingproblemsPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/remainingproblems/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const closeRemainingProblem = (params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/remainingproblems/close',
+        method: 'post',
+        data: params
+    })
+}
+
+export const monthRemainingProblemsExport = () => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/monthremainingproblems/export',
+        method: 'get',
+
+    })
+}
+
+export const uncloseRemainingProblemsExport = () => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/uncloseremainingproblems/export',
+        method: 'get',
+
+    })
+}
+
+export const getCountInfo = (adCode) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/count',
+        method: 'get',
+        params: {
+            adCode
+        }
+    })
+}
+
+export const getInspectionReportStatus = (rtuCode) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/rtu/reportStatus',
+        method: 'get',
+        params: {
+            rtuCode
+        }
+    })
+}
+
+
+export const getNoNetworkSignalReportPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/nonetworksignal/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getUnfinishedInspectionPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/unfinished/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const unfinishedInspectionExport = (params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/unfinished/export',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+
+
+
+
+

+ 72 - 0
src/api/business/inspection/inspectionreport.js

@@ -0,0 +1,72 @@
+import request from '@/router/axios';
+
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const todayInspectionReportList = (data) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/today/list',
+        method: 'get',
+        params: data,
+    })
+}
+
+
+export const todayInspectionReportPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/today/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const nonetworksignalPhotoUpdate = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/nonetworksignal/photo/update',
+        method: 'post',
+        data: row
+    })
+}
+
+
+
+export const closeNonetworksignalPhotoSubmit = (params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/report/nonetworksignal/close',
+        method: 'post',
+        data: params
+    })
+}

+ 21 - 0
src/api/business/inspection/plan.js

@@ -0,0 +1,21 @@
+import request from '@/router/axios';
+
+
+
+
+export const submit = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = () => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/detail',
+        method: 'get',
+
+    })
+}
+

+ 132 - 0
src/api/business/manage/manage.js

@@ -0,0 +1,132 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getTree = () => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/tree',
+        method: 'get',
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const equipmentExport = (adCode, adName) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/equipmentlist/export',
+        method: 'get',
+        params: {
+            adCode,
+            adName
+        }
+    })
+}
+
+export const getCountInfo = (adCode) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/count',
+        method: 'get',
+        params: {
+            adCode
+        }
+    })
+}
+
+export const getRtuReplaceList = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/rtu/replace/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getRainSensorReplaceList = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/rainsensor/replace/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getWaterSensorReplaceList = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/watersensor/replace/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getGroundSensorReplaceList = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/groundsensor/replace/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getBatteryReplaceList = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/manage/battery/replace/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+
+
+
+

+ 34 - 0
src/api/business/monitor/waterflowrate.js

@@ -0,0 +1,34 @@
+import request from '@/router/axios';
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/monitor/waterflowrate/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getHistoryPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/monitor/waterflowrate/history/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/monitor/waterflowrate/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}

+ 147 - 0
src/api/business/order/order.js

@@ -0,0 +1,147 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getConfirmDelayPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/confirm/delay/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getHistroyPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/histroy/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getSettingDetail = () => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/setting/detail',
+        method: 'get',
+    })
+}
+
+export const submitSetting = (data) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/setting/submit',
+        method: 'post',
+        data: data
+    })
+}
+
+export const orderConfirm = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/confirm',
+        method: 'post',
+        data: {
+            ...params,
+        }
+    })
+}
+
+
+export const orderClose = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/close',
+        method: 'post',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const orderChange = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/change',
+        method: 'post',
+        data: params
+    })
+}
+
+export const todayOrderList = () => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/today/list',
+        method: 'get',
+    })
+}
+
+export const getCountInfo = (adCode) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/count',
+        method: 'get',
+        params: {
+            adCode
+        }
+    })
+}
+
+
+export const manuallyOrder = (data) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/manually',
+        method: 'post',
+        data: data
+    })
+}
+
+
+

+ 109 - 0
src/api/business/order/process.js

@@ -0,0 +1,109 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getList = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const todayOrderProcessList = (data) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/today/list',
+        method: 'get',
+        params: data,
+    })
+}
+
+export const todayOrderProcessPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/today/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getNoNetworkSignalReportPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/nonetworksignal/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const closeNonetworksignalPhotoSubmit = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/nonetworksignal/close',
+        method: 'post',
+        data: params
+    })
+}
+
+export const nonetworksignalPhotoUpdate = (row) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/nonetworksignal/photo/update',
+        method: 'post',
+        data: row
+    })
+}
+
+

+ 174 - 0
src/api/business/warning/warning.js

@@ -0,0 +1,174 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getOfflinePage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/offline/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getOthersWarnPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/otherswarn/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getClockPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/clock/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+
+export const getHourmissoutPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/hourmissout/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getRainHourmissoutPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/rain/hourmissout/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getRiverHourmissoutPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/river/hourmissout/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getMinupdelayPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/minupdelay/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getHourupdelayPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/hourupdelay/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getRainHourupdelayPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/rain/hourupdelay/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+
+export const getRiverHourupdelayPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/river/hourupdelay/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getOutltervaluePage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/outltervalue/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getSettingDetail = () => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/setting/detail',
+        method: 'get',
+    })
+}
+
+export const submitSetting = (data) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/setting/submit',
+        method: 'post',
+        data: data
+    })
+}
+
+

+ 13 - 0
src/api/common.js

@@ -0,0 +1,13 @@
+import request from "@/router/axios";
+
+/**
+ * 文件流返回
+ * @param url 接口地址
+ */
+export const exportBlob = (url) => {
+  return request({
+    url: url,
+    method: 'get',
+    responseType: 'blob'
+  })
+}

+ 23 - 0
src/api/data/dataGround.js

@@ -0,0 +1,23 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/ground/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getDetail = (rtuCode) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/ground/detail',
+        method: 'get',
+        params: {
+            rtuCode
+        }
+    })
+}

+ 23 - 0
src/api/data/dataRain.js

@@ -0,0 +1,23 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/rain/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getDetail = (rtuCode) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/rain/detail',
+        method: 'get',
+        params: {
+            rtuCode
+        }
+    })
+}

+ 23 - 0
src/api/data/dataRiver.js

@@ -0,0 +1,23 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/river/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getDetail = (rtuCode) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/river/detail',
+        method: 'get',
+        params: {
+            rtuCode
+        }
+    })
+}

+ 23 - 0
src/api/data/dataRsvr.js

@@ -0,0 +1,23 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/rsvr/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getDetail = (rtuCode) => {
+    return request({
+        url: '/api/galaxy-business/rtu/data/rsvr/detail',
+        method: 'get',
+        params: {
+            rtuCode
+        }
+    })
+}

+ 27 - 0
src/api/data/rtuImport.js

@@ -0,0 +1,27 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/data/manage/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const getDetailPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/data/manage/detail/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+

+ 123 - 0
src/api/flow/flow.js

@@ -0,0 +1,123 @@
+import request from '@/router/axios';
+
+export const modelList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/model/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const managerList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/manager/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const followList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/follow/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+
+export const removeModel = (ids) => {
+  return request({
+    url: '/api/galaxy-flow/model/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const deployModel = (params) => {
+  return request({
+    url: '/api/galaxy-flow/model/deploy',
+    method: 'post',
+    params
+  })
+}
+
+export const changeState = (params) => {
+  return request({
+    url: '/api/galaxy-flow/manager/change-state',
+    method: 'post',
+    params
+  })
+}
+
+export const deployUpload = (category, tenantIds, files) => {
+  const formData = new FormData();
+  formData.append('category', category);
+  formData.append('tenantIds', tenantIds);
+  files.forEach(file => {
+    formData.append('files', file);
+  });
+  return request({
+    headers: {
+      "Content-Type": "multipart/form-data"
+    },
+    url: '/api/galaxy-flow/manager/deploy-upload',
+    method: 'post',
+    data: formData
+  })
+}
+
+export const deleteDeployment = (deploymentIds) => {
+  return request({
+    url: '/api/galaxy-flow/manager/delete-deployment',
+    method: 'post',
+    params: {
+      deploymentIds,
+    }
+  })
+}
+
+export const deleteProcessInstance = (params) => {
+  return request({
+    url: '/api/galaxy-flow/follow/delete-process-instance',
+    method: 'post',
+    params
+  })
+}
+
+export const submitModel = (data) => {
+  return request({
+    url: '/api/galaxy-flow/model/submit',
+    method: 'post',
+    data
+  })
+}
+
+export const detail = (params) => {
+  return request({
+    url: '/api/galaxy-flow/model/detail',
+    method: 'get',
+    params
+  })
+}
+
+export const modelView = (params) => {
+  return request({
+    url: '/api/galaxy-flow/process/model-view',
+    method: 'get',
+    params
+  })
+}

+ 116 - 0
src/api/home/home.js

@@ -0,0 +1,116 @@
+import request from '@/router/axios';
+
+
+
+export const getList = () => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/all/list',
+        method: 'get',
+    })
+}
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getDetail = (id) => {
+    return request({
+        url: '/api/galaxy-business/equipment/inspection/plan/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getRealData = () => {
+    return request({
+        url: '/api/galaxy-business/home/real/info',
+        method: 'get',
+
+    })
+}
+
+export const getRtuStatusCountData = () => {
+    return request({
+        url: '/api/galaxy-business/home/rtu/status/count/info',
+        method: 'get',
+
+    })
+}
+
+export const getCheckOrderCountData = () => {
+    return request({
+        url: '/api/galaxy-business/home/rtu/checkorder/count/info',
+        method: 'get',
+
+    })
+}
+
+export const getInspectionReportCountData = () => {
+    return request({
+        url: '/api/galaxy-business/home/rtu/inspectionreport/count/info',
+        method: 'get',
+
+    })
+}
+
+export const getRtuUpCountData = () => {
+    return request({
+        url: '/api/galaxy-business/home/rtu/up/count/info',
+        method: 'get',
+
+    })
+}
+
+export const getWarnKindCountData = () => {
+    return request({
+        url: '/api/galaxy-business/home/rtu/warn/kind/count/info',
+        method: 'get',
+
+    })
+}
+
+export const getWarnCountList = () => {
+    return request({
+        url: '/api/galaxy-business/home/warn/count/list',
+        method: 'get',
+
+    })
+}
+
+

+ 64 - 0
src/api/logs.js

@@ -0,0 +1,64 @@
+import request from '@/router/axios';
+
+export const getUsualList = (current, size) => {
+  return request({
+    url: '/api/galaxy-log/usual/list',
+    method: 'get',
+    params: {
+      current,
+      size
+    }
+  })
+}
+
+export const getApiList = (current, size) => {
+  return request({
+    url: '/api/galaxy-log/api/list',
+    method: 'get',
+    params: {
+      current,
+      size
+    }
+  })
+}
+
+export const getErrorList = (current, size) => {
+  return request({
+    url: '/api/galaxy-log/error/list',
+    method: 'get',
+    params: {
+      current,
+      size
+    }
+  })
+}
+
+
+export const getUsualLogs = (id) => {
+  return request({
+    url: '/api/galaxy-log/usual/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+export const getApiLogs = (id) => {
+  return request({
+    url: '/api/galaxy-log/api/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+export const getErrorLogs = (id) => {
+  return request({
+    url: '/api/galaxy-log/error/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+

+ 78 - 0
src/api/notice/notice.js

@@ -0,0 +1,78 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/notice/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const getList = (params) => {
+    return request({
+        url: '/api/galaxy-business/notice/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/notice/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const add = (row) => {
+    return request({
+        url: '/api/galaxy-business/notice/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/galaxy-business/notice/submit',
+        method: 'post',
+        data: row
+    })
+}
+
+export const getNotice = (id) => {
+    return request({
+        url: '/api/galaxy-business/notice/detail',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+export const getLastList = (params) => {
+    return request({
+        url: '/api/galaxy-business/notice/last/list',
+        method: 'get',
+        params: {
+            ...params,
+        }
+    })
+}
+
+export const getTodayList = () => {
+    return request({
+        url: '/api/galaxy-business/notice/today/list',
+        method: 'get',
+    })
+}
+
+

+ 13 - 0
src/api/notice/noticeattach.js

@@ -0,0 +1,13 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/notice/attach/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}

+ 22 - 0
src/api/report/report.js

@@ -0,0 +1,22 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-report/report/rest/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-report/report/rest/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}

+ 24 - 0
src/api/report/weekreport.js

@@ -0,0 +1,24 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/report/week/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/galaxy-business/report/week/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+

+ 50 - 0
src/api/resource/attach.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-resource/attach/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-resource/attach/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-resource/attach/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-resource/attach/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-resource/attach/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 59 - 0
src/api/resource/oss.js

@@ -0,0 +1,59 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-resource/oss/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-resource/oss/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-resource/oss/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-resource/oss/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-resource/oss/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const enable = (id) => {
+  return request({
+    url: '/api/galaxy-resource/oss/enable',
+    method: 'post',
+    params: {
+      id
+    }
+  })
+}

+ 72 - 0
src/api/resource/sms.js

@@ -0,0 +1,72 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-resource/sms/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-resource/sms/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-resource/sms/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-resource/sms/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-resource/sms/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const enable = (id) => {
+  return request({
+    url: '/api/galaxy-resource/sms/enable',
+    method: 'post',
+    params: {
+      id
+    }
+  })
+}
+
+export const send = (code, phones, params) => {
+  return request({
+    url: '/api/galaxy-resource/sms/endpoint/send-message',
+    method: 'post',
+    params: {
+      code,
+      phones,
+      params,
+    }
+  })
+}
+

+ 50 - 0
src/api/system/client.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/client/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-system/client/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/client/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/client/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/client/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 81 - 0
src/api/system/dept.js

@@ -0,0 +1,81 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/dept/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getLazyList = (parentId, params) => {
+  return request({
+    url: '/api/galaxy-system/dept/lazy-list',
+    method: 'get',
+    params: {
+      ...params,
+      parentId
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/dept/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/dept/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/dept/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const getDept = (id) => {
+  return request({
+    url: '/api/galaxy-system/dept/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getDeptTree = (tenantId) => {
+  return request({
+    url: '/api/galaxy-system/dept/tree',
+    method: 'get',
+    params: {
+      tenantId,
+    }
+  })
+}
+
+export const getDeptLazyTree = (parentId) => {
+  return request({
+    url: '/api/galaxy-system/dept/lazy-tree',
+    method: 'get',
+    params: {
+      parentId
+    }
+  })
+}
+

+ 89 - 0
src/api/system/dict.js

@@ -0,0 +1,89 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/dict/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getParentList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/dict/parent-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getChildList = (current, size, parentId, params) => {
+  return request({
+    url: '/api/galaxy-system/dict/child-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+      parentId: parentId,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/dict/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/dict/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/dict/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+
+export const getDict = (id) => {
+  return request({
+    url: '/api/galaxy-system/dict/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+export const getDictTree = () => {
+  return request({
+    url: '/api/galaxy-system/dict/tree?code=DICT',
+    method: 'get'
+  })
+}
+
+export const getDictionary = (params) => {
+  return request({
+    url: '/api/galaxy-system/dict/dictionary',
+    method: 'get',
+    params,
+  })
+}

+ 89 - 0
src/api/system/dictbiz.js

@@ -0,0 +1,89 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getParentList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/parent-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getChildList = (current, size, parentId, params) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/child-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+      parentId: parentId,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+
+export const getDict = (id) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+export const getDictTree = () => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/tree?code=DICT',
+    method: 'get'
+  })
+}
+
+export const getDictionary = (params) => {
+  return request({
+    url: '/api/galaxy-system/dict-biz/dictionary',
+    method: 'get',
+    params,
+  })
+}

+ 106 - 0
src/api/system/menu.js

@@ -0,0 +1,106 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/menu/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getLazyList = (parentId, params) => {
+  return request({
+    url: '/api/galaxy-system/menu/lazy-list',
+    method: 'get',
+    params: {
+      ...params,
+      parentId
+    }
+  })
+}
+
+export const getLazyMenuList = (parentId, params) => {
+  return request({
+    url: '/api/galaxy-system/menu/lazy-menu-list',
+    method: 'get',
+    params: {
+      ...params,
+      parentId
+    }
+  })
+}
+
+export const getMenuList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/menu/menu-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getMenuTree = (tenantId) => {
+  return request({
+    url: '/api/galaxy-system/menu/tree',
+    method: 'get',
+    params: {
+      tenantId,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/menu/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/menu/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/menu/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const getMenu = (id) => {
+  return request({
+    url: '/api/galaxy-system/menu/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getTopMenu = () => request({
+  url: '/api/galaxy-system/menu/top-menu',
+  method: 'get'
+});
+
+export const getRoutes = (topMenuId) => request({
+  url: '/api/galaxy-system/menu/routes',
+  method: 'get',
+  params: {
+    topMenuId,
+  }
+});

+ 39 - 0
src/api/system/param.js

@@ -0,0 +1,39 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/param/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/param/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/param/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/param/submit',
+    method: 'post',
+    data: row
+  })
+}

+ 60 - 0
src/api/system/post.js

@@ -0,0 +1,60 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/post/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getPostList = (tenantId) => {
+  return request({
+    url: '/api/galaxy-system/post/select',
+    method: 'get',
+    params: {
+      tenantId
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-system/post/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/post/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/post/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/post/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 89 - 0
src/api/system/role.js

@@ -0,0 +1,89 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/role/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+export const grantTree = () => {
+  return request({
+    url: '/api/galaxy-system/menu/grant-tree',
+    method: 'get',
+  })
+}
+
+export const grant = (roleIds, menuIds, dataScopeIds, apiScopeIds) => {
+  return request({
+    url: '/api/galaxy-system/role/grant',
+    method: 'post',
+    data: {
+      roleIds,
+      menuIds,
+      dataScopeIds,
+      apiScopeIds
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/role/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/role/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/role/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+
+export const getRole = (roleIds) => {
+  return request({
+    url: '/api/galaxy-system/menu/role-tree-keys',
+    method: 'get',
+    params: {
+      roleIds,
+    }
+  })
+}
+
+export const getRoleTree = (tenantId) => {
+  return request({
+    url: '/api/galaxy-system/role/tree',
+    method: 'get',
+    params: {
+      tenantId,
+    }
+  })
+}
+
+export const getRoleTreeById = (roleId) => {
+  return request({
+    url: '/api/galaxy-system/role/tree-by-id',
+    method: 'get',
+    params: {
+      roleId,
+    }
+  })
+}

+ 97 - 0
src/api/system/scope.js

@@ -0,0 +1,97 @@
+import request from '@/router/axios';
+
+export const getListDataScope = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/data-scope/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const removeDataScope = (ids) => {
+  return request({
+    url: '/api/galaxy-system/data-scope/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const addDataScope = (row) => {
+  return request({
+    url: '/api/galaxy-system/data-scope/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const updateDataScope = (row) => {
+  return request({
+    url: '/api/galaxy-system/data-scope/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const getMenuDataScope = (id) => {
+  return request({
+    url: '/api/galaxy-system/data-scope/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getListApiScope = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/api-scope/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const removeApiScope = (ids) => {
+  return request({
+    url: '/api/galaxy-system/api-scope/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const addApiScope = (row) => {
+  return request({
+    url: '/api/galaxy-system/api-scope/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const updateApiScope = (row) => {
+  return request({
+    url: '/api/galaxy-system/api-scope/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const getMenuApiScope = (id) => {
+  return request({
+    url: '/api/galaxy-system/api-scope/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}

+ 102 - 0
src/api/system/tenant.js

@@ -0,0 +1,102 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/tenant/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-system/tenant/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/tenant/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/tenant/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/tenant/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const setting = (ids, form) => {
+  return request({
+    url: '/api/galaxy-system/tenant/setting',
+    method: 'post',
+    params: {
+      ...form,
+      ids
+    }
+  })
+}
+
+export const datasource = (tenantId, datasourceId) => {
+  return request({
+    url: '/api/galaxy-system/tenant/datasource',
+    method: 'post',
+    params: {
+      tenantId,
+      datasourceId
+    }
+  })
+}
+
+export const info = (domain) => {
+  return request({
+    url: '/api/galaxy-system/tenant/info',
+    method: 'get',
+    params: {
+      domain
+    }
+  })
+}
+
+export const packageInfo = (tenantId) => {
+  return request({
+    url: '/api/galaxy-system/tenant/package-detail',
+    method: 'get',
+    params: {
+      tenantId
+    }
+  })
+}
+
+export const packageSetting = (tenantId, packageId) => {
+  return request({
+    url: '/api/galaxy-system/tenant/package-setting',
+    method: 'post',
+    params: {
+      tenantId,
+      packageId
+    }
+  })
+}

+ 50 - 0
src/api/system/tenantpackage.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/tenant-package/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-system/tenant-package/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/tenant-package/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/tenant-package/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/tenant-package/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 77 - 0
src/api/system/topmenu.js

@@ -0,0 +1,77 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-system/topmenu/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-system/topmenu/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-system/topmenu/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-system/topmenu/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-system/topmenu/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const grantTree = () => {
+  return request({
+    url: '/api/galaxy-system/menu/grant-top-tree',
+    method: 'get',
+  })
+}
+
+export const getTopTree = (topMenuIds) => {
+  return request({
+    url: '/api/galaxy-system/menu/top-tree-keys',
+    method: 'get',
+    params: {
+      topMenuIds,
+    }
+  })
+}
+
+export const grant = (topMenuIds, menuIds) => {
+  return request({
+    url: '/api/galaxy-system/topmenu/grant',
+    method: 'post',
+    data: {
+      topMenuIds,
+      menuIds,
+    }
+  })
+}

+ 130 - 0
src/api/system/user.js

@@ -0,0 +1,130 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params, deptId) => {
+  return request({
+    url: '/api/galaxy-user/page',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+      deptId,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-user/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-user/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-user/update',
+    method: 'post',
+    data: row
+  })
+}
+
+export const updatePlatform = (userId, userType, userExt) => {
+  return request({
+    url: '/api/galaxy-user/update-platform',
+    method: 'post',
+    params: {
+      userId,
+      userType,
+      userExt,
+    }
+  })
+}
+
+export const getUser = (id) => {
+  return request({
+    url: '/api/galaxy-user/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getUserPlatform = (id) => {
+  return request({
+    url: '/api/galaxy-user/platform-detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getUserInfo = () => {
+  return request({
+    url: '/api/galaxy-user/info',
+    method: 'get',
+  })
+}
+
+export const resetPassword = (userIds) => {
+  return request({
+    url: '/api/galaxy-user/reset-password',
+    method: 'post',
+    params: {
+      userIds,
+    }
+  })
+}
+
+export const updatePassword = (oldPassword, newPassword, newPassword1) => {
+  return request({
+    url: '/api/galaxy-user/update-password',
+    method: 'post',
+    params: {
+      oldPassword,
+      newPassword,
+      newPassword1,
+    }
+  })
+}
+
+export const updateInfo = (row) => {
+  return request({
+    url: '/api/galaxy-user/update-info',
+    method: 'post',
+    data: row
+  })
+}
+
+export const grant = (userIds, roleIds) => {
+  return request({
+    url: '/api/galaxy-user/grant',
+    method: 'post',
+    params: {
+      userIds,
+      roleIds,
+    }
+  })
+}
+
+export const unlock = (userIds) => {
+  return request({
+    url: '/api/galaxy-user/unlock',
+    method: 'post',
+    params: {
+      userIds,
+    }
+  })
+}

+ 69 - 0
src/api/tool/code.js

@@ -0,0 +1,69 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-develop/code/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size
+    }
+  })
+}
+
+export const build = (ids) => {
+  return request({
+    url: '/api/galaxy-develop/code/gen-code',
+    method: 'post',
+    params: {
+      ids,
+      system: 'saber'
+    }
+  })
+}
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-develop/code/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-develop/code/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-develop/code/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const copy = (id) => {
+  return request({
+    url: '/api/galaxy-develop/code/copy',
+    method: 'post',
+    params: {
+      id,
+    }
+  })
+}
+
+export const getCode = (id) => {
+  return request({
+    url: '/api/galaxy-develop/code/detail',
+    method: 'get',
+    params: {
+      id,
+    }
+  })
+}

+ 50 - 0
src/api/tool/datasource.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-develop/datasource/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/galaxy-develop/datasource/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/galaxy-develop/datasource/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/galaxy-develop/datasource/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/galaxy-develop/datasource/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 97 - 0
src/api/user.js

@@ -0,0 +1,97 @@
+import request from '@/router/axios';
+import website from "@/config/website";
+
+export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => request({
+  url: '/api/galaxy-auth/oauth/token',
+  method: 'post',
+  headers: {
+    'Tenant-Id': tenantId,
+    'Dept-Id': (website.switchMode ? deptId : ''),
+    'Role-Id': (website.switchMode ? roleId : ''),
+    'Captcha-Key': key,
+    'Captcha-Code': code,
+  },
+  params: {
+    tenantId,
+    username,
+    password,
+    grant_type: (website.captchaMode ? "captcha" : "password"),
+    scope: "all",
+    type
+  }
+});
+
+export const loginBySocial = (tenantId, source, code, state) => request({
+  url: '/api/galaxy-auth/oauth/token',
+  method: 'post',
+  headers: {
+    'Tenant-Id': tenantId
+  },
+  params: {
+    tenantId,
+    source,
+    code,
+    state,
+    grant_type: "social",
+    scope: "all",
+  }
+})
+
+export const refreshToken = (refresh_token, tenantId, deptId, roleId) => request({
+  url: '/api/galaxy-auth/oauth/token',
+  method: 'post',
+  headers: {
+    'Tenant-Id': tenantId,
+    'Dept-Id': (website.switchMode ? deptId : ''),
+    'Role-Id': (website.switchMode ? roleId : '')
+  },
+  params: {
+    tenantId,
+    refresh_token,
+    grant_type: "refresh_token",
+    scope: "all",
+  }
+});
+
+export const registerGuest = (form, oauthId) => request({
+  url: '/api/galaxy-user/register-guest',
+  method: 'post',
+  params: {
+    tenantId: form.tenantId,
+    name: form.name,
+    account: form.account,
+    password: form.password,
+    oauthId
+  }
+});
+
+export const getButtons = () => request({
+  url: '/api/galaxy-system/menu/buttons',
+  method: 'get'
+});
+
+export const getCaptcha = () => request({
+  url: '/api/galaxy-auth/oauth/captcha',
+  method: 'get'
+});
+
+export const logout = () => request({
+  url: '/api/galaxy-auth/oauth/logout',
+  method: 'get'
+});
+
+export const getUserInfo = () => request({
+  url: '/api/galaxy-auth/oauth/user-info',
+  method: 'get'
+});
+
+export const sendLogs = (list) => request({
+  url: '/api/galaxy-auth/oauth/logout',
+  method: 'post',
+  data: list
+});
+
+export const clearCache = () => request({
+  url: '/api/galaxy-auth/oauth/clear-cache',
+  method: 'get'
+});

+ 23 - 0
src/api/versionmanage/version.js

@@ -0,0 +1,23 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/version/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+
+export const getAppInfo = () => {
+    return request({
+        url: '/api/galaxy-business/version/app',
+        method: 'get',
+    })
+}
+
+

+ 94 - 0
src/api/warning/originalWarnInfo.js

@@ -0,0 +1,94 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+
+export const getDetail = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/detail',
+        method: 'get',
+        params: {
+
+            ...params
+        }
+    })
+}
+
+
+
+
+
+
+
+
+// 维修列表
+export const getOrderList = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+// 维修列表
+export const getProcessList = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+
+// 维修工单关闭
+export const close = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/close',
+        method: 'post',
+        data: {
+            ...params
+        }
+    })
+}
+
+export const remove = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/close',
+        method: 'post',
+        data: {
+            ...params
+        }
+    })
+}
+
+
+// 预警信息
+export const getWrningInfo = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/page',
+        method: 'post',
+        data: {
+            ...params
+        }
+    })
+}
+
+

+ 94 - 0
src/api/warning/warning.js

@@ -0,0 +1,94 @@
+import request from '@/router/axios';
+
+export const getPage = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+
+export const getDetail = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/detail',
+        method: 'get',
+        params: {
+
+            ...params
+        }
+    })
+}
+
+
+
+
+
+
+
+
+// 维修列表
+export const getOrderList = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+// 维修列表
+export const getProcessList = (current, size, params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/process/page',
+        method: 'get',
+        params: {
+            current,
+            size,
+            ...params
+        }
+    })
+}
+
+
+// 维修工单关闭
+export const close = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/close',
+        method: 'post',
+        data: {
+            ...params
+        }
+    })
+}
+
+export const remove = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/check/order/close',
+        method: 'post',
+        data: {
+            ...params
+        }
+    })
+}
+
+
+// 预警信息
+export const getWrningInfo = (params) => {
+    return request({
+        url: '/api/galaxy-business/rtu/warning/page',
+        method: 'post',
+        data: {
+            ...params
+        }
+    })
+}
+
+

+ 34 - 0
src/api/work/process.js

@@ -0,0 +1,34 @@
+import request from '@/router/axios';
+
+// =====================参数===========================
+
+export const historyFlowList = (processInstanceId) => {
+  return request({
+    url: '/api/galaxy-flow/process/history-flow-list',
+    method: 'get',
+    params: {
+      processInstanceId
+    }
+  })
+}
+
+
+// =====================请假流程===========================
+
+export const leaveProcess = (data) => {
+  return request({
+    url: '/api/galaxy-desk/process/leave/start-process',
+    method: 'post',
+    data
+  })
+}
+
+export const leaveDetail = (businessId) => {
+  return request({
+    url: '/api/galaxy-desk/process/leave/detail',
+    method: 'get',
+    params: {
+      businessId
+    }
+  })
+}

+ 81 - 0
src/api/work/work.js

@@ -0,0 +1,81 @@
+import request from '@/router/axios';
+
+export const startList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/work/start-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const claimList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/work/claim-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const todoList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/work/todo-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const sendList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/work/send-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+
+export const doneList = (current, size, params) => {
+  return request({
+    url: '/api/galaxy-flow/work/done-list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const claimTask = (taskId) => {
+  return request({
+    url: '/api/galaxy-flow/work/claim-task',
+    method: 'post',
+    params: {
+      taskId
+    }
+  })
+}
+
+
+export const completeTask = (data) => {
+  return request({
+    url: '/api/galaxy-flow/work/complete-task',
+    method: 'post',
+    data
+  })
+}

+ 45 - 0
src/cache.js

@@ -0,0 +1,45 @@
+import Vue from 'vue'
+import store from './store';
+Vue.mixin({
+  beforeRouteEnter: function (to, from, next) {
+    next(() => {
+      let avueView = document.getElementById('avue-view');
+      if (avueView && to.meta.savedPosition) {
+        avueView.scrollTop = to.meta.savedPosition
+      }
+    })
+  },
+  beforeRouteLeave: function (to, from, next) {
+    let avueView = document.getElementById('avue-view');
+    if (from && from.meta.keepAlive) {
+      if (avueView) {
+        from.meta.savedPosition = avueView.scrollTop
+      }
+      const result = this.$route.meta.keepAlive === true && store.state.tags.tagList.some(ele => {
+        return ele.value === this.$route.fullPath;
+      });
+      if (this.$vnode && !result) {
+        from.meta.savedPosition = 0
+        if (this.$vnode.parent && this.$vnode.parent.componentInstance && this.$vnode.parent.componentInstance.cache) {
+          if (this.$vnode.componentOptions) {
+            let key = this.$vnode.key == null
+              ? this.$vnode.componentOptions.Ctor.cid + (this.$vnode.componentOptions.tag ? `::${this.$vnode.componentOptions.tag}` : '')
+              : this.$vnode.key;
+            let cache = this.$vnode.parent.componentInstance.cache;
+            let keys = this.$vnode.parent.componentInstance.keys;
+            if (cache[key]) {
+              if (keys.length) {
+                let index = keys.indexOf(key);
+                if (index > -1) {
+                  keys.splice(index, 1);
+                }
+              }
+              delete cache[key];
+            }
+          }
+        }
+      }
+    }
+    next();
+  },
+});

+ 126 - 0
src/components/basic-block/main.vue

@@ -0,0 +1,126 @@
+<template>
+  <div class="basic-block"
+       :style="styleName">
+    <div class="box"
+         :style="boxStyleName">
+      <router-link :to="to">
+        <span v-text="text"></span>
+        <p v-text="dept"></p>
+        <i :class="icon"></i>
+      </router-link>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'basicBlock',
+  props: {
+    icon: {
+      type: String,
+    },
+    background: {
+      type: String,
+    },
+    to: {
+      type: Object,
+      default: () => {
+        return {}
+      }
+    },
+    text: {
+      type: String,
+    },
+    dept: {
+      type: String,
+    },
+    time: {
+      type: [Number, String]
+    },
+    gutter: {
+      type: [Number, String],
+      default: 5,
+    },
+    color: {
+      type: String,
+    },
+    width: {
+      type: [Number, String]
+    },
+    height: {
+      type: [Number, String]
+    }
+  },
+  computed: {
+    styleName () {
+      return {
+        animationDelay: `${this.time / 25}s`,
+        width: this.setPx(this.width),
+        height: this.setPx(this.height),
+        margin: this.setPx(this.gutter)
+      }
+    },
+    boxStyleName () {
+      return {
+        backgroundColor: this.color,
+        backgroundImage: `url('${this.background}')`,
+
+      }
+
+    }
+  }
+}
+</script>
+
+<style lang="scss">
+.basic-block {
+  opacity: 0;
+
+  box-sizing: border-box;
+  color: #fff;
+  animation: mymove 1s;
+  animation-fill-mode: forwards;
+  .box {
+    position: relative;
+    box-sizing: border-box;
+    padding: 15px;
+    width: 100%;
+    height: 100%;
+    transition: all 1s;
+    background-size: cover;
+    &:hover {
+      transform: rotateY(360deg);
+    }
+  }
+
+  a {
+    color: #fff;
+  }
+  span {
+    display: block;
+    font-size: 16px;
+  }
+  p {
+    width: 80%;
+    font-size: 10px;
+    color: #eee;
+    line-height: 22px;
+  }
+  i {
+    position: absolute;
+    bottom: 15px;
+    right: 15px;
+    font-size: 50px !important ;
+  }
+  @keyframes mymove {
+    from {
+      opacity: 0;
+      transform: scale(0);
+    }
+    to {
+      opacity: 1;
+      transform: scale(1);
+    }
+  }
+}
+</style>

+ 55 - 0
src/components/basic-container/main.vue

@@ -0,0 +1,55 @@
+<template>
+  <div class="basic-container"
+       :style="styleName"
+       :class="{'basic-container--block':block}">
+    <el-card class="basic-container__card">
+      <slot></slot>
+    </el-card>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "basicContainer",
+  props: {
+    radius: {
+      type: [String, Number],
+      default: 10
+    },
+    background: {
+      type: String
+    },
+    block: {
+      type: Boolean,
+      default: false
+    }
+  },
+  computed: {
+    styleName () {
+      return {
+        borderRadius: this.setPx(this.radius),
+        background: this.background,
+      }
+    }
+  }
+};
+</script>
+
+<style lang="scss">
+.basic-container {
+  padding: 10px 6px;
+  box-sizing: border-box;
+  &--block {
+    height: 100%;
+    .basic-container__card {
+      height: 100%;
+    }
+  }
+  &__card {
+    width: 100%;
+  }
+  &:first-child {
+    padding-top: 0;
+  }
+}
+</style>

+ 24 - 0
src/components/error-page/403.vue

@@ -0,0 +1,24 @@
+<template>
+  <div class="error-page">
+    <div class="img"
+         style=" background-image: url('/img/bg/403.svg');"></div>
+    <div class="content">
+      <h1>403</h1>
+      <div class="desc">抱歉,你无权访问该页面</div>
+      <div class="actions">
+        <router-link :to="{path:'/'}">
+          <el-button type="primary">返回首页</el-button>
+        </router-link>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "error-403"
+};
+</script>
+<style lang="scss" scoped>
+@import "./style.scss";
+</style>

+ 24 - 0
src/components/error-page/404.vue

@@ -0,0 +1,24 @@
+<template>
+  <div class="error-page">
+    <div class="img"
+         style=" background-image: url('/img/bg/404.svg');"></div>
+    <div class="content">
+      <h1>404</h1>
+      <div class="desc">抱歉,你访问的页面不存在</div>
+      <div class="actions">
+        <router-link :to="{path:'/'}">
+          <el-button type="primary">返回首页</el-button>
+        </router-link>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "error-404"
+};
+</script>
+<style lang="scss" scoped>
+@import "./style.scss";
+</style>

+ 24 - 0
src/components/error-page/500.vue

@@ -0,0 +1,24 @@
+<template>
+  <div class="error-page">
+    <div class="img"
+         style=" background-image: url('/img/bg/500.svg');"></div>
+    <div class="content">
+      <h1>500</h1>
+      <div class="desc">抱歉,服务器出错了</div>
+      <div class="actions">
+        <router-link :to="{path:'/'}">
+          <el-button type="primary">返回首页</el-button>
+        </router-link>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "error-500"
+};
+</script>
+<style lang="scss" scoped>
+@import "./style.scss";
+</style>

+ 32 - 0
src/components/error-page/style.scss

@@ -0,0 +1,32 @@
+.error-page {
+  background: #f0f2f5;
+  margin-top: -30px;
+  height: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  .img {
+    margin-right: 80px;
+    height: 360px;
+    width: 100%;
+    max-width: 430px;
+    background-repeat: no-repeat;
+    background-position: 50% 50%;
+    background-size: contain;
+  }
+  .content {
+    h1 {
+      color: #434e59;
+      font-size: 72px;
+      font-weight: 600;
+      line-height: 72px;
+      margin-bottom: 24px;
+    }
+    .desc {
+      color: rgba(0, 0, 0, 0.45);
+      font-size: 20px;
+      line-height: 28px;
+      margin-bottom: 16px;
+    }
+  }
+}

+ 123 - 0
src/components/flow-design/main.vue

@@ -0,0 +1,123 @@
+<template>
+  <div>
+    <el-dialog v-if="isDialog"
+               :visible.sync="visible"
+               append-to-body
+               destroy-on-close
+               title="流程图展示"
+               width="70%"
+               custom-class="flow-design-dialog">
+      <wf-design-base ref="bpmn"
+                      style="height: 60vh;"
+                      :options="option"></wf-design-base>
+    </el-dialog>
+    <div v-else>
+      <wf-design-base v-if="visible"
+                      ref="bpmn"
+                      style="height: 60vh;"
+                      :options="option"></wf-design-base>
+    </div>
+  </div>
+</template>
+
+<script>
+import {modelView} from '@/api/flow/flow'
+
+export default {
+  name: 'flowDesign',
+  props: {
+    isDialog: {
+      type: Boolean,
+      default: false
+    },
+    isDisplay: {
+      type: Boolean,
+      default: false
+    },
+    processInstanceId: String,
+    processDefinitionId: String,
+  },
+  data() {
+    return {
+      visible: false,
+      option: {
+        mode: 'view'
+      }
+    }
+  },
+  watch: {
+    isDisplay: {
+      handler(val) {
+        this.visible = val
+      },
+      immediate: true
+    },
+    visible: {
+      handler(val) {
+        this.$emit('update:is-display', val)
+      }
+    },
+    processInstanceId: {
+      handler(val) {
+        if (!val) return
+        this.getDetail({processInstanceId: this.processInstanceId})
+      },
+      immediate: true
+    },
+    processDefinitionId: {
+      handler(val) {
+        if (!val) return
+        this.getDetail({processDefinitionId: this.processDefinitionId})
+      },
+      immediate: true
+    }
+  },
+  methods: {
+    getDetail(params) {
+      modelView(params).then(res => {
+        const data = res.data.data
+        const {xml, flow} = data
+        this.$set(this.option, 'xml', xml)
+        if (flow) {
+          const flows = []
+          flow.forEach(f => {
+            let {endTime} = f
+
+            const ff = {
+              id: f.historyActivityId,
+              class: (!endTime && f.historyActivityType !== 'candidate') ? 'nodePrimary' : ''
+            }
+
+            if (f.historyActivityType === 'sequenceFlow') ff.class = 'lineWarn'
+            else if (!ff.class && f.historyActivityType !== 'candidate') ff.class = 'nodeSuccess'
+
+            const index = flows.findIndex(fl => fl.id === f.historyActivityId)
+            if (index !== -1) flows.splice(index, 1, ff)
+            else flows.push(ff)
+          })
+          this.$set(this.option, 'flows', flows)
+        }
+      })
+    }
+  }
+}
+</script>
+
+<style lang="scss">
+.flow-design-dialog {
+  display: flex;
+  flex-direction: column;
+  margin: 0 !important;
+  position: absolute;
+  top: 40%;
+  left: 50%;
+  transform: translate(-50%, -40%);
+  max-height: calc(100% - 30px);
+  max-width: calc(100% - 30px);
+
+  .el-dialog__body {
+    flex: 1;
+    overflow: auto;
+  }
+}
+</style>

+ 129 - 0
src/components/iframe/main.vue

@@ -0,0 +1,129 @@
+<template>
+  <basic-container>
+    <iframe :src="src"
+            class="iframe"
+            ref="iframe"></iframe>
+  </basic-container>
+</template>
+
+<script>
+  import {mapGetters} from "vuex";
+  import NProgress from "nprogress"; // progress bar
+  import "nprogress/nprogress.css"; // progress bar style
+  export default {
+    name: "AvueIframe",
+    data() {
+      return {
+        urlPath: this.getUrlPath() //iframe src 路径
+      };
+    },
+    created() {
+      NProgress.configure({showSpinner: false});
+    },
+    mounted() {
+      this.load();
+      this.resize();
+    },
+    props: ["routerPath"],
+    watch: {
+      $route: function () {
+        this.load();
+      },
+      routerPath: function () {
+        // 监听routerPath变化,改变src路径
+        this.urlPath = this.getUrlPath();
+      }
+    },
+    computed: {
+      ...mapGetters(["screen"]),
+      src() {
+        return this.$route.query.src
+          ? this.$route.query.src.replace("$", "#")
+          : this.urlPath;
+      }
+    },
+    methods: {
+      // 显示等待框
+      show() {
+        NProgress.start();
+      },
+      // 隐藏等待狂
+      hide() {
+        NProgress.done();
+      },
+      // 加载浏览器窗口变化自适应
+      resize() {
+        window.onresize = () => {
+          this.iframeInit();
+        };
+      },
+      // 加载组件
+      load() {
+        this.show();
+        var flag = true; //URL是否包含问号
+        if (this.$route.query.src !== undefined && this.$route.query.src.indexOf("?") === -1) {
+          flag = false;
+        }
+        var list = [];
+        for (var key in this.$route.query) {
+          if (key !== "src" && key !== "name" && key !== "i18n") {
+            list.push(`${key}= this.$route.query[key]`);
+          }
+        }
+        list = list.join("&").toString();
+        if (flag) {
+          this.$route.query.src = `${this.$route.query.src}${
+            list.length > 0 ? `&list` : ""
+          }`;
+        } else {
+          this.$route.query.src = `${this.$route.query.src}${
+            list.length > 0 ? `?list` : ""
+          }`;
+        }
+        //超时3s自动隐藏等待狂,加强用户体验
+        let time = 3;
+        const timeFunc = setInterval(() => {
+          time--;
+          if (time === 0) {
+            this.hide();
+            clearInterval(timeFunc);
+          }
+        }, 1000);
+        this.iframeInit();
+      },
+      //iframe窗口初始化
+      iframeInit() {
+        const iframe = this.$refs.iframe;
+        const clientHeight =
+          document.documentElement.clientHeight - (screen > 1 ? 200 : 130);
+        if (!iframe) return;
+        iframe.style.height = `${clientHeight}px`;
+        if (iframe.attachEvent) {
+          iframe.attachEvent("onload", () => {
+            this.hide();
+          });
+        } else {
+          iframe.onload = () => {
+            this.hide();
+          };
+        }
+      },
+      getUrlPath: function () {
+        //获取 iframe src 路径
+        let url = window.location.href;
+        url = url.replace("/myiframe", "");
+        return url;
+      }
+    }
+  };
+</script>
+
+<style lang="scss">
+  .iframe {
+    width: 100%;
+    height: 100%;
+    border: 0;
+    overflow: hidden;
+    box-sizing: border-box;
+  }
+</style>

+ 121 - 0
src/components/third-register/main.vue

@@ -0,0 +1,121 @@
+<template>
+  <el-dialog title="账号注册"
+             append-to-body
+             :visible.sync="accountBox"
+             :close-on-click-modal="false"
+             :close-on-press-escape="false"
+             :show-close="false"
+             width="20%">
+    <el-form :model="form" ref="form" label-width="80px">
+      <el-form-item v-if="tenantMode" label="租户编号">
+        <el-input v-model="form.tenantId" placeholder="请输入租户编号"></el-input>
+      </el-form-item>
+      <el-form-item label="用户姓名">
+        <el-input v-model="form.name" placeholder="请输入用户姓名"></el-input>
+      </el-form-item>
+      <el-form-item label="账号名称">
+        <el-input v-model="form.account" placeholder="请输入账号名称"></el-input>
+      </el-form-item>
+      <el-form-item label="账号密码">
+        <el-input v-model="form.password" placeholder="请输入账号密码"></el-input>
+      </el-form-item>
+      <el-form-item label="确认密码">
+        <el-input v-model="form.password2" placeholder="请输入确认密码"></el-input>
+      </el-form-item>
+    </el-form>
+    <span slot="footer" class="dialog-footer">
+              <el-button type="primary" :loading="loading" @click="handleRegister">确 定</el-button>
+            </span>
+  </el-dialog>
+</template>
+
+<script>
+  import {mapGetters} from "vuex";
+  import {validatenull} from "@/util/validate";
+  import {registerGuest} from "@/api/user";
+  import {getTopUrl} from "@/util/util";
+  import {info} from "@/api/system/tenant";
+  import {resetRouter} from "@/router/router";
+
+  export default {
+    name: "thirdRegister",
+    data() {
+      return {
+        form: {
+          tenantId: '',
+          name: '',
+          account: '',
+          password: '',
+          password2: '',
+        },
+        loading: false,
+        tenantMode: true,
+        accountBox: false,
+      };
+    },
+    computed: {
+      ...mapGetters(["userInfo"]),
+    },
+    created() {
+      this.getTenant();
+    },
+    mounted() {
+      // 若未登录则弹出框进行绑定
+      if (validatenull(this.userInfo.user_id) || this.userInfo.user_id < 0) {
+        this.form.name = this.userInfo.user_name;
+        this.form.account = this.userInfo.user_name;
+        this.accountBox = true;
+      }
+    },
+    methods: {
+      handleRegister() {
+        if (this.form.tenantId === '') {
+          this.$message.warning("请先输入租户编号");
+          return;
+        }
+        if (this.form.account === '') {
+          this.$message.warning("请先输入账号名称");
+          return;
+        }
+        if (this.form.password === '' || this.form.password2 === '') {
+          this.$message.warning("请先输入密码");
+          return;
+        }
+        if (this.form.password !== this.form.password2) {
+          this.$message.warning("两次密码输入不一致");
+          return;
+        }
+        this.loading = true;
+        registerGuest(this.form, this.userInfo.oauth_id).then(res => {
+          this.loading = false;
+          const data = res.data;
+          if (data.success) {
+            this.accountBox = false;
+            this.$alert("注册申请已提交,请耐心等待管理员通过!", '注册提示').then(() => {
+              this.$store.dispatch("LogOut").then(() => {
+                resetRouter();
+                this.$router.push({path: "/login"});
+              });
+            })
+          } else {
+            this.$message.error(data.msg || '提交失败');
+          }
+        }, error => {
+          window.console.log(error);
+          this.loading = false;
+        });
+      },
+      getTenant() {
+        let domain = getTopUrl();
+        // 临时指定域名,方便测试
+        info(domain).then(res => {
+          const data = res.data;
+          if (data.success && data.data.tenantId) {
+            this.form.tenantId = data.data.tenantId;
+            this.tenantMode = false;
+          }
+        })
+      },
+    },
+  };
+</script>

+ 21 - 0
src/config/env.js

@@ -0,0 +1,21 @@
+// 阿里矢量图标库配置
+let iconfontVersion = ['567566_pwc3oottzol'];
+let iconfontUrl = `//at.alicdn.com/t/font_$key.css`;
+
+let baseUrl = '';
+let codeUrl = `${baseUrl}/code`
+const env = process.env
+if (env.NODE_ENV === 'development') {
+    baseUrl = ``; // 开发环境地址
+} else if (env.NODE_ENV === 'production') {
+    baseUrl = ``; //生产环境地址
+} else if (env.NODE_ENV === 'test') {
+    baseUrl = ``; //测试环境地址
+}
+export {
+    baseUrl,
+    iconfontUrl,
+    iconfontVersion,
+    codeUrl,
+    env
+}

+ 118 - 0
src/config/iconList.js

@@ -0,0 +1,118 @@
+export default [
+  {
+    label: "通用图标",
+    list: [
+      "iconfont iconicon_roundadd",
+      "iconfont iconicon_compile",
+      "iconfont iconicon_glass",
+      "iconfont iconicon_roundclose",
+      "iconfont iconicon_roundreduce",
+      "iconfont iconicon_delete",
+      "iconfont iconicon_shakehands",
+      "iconfont iconicon_task_done",
+      "iconfont iconicon_voipphone",
+      "iconfont iconicon_safety",
+      "iconfont iconicon_work",
+      "iconfont iconicon_study",
+      "iconfont iconicon_task",
+      "iconfont iconicon_subordinate",
+      "iconfont iconicon_star",
+      "iconfont iconicon_setting",
+      "iconfont iconicon_sms",
+      "iconfont iconicon_share",
+      "iconfont iconicon_secret",
+      "iconfont iconicon_scan_namecard",
+      "iconfont iconicon_principal",
+      "iconfont iconicon_group",
+      "iconfont iconicon_send",
+      "iconfont iconicon_scan",
+      "iconfont iconicon_search",
+      "iconfont iconicon_refresh",
+      "iconfont iconicon_savememo",
+      "iconfont iconicon_QRcode",
+      "iconfont iconicon_im_keyboard",
+      "iconfont iconicon_redpacket",
+      "iconfont iconicon_photo",
+      "iconfont iconicon_qq",
+      "iconfont iconicon_wechat",
+      "iconfont iconicon_phone",
+      "iconfont iconicon_namecard",
+      "iconfont iconicon_notice",
+      "iconfont iconicon_next_arrow",
+      "iconfont iconicon_left",
+      "iconfont iconicon_more",
+      "iconfont iconicon_details",
+      "iconfont iconicon_message",
+      "iconfont iconicon_mobilephone",
+      "iconfont iconicon_im_voice",
+      "iconfont iconicon_GPS",
+      "iconfont iconicon_ding",
+      "iconfont iconicon_exchange",
+      "iconfont iconicon_cspace",
+      "iconfont iconicon_doc",
+      "iconfont iconicon_dispose",
+      "iconfont iconicon_discovery",
+      "iconfont iconicon_community_line",
+      "iconfont iconicon_cloud_history",
+      "iconfont iconicon_coinpurse_line",
+      "iconfont iconicon_airplay",
+      "iconfont iconicon_at",
+      "iconfont iconicon_addressbook",
+      "iconfont iconicon_boss",
+      "iconfont iconicon_addperson",
+      "iconfont iconicon_affiliations_li",
+      "iconfont iconicon_addmessage",
+      "iconfont iconicon_addresslist",
+      "iconfont iconicon_add",
+      "iconfont icongithub",
+      "iconfont icongitee2",
+    ]
+  },
+  {
+    label: "系统图标",
+    list: [
+      "iconfont icon-zhongyingwen",
+      "iconfont icon-caidan",
+      "iconfont icon-rizhi1",
+      "iconfont icon-zhuti",
+      "iconfont icon-suoping",
+      "iconfont icon-bug",
+      "iconfont icon-qq1",
+      "iconfont icon-weixin1",
+      "iconfont icon-shouji",
+      "iconfont icon-mima",
+      "iconfont icon-yonghu",
+      "iconfont icon-yanzhengma",
+      "iconfont icon-canshu",
+      "iconfont icon-dongtai",
+      "iconfont icon-iconset0265",
+      "iconfont icon-shujuzhanshi2",
+      "iconfont icon-tuichuquanping",
+      "iconfont icon-rizhi",
+      "iconfont icon-cuowutishitubiao",
+      "iconfont icon-debug",
+      "iconfont icon-iconset0216",
+      "iconfont icon-quanxian",
+      "iconfont icon-quanxian",
+      "iconfont icon-shuaxin",
+      "iconfont icon-bofangqi-suoping",
+      "iconfont icon-quanping",
+      "iconfont icon-navicon",
+      "iconfont icon-biaodan",
+      "iconfont icon-liuliangyunpingtaitubiao08",
+      "iconfont icon-caidanguanli",
+      "iconfont icon-cuowu",
+      "iconfont icon-wxbgongju",
+      "iconfont icon-tuichu",
+      "iconfont icon-daohanglanmoshi02",
+      "iconfont icon-changyonglogo27",
+      "iconfont icon-biaoge",
+      "iconfont icon-baidu1",
+      "iconfont icon-tubiao",
+      "iconfont icon-souhu",
+      "iconfont icon-msnui-360",
+      "iconfont icon-iframe",
+      "iconfont icon-huanyingye",
+    ]
+  }
+]

+ 64 - 0
src/config/website.js

@@ -0,0 +1,64 @@
+/*
+ * @Author: DSH
+ * @LastEditors: DSH
+ */
+/**
+ * 全局配置文件
+ */
+export default {
+    title: "内蒙水资源",
+    logo: "S",
+    key: 'galaxy',//配置主键,目前用于存储
+    indexTitle: '内蒙水资源',
+    clientId: 'saber', // 客户端id
+    clientSecret: 'saber_secret', // 客户端密钥
+    tenantMode: false, // 是否开启租户模式
+    tenantId: "000000", // 管理组租户编号
+    captchaMode: false, // 是否开启验证码模式
+    switchMode: false, // 是否开启部门切换模式
+    lockPage: '/lock',
+    tokenTime: 3000,
+    tokenHeader: 'Blade-Auth',
+    //http的status默认放行列表
+    statusWhiteList: [],
+    //配置首页不可关闭
+    isFirstPage: false,
+    fistPage: {
+        label: "首页",
+        value: "/wel/index",
+        params: {},
+        query: {},
+        meta: {
+            i18n: 'dashboard'
+        },
+        group: [],
+        close: false
+    },
+    //配置菜单的属性cd 
+    menu: {
+        iconDefault: 'iconfont icon-caidan',
+        props: {
+            label: 'name',
+            path: 'path',
+            icon: 'source',
+            children: 'children'
+        }
+    },
+    // 第三方系统授权地址
+    authUrl: 'http://localhost:8000/galaxy-auth/oauth/render',
+    // 报表设计器地址(cloud端口为8108,boot端口为80)
+    //reportUrl: 'http://localhost:20002/ureport',
+    reportUrl: 'https://nmwx.dahengsi.com:20001/ureport',
+    //文件存储服务器地址,末尾必须/
+    ossServer: 'http://172.31.1.154:20002/oss/galaxy/',
+    //ossServer: 'https://nmwx.dahengsi.com:20001/oss/galaxy/',
+    //ossServer: 'http://111.204.228.227:20002/oss/galaxy/',
+    //文件预览服务器地址
+    kkfileviewServer: 'http://localhost:8012',
+    nm_post_code_sysadmin_id: '1562989286284906498',
+    nm_post_code_sysadmin_code: '0',
+    //nm_post_code_office_personnel_id: '1683328513757200385',
+    //生产环境
+    nm_post_code_office_personnel_id: '1683356455274676225',
+    nm_post_code_office_personnel_code: '1',
+}

+ 6 - 0
src/docker/Dockerfile

@@ -0,0 +1,6 @@
+FROM nginx
+VOLUME /tmp
+ENV LANG en_US.UTF-8
+ADD ./dist/ /usr/share/nginx/html/
+EXPOSE 80
+EXPOSE 443

+ 25 - 0
src/error.js

@@ -0,0 +1,25 @@
+import Vue from 'vue';
+import store from './store'
+
+Vue.config.errorHandler = function (err, vm, info) {
+
+  Vue.nextTick(() => {
+    store.commit('ADD_LOGS', {
+      type: 'error',
+      message: err.message,
+      stack: err.stack,
+      info
+    });
+    if (process.env.NODE_ENV === 'development') {
+      window.console.group('>>>>>> 错误信息 >>>>>>');
+      window.console.error(info);
+      window.console.groupEnd();
+      window.console.group('>>>>>> Vue 实例 >>>>>>');
+      window.console.log(vm);
+      window.console.groupEnd();
+      window.console.group('>>>>>> Error >>>>>>');
+      window.console.log(err);
+      window.console.groupEnd();
+    }
+  })
+}

+ 110 - 0
src/lang/en.js

@@ -0,0 +1,110 @@
+export default {
+  title: 'Avue is a framework',
+  tip: 'tip',
+  logoutTip: 'Exit the system, do you want to continue?',
+  submitText: 'submit',
+  cancelText: 'cancel',
+  search: 'Please input search content',
+  menuTip: 'none menu list',
+  wel: {
+    info: 'Good morning, Smallwei, Avuex is a framework',
+    dept: 'a certain technology department',
+    team: 'Team ranking',
+    project: 'Project access',
+    count: 'Item number',
+    data: {
+      subtitle: 'real time',
+      column1: 'Classified statistics',
+      column2: 'Annex statistics',
+      column3: 'Article statistics',
+      key1: 'C',
+      key2: 'A',
+      key3: 'A',
+      text1: 'Total Record Number of Classifications',
+      text2: 'Number of attachments Uploaded',
+      text3: 'Comment frequency'
+    },
+    data2: {
+      column1: 'Registration today',
+      column2: 'Login today',
+      column3: 'Subscription today',
+      column4: 'Todays review'
+    },
+    data3: {
+      column1: 'Conversion rate(Day 28%)',
+      column2: 'Attendance rate(Day 11%)',
+      column3: 'Attendance rate(Day 33%)'
+    },
+    data4: {
+      column1: 'Error log',
+      column2: 'Data display',
+      column3: 'Privilege management',
+      column4: 'user management'
+    },
+    table: {
+      rw: 'Work Tasks',
+      nr: 'Work content',
+      sj: 'Working hours',
+    }
+  },
+  route: {
+    info: 'info',
+    website: 'website',
+    avuexwebsite: 'avuex',
+    dashboard: 'dashboard',
+    more: 'more',
+    tags: 'tags',
+    store: 'store',
+    permission: 'permission',
+    api: 'api',
+    logs: 'logs',
+    table: 'table',
+    form: 'form',
+    top: 'backtop',
+    data: 'data',
+    error: 'error',
+    test: 'test'
+  },
+  login: {
+    title: 'Login ',
+    info: 'Political Work Information System',
+    tenantId: 'Please input tenantId',
+    username: 'Please input username',
+    password: 'Please input a password',
+    wechat: 'Wechat',
+    qq: 'QQ',
+    github: 'github',
+    gitee: 'gitee',
+    phone: 'Please input a phone',
+    code: 'Please input a code',
+    submit: 'Login',
+    userLogin: 'userLogin',
+    phoneLogin: 'phoneLogin',
+    thirdLogin: 'thirdLogin',
+    msgText: 'send code',
+    msgSuccess: 'reissued code',
+  },
+  navbar: {
+    info: 'info',
+    logOut: 'logout',
+    userinfo: 'userinfo',
+    switchDept : 'switch dept',
+    dashboard: 'dashboard',
+    lock: 'lock',
+    bug: 'none bug',
+    bugs: 'bug',
+    screenfullF: 'exit screenfull',
+    screenfull: 'screenfull',
+    language: 'language',
+    notice: 'notice',
+    theme: 'theme',
+    color: 'color'
+  },
+  tagsView: {
+    search: 'Search',
+    menu: 'menu',
+    clearCache: 'Clear Cache',
+    closeOthers: 'Close Others',
+    closeAll: 'Close All'
+  }
+}

+ 28 - 0
src/lang/index.js

@@ -0,0 +1,28 @@
+import Vue from 'vue'
+import VueI18n from 'vue-i18n'
+import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang
+import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang
+import enLocale from './en'
+import zhLocale from './zh'
+import { getStore } from '@/util/store'
+Vue.use(VueI18n)
+const Avue = window.AVUE;
+const messages = {
+  en: {
+    ...enLocale,
+    ...elementEnLocale,
+    ...Avue.locale.en,
+  },
+  zh: {
+    ...zhLocale,
+    ...elementZhLocale,
+    ...Avue.locale.zh,
+  }
+}
+
+const i18n = new VueI18n({
+  locale: getStore({ name: 'language' }) || 'zh',
+  messages
+})
+
+export default i18n

+ 110 - 0
src/lang/zh.js

@@ -0,0 +1,110 @@
+export default {
+    tip: '提示',
+    title: '水资源',
+    logoutTip: '退出系统, 是否继续?',
+    submitText: '确定',
+    cancelText: '取消',
+    search: '请输入搜索内容',
+    menuTip: '没有发现菜单',
+    wel: {
+        info: '早安,Smallwei,Avuex一款超乎你想象的框架!',
+        dept: '我是avue团队下的一个部门-哈皮部门-哈皮职位',
+        team: '团队内排名',
+        project: '项目访问',
+        count: '项目数',
+        data: {
+            subtitle: '实时',
+            column1: '分类统计',
+            column2: '附件统计',
+            column3: '文章统计',
+            key1: '分',
+            key2: '附',
+            key3: '评',
+            text1: '当前分类总记录数',
+            text2: '当前上传的附件数',
+            text3: '评论次数'
+        },
+        data2: {
+            column1: '今日注册',
+            column2: '今日登录',
+            column3: '今日订阅',
+            column4: '今日评论'
+        },
+        data3: {
+            column1: '转化率(日同比 28%)',
+            column2: '签到率(日同比 11%)',
+            column3: '签到率(日同比 11%)'
+        },
+        data4: {
+            column1: '错误日志',
+            column2: '数据展示',
+            column3: '权限管理',
+            column4: '用户管理'
+        },
+        table: {
+            rw: '工作任务',
+            nr: '工作内容',
+            sj: '工作时间'
+        }
+    },
+    route: {
+        info: '个人信息',
+        website: 'galaxy官网',
+        avuexwebsite: 'avuex官网',
+        dashboard: '首页',
+        more: '更多',
+        tags: '标签',
+        store: '本地存储',
+        api: '全局函数',
+        logs: '日志监控',
+        table: '表格',
+        form: '表单',
+        top: '返回顶部',
+        data: '数据展示',
+        permission: '权限',
+        error: '异常页面',
+        test: '测试页面'
+    },
+    login: {
+        title: '登录',
+        info: '内蒙古自治区',
+        subInfo: '兴水资源管理平台',
+        tenantId: '请输入租户ID',
+        username: '请输入账号',
+        password: '请输入密码',
+        wechat: '微信',
+        qq: 'QQ',
+        github: 'github',
+        gitee: '码云',
+        phone: '请输入手机号',
+        code: '请输入验证码',
+        submit: '登录',
+        userLogin: '账号密码登录',
+        phoneLogin: '手机号登录',
+        thirdLogin: '第三方系统登录',
+        msgText: '发送验证码',
+        msgSuccess: '秒后重发',
+    },
+    navbar: {
+        logOut: '退出登录',
+        userinfo: '个人信息',
+        switchDept: '部门切换',
+        dashboard: '首页',
+        lock: '锁屏',
+        bug: '没有错误日志',
+        bugs: '条错误日志',
+        screenfullF: '退出全屏',
+        screenfull: '全屏',
+        language: '中英文',
+        notice: '消息通知',
+        theme: '主题',
+        color: '换色'
+    },
+    tagsView: {
+        search: '搜索',
+        menu: '更多',
+        clearCache: '清除缓存',
+        closeOthers: '关闭其它',
+        closeAll: '关闭所有'
+    }
+}

+ 1076 - 0
src/libs/webgl/OrbitControls.js

@@ -0,0 +1,1076 @@
+/**
+ * @author qiao / https://github.com/qiao
+ * @author mrdoob / http://mrdoob.com
+ * @author alteredq / http://alteredqualia.com/
+ * @author WestLangley / http://github.com/WestLangley
+ * @author erich666 / http://erichaines.com
+ */
+
+// This set of controls performs orbiting, dollying (zooming), and panning.
+// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).
+//
+//    Orbit - left mouse / touch: one-finger move
+//    Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
+//    Pan - right mouse, or arrow keys / touch: two-finger move
+
+
+
+THREE.OrbitControls = function ( object, domElement ) {
+// object:指定相机对象,比如多个相机对象(场景相机对象、UI相机对象),只有一个起作用
+
+	this.object = object;
+	// domElement:指定鼠标事件起作用的范围,默认是整个document,所有html元素
+	// 比如3D建模软件,可以把范围指定为renderer.domElement,渲染器引用render的domElement属性引用指向绘图区canvas
+	this.domElement = ( domElement !== undefined ) ? domElement : document;
+
+	// Set to false to disable this control
+	// 设置为false以禁用此控件
+	this.enabled = true;
+
+	// "target" sets the location of focus, where the object orbits around
+	// "target"设置对象绕过的焦点位置
+	// 与lookAt相关:.lookAt( scope.target );   视角绕着谁旋转
+	// 平移之后,旋转中心仍然是默认的原点,是否可以以鼠标为中心
+	// 缩放的中心也是原点   能不能也改成以鼠标为中心
+	// 任何时候都以鼠标为中心进行旋转、缩放、平移
+	this.target = new THREE.Vector3();
+
+	// How far you can dolly in and out ( PerspectiveCamera only )
+	// 您可以进出多远(仅限PerspectiveCamera)
+	this.minDistance = 0;
+	this.maxDistance = Infinity;
+
+	// How far you can zoom in and out ( OrthographicCamera only )
+	// 您可以放大或缩小多少(仅限OrthographicCamera)
+	// 相对你原来设置相机视觉效果  设置缩放倍数
+	// 比如商品展示  0.5~2之间
+	this.minZoom = 0;
+	this.maxZoom = Infinity;
+
+	// How far you can orbit vertically, upper and lower limits.
+	// Range is 0 to Math.PI radians.
+	//你可以垂直绕行多远,上限和下限。
+//范围从0到Math.PI弧度。
+	// 上下旋转范围
+	this.minPolarAngle = 0; // radians
+	this.maxPolarAngle = Math.PI; // radians
+
+	// How far you can orbit horizontally, upper and lower limits.
+	// If set, must be a sub-interval of the interval [ - Math.PI, Math.PI ].
+	//你可以绕水平方向运行多远,上限和下限。
+	//如果设置,则必须是区间[ - Math.PI,Math.PI]的子区间。
+
+	// 左右旋转范围
+	this.minAzimuthAngle = - Infinity; // radians
+	this.maxAzimuthAngle = Infinity; // radians
+
+	// Set to true to enable damping (inertia)
+	// If damping is enabled, you must call controls.update() in your animation loop
+	//设置为true以启用阻尼(惯性)
+	//如果启用阻尼,则必须在动画循环中调用controls.update()
+	this.enableDamping = false;
+	this.dampingFactor = 0.25;
+
+	// This option actually enables dollying in and out; left as "zoom" for backwards compatibility.
+	// Set to false to disable zooming
+	//这个选项实际上可以使进出进入; 为了向后兼容,保留为“缩放”。
+//设置为false以禁用缩放
+	this.enableZoom = true;
+	this.zoomSpeed = 1.0;
+
+	// Set to false to disable rotating
+	//设置为false以禁用旋转
+	this.enableRotate = true;
+	this.rotateSpeed = 1.0;
+
+	// Set to false to disable panning平移
+	this.enablePan = true;
+	this.panSpeed = 1.0;
+	// 如果为true,则在屏幕空间中平移
+	this.screenSpacePanning = false; // if true, pan in screen-space
+	this.keyPanSpeed = 7.0;	// pixels moved per arrow key push 像素按箭头键移动
+
+	// Set to true to automatically rotate around the target
+	// If auto-rotate is enabled, you must call controls.update() in your animation loop
+	//设置为true以自动围绕目标旋转
+//如果启用自动旋转,则必须在动画循环中调用controls.update()
+	this.autoRotate = false;
+	// 当fps是60时,每轮30秒
+	this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60
+
+	// Set to false to disable use of the keys禁用键使用
+	this.enableKeys = true;
+
+	// The four arrow keys  四个箭头键
+	this.keys = { LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40 };
+
+	// Mouse buttons
+	// orbit:轨道    ZOOM:放大   pan对应平移
+	// 给特定的键命名
+	this.mouseButtons = { ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };
+
+	// for reset  用于复位、重置
+	this.target0 = this.target.clone();
+	this.position0 = this.object.position.clone();
+	this.zoom0 = this.object.zoom;
+
+	//
+	// public methods
+	//
+// getPolarAngle获得极化角    Polar:极地的
+	this.getPolarAngle = function () {
+// phi:表示希腊文的第21个字母,角度φ
+// spherical:球形的
+		return spherical.phi;
+
+	};
+// Azimuthal:方位角
+	this.getAzimuthalAngle = function () {
+
+		return spherical.theta;
+
+	};
+// 记录目标点、相机位置、相机缩放状态
+	this.saveState = function () {
+
+		scope.target0.copy( scope.target );
+		scope.position0.copy( scope.object.position );
+		scope.zoom0 = scope.object.zoom;
+
+	};
+// 重置
+	this.reset = function () {
+
+		scope.target.copy( scope.target0 );
+		scope.object.position.copy( scope.position0 );
+		scope.object.zoom = scope.zoom0;
+
+		scope.object.updateProjectionMatrix();
+		scope.dispatchEvent( changeEvent );
+
+		scope.update();
+
+		state = STATE.NONE;
+
+	};
+
+	// this method is exposed, but perhaps it would be better if we can make it private...
+	this.update = function () {
+
+		var offset = new THREE.Vector3();
+
+		// so camera.up is the orbit axis
+		var quat = new THREE.Quaternion().setFromUnitVectors( object.up, new THREE.Vector3( 0, 1, 0 ) );
+		var quatInverse = quat.clone().inverse();
+
+		var lastPosition = new THREE.Vector3();
+		var lastQuaternion = new THREE.Quaternion();
+
+		return function update() {
+
+			var position = scope.object.position;
+
+			offset.copy( position ).sub( scope.target );
+
+			// rotate offset to "y-axis-is-up" space
+			offset.applyQuaternion( quat );
+
+			// angle from z-axis around y-axis
+			spherical.setFromVector3( offset );
+
+			if ( scope.autoRotate && state === STATE.NONE ) {
+
+				rotateLeft( getAutoRotationAngle() );
+
+			}
+
+			spherical.theta += sphericalDelta.theta;
+			spherical.phi += sphericalDelta.phi;
+
+			// restrict theta to be between desired limits
+			spherical.theta = Math.max( scope.minAzimuthAngle, Math.min( scope.maxAzimuthAngle, spherical.theta ) );
+
+			// restrict phi to be between desired limits
+			spherical.phi = Math.max( scope.minPolarAngle, Math.min( scope.maxPolarAngle, spherical.phi ) );
+
+			spherical.makeSafe();
+
+
+			spherical.radius *= scale;
+
+			// restrict radius to be between desired limits
+			spherical.radius = Math.max( scope.minDistance, Math.min( scope.maxDistance, spherical.radius ) );
+
+			// move target to panned location
+			scope.target.add( panOffset );
+
+			offset.setFromSpherical( spherical );
+
+			// rotate offset back to "camera-up-vector-is-up" space
+			offset.applyQuaternion( quatInverse );
+
+			position.copy( scope.target ).add( offset );
+
+			scope.object.lookAt( scope.target );
+
+			if ( scope.enableDamping === true ) {
+
+				sphericalDelta.theta *= ( 1 - scope.dampingFactor );
+				sphericalDelta.phi *= ( 1 - scope.dampingFactor );
+
+				panOffset.multiplyScalar( 1 - scope.dampingFactor );
+
+			} else {
+
+				sphericalDelta.set( 0, 0, 0 );
+
+				panOffset.set( 0, 0, 0 );
+
+			}
+
+			scale = 1;
+
+			// update condition is:
+			// min(camera displacement, camera rotation in radians)^2 > EPS
+			// using small-angle approximation cos(x/2) = 1 - x^2 / 8
+
+			if ( zoomChanged ||
+				lastPosition.distanceToSquared( scope.object.position ) > EPS ||
+				8 * ( 1 - lastQuaternion.dot( scope.object.quaternion ) ) > EPS ) {
+
+				scope.dispatchEvent( changeEvent );
+
+				lastPosition.copy( scope.object.position );
+				lastQuaternion.copy( scope.object.quaternion );
+				zoomChanged = false;
+
+				return true;
+
+			}
+
+			return false;
+
+		};
+
+	}();
+
+	this.dispose = function () {
+
+		scope.domElement.removeEventListener( 'contextmenu', onContextMenu, false );
+		scope.domElement.removeEventListener( 'mousedown', onMouseDown, false );
+		scope.domElement.removeEventListener( 'wheel', onMouseWheel, false );
+
+		scope.domElement.removeEventListener( 'touchstart', onTouchStart, false );
+		scope.domElement.removeEventListener( 'touchend', onTouchEnd, false );
+		scope.domElement.removeEventListener( 'touchmove', onTouchMove, false );
+
+		document.removeEventListener( 'mousemove', onMouseMove, false );
+		document.removeEventListener( 'mouseup', onMouseUp, false );
+
+		window.removeEventListener( 'keydown', onKeyDown, false );
+
+		//scope.dispatchEvent( { type: 'dispose' } ); // should this be added here?
+
+	};
+
+	//
+	// internals
+	//
+
+	var scope = this;
+
+	var changeEvent = { type: 'change' };
+	var startEvent = { type: 'start' };
+	var endEvent = { type: 'end' };
+
+	var STATE = { NONE: - 1, ROTATE: 0, DOLLY: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_DOLLY_PAN: 4 };
+
+	var state = STATE.NONE;
+
+	var EPS = 0.000001;
+
+	// current position in spherical coordinates
+	var spherical = new THREE.Spherical();
+	var sphericalDelta = new THREE.Spherical();
+
+	var scale = 1;
+	var panOffset = new THREE.Vector3();
+	var zoomChanged = false;
+
+	var rotateStart = new THREE.Vector2();
+	var rotateEnd = new THREE.Vector2();
+	var rotateDelta = new THREE.Vector2();
+
+	var panStart = new THREE.Vector2();
+	var panEnd = new THREE.Vector2();
+	var panDelta = new THREE.Vector2();
+
+	var dollyStart = new THREE.Vector2();
+	var dollyEnd = new THREE.Vector2();
+	var dollyDelta = new THREE.Vector2();
+
+	function getAutoRotationAngle() {
+
+		return 2 * Math.PI / 60 / 60 * scope.autoRotateSpeed;
+
+	}
+
+	function getZoomScale() {
+
+		return Math.pow( 0.95, scope.zoomSpeed );
+
+	}
+
+	function rotateLeft( angle ) {
+
+		sphericalDelta.theta -= angle;
+
+	}
+
+	function rotateUp( angle ) {
+
+		sphericalDelta.phi -= angle;
+
+	}
+
+	var panLeft = function () {
+
+		var v = new THREE.Vector3();
+
+		return function panLeft( distance, objectMatrix ) {
+
+			v.setFromMatrixColumn( objectMatrix, 0 ); // get X column of objectMatrix
+			v.multiplyScalar( - distance );
+
+			panOffset.add( v );
+
+		};
+
+	}();
+
+	var panUp = function () {
+
+		var v = new THREE.Vector3();
+
+		return function panUp( distance, objectMatrix ) {
+
+			if ( scope.screenSpacePanning === true ) {
+
+				v.setFromMatrixColumn( objectMatrix, 1 );
+
+			} else {
+
+				v.setFromMatrixColumn( objectMatrix, 0 );
+				v.crossVectors( scope.object.up, v );
+
+			}
+
+			v.multiplyScalar( distance );
+
+			panOffset.add( v );
+
+		};
+
+	}();
+
+	// deltaX and deltaY are in pixels; right and down are positive
+	var pan = function () {
+
+		var offset = new THREE.Vector3();
+
+		return function pan( deltaX, deltaY ) {
+
+			var element = scope.domElement === document ? scope.domElement.body : scope.domElement;
+
+			if ( scope.object.isPerspectiveCamera ) {
+
+				// perspective
+				var position = scope.object.position;
+				offset.copy( position ).sub( scope.target );
+				var targetDistance = offset.length();
+
+				// half of the fov is center to top of screen
+				targetDistance *= Math.tan( ( scope.object.fov / 2 ) * Math.PI / 180.0 );
+
+				// we use only clientHeight here so aspect ratio does not distort speed
+				panLeft( 2 * deltaX * targetDistance / element.clientHeight, scope.object.matrix );
+				panUp( 2 * deltaY * targetDistance / element.clientHeight, scope.object.matrix );
+
+			} else if ( scope.object.isOrthographicCamera ) {
+
+				// orthographic
+				panLeft( deltaX * ( scope.object.right - scope.object.left ) / scope.object.zoom / element.clientWidth, scope.object.matrix );
+				panUp( deltaY * ( scope.object.top - scope.object.bottom ) / scope.object.zoom / element.clientHeight, scope.object.matrix );
+
+			} else {
+
+				// camera neither orthographic nor perspective
+				console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.' );
+				scope.enablePan = false;
+
+			}
+
+		};
+
+	}();
+
+	function dollyIn( dollyScale ) {
+
+		if ( scope.object.isPerspectiveCamera ) {
+
+			scale /= dollyScale;
+
+		} else if ( scope.object.isOrthographicCamera ) {
+
+			scope.object.zoom = Math.max( scope.minZoom, Math.min( scope.maxZoom, scope.object.zoom * dollyScale ) );
+			scope.object.updateProjectionMatrix();
+			zoomChanged = true;
+
+		} else {
+
+			console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.' );
+			scope.enableZoom = false;
+
+		}
+
+	}
+
+	function dollyOut( dollyScale ) {
+
+		if ( scope.object.isPerspectiveCamera ) {
+
+			scale *= dollyScale;
+
+		} else if ( scope.object.isOrthographicCamera ) {
+
+			scope.object.zoom = Math.max( scope.minZoom, Math.min( scope.maxZoom, scope.object.zoom / dollyScale ) );
+			scope.object.updateProjectionMatrix();
+			zoomChanged = true;
+
+		} else {
+
+			console.warn( 'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.' );
+			scope.enableZoom = false;
+
+		}
+
+	}
+
+	//
+	// event callbacks - update the object state
+	//
+
+	function handleMouseDownRotate( event ) {
+
+		//console.log( 'handleMouseDownRotate' );
+
+		rotateStart.set( event.clientX, event.clientY );
+
+	}
+
+	function handleMouseDownDolly( event ) {
+
+		//console.log( 'handleMouseDownDolly' );
+
+		dollyStart.set( event.clientX, event.clientY );
+
+	}
+
+	function handleMouseDownPan( event ) {
+
+		//console.log( 'handleMouseDownPan' );
+
+		panStart.set( event.clientX, event.clientY );
+
+	}
+
+	function handleMouseMoveRotate( event ) {
+
+		//console.log( 'handleMouseMoveRotate' );
+
+		rotateEnd.set( event.clientX, event.clientY );
+
+		rotateDelta.subVectors( rotateEnd, rotateStart ).multiplyScalar( scope.rotateSpeed );
+
+		var element = scope.domElement === document ? scope.domElement.body : scope.domElement;
+
+		// rotating across whole screen goes 360 degrees around
+		rotateLeft( 2 * Math.PI * rotateDelta.x / element.clientWidth );
+
+		// rotating up and down along whole screen attempts to go 360, but limited to 180
+		rotateUp( 2 * Math.PI * rotateDelta.y / element.clientHeight );
+
+		rotateStart.copy( rotateEnd );
+
+		scope.update();
+
+	}
+
+	function handleMouseMoveDolly( event ) {
+
+		//console.log( 'handleMouseMoveDolly' );
+
+		dollyEnd.set( event.clientX, event.clientY );
+
+		dollyDelta.subVectors( dollyEnd, dollyStart );
+
+		if ( dollyDelta.y > 0 ) {
+
+			dollyIn( getZoomScale() );
+
+		} else if ( dollyDelta.y < 0 ) {
+
+			dollyOut( getZoomScale() );
+
+		}
+
+		dollyStart.copy( dollyEnd );
+
+		scope.update();
+
+	}
+
+	function handleMouseMovePan( event ) {
+
+		//console.log( 'handleMouseMovePan' );
+
+		panEnd.set( event.clientX, event.clientY );
+
+		panDelta.subVectors( panEnd, panStart ).multiplyScalar( scope.panSpeed );
+
+		pan( panDelta.x, panDelta.y );
+
+		panStart.copy( panEnd );
+
+		scope.update();
+
+	}
+
+	function handleMouseUp( event ) {
+
+		// console.log( 'handleMouseUp' );
+
+	}
+
+	function handleMouseWheel( event ) {
+
+		// console.log( 'handleMouseWheel' );
+
+		if ( event.deltaY < 0 ) {
+
+			dollyOut( getZoomScale() );
+
+		} else if ( event.deltaY > 0 ) {
+
+			dollyIn( getZoomScale() );
+
+		}
+
+		scope.update();
+
+	}
+
+	function handleKeyDown( event ) {
+
+		//console.log( 'handleKeyDown' );
+
+		switch ( event.keyCode ) {
+
+			case scope.keys.UP:
+				pan( 0, scope.keyPanSpeed );
+				scope.update();
+				break;
+
+			case scope.keys.BOTTOM:
+				pan( 0, - scope.keyPanSpeed );
+				scope.update();
+				break;
+
+			case scope.keys.LEFT:
+				pan( scope.keyPanSpeed, 0 );
+				scope.update();
+				break;
+
+			case scope.keys.RIGHT:
+				pan( - scope.keyPanSpeed, 0 );
+				scope.update();
+				break;
+
+		}
+
+	}
+
+	function handleTouchStartRotate( event ) {
+
+		//console.log( 'handleTouchStartRotate' );
+
+		rotateStart.set( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY );
+
+	}
+
+	function handleTouchStartDollyPan( event ) {
+
+		//console.log( 'handleTouchStartDollyPan' );
+
+		if ( scope.enableZoom ) {
+
+			var dx = event.touches[ 0 ].pageX - event.touches[ 1 ].pageX;
+			var dy = event.touches[ 0 ].pageY - event.touches[ 1 ].pageY;
+
+			var distance = Math.sqrt( dx * dx + dy * dy );
+
+			dollyStart.set( 0, distance );
+
+		}
+
+		if ( scope.enablePan ) {
+
+			var x = 0.5 * ( event.touches[ 0 ].pageX + event.touches[ 1 ].pageX );
+			var y = 0.5 * ( event.touches[ 0 ].pageY + event.touches[ 1 ].pageY );
+
+			panStart.set( x, y );
+
+		}
+
+	}
+
+	function handleTouchMoveRotate( event ) {
+
+		//console.log( 'handleTouchMoveRotate' );
+
+		rotateEnd.set( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY );
+
+		rotateDelta.subVectors( rotateEnd, rotateStart ).multiplyScalar( scope.rotateSpeed );
+
+		var element = scope.domElement === document ? scope.domElement.body : scope.domElement;
+
+		// rotating across whole screen goes 360 degrees around
+		rotateLeft( 2 * Math.PI * rotateDelta.x / element.clientWidth );
+
+		// rotating up and down along whole screen attempts to go 360, but limited to 180
+		rotateUp( 2 * Math.PI * rotateDelta.y / element.clientHeight );
+
+		rotateStart.copy( rotateEnd );
+
+		scope.update();
+
+	}
+
+	function handleTouchMoveDollyPan( event ) {
+
+		//console.log( 'handleTouchMoveDollyPan' );
+
+		if ( scope.enableZoom ) {
+
+			var dx = event.touches[ 0 ].pageX - event.touches[ 1 ].pageX;
+			var dy = event.touches[ 0 ].pageY - event.touches[ 1 ].pageY;
+
+			var distance = Math.sqrt( dx * dx + dy * dy );
+
+			dollyEnd.set( 0, distance );
+
+			dollyDelta.set( 0, Math.pow( dollyEnd.y / dollyStart.y, scope.zoomSpeed ) );
+
+			dollyIn( dollyDelta.y );
+
+			dollyStart.copy( dollyEnd );
+
+		}
+
+		if ( scope.enablePan ) {
+
+			var x = 0.5 * ( event.touches[ 0 ].pageX + event.touches[ 1 ].pageX );
+			var y = 0.5 * ( event.touches[ 0 ].pageY + event.touches[ 1 ].pageY );
+
+			panEnd.set( x, y );
+
+			panDelta.subVectors( panEnd, panStart ).multiplyScalar( scope.panSpeed );
+
+			pan( panDelta.x, panDelta.y );
+
+			panStart.copy( panEnd );
+
+		}
+
+		scope.update();
+
+	}
+
+	function handleTouchEnd( event ) {
+
+		//console.log( 'handleTouchEnd' );
+
+	}
+
+	//
+	// event handlers - FSM: listen for events and reset state
+	//
+
+	function onMouseDown( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		event.preventDefault();
+
+		switch ( event.button ) {
+
+			case scope.mouseButtons.ORBIT:
+
+				if ( scope.enableRotate === false ) return;
+
+				handleMouseDownRotate( event );
+
+				state = STATE.ROTATE;
+
+				break;
+
+			case scope.mouseButtons.ZOOM:
+
+				if ( scope.enableZoom === false ) return;
+
+				handleMouseDownDolly( event );
+
+				state = STATE.DOLLY;
+
+				break;
+
+			case scope.mouseButtons.PAN:
+
+				if ( scope.enablePan === false ) return;
+
+				handleMouseDownPan( event );
+
+				state = STATE.PAN;
+
+				break;
+
+		}
+
+		if ( state !== STATE.NONE ) {
+
+			document.addEventListener( 'mousemove', onMouseMove, false );
+			document.addEventListener( 'mouseup', onMouseUp, false );
+
+			scope.dispatchEvent( startEvent );
+
+		}
+
+	}
+
+	function onMouseMove( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		event.preventDefault();
+
+		switch ( state ) {
+
+			case STATE.ROTATE:
+
+				if ( scope.enableRotate === false ) return;
+
+				handleMouseMoveRotate( event );
+
+				break;
+
+			case STATE.DOLLY:
+
+				if ( scope.enableZoom === false ) return;
+
+				handleMouseMoveDolly( event );
+
+				break;
+
+			case STATE.PAN:
+
+				if ( scope.enablePan === false ) return;
+
+				handleMouseMovePan( event );
+
+				break;
+
+		}
+
+	}
+
+	function onMouseUp( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		handleMouseUp( event );
+
+		document.removeEventListener( 'mousemove', onMouseMove, false );
+		document.removeEventListener( 'mouseup', onMouseUp, false );
+
+		scope.dispatchEvent( endEvent );
+
+		state = STATE.NONE;
+
+	}
+
+	function onMouseWheel( event ) {
+
+		if ( scope.enabled === false || scope.enableZoom === false || ( state !== STATE.NONE && state !== STATE.ROTATE ) ) return;
+
+		event.preventDefault();
+		event.stopPropagation();
+
+		scope.dispatchEvent( startEvent );
+
+		handleMouseWheel( event );
+
+		scope.dispatchEvent( endEvent );
+
+	}
+
+	function onKeyDown( event ) {
+
+		if ( scope.enabled === false || scope.enableKeys === false || scope.enablePan === false ) return;
+
+		handleKeyDown( event );
+
+	}
+
+	function onTouchStart( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		event.preventDefault();
+
+		switch ( event.touches.length ) {
+
+			case 1:	// one-fingered touch: rotate
+
+				if ( scope.enableRotate === false ) return;
+
+				handleTouchStartRotate( event );
+
+				state = STATE.TOUCH_ROTATE;
+
+				break;
+
+			case 2:	// two-fingered touch: dolly-pan
+
+				if ( scope.enableZoom === false && scope.enablePan === false ) return;
+
+				handleTouchStartDollyPan( event );
+
+				state = STATE.TOUCH_DOLLY_PAN;
+
+				break;
+
+			default:
+
+				state = STATE.NONE;
+
+		}
+
+		if ( state !== STATE.NONE ) {
+
+			scope.dispatchEvent( startEvent );
+
+		}
+
+	}
+
+	function onTouchMove( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		event.preventDefault();
+		event.stopPropagation();
+
+		switch ( event.touches.length ) {
+
+			case 1: // one-fingered touch: rotate
+
+				if ( scope.enableRotate === false ) return;
+				if ( state !== STATE.TOUCH_ROTATE ) return; // is this needed?
+
+				handleTouchMoveRotate( event );
+
+				break;
+
+			case 2: // two-fingered touch: dolly-pan
+
+				if ( scope.enableZoom === false && scope.enablePan === false ) return;
+				if ( state !== STATE.TOUCH_DOLLY_PAN ) return; // is this needed?
+
+				handleTouchMoveDollyPan( event );
+
+				break;
+
+			default:
+
+				state = STATE.NONE;
+
+		}
+
+	}
+
+	function onTouchEnd( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		handleTouchEnd( event );
+
+		scope.dispatchEvent( endEvent );
+
+		state = STATE.NONE;
+
+	}
+
+	function onContextMenu( event ) {
+
+		if ( scope.enabled === false ) return;
+
+		event.preventDefault();
+
+	}
+
+	//
+
+	scope.domElement.addEventListener( 'contextmenu', onContextMenu, false );
+
+	scope.domElement.addEventListener( 'mousedown', onMouseDown, false );
+	scope.domElement.addEventListener( 'wheel', onMouseWheel, false );
+
+	scope.domElement.addEventListener( 'touchstart', onTouchStart, false );
+	scope.domElement.addEventListener( 'touchend', onTouchEnd, false );
+	scope.domElement.addEventListener( 'touchmove', onTouchMove, false );
+
+	window.addEventListener( 'keydown', onKeyDown, false );
+
+	// force an update at start
+
+	this.update();
+
+};
+
+THREE.OrbitControls.prototype = Object.create( THREE.EventDispatcher.prototype );
+THREE.OrbitControls.prototype.constructor = THREE.OrbitControls;
+
+Object.defineProperties( THREE.OrbitControls.prototype, {
+
+	center: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .center has been renamed to .target' );
+			return this.target;
+
+		}
+
+	},
+
+	// backward compatibility
+
+	noZoom: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.' );
+			return ! this.enableZoom;
+
+		},
+
+		set: function ( value ) {
+
+			console.warn( 'THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.' );
+			this.enableZoom = ! value;
+
+		}
+
+	},
+
+	noRotate: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.' );
+			return ! this.enableRotate;
+
+		},
+
+		set: function ( value ) {
+
+			console.warn( 'THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.' );
+			this.enableRotate = ! value;
+
+		}
+
+	},
+
+	noPan: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.' );
+			return ! this.enablePan;
+
+		},
+
+		set: function ( value ) {
+
+			console.warn( 'THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.' );
+			this.enablePan = ! value;
+
+		}
+
+	},
+
+	noKeys: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.' );
+			return ! this.enableKeys;
+
+		},
+
+		set: function ( value ) {
+
+			console.warn( 'THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.' );
+			this.enableKeys = ! value;
+
+		}
+
+	},
+
+	staticMoving: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.' );
+			return ! this.enableDamping;
+
+		},
+
+		set: function ( value ) {
+
+			console.warn( 'THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.' );
+			this.enableDamping = ! value;
+
+		}
+
+	},
+
+	dynamicDampingFactor: {
+
+		get: function () {
+
+			console.warn( 'THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.' );
+			return this.dampingFactor;
+
+		},
+
+		set: function ( value ) {
+
+			console.warn( 'THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.' );
+			this.dampingFactor = value;
+
+		}
+
+	}
+
+} );

文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/FangSong_Regular.json


+ 13 - 0
src/libs/webgl/fonts/LICENSE

@@ -0,0 +1,13 @@
+Copyright @ 2004 by MAGENTA Ltd. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
+
+The above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
+
+The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.
+
+This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.
+
+The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

+ 11 - 0
src/libs/webgl/fonts/README.md

@@ -0,0 +1,11 @@
+## MgOpen typefaces
+
+# Source and License
+
+https://web.archive.org/web/20050528114140/https://ellak.gr/fonts/mgopen/index.en
+
+# Usage
+
+Use Facetype.js to generate typeface.json fonts: https://gero3.github.io/facetype.js/
+
+Collection of Google fonts as typeface data for usage with three.js: https://github.com/components-ai/typefaces

+ 190 - 0
src/libs/webgl/fonts/droid/NOTICE

@@ -0,0 +1,190 @@
+
+   Copyright (c) 2005-2008, The Android Open Source Project
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+

+ 18 - 0
src/libs/webgl/fonts/droid/README.txt

@@ -0,0 +1,18 @@
+Copyright (C) 2008 The Android Open Source Project
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+  
+     http://www.apache.org/licenses/LICENSE-2.0
+  
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+##########
+
+This directory contains the fonts for the platform. They are licensed
+under the Apache 2 license.

文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/droid/droid_sans_bold.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/droid/droid_sans_mono_regular.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/droid/droid_sans_regular.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/droid/droid_serif_bold.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/droid/droid_serif_regular.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/gentilis_bold.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/gentilis_regular.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/helvetiker_bold.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/helvetiker_regular.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/optimer_bold.typeface.json


文件差异内容过多而无法显示
+ 0 - 0
src/libs/webgl/fonts/optimer_regular.typeface.json


+ 9 - 0
src/libs/webgl/fonts/ttf/README.md

@@ -0,0 +1,9 @@
+# Kenney Fonts
+
+## Source
+
+https://www.kenney.nl/assets/kenney-fonts
+
+## License
+
+CC0 1.0 Universal (CC0 1.0) Public Domain Dedication (https://creativecommons.org/publicdomain/zero/1.0/)

二进制
src/libs/webgl/fonts/ttf/kenpixel.ttf


二进制
src/libs/webgl/three-3d/img/base.png


二进制
src/libs/webgl/three-3d/img/box2.png


二进制
src/libs/webgl/three-3d/img/grid1.png


部分文件因为文件数量过多而无法显示