diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/src/components/Mars3D/Mars3dMap.vue b/src/components/Mars3D/Mars3dMap.vue
index d7238e6..ca0565e 100644
--- a/src/components/Mars3D/Mars3dMap.vue
+++ b/src/components/Mars3D/Mars3dMap.vue
@@ -5,15 +5,13 @@
import Vue from 'vue'
import * as Cesium from 'mars3d-cesium'
-// 导入mars3d主库
import 'mars3d/dist/mars3d.css'
import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
import * as mars3d from 'mars3d'
-// 导入插件(其他插件类似,插件清单访问:http://mars3d.cn/dev/guide/start/architecture.html)
// 为了方便使用,绑定到原型链,在其他vue文件,直接 this.mars3d 来使用
Vue.prototype.mars3d = mars3d
-Vue.prototype.Cesium = mars3d.Cesium
+Vue.prototype.Cesium = Cesium
import axios from 'axios'
export default {
@@ -106,9 +104,20 @@
map.scene.screenSpaceCameraController.zoomEventTypes = [Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH]
map.scene.screenSpaceCameraController.rotateEventTypes = [Cesium.CameraEventType.LEFT_DRAG]
map.scene.screenSpaceCameraController.enableCollisionDetection = false
+
map.on(mars3d.EventType.renderError, function(event) {
window.location.reload()
})
+
+ // const handler = new Cesium.ScreenSpaceEventHandler(map.viewer.canvas)
+ // handler.setInputAction(function(evt) {
+ // var cartesian = map.viewer.camera.pickEllipsoid(evt.position, map.viewer.scene.globe.ellipsoid)
+ // var cartographic = Cesium.Cartographic.fromCartesian(cartesian)
+ // var lng = Cesium.Math.toDegrees(cartographic.longitude)// 经度值
+ // var lat = Cesium.Math.toDegrees(cartographic.latitude)// 纬度值
+ // console.log(' {point: [' + lng + ',' + lat + ',0]},')
+ // }, Cesium.ScreenSpaceEventType.LEFT_CLICK)
+
this[`map${this.mapKey}`] = map
if (this.needBloomEffect) {
const bloomEffect = new mars3d.effect.BloomEffect({
@@ -119,13 +128,14 @@
const graphicLayer = new mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer)
- // 垂直飞线
- // lat:36.290705 , lng:117.424668 ,
- // flyLine(graphicLayer, 117.33, 117.58, 36.59, 36.80)
+
// 挂载到全局对象下,所有组件通过 this.map 访问
Vue.prototype[`map${this.mapKey}`] = map
// 抛出事件
- this.$emit('onload', map, this.center)
+ const that= this
+ map.on(mars3d.EventType.load, function(event) {
+ that.$emit('onload', map, that.center)
+ })
},
changeBaseLayer(basemap) {
window.map.basemap = basemap
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/src/components/Mars3D/Mars3dMap.vue b/src/components/Mars3D/Mars3dMap.vue
index d7238e6..ca0565e 100644
--- a/src/components/Mars3D/Mars3dMap.vue
+++ b/src/components/Mars3D/Mars3dMap.vue
@@ -5,15 +5,13 @@
import Vue from 'vue'
import * as Cesium from 'mars3d-cesium'
-// 导入mars3d主库
import 'mars3d/dist/mars3d.css'
import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
import * as mars3d from 'mars3d'
-// 导入插件(其他插件类似,插件清单访问:http://mars3d.cn/dev/guide/start/architecture.html)
// 为了方便使用,绑定到原型链,在其他vue文件,直接 this.mars3d 来使用
Vue.prototype.mars3d = mars3d
-Vue.prototype.Cesium = mars3d.Cesium
+Vue.prototype.Cesium = Cesium
import axios from 'axios'
export default {
@@ -106,9 +104,20 @@
map.scene.screenSpaceCameraController.zoomEventTypes = [Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH]
map.scene.screenSpaceCameraController.rotateEventTypes = [Cesium.CameraEventType.LEFT_DRAG]
map.scene.screenSpaceCameraController.enableCollisionDetection = false
+
map.on(mars3d.EventType.renderError, function(event) {
window.location.reload()
})
+
+ // const handler = new Cesium.ScreenSpaceEventHandler(map.viewer.canvas)
+ // handler.setInputAction(function(evt) {
+ // var cartesian = map.viewer.camera.pickEllipsoid(evt.position, map.viewer.scene.globe.ellipsoid)
+ // var cartographic = Cesium.Cartographic.fromCartesian(cartesian)
+ // var lng = Cesium.Math.toDegrees(cartographic.longitude)// 经度值
+ // var lat = Cesium.Math.toDegrees(cartographic.latitude)// 纬度值
+ // console.log(' {point: [' + lng + ',' + lat + ',0]},')
+ // }, Cesium.ScreenSpaceEventType.LEFT_CLICK)
+
this[`map${this.mapKey}`] = map
if (this.needBloomEffect) {
const bloomEffect = new mars3d.effect.BloomEffect({
@@ -119,13 +128,14 @@
const graphicLayer = new mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer)
- // 垂直飞线
- // lat:36.290705 , lng:117.424668 ,
- // flyLine(graphicLayer, 117.33, 117.58, 36.59, 36.80)
+
// 挂载到全局对象下,所有组件通过 this.map 访问
Vue.prototype[`map${this.mapKey}`] = map
// 抛出事件
- this.$emit('onload', map, this.center)
+ const that= this
+ map.on(mars3d.EventType.load, function(event) {
+ that.$emit('onload', map, that.center)
+ })
},
changeBaseLayer(basemap) {
window.map.basemap = basemap
diff --git a/src/components/Mars3D/utils/ArcGisWfsLayer.js b/src/components/Mars3D/utils/ArcGisWfsLayer.js
index 7ca8399..9a569b4 100644
--- a/src/components/Mars3D/utils/ArcGisWfsLayer.js
+++ b/src/components/Mars3D/utils/ArcGisWfsLayer.js
@@ -2,14 +2,14 @@
import Vue from 'vue'
/**
- *
+ * 三维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
* @param radius 管径
* @returns {ArcGisWfsLayer}
*/
-export function polylineVolumeP(index, color, name, radius) {
+export function polylineVolumeP(index, color, name, radius, height='') {
const wfsLayer3D = new mars3d.layer.ArcGisWfsLayer({
enablePickFeatures: false,
name: name,
@@ -23,8 +23,10 @@
radius: radius
},
callback: function(attr, styleOpt) {
- var val = { attr }.attr
- const height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ if(height === ''){
+ var val = { attr }.attr
+ height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ }
return { setHeight: height, height }
}
},
@@ -35,7 +37,7 @@
}
/**
- *
+ * 二维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
@@ -69,7 +71,7 @@
export function building() {
const wfsLayer = new mars3d.layer.ArcGisWfsLayer({
name: '建筑物面矢量图层',
- url: Vue.prototype.baseConfig.buildingUrl,
+ url: '',
// minimumLevel: changeLevel,
symbol: {
type: 'polygonC',
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/src/components/Mars3D/Mars3dMap.vue b/src/components/Mars3D/Mars3dMap.vue
index d7238e6..ca0565e 100644
--- a/src/components/Mars3D/Mars3dMap.vue
+++ b/src/components/Mars3D/Mars3dMap.vue
@@ -5,15 +5,13 @@
import Vue from 'vue'
import * as Cesium from 'mars3d-cesium'
-// 导入mars3d主库
import 'mars3d/dist/mars3d.css'
import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
import * as mars3d from 'mars3d'
-// 导入插件(其他插件类似,插件清单访问:http://mars3d.cn/dev/guide/start/architecture.html)
// 为了方便使用,绑定到原型链,在其他vue文件,直接 this.mars3d 来使用
Vue.prototype.mars3d = mars3d
-Vue.prototype.Cesium = mars3d.Cesium
+Vue.prototype.Cesium = Cesium
import axios from 'axios'
export default {
@@ -106,9 +104,20 @@
map.scene.screenSpaceCameraController.zoomEventTypes = [Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH]
map.scene.screenSpaceCameraController.rotateEventTypes = [Cesium.CameraEventType.LEFT_DRAG]
map.scene.screenSpaceCameraController.enableCollisionDetection = false
+
map.on(mars3d.EventType.renderError, function(event) {
window.location.reload()
})
+
+ // const handler = new Cesium.ScreenSpaceEventHandler(map.viewer.canvas)
+ // handler.setInputAction(function(evt) {
+ // var cartesian = map.viewer.camera.pickEllipsoid(evt.position, map.viewer.scene.globe.ellipsoid)
+ // var cartographic = Cesium.Cartographic.fromCartesian(cartesian)
+ // var lng = Cesium.Math.toDegrees(cartographic.longitude)// 经度值
+ // var lat = Cesium.Math.toDegrees(cartographic.latitude)// 纬度值
+ // console.log(' {point: [' + lng + ',' + lat + ',0]},')
+ // }, Cesium.ScreenSpaceEventType.LEFT_CLICK)
+
this[`map${this.mapKey}`] = map
if (this.needBloomEffect) {
const bloomEffect = new mars3d.effect.BloomEffect({
@@ -119,13 +128,14 @@
const graphicLayer = new mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer)
- // 垂直飞线
- // lat:36.290705 , lng:117.424668 ,
- // flyLine(graphicLayer, 117.33, 117.58, 36.59, 36.80)
+
// 挂载到全局对象下,所有组件通过 this.map 访问
Vue.prototype[`map${this.mapKey}`] = map
// 抛出事件
- this.$emit('onload', map, this.center)
+ const that= this
+ map.on(mars3d.EventType.load, function(event) {
+ that.$emit('onload', map, that.center)
+ })
},
changeBaseLayer(basemap) {
window.map.basemap = basemap
diff --git a/src/components/Mars3D/utils/ArcGisWfsLayer.js b/src/components/Mars3D/utils/ArcGisWfsLayer.js
index 7ca8399..9a569b4 100644
--- a/src/components/Mars3D/utils/ArcGisWfsLayer.js
+++ b/src/components/Mars3D/utils/ArcGisWfsLayer.js
@@ -2,14 +2,14 @@
import Vue from 'vue'
/**
- *
+ * 三维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
* @param radius 管径
* @returns {ArcGisWfsLayer}
*/
-export function polylineVolumeP(index, color, name, radius) {
+export function polylineVolumeP(index, color, name, radius, height='') {
const wfsLayer3D = new mars3d.layer.ArcGisWfsLayer({
enablePickFeatures: false,
name: name,
@@ -23,8 +23,10 @@
radius: radius
},
callback: function(attr, styleOpt) {
- var val = { attr }.attr
- const height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ if(height === ''){
+ var val = { attr }.attr
+ height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ }
return { setHeight: height, height }
}
},
@@ -35,7 +37,7 @@
}
/**
- *
+ * 二维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
@@ -69,7 +71,7 @@
export function building() {
const wfsLayer = new mars3d.layer.ArcGisWfsLayer({
name: '建筑物面矢量图层',
- url: Vue.prototype.baseConfig.buildingUrl,
+ url: '',
// minimumLevel: changeLevel,
symbol: {
type: 'polygonC',
diff --git a/src/components/Mars3D/utils/GeoJsonLayer.js b/src/components/Mars3D/utils/GeoJsonLayer.js
index 51ab972..4c8f784 100644
--- a/src/components/Mars3D/utils/GeoJsonLayer.js
+++ b/src/components/Mars3D/utils/GeoJsonLayer.js
@@ -9,7 +9,7 @@
* @param model 模型
* @param scale 模型缩放
* @param condition 搜索条件
- * @returns {{"3D": string, "2D": BaseClass}}
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
*/
export function createPointModelLayer(index, name, image, model = '', scale, condition) {
@@ -38,7 +38,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -56,9 +55,7 @@
}
})
window.map.addLayer(layer)
- const layer3D = new mars3d.layer.GraphicLayer({
- name: name
- }).bindPopup(function(event) {
+ const layer3D = new mars3d.layer.GraphicLayer({ name: name}).bindPopup(function(event) {
const attr = event.graphic.attr || {}
return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
})
@@ -133,7 +130,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -150,13 +146,13 @@
})
}
})
- .on(mars3d.EventType.show, function(event) {
- console.log(index, ' show时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.load, function(event) {
- console.log(index, ' load时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.postRender, function(event) {
- console.log(index, ' postRender时间(s):', new Date().getSeconds())
- })
+ // .on(mars3d.EventType.show, function(event) {
+ // console.log(index, ' show时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.load, function(event) {
+ // console.log(index, ' load时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.postRender, function(event) {
+ // console.log(index, ' postRender时间(s):', new Date().getSeconds())
+ // })
window.map.addLayer(layer)
queryServer.query({
where: condition,
@@ -173,3 +169,59 @@
})
return layer
}
+
+
+/**
+ * ModelC
+ * @param index 图层序号
+ * @param name 图层名称
+ * @param model 模型
+ * @param scale 模型缩放
+ * @param condition 搜索条件
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
+ */
+
+export function createModelLayer(index, name, model = '', scale, condition) {
+ const queryServer = new mars3d.query.QueryArcServer({
+ url: Vue.prototype.baseConfig.arcgisUrl + index,
+ popup: 'all',
+ pageSize: 5000
+ })
+ const layer3D = new mars3d.layer.GraphicLayer({
+ name: name
+ }).bindPopup(function(event) {
+ const attr = event.graphic.attr || {}
+ return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
+ })
+ window.map.addLayer(layer3D)
+ layer3D.show = false
+ queryServer.query({
+ where: condition,
+ success: (result) => {
+ if (result.count === 0) {
+ console.log('未查询到相关记录!')
+ }
+ if (model !== '') {
+ const points = []
+ result.geojson.features.forEach(item => {
+ points.push({
+ position: [item.geometry.coordinates[0], item.geometry.coordinates[1], 0],
+ style: {
+ scale: scale
+ },
+ attr: item.properties
+ })
+ })
+ const modelCombine = new mars3d.graphic.ModelCombine({
+ url: model,
+ instances: points
+ })
+ layer3D.addGraphic(modelCombine)
+ }
+ },
+ error: (error, msg) => {
+ console.log('服务访问错误,' + error)
+ }
+ })
+ return layer3D
+}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/src/components/Mars3D/Mars3dMap.vue b/src/components/Mars3D/Mars3dMap.vue
index d7238e6..ca0565e 100644
--- a/src/components/Mars3D/Mars3dMap.vue
+++ b/src/components/Mars3D/Mars3dMap.vue
@@ -5,15 +5,13 @@
import Vue from 'vue'
import * as Cesium from 'mars3d-cesium'
-// 导入mars3d主库
import 'mars3d/dist/mars3d.css'
import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
import * as mars3d from 'mars3d'
-// 导入插件(其他插件类似,插件清单访问:http://mars3d.cn/dev/guide/start/architecture.html)
// 为了方便使用,绑定到原型链,在其他vue文件,直接 this.mars3d 来使用
Vue.prototype.mars3d = mars3d
-Vue.prototype.Cesium = mars3d.Cesium
+Vue.prototype.Cesium = Cesium
import axios from 'axios'
export default {
@@ -106,9 +104,20 @@
map.scene.screenSpaceCameraController.zoomEventTypes = [Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH]
map.scene.screenSpaceCameraController.rotateEventTypes = [Cesium.CameraEventType.LEFT_DRAG]
map.scene.screenSpaceCameraController.enableCollisionDetection = false
+
map.on(mars3d.EventType.renderError, function(event) {
window.location.reload()
})
+
+ // const handler = new Cesium.ScreenSpaceEventHandler(map.viewer.canvas)
+ // handler.setInputAction(function(evt) {
+ // var cartesian = map.viewer.camera.pickEllipsoid(evt.position, map.viewer.scene.globe.ellipsoid)
+ // var cartographic = Cesium.Cartographic.fromCartesian(cartesian)
+ // var lng = Cesium.Math.toDegrees(cartographic.longitude)// 经度值
+ // var lat = Cesium.Math.toDegrees(cartographic.latitude)// 纬度值
+ // console.log(' {point: [' + lng + ',' + lat + ',0]},')
+ // }, Cesium.ScreenSpaceEventType.LEFT_CLICK)
+
this[`map${this.mapKey}`] = map
if (this.needBloomEffect) {
const bloomEffect = new mars3d.effect.BloomEffect({
@@ -119,13 +128,14 @@
const graphicLayer = new mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer)
- // 垂直飞线
- // lat:36.290705 , lng:117.424668 ,
- // flyLine(graphicLayer, 117.33, 117.58, 36.59, 36.80)
+
// 挂载到全局对象下,所有组件通过 this.map 访问
Vue.prototype[`map${this.mapKey}`] = map
// 抛出事件
- this.$emit('onload', map, this.center)
+ const that= this
+ map.on(mars3d.EventType.load, function(event) {
+ that.$emit('onload', map, that.center)
+ })
},
changeBaseLayer(basemap) {
window.map.basemap = basemap
diff --git a/src/components/Mars3D/utils/ArcGisWfsLayer.js b/src/components/Mars3D/utils/ArcGisWfsLayer.js
index 7ca8399..9a569b4 100644
--- a/src/components/Mars3D/utils/ArcGisWfsLayer.js
+++ b/src/components/Mars3D/utils/ArcGisWfsLayer.js
@@ -2,14 +2,14 @@
import Vue from 'vue'
/**
- *
+ * 三维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
* @param radius 管径
* @returns {ArcGisWfsLayer}
*/
-export function polylineVolumeP(index, color, name, radius) {
+export function polylineVolumeP(index, color, name, radius, height='') {
const wfsLayer3D = new mars3d.layer.ArcGisWfsLayer({
enablePickFeatures: false,
name: name,
@@ -23,8 +23,10 @@
radius: radius
},
callback: function(attr, styleOpt) {
- var val = { attr }.attr
- const height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ if(height === ''){
+ var val = { attr }.attr
+ height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ }
return { setHeight: height, height }
}
},
@@ -35,7 +37,7 @@
}
/**
- *
+ * 二维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
@@ -69,7 +71,7 @@
export function building() {
const wfsLayer = new mars3d.layer.ArcGisWfsLayer({
name: '建筑物面矢量图层',
- url: Vue.prototype.baseConfig.buildingUrl,
+ url: '',
// minimumLevel: changeLevel,
symbol: {
type: 'polygonC',
diff --git a/src/components/Mars3D/utils/GeoJsonLayer.js b/src/components/Mars3D/utils/GeoJsonLayer.js
index 51ab972..4c8f784 100644
--- a/src/components/Mars3D/utils/GeoJsonLayer.js
+++ b/src/components/Mars3D/utils/GeoJsonLayer.js
@@ -9,7 +9,7 @@
* @param model 模型
* @param scale 模型缩放
* @param condition 搜索条件
- * @returns {{"3D": string, "2D": BaseClass}}
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
*/
export function createPointModelLayer(index, name, image, model = '', scale, condition) {
@@ -38,7 +38,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -56,9 +55,7 @@
}
})
window.map.addLayer(layer)
- const layer3D = new mars3d.layer.GraphicLayer({
- name: name
- }).bindPopup(function(event) {
+ const layer3D = new mars3d.layer.GraphicLayer({ name: name}).bindPopup(function(event) {
const attr = event.graphic.attr || {}
return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
})
@@ -133,7 +130,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -150,13 +146,13 @@
})
}
})
- .on(mars3d.EventType.show, function(event) {
- console.log(index, ' show时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.load, function(event) {
- console.log(index, ' load时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.postRender, function(event) {
- console.log(index, ' postRender时间(s):', new Date().getSeconds())
- })
+ // .on(mars3d.EventType.show, function(event) {
+ // console.log(index, ' show时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.load, function(event) {
+ // console.log(index, ' load时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.postRender, function(event) {
+ // console.log(index, ' postRender时间(s):', new Date().getSeconds())
+ // })
window.map.addLayer(layer)
queryServer.query({
where: condition,
@@ -173,3 +169,59 @@
})
return layer
}
+
+
+/**
+ * ModelC
+ * @param index 图层序号
+ * @param name 图层名称
+ * @param model 模型
+ * @param scale 模型缩放
+ * @param condition 搜索条件
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
+ */
+
+export function createModelLayer(index, name, model = '', scale, condition) {
+ const queryServer = new mars3d.query.QueryArcServer({
+ url: Vue.prototype.baseConfig.arcgisUrl + index,
+ popup: 'all',
+ pageSize: 5000
+ })
+ const layer3D = new mars3d.layer.GraphicLayer({
+ name: name
+ }).bindPopup(function(event) {
+ const attr = event.graphic.attr || {}
+ return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
+ })
+ window.map.addLayer(layer3D)
+ layer3D.show = false
+ queryServer.query({
+ where: condition,
+ success: (result) => {
+ if (result.count === 0) {
+ console.log('未查询到相关记录!')
+ }
+ if (model !== '') {
+ const points = []
+ result.geojson.features.forEach(item => {
+ points.push({
+ position: [item.geometry.coordinates[0], item.geometry.coordinates[1], 0],
+ style: {
+ scale: scale
+ },
+ attr: item.properties
+ })
+ })
+ const modelCombine = new mars3d.graphic.ModelCombine({
+ url: model,
+ instances: points
+ })
+ layer3D.addGraphic(modelCombine)
+ }
+ },
+ error: (error, msg) => {
+ console.log('服务访问错误,' + error)
+ }
+ })
+ return layer3D
+}
diff --git a/src/main.js b/src/main.js
index f8a4b83..964152c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -103,6 +103,12 @@
import axios from 'axios'
import service from '@/utils/request'
+
+import * as Cesium from 'mars3d-cesium'
+import 'mars3d/dist/mars3d.css'
+import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
+import * as mars3d from 'mars3d'
+
axios.get('./config/project.config.json').then((result) => {
console.log('get config')
Vue.prototype.baseConfig = result.data
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/src/components/Mars3D/Mars3dMap.vue b/src/components/Mars3D/Mars3dMap.vue
index d7238e6..ca0565e 100644
--- a/src/components/Mars3D/Mars3dMap.vue
+++ b/src/components/Mars3D/Mars3dMap.vue
@@ -5,15 +5,13 @@
import Vue from 'vue'
import * as Cesium from 'mars3d-cesium'
-// 导入mars3d主库
import 'mars3d/dist/mars3d.css'
import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
import * as mars3d from 'mars3d'
-// 导入插件(其他插件类似,插件清单访问:http://mars3d.cn/dev/guide/start/architecture.html)
// 为了方便使用,绑定到原型链,在其他vue文件,直接 this.mars3d 来使用
Vue.prototype.mars3d = mars3d
-Vue.prototype.Cesium = mars3d.Cesium
+Vue.prototype.Cesium = Cesium
import axios from 'axios'
export default {
@@ -106,9 +104,20 @@
map.scene.screenSpaceCameraController.zoomEventTypes = [Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH]
map.scene.screenSpaceCameraController.rotateEventTypes = [Cesium.CameraEventType.LEFT_DRAG]
map.scene.screenSpaceCameraController.enableCollisionDetection = false
+
map.on(mars3d.EventType.renderError, function(event) {
window.location.reload()
})
+
+ // const handler = new Cesium.ScreenSpaceEventHandler(map.viewer.canvas)
+ // handler.setInputAction(function(evt) {
+ // var cartesian = map.viewer.camera.pickEllipsoid(evt.position, map.viewer.scene.globe.ellipsoid)
+ // var cartographic = Cesium.Cartographic.fromCartesian(cartesian)
+ // var lng = Cesium.Math.toDegrees(cartographic.longitude)// 经度值
+ // var lat = Cesium.Math.toDegrees(cartographic.latitude)// 纬度值
+ // console.log(' {point: [' + lng + ',' + lat + ',0]},')
+ // }, Cesium.ScreenSpaceEventType.LEFT_CLICK)
+
this[`map${this.mapKey}`] = map
if (this.needBloomEffect) {
const bloomEffect = new mars3d.effect.BloomEffect({
@@ -119,13 +128,14 @@
const graphicLayer = new mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer)
- // 垂直飞线
- // lat:36.290705 , lng:117.424668 ,
- // flyLine(graphicLayer, 117.33, 117.58, 36.59, 36.80)
+
// 挂载到全局对象下,所有组件通过 this.map 访问
Vue.prototype[`map${this.mapKey}`] = map
// 抛出事件
- this.$emit('onload', map, this.center)
+ const that= this
+ map.on(mars3d.EventType.load, function(event) {
+ that.$emit('onload', map, that.center)
+ })
},
changeBaseLayer(basemap) {
window.map.basemap = basemap
diff --git a/src/components/Mars3D/utils/ArcGisWfsLayer.js b/src/components/Mars3D/utils/ArcGisWfsLayer.js
index 7ca8399..9a569b4 100644
--- a/src/components/Mars3D/utils/ArcGisWfsLayer.js
+++ b/src/components/Mars3D/utils/ArcGisWfsLayer.js
@@ -2,14 +2,14 @@
import Vue from 'vue'
/**
- *
+ * 三维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
* @param radius 管径
* @returns {ArcGisWfsLayer}
*/
-export function polylineVolumeP(index, color, name, radius) {
+export function polylineVolumeP(index, color, name, radius, height='') {
const wfsLayer3D = new mars3d.layer.ArcGisWfsLayer({
enablePickFeatures: false,
name: name,
@@ -23,8 +23,10 @@
radius: radius
},
callback: function(attr, styleOpt) {
- var val = { attr }.attr
- const height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ if(height === ''){
+ var val = { attr }.attr
+ height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ }
return { setHeight: height, height }
}
},
@@ -35,7 +37,7 @@
}
/**
- *
+ * 二维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
@@ -69,7 +71,7 @@
export function building() {
const wfsLayer = new mars3d.layer.ArcGisWfsLayer({
name: '建筑物面矢量图层',
- url: Vue.prototype.baseConfig.buildingUrl,
+ url: '',
// minimumLevel: changeLevel,
symbol: {
type: 'polygonC',
diff --git a/src/components/Mars3D/utils/GeoJsonLayer.js b/src/components/Mars3D/utils/GeoJsonLayer.js
index 51ab972..4c8f784 100644
--- a/src/components/Mars3D/utils/GeoJsonLayer.js
+++ b/src/components/Mars3D/utils/GeoJsonLayer.js
@@ -9,7 +9,7 @@
* @param model 模型
* @param scale 模型缩放
* @param condition 搜索条件
- * @returns {{"3D": string, "2D": BaseClass}}
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
*/
export function createPointModelLayer(index, name, image, model = '', scale, condition) {
@@ -38,7 +38,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -56,9 +55,7 @@
}
})
window.map.addLayer(layer)
- const layer3D = new mars3d.layer.GraphicLayer({
- name: name
- }).bindPopup(function(event) {
+ const layer3D = new mars3d.layer.GraphicLayer({ name: name}).bindPopup(function(event) {
const attr = event.graphic.attr || {}
return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
})
@@ -133,7 +130,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -150,13 +146,13 @@
})
}
})
- .on(mars3d.EventType.show, function(event) {
- console.log(index, ' show时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.load, function(event) {
- console.log(index, ' load时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.postRender, function(event) {
- console.log(index, ' postRender时间(s):', new Date().getSeconds())
- })
+ // .on(mars3d.EventType.show, function(event) {
+ // console.log(index, ' show时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.load, function(event) {
+ // console.log(index, ' load时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.postRender, function(event) {
+ // console.log(index, ' postRender时间(s):', new Date().getSeconds())
+ // })
window.map.addLayer(layer)
queryServer.query({
where: condition,
@@ -173,3 +169,59 @@
})
return layer
}
+
+
+/**
+ * ModelC
+ * @param index 图层序号
+ * @param name 图层名称
+ * @param model 模型
+ * @param scale 模型缩放
+ * @param condition 搜索条件
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
+ */
+
+export function createModelLayer(index, name, model = '', scale, condition) {
+ const queryServer = new mars3d.query.QueryArcServer({
+ url: Vue.prototype.baseConfig.arcgisUrl + index,
+ popup: 'all',
+ pageSize: 5000
+ })
+ const layer3D = new mars3d.layer.GraphicLayer({
+ name: name
+ }).bindPopup(function(event) {
+ const attr = event.graphic.attr || {}
+ return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
+ })
+ window.map.addLayer(layer3D)
+ layer3D.show = false
+ queryServer.query({
+ where: condition,
+ success: (result) => {
+ if (result.count === 0) {
+ console.log('未查询到相关记录!')
+ }
+ if (model !== '') {
+ const points = []
+ result.geojson.features.forEach(item => {
+ points.push({
+ position: [item.geometry.coordinates[0], item.geometry.coordinates[1], 0],
+ style: {
+ scale: scale
+ },
+ attr: item.properties
+ })
+ })
+ const modelCombine = new mars3d.graphic.ModelCombine({
+ url: model,
+ instances: points
+ })
+ layer3D.addGraphic(modelCombine)
+ }
+ },
+ error: (error, msg) => {
+ console.log('服务访问错误,' + error)
+ }
+ })
+ return layer3D
+}
diff --git a/src/main.js b/src/main.js
index f8a4b83..964152c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -103,6 +103,12 @@
import axios from 'axios'
import service from '@/utils/request'
+
+import * as Cesium from 'mars3d-cesium'
+import 'mars3d/dist/mars3d.css'
+import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
+import * as mars3d from 'mars3d'
+
axios.get('./config/project.config.json').then((result) => {
console.log('get config')
Vue.prototype.baseConfig = result.data
diff --git a/src/router/modules/well.js b/src/router/modules/well.js
index 0f6d5a6..17ed4e1 100644
--- a/src/router/modules/well.js
+++ b/src/router/modules/well.js
@@ -31,7 +31,7 @@
children: [
{
path: '/overview3d',
- component: () => import('@/views/overview/overview3dzq'),
+ component: () => import('@/views/overview/overview3d'),
name: 'overview3d',
meta: { title: '管网运行总览', icon: 'icon-config', permission: ['/overview/3d'] }
}
diff --git a/.browserslistrc b/.browserslistrc
deleted file mode 100644
index 9725b0f..0000000
--- a/.browserslistrc
+++ /dev/null
@@ -1,4 +0,0 @@
-> 1%
-last 2 versions
-IE >=8
-not dead
diff --git a/.eslintrc.js b/.eslintrc.js
index ad3db7c..2307fed 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,10 +19,11 @@
rules: {
'vue/max-attributes-per-line': [2, {
'singleline': 10,
- 'multiline': {
- 'max': 1,
- 'allowFirstLine': false
- }
+ // 'multiline': {
+ // 'max': 1,
+ // 'allowFirstLine': false,
+ // ignore: ['some-attribute', '/(?:xs|sm|md|lg|xl)\\d{1,2}/']
+ // }
}],
'vue/name-property-casing': ['error', 'PascalCase'],
'accessor-pairs': 2,
diff --git a/package.json b/package.json
index 4b4e458..f0bd847 100644
--- a/package.json
+++ b/package.json
@@ -15,53 +15,76 @@
"@riophae/vue-treeselect": "^0.4.0",
"animate.css": "^4.1.1",
"axios": "^0.21.1",
- "cesium": "^1.95.0",
"clipboard": "^2.0.8",
- "copy-webpack-plugin": "^6.0.3",
- "core-js": "^3.6.5",
+ "core-js": "^3.8.3",
"echarts": "^4.2.1",
"element-ui": "^2.15.7",
"js-cookie": "^3.0.0",
"jsencrypt": "^3.2.1",
- "mars3d": "3.3.15",
- "mars3d-space": "^3.3.17",
+ "mars3d": "^3.4.7",
+ "mars3d-space": "^3.4.7",
"mockjs": "^1.1.0",
+ "node-polyfill-webpack-plugin": "^2.0.1",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uppercamelcase": "^3.0.0",
"v-charts": "^1.19.0",
"v-viewer": "^1.6.4",
- "vue": "^2.6.11",
+ "vue": "^2.6.14",
"vue-amap": "^0.5.10",
- "vue-router": "^3.2.0",
- "vuex": "^3.4.0"
+ "vue-router": "^3.5.3",
+ "vuex": "^3.6.2",
+ "webpack": "^5.74.0"
},
"devDependencies": {
- "@vue/cli-plugin-babel": "~4.5.0",
- "@vue/cli-plugin-e2e-cypress": "~4.5.0",
- "@vue/cli-plugin-eslint": "~4.5.0",
- "@vue/cli-plugin-router": "~4.5.0",
- "@vue/cli-plugin-unit-jest": "~4.5.0",
- "@vue/cli-plugin-vuex": "~4.5.0",
- "@vue/cli-service": "~4.5.0",
- "@vue/eslint-config-standard": "^5.1.2",
- "@vue/test-utils": "^1.0.3",
- "babel-eslint": "^10.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.3",
- "chalk": "^4.1.2",
- "chokidar": "^3.5.2",
- "copy-webpack-plugin": "^6.4.1",
- "eslint": "^6.7.2",
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "copy-webpack-plugin": "^6.3.2",
+ "eslint": "^7.32.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
- "eslint-plugin-vue": "^6.2.2",
- "mock": "^0.1.1",
- "sass": "^1.26.5",
+ "eslint-plugin-vue": "^8.0.3",
+ "html-webpack-plugin": "^5.5.0",
+ "sass": "^1.32.12",
"sass-loader": "^8.0.2",
- "script-ext-html-webpack-plugin": "^2.1.5",
"svg-sprite-loader": "^6.0.9",
- "vue-template-compiler": "^2.6.11"
+ "vue-template-compiler": "^2.6.14"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/marsgis/mars3d-vue-template.git"
+ },
+ "bugs": {
+ "url": "https://github.com/marsgis/mars3d-vue-template/issues",
+ "email": "wh@marsgis.cn"
+ },
+ "keywords": [
+ "marsgis",
+ "mars3d",
+ "cesium",
+ "vue",
+ "gis"
+ ],
+ "author": "火星科技",
+ "license": "Apache-2.0",
+ "homepage": "http://mars3d.cn",
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {}
}
}
diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json
index 29a3c40..498d918 100644
--- a/public/config/mars3dConfig.json
+++ b/public/config/mars3dConfig.json
@@ -1,8 +1,9 @@
{
"scene": {
"center": {
- "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45
},
+ "requestRenderMode": true,
"showSun": false,
"showSkyAtmosphere": false,
"fog": true,
@@ -59,25 +60,5 @@
"key": ["216ee92889e17ab1b083fae665d522b8"],
"show": true
}
- ],
- "layers": [
- {
- "type": "geojson",
- "id": "building",
- "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
- "symbol": {
- "type": "polygonP",
- "styleOptions": {
- "color": "rgb(52,125,246)",
- "outline": false,
- "opacity": 0.8
- }
- },
- "buildings": {
- "height": 100
- },
- "popup": "{name}",
- "show": true
- }
]
}
diff --git a/public/config/mars3dConfigzq.json b/public/config/mars3dConfigzq.json
new file mode 100644
index 0000000..7752593
--- /dev/null
+++ b/public/config/mars3dConfigzq.json
@@ -0,0 +1,84 @@
+{
+ "scene": {
+ "center": {
+ "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45
+ },
+ "requestRenderMode": true,
+ "showSun": false,
+ "showSkyAtmosphere": false,
+ "fog": true,
+ "fxaa": true,
+ "globe": {
+ "depthTestAgainstTerrain": true,
+ "baseColor": "#1A2126",
+ "showGroundAtmosphere": false,
+ "enableLighting": false
+ },
+ "control": {
+ "infoBox": true
+ },
+ "cameraController": {
+ "zoomFactor": 3.0,
+ "minimumZoomDistance": 1,
+ "maximumZoomDistance": 500000.0,
+ "enableRotate": true,
+ "enableTranslate": true,
+ "enableTilt": true,
+ "enableZoom": true,
+ "enableCollisionDetection": false
+ }
+ },
+ "basemaps": [
+ {
+ "pid": 10,
+ "id": 1112,
+ "name": "天地图",
+ "type": "group",
+ "layers": [
+ { "name": "注记", "type": "tdt", "layer": "ter_z", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "img_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1111,
+ "pid": 10,
+ "name": "天地图电子",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_vec.png",
+ "type": "group",
+ "layers": [
+ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["216ee92889e17ab1b083fae665d522b8"] },
+ { "name": "注记", "type": "tdt", "layer": "vec_z", "key": ["216ee92889e17ab1b083fae665d522b8"] }
+ ]
+ },
+ {
+ "id": 1113,
+ "pid": 10,
+ "name": "天地图影像",
+ "icon": "http://mars3d.cn/example/img/basemaps/tdt_img.png",
+ "type": "tdt",
+ "layer": "img_d",
+ "key": ["216ee92889e17ab1b083fae665d522b8"],
+ "show": true
+ }
+ ],
+ "layers": [
+ {
+ "type": "geojson",
+ "id": "building",
+ "url": "http://111.198.10.15:11404/3d/zqBuilding.json",
+ "symbol": {
+ "type": "polygonP",
+ "styleOptions": {
+ "color": "rgb(52,125,246)",
+ "outline": false,
+ "opacity": 0.8
+ }
+ },
+ "buildings": {
+ "height": 100
+ },
+ "popup": "{name}",
+ "show": true
+ }
+ ]
+}
diff --git a/public/config/project.config.json b/public/config/project.config.json
index 69da0af..a9cb472 100644
--- a/public/config/project.config.json
+++ b/public/config/project.config.json
@@ -17,6 +17,5 @@
"provinceCode":"360000",
"cityCode":"361000",
"areaCode":"361024",
- "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/",
- "buildingUrl": "http://111.198.10.15:13002/arcgis/rest/services/zqBuilding/MapServer/0"
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/"
}
diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json
new file mode 100644
index 0000000..3c61685
--- /dev/null
+++ b/public/config/project.configzq.json
@@ -0,0 +1,21 @@
+{
+ "title": "管网运行监测系统",
+ "subtitle": "",
+ "theme":"blue",
+ "baseUrl": "http://60.208.121.150:5001/",
+ "wsUrl": "ws://60.208.121.150:5001/websocket/",
+ "mainPage": "http://111.198.10.15:11404/dcms/#",
+ "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad",
+ "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b",
+ "mapType": "gaode",
+ "alarmSound": true,
+ "refreshTime": 60,
+ "singleSys": true,
+ "refreshType":"websocket",
+ "showPointType":"massMarkers",
+ "showAllWells": true,
+ "provinceCode":"360000",
+ "cityCode":"361000",
+ "areaCode":"361024",
+ "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_GxData0825/MapServer/"
+}
diff --git "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
deleted file mode 100644
index 0d95cba..0000000
--- "a/public/static/images/dev-\344\272\225\347\233\226\347\212\266\346\200\201\347\233\221\346\265\213\344\273\252.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png" "b/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
deleted file mode 100644
index d050e49..0000000
--- "a/public/static/images/dev-\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213\347\273\210\347\253\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/dev-\347\256\241\347\233\257.png" "b/public/static/images/dev-\347\256\241\347\233\257.png"
deleted file mode 100644
index 96f8e94..0000000
--- "a/public/static/images/dev-\347\256\241\347\233\257.png"
+++ /dev/null
Binary files differ
diff --git "a/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png" "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..9eb23fc
--- /dev/null
+++ "b/public/static/images/\344\272\225\347\233\226\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png" "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..b9a5d45
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png" "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
new file mode 100644
index 0000000..6efac42
--- /dev/null
+++ "b/public/static/images/\345\231\252\345\243\260\350\256\260\345\275\225\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\346\212\245\350\255\246.png" "b/public/static/images/\346\212\245\350\255\246.png"
new file mode 100644
index 0000000..f80eea1
--- /dev/null
+++ "b/public/static/images/\346\212\245\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..e2091f4
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png" "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
new file mode 100644
index 0000000..1988fdf
--- /dev/null
+++ "b/public/static/images/\346\266\210\351\230\262\346\240\223\351\230\262\347\233\227\346\260\264.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png" "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..f4dd83f
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png" "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
new file mode 100644
index 0000000..37acd5a
--- /dev/null
+++ "b/public/static/images/\346\266\262\344\275\215\347\233\221\346\265\213\344\273\252.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png" "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
new file mode 100644
index 0000000..d5f00fb
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\345\221\212\350\255\246.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png" "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
new file mode 100644
index 0000000..420106b
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\346\231\272\350\203\275\347\233\221\346\265\213.png"
Binary files differ
diff --git "a/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png" "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
new file mode 100644
index 0000000..8f94d81
--- /dev/null
+++ "b/public/static/images/\347\207\203\346\260\224\351\231\204\345\261\236\347\211\251.png"
Binary files differ
diff --git a/src/assets/overview/dark.jpg b/src/assets/overview/dark.jpg
new file mode 100644
index 0000000..c0761e0
--- /dev/null
+++ b/src/assets/overview/dark.jpg
Binary files differ
diff --git a/src/components/Mars3D/Mars3dMap.vue b/src/components/Mars3D/Mars3dMap.vue
index d7238e6..ca0565e 100644
--- a/src/components/Mars3D/Mars3dMap.vue
+++ b/src/components/Mars3D/Mars3dMap.vue
@@ -5,15 +5,13 @@
import Vue from 'vue'
import * as Cesium from 'mars3d-cesium'
-// 导入mars3d主库
import 'mars3d/dist/mars3d.css'
import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
import * as mars3d from 'mars3d'
-// 导入插件(其他插件类似,插件清单访问:http://mars3d.cn/dev/guide/start/architecture.html)
// 为了方便使用,绑定到原型链,在其他vue文件,直接 this.mars3d 来使用
Vue.prototype.mars3d = mars3d
-Vue.prototype.Cesium = mars3d.Cesium
+Vue.prototype.Cesium = Cesium
import axios from 'axios'
export default {
@@ -106,9 +104,20 @@
map.scene.screenSpaceCameraController.zoomEventTypes = [Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH]
map.scene.screenSpaceCameraController.rotateEventTypes = [Cesium.CameraEventType.LEFT_DRAG]
map.scene.screenSpaceCameraController.enableCollisionDetection = false
+
map.on(mars3d.EventType.renderError, function(event) {
window.location.reload()
})
+
+ // const handler = new Cesium.ScreenSpaceEventHandler(map.viewer.canvas)
+ // handler.setInputAction(function(evt) {
+ // var cartesian = map.viewer.camera.pickEllipsoid(evt.position, map.viewer.scene.globe.ellipsoid)
+ // var cartographic = Cesium.Cartographic.fromCartesian(cartesian)
+ // var lng = Cesium.Math.toDegrees(cartographic.longitude)// 经度值
+ // var lat = Cesium.Math.toDegrees(cartographic.latitude)// 纬度值
+ // console.log(' {point: [' + lng + ',' + lat + ',0]},')
+ // }, Cesium.ScreenSpaceEventType.LEFT_CLICK)
+
this[`map${this.mapKey}`] = map
if (this.needBloomEffect) {
const bloomEffect = new mars3d.effect.BloomEffect({
@@ -119,13 +128,14 @@
const graphicLayer = new mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer)
- // 垂直飞线
- // lat:36.290705 , lng:117.424668 ,
- // flyLine(graphicLayer, 117.33, 117.58, 36.59, 36.80)
+
// 挂载到全局对象下,所有组件通过 this.map 访问
Vue.prototype[`map${this.mapKey}`] = map
// 抛出事件
- this.$emit('onload', map, this.center)
+ const that= this
+ map.on(mars3d.EventType.load, function(event) {
+ that.$emit('onload', map, that.center)
+ })
},
changeBaseLayer(basemap) {
window.map.basemap = basemap
diff --git a/src/components/Mars3D/utils/ArcGisWfsLayer.js b/src/components/Mars3D/utils/ArcGisWfsLayer.js
index 7ca8399..9a569b4 100644
--- a/src/components/Mars3D/utils/ArcGisWfsLayer.js
+++ b/src/components/Mars3D/utils/ArcGisWfsLayer.js
@@ -2,14 +2,14 @@
import Vue from 'vue'
/**
- *
+ * 三维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
* @param radius 管径
* @returns {ArcGisWfsLayer}
*/
-export function polylineVolumeP(index, color, name, radius) {
+export function polylineVolumeP(index, color, name, radius, height='') {
const wfsLayer3D = new mars3d.layer.ArcGisWfsLayer({
enablePickFeatures: false,
name: name,
@@ -23,8 +23,10 @@
radius: radius
},
callback: function(attr, styleOpt) {
- var val = { attr }.attr
- const height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ if(height === ''){
+ var val = { attr }.attr
+ height = -(Number(val.起始埋深) + Number(val.终止埋深)) / 2
+ }
return { setHeight: height, height }
}
},
@@ -35,7 +37,7 @@
}
/**
- *
+ * 二维管线
* @param index gis图层编号
* @param color 管线颜色
* @param name 图层名称
@@ -69,7 +71,7 @@
export function building() {
const wfsLayer = new mars3d.layer.ArcGisWfsLayer({
name: '建筑物面矢量图层',
- url: Vue.prototype.baseConfig.buildingUrl,
+ url: '',
// minimumLevel: changeLevel,
symbol: {
type: 'polygonC',
diff --git a/src/components/Mars3D/utils/GeoJsonLayer.js b/src/components/Mars3D/utils/GeoJsonLayer.js
index 51ab972..4c8f784 100644
--- a/src/components/Mars3D/utils/GeoJsonLayer.js
+++ b/src/components/Mars3D/utils/GeoJsonLayer.js
@@ -9,7 +9,7 @@
* @param model 模型
* @param scale 模型缩放
* @param condition 搜索条件
- * @returns {{"3D": string, "2D": BaseClass}}
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
*/
export function createPointModelLayer(index, name, image, model = '', scale, condition) {
@@ -38,7 +38,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -56,9 +55,7 @@
}
})
window.map.addLayer(layer)
- const layer3D = new mars3d.layer.GraphicLayer({
- name: name
- }).bindPopup(function(event) {
+ const layer3D = new mars3d.layer.GraphicLayer({ name: name}).bindPopup(function(event) {
const attr = event.graphic.attr || {}
return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
})
@@ -133,7 +130,6 @@
scaleByDistance_farValue: 0.6,
scaleByDistance_near: 0,
scaleByDistance_nearValue: 1.4,
- clampToGround: true,
highlight: { type: 'click', image: '../static/images/high-marker.png' }
}
})
@@ -150,13 +146,13 @@
})
}
})
- .on(mars3d.EventType.show, function(event) {
- console.log(index, ' show时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.load, function(event) {
- console.log(index, ' load时间(s):', new Date().getSeconds())
- }).on(mars3d.EventType.postRender, function(event) {
- console.log(index, ' postRender时间(s):', new Date().getSeconds())
- })
+ // .on(mars3d.EventType.show, function(event) {
+ // console.log(index, ' show时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.load, function(event) {
+ // console.log(index, ' load时间(s):', new Date().getSeconds())
+ // }).on(mars3d.EventType.postRender, function(event) {
+ // console.log(index, ' postRender时间(s):', new Date().getSeconds())
+ // })
window.map.addLayer(layer)
queryServer.query({
where: condition,
@@ -173,3 +169,59 @@
})
return layer
}
+
+
+/**
+ * ModelC
+ * @param index 图层序号
+ * @param name 图层名称
+ * @param model 模型
+ * @param scale 模型缩放
+ * @param condition 搜索条件
+ * @returns {{"3D": BaseGraphicLayer, "2D": BaseClass}}
+ */
+
+export function createModelLayer(index, name, model = '', scale, condition) {
+ const queryServer = new mars3d.query.QueryArcServer({
+ url: Vue.prototype.baseConfig.arcgisUrl + index,
+ popup: 'all',
+ pageSize: 5000
+ })
+ const layer3D = new mars3d.layer.GraphicLayer({
+ name: name
+ }).bindPopup(function(event) {
+ const attr = event.graphic.attr || {}
+ return mars3d.Util.getTemplateHtml({ template: 'all', attr: attr })
+ })
+ window.map.addLayer(layer3D)
+ layer3D.show = false
+ queryServer.query({
+ where: condition,
+ success: (result) => {
+ if (result.count === 0) {
+ console.log('未查询到相关记录!')
+ }
+ if (model !== '') {
+ const points = []
+ result.geojson.features.forEach(item => {
+ points.push({
+ position: [item.geometry.coordinates[0], item.geometry.coordinates[1], 0],
+ style: {
+ scale: scale
+ },
+ attr: item.properties
+ })
+ })
+ const modelCombine = new mars3d.graphic.ModelCombine({
+ url: model,
+ instances: points
+ })
+ layer3D.addGraphic(modelCombine)
+ }
+ },
+ error: (error, msg) => {
+ console.log('服务访问错误,' + error)
+ }
+ })
+ return layer3D
+}
diff --git a/src/main.js b/src/main.js
index f8a4b83..964152c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -103,6 +103,12 @@
import axios from 'axios'
import service from '@/utils/request'
+
+import * as Cesium from 'mars3d-cesium'
+import 'mars3d/dist/mars3d.css'
+import 'mars3d-cesium/Build/Cesium/Widgets/widgets.css'
+import * as mars3d from 'mars3d'
+
axios.get('./config/project.config.json').then((result) => {
console.log('get config')
Vue.prototype.baseConfig = result.data
diff --git a/src/router/modules/well.js b/src/router/modules/well.js
index 0f6d5a6..17ed4e1 100644
--- a/src/router/modules/well.js
+++ b/src/router/modules/well.js
@@ -31,7 +31,7 @@
children: [
{
path: '/overview3d',
- component: () => import('@/views/overview/overview3dzq'),
+ component: () => import('@/views/overview/overview3d'),
name: 'overview3d',
meta: { title: '管网运行总览', icon: 'icon-config', permission: ['/overview/3d'] }
}
diff --git a/src/views/overview/components/popupLocation.vue b/src/views/overview/components/popupLocation.vue
index 6ad655b..3ba9efd 100644
--- a/src/views/overview/components/popupLocation.vue
+++ b/src/views/overview/components/popupLocation.vue
@@ -21,7 +21,7 @@