JX.LI 2 år sedan
förälder
incheckning
35d99f8e49
2 ändrade filer med 8 tillägg och 8 borttagningar
  1. 6 6
      src/views/leader.vue
  2. 2 2
      vue.config.js

+ 6 - 6
src/views/leader.vue

@@ -385,11 +385,11 @@
 						that.connectList.push(latlng)
 					}
 					setTimeout(() => {
-						// that.$refs.supermap.clearC()
-						that.$refs.supermap.setConnectList(that.connectList, '#f40')
+						that.$refs.supermap.clearCTwo()
+						that.$refs.supermap.setConnectTwoList(that.connectList, '#f40')
 					}, 1000)
 				} else {
-					that.$refs.supermap.clearC()
+					that.$refs.supermap.clearCTwo()
 				}
 			},
 			setConnectList(points, planName) {
@@ -410,7 +410,7 @@
 				let point = this.zxrs
 				myChart.setOption({
 					title: [{
-						text: '总人数:' + handred + '人' + '\n' + '\n' + '在线人数:' + point + '人',
+						text: '总人数:' + handred + '人',
 						x: '48%',
 						y: '25%',
 						textStyle: {
@@ -442,7 +442,7 @@
 							}
 						},
 						data: [{
-							value: point,
+							value: handred,
 							name: '当前在线',
 							label: {
 								show: true, //单独显示该数据项
@@ -475,7 +475,7 @@
 								}
 							}
 						}, {
-							value: handred - point,
+							value: 0,
 							itemStyle: {
 								color: '#666'
 							}

+ 2 - 2
vue.config.js

@@ -52,9 +52,9 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        // target: `http://127.0.0.1:3031`,
+        target: `http://127.0.0.1:3031`,
         // target: `http://192.168.2.118:3031`,
-        target: `http://121.36.228.66:3031`,
+        // target: `http://121.36.228.66:3031`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''