소스 검색

修改报表

wangchao 3 년 전
부모
커밋
721c7cbe58
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      pages/user/report.vue
  2. 2 1
      static/map_0107.html

+ 2 - 2
pages/user/report.vue

@@ -245,7 +245,7 @@
 				contractSelect: '0',
 				url: '',
 				nowDate: '2022年全年',
-				seachMoth: '',
+				seachMoth: '2021',
 				background: {
 					backgroundColor: '#2E303A',
 				},
@@ -371,7 +371,6 @@
 			// 	title: "数据加载中...",
 			// 	mask: true
 			// })
-			this.url = "https://liangxin.zthymaoyi.com/map_0105.html?id=" + uni.getStorageSync('pcUserInfo').compId
 			if (this.nowDate == '2022年全年') {
 				this.seachMoth = '2022'
 			}
@@ -402,6 +401,7 @@
 				}
 			},
 			init() {
+				this.url = "https://liangxin.zthymaoyi.com/map_0105.html?id=" + uni.getStorageSync('pcUserInfo').compId +'&seachMoth='+this.seachMoth
 				this.$api.doRequest('get', '/biInfoController/selectBiInfo?compId=' + uni.getStorageSync('pcUserInfo')
 					.compId + '&seachMoth=' + this.seachMoth).then(res => {
 					console.log(res)

+ 2 - 1
static/map_0107.html

@@ -74,10 +74,11 @@
 			var mapLineData = {}
 			var timer = ''
 			var compId = getUrlParam("id")
+			var seachMoth = getUrlParam("seachMoth")
 			$.ajax({
 				type: "GET",
 				contentType: "application/json;charset=UTF-8",
-				url: "http://api1.eliangeyun.com/biInfoController/selectBiInfo?compId=" + compId,
+				url: "http://api1.eliangeyun.com/biInfoController/selectBiInfo?compId=" + compId+ '&seachMoth=' + seachMoth,
 				success: function(result) {
 					console.log("result", result);
 					$("#progressBar").hide();