瀏覽代碼

首页样式修改

shilin 4 年之前
父節點
當前提交
d9496a6070
共有 4 個文件被更改,包括 4150 次插入3583 次删除
  1. 1 1
      common/store.js
  2. 13 3
      components/detail/Detail.vue
  3. 10 0
      components/windStationCardDetail/WindStationCardDetail.vue
  4. 4126 3579
      pages/index/Index.vue

+ 1 - 1
common/store.js

@@ -5,7 +5,7 @@ Vue.use(Vuex)
 
 const store = new Vuex.Store({
     state: {
-		wholeSituationBackStageIp:'10.155.32.125',
+		wholeSituationBackStageIp:'10.155.32.124',
 		wholeSituationBackStagePort:'8082',
 		windpowerstationNameToId:{
            "宁夏新能源公司":"0","麻黄山风电场":"MHS_FDC","牛首山风电场":"NSS_FDC","青山风电场":"SBQ_FDC","石板泉风电场":"QS_FDC","香山风电场":"QS_FDC"

+ 13 - 3
components/detail/Detail.vue

@@ -68,23 +68,33 @@ export default {
 
 
 	created: function() {
-		this.address = this.getWindPowerStationNameToSessionStorage();
+/* 		this.address = this.getWindPowerStationNameToSessionStorage();
 		this.windPowerStationId = uni.getStorageSync('windPowerStationId');
 		this.targetdetail_target();
 		this.targetdetail_curve();
-		this.targetdetail_histogram();
+		this.targetdetail_histogram(); */
 	},
 	onShow() {
 		this.windPowerStationId = uni.getStorageSync('windPowerStationId');
 		this.address = this.getWindPowerStationNameToSessionStorage();
 		this.hideModals();
 	},
-	onLoad() {
+	onLoad(pointKey) {
 		_self = this;
 		this.cWidth = uni.upx2px(750);
 		this.cHeight = uni.upx2px(400);
 		this.getColumnServerData();
 		this.getLineServerData();
+		
+		this.address = this.getWindPowerStationNameToSessionStorage();
+		this.windPowerStationId = uni.getStorageSync('windPowerStationId');
+		this.pointKey = pointKey.pointKey;
+		this.targetName = pointKey.callTargetName;
+		this.targetUnit = pointKey.callTargetUnit;
+		this.targetdetail_target();
+		this.targetdetail_curve();
+		this.targetdetail_histogram();
+		
 	},
 	onReady() {},
 	computed:{

+ 10 - 0
components/windStationCardDetail/WindStationCardDetail.vue

@@ -197,6 +197,7 @@
 				socketTask_index_windSpeed_power_target_detail: '',
 				socketTask_windpowerstationdetail_springbox_target: '',
 				socketTask_windpowerstationdetail_twentyfourhourlinechart_target:'',
+				socketTask_index_windStation_card:'',
 				windpowerstationdetail: {
 					comprehensive_target: "",
 					windpowerstationdetail_springbox_target: ""
@@ -207,6 +208,9 @@
 				windspeedpowercurvedetail:{
 					windpowerstationdetail_twentyfourhourlinechart_target:""
 				},
+				index_windStation_cardmodule:{
+					index_windStation_cardmodule:""
+				},
 				gl:[],
 				fs:[],
 				llgl:[],
@@ -241,6 +245,8 @@
 			};
 			this.cWidth = uni.upx2px(750);
 			this.cHeight = uni.upx2px(400);
+			
+			
 			this.getServerData();
 			this.getColumnServerData();
 			this.comprehensive_target();
@@ -260,6 +266,10 @@
 			}
 		},
 		methods: {
+			
+			
+			
+			
 			async comprehensive_target() {
 
 				let _this = this;

文件差異過大導致無法顯示
+ 4126 - 3579
pages/index/Index.vue