Selaa lähdekoodia

修改报表地图

wangchao 3 vuotta sitten
vanhempi
commit
20c67f48ca
1 muutettua tiedostoa jossa 6 lisäystä ja 13 poistoa
  1. 6 13
      pages/user/report.vue

+ 6 - 13
pages/user/report.vue

@@ -69,7 +69,7 @@
 				inventoryValue: '',
 				ZChart: {},
 				// url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
-				url: 'http://192.168.1.116:8011',
+				url: '',
 				flag: true,
 				chartData: {},
 				ringoptions: {},
@@ -80,18 +80,12 @@
 				title: "加载中",
 				mask: true
 			})
-			if (option.url) {
-				this.url = option.url;
-				uni.setNavigationBarTitle({
-					title: "库点监控"
-				})
-				this.flag = false
-			}
+			this.url = "http://192.168.1.116:8011?id="+uni.getStorageSync('pcUserInfo').compId
 			this.init()
 		},
 		methods: {
 			init() {
-				this.$api.doRequest('get', '/biInfoController/selectBiInfo').then(res => {
+				this.$api.doRequest('get', '/biInfoController/selectBiInfo?compId='+uni.getStorageSync('pcUserInfo').compId).then(res => {
 					console.log(res)
 					uni.hideLoading()
 					let _list = []
@@ -281,7 +275,7 @@
 									"disabled": false,
 									"axisLine": true,
 									"axisLineColor": "#CCCCCC",
-							 	"calibration": false,
+									"calibration": false,
 									"fontColor": "#666666",
 									"fontSize": 13,
 									"itemCount": 5,
@@ -303,13 +297,13 @@
 									"splitNumber": 5,
 									"gridType": "solid",
 									"dashLength": 8,
-							  "gridColor": "#CCCCCC",
+									"gridColor": "#CCCCCC",
 									"padding": 10,
 									"showTitle": false,
 									"data": [{
 										"type": "value",
 										"position": "left",
-							  	"disabled": false,
+										"disabled": false,
 										"axisLine": false,
 										"axisLineColor": "#CCCCCC",
 										"calibration": false,
@@ -361,7 +355,6 @@
 								}
 							}
 						} else if (i == 9) {
-							document.getElementById('mainIframe').contentWindow.postMessage(res.data.data[i], '*')
 
 						}
 					}