Skip to content

Commit cae565b

Browse files
committed
修改
1 parent eac18e1 commit cae565b

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
##使用教程
1+
<数据可视化>
22

3+
##操作说明
34

5+
克隆: git clone https://github.com/githyw/vision.git
46

5-
1.npm install
7+
1.cd vision
68

7-
2.cd vision
9+
2.npm install
810

911
3.npm run serve
12+
13+
#采用的技术
14+
15+
1.使用Cli4搭建的Vue2项目,地图(map)是用aixos获取的数据接口, 其他数据使用的是后台websocket推送到前端的
16+
17+
2.结合了Echarts使数据渲染出图形来
18+
19+
3.可实现多个客户端连接的效果, 比如:A客户端和B客户端同时在线,A客户端查看某个图形大小,B客户端中的图形也跟着改变大小

src/views/Map/Map.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
methods:{
4141
async initChart(){
4242
this.chartInstance = this.$echarts.init(this.$refs.map_ref,this.theme)
43-
const ret = await axios.get('http://localhost:1314/map/china.json')
43+
const ret = await axios.get('http://42.192.16.209//map/china.json')
4444
this.$echarts.registerMap('china',ret.data)
4545
const initOption = {
4646
title:{
@@ -68,7 +68,7 @@
6868
this.chartInstance.on('click',async arg =>{
6969
const provinceInfo = getProvinceMapInfo(arg.name)
7070
if(!this.dataMap[provinceInfo.key]){
71-
const ret = await axios.get('http://localhost:1314/' + provinceInfo.path)
71+
const ret = await axios.get('http://42.192.16.209/' + provinceInfo.path)
7272
this.dataMap[provinceInfo.key] = ret.data
7373
this.$echarts.registerMap(provinceInfo.key,ret.data)
7474
}

0 commit comments

Comments
 (0)