lining 3 роки тому
батько
коміт
d8a6cede46

+ 9 - 9
src/components/WindturbineDetailPages.vue

@@ -122,15 +122,15 @@
 		methods: {
 			opened() {
 				this.line = "";
-					this.alarmTime = "";
-					this.alarmContent = "";
-					this.BasicInfo = this.UniformCodes.getStationInfos(this.windturbine);
-					this.BasicInfo.windturbineId = this.windturbine.windturbineId;
-					// this.dateDeal(this.BasicInfo)
-					this.$refs.BasicInfo.start(this.BasicInfo);
-					this.initData();
-					this.refreshData();
-					this.refreshTimer = setInterval(this.refreshData, 100)
+				this.alarmTime = "";
+				this.alarmContent = "";
+				this.BasicInfo = this.UniformCodes.getStationInfos(this.windturbine);
+				this.BasicInfo.windturbineId = this.windturbine.windturbineId;
+				// this.dateDeal(this.BasicInfo)
+				this.$refs.BasicInfo.start(this.BasicInfo);
+				this.initData();
+				this.refreshData();
+				this.refreshTimer = setInterval(this.refreshData, 100)
 			},
 			closed() {
 				// todo 切换页面的时候应该让上一个页面停止刷新数据(调用end方法)

+ 4 - 4
src/components/focus/focusCard.vue

@@ -1,7 +1,7 @@
 /* 推荐区 */
 <template>
 	<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
-		<div class="area" v-for="(vl , index) in values" :key="vl" @dblclick="sendMsg(vl,index)">
+		<div class="area" v-for="(vl , index) in values" :key="vl" @dblclick="sendMsg(vl,flase,index)">
 			<img class="imgs" src="../../assets/img/RecommendedArea/background.png" alt="">
 			<div class="content">{{vl.showType}}</div>
 			<div class="">{{vl.name}}</div>
@@ -103,7 +103,7 @@
 					let data = bd.Recommends
 					for (let v in data) {
 						if (arr[1] === data[v].stationID) {
-							this.sendMsg(data[v])
+							this.sendMsg(data[v],true)
 						}
 					}
 				} else if (arr[0] === 'CLOSE') {
@@ -145,12 +145,12 @@
 						this.values = list
 					})
 			},
-			sendMsg: function (vl, index) {
+			sendMsg: function (vl, types ,index) {
 				if (vl.attentionType === 'Station' && vl.type === 'Accident') {
 					this.svgVisible = true;
 					this.svgWeb = vl.stationId;
 					this.stationNames = vl.name
-				} else if (vl.attentionType === 'Station' && vl.type === 'ElectricityRestrictions') {
+				} else if ((vl.attentionType === 'Station' && vl.type === 'ElectricityRestrictions') ||types) {
 					let that = this;
 					that.timeIndex = 0;
 					that.ajaxDetail(vl, index);

+ 7 - 0
src/utils/BackgroundData.js

@@ -39,6 +39,7 @@ export default class BackgroundData {
         },
         "NSSFCJSFW.NX_GD_NSSF_XX_XX_XXX_XXX_CI0263": {
             stationName: "牛首山风电场",
+            id: 'NSS_BT',
             content: "限电",
             createTime: new Date(),
             isActive: false,
@@ -51,6 +52,7 @@ export default class BackgroundData {
             createTime: new Date(),
             isActive: false,
             stationID: 'QS_AGC',
+            id: 'QS_BT',
             values:'QSFCJSFW.NX_GD_QSF_XX_XX_XXX_XXX_CI0263'
         },
 
@@ -60,10 +62,12 @@ export default class BackgroundData {
             createTime: new Date(),
             isActive: false,
             stationID: 'XNL_AGC',
+            id: 'XN6_BT',
             values:'SBQFCJSFW.NX_GD_SBQF_XX_XX_XXX_XXX_CI0263'
         },
         "MHSFCJSFW.NX_GD_MHSF_XX_XX_XXX_XXX_CI0263": {
             stationName: "麻黄山风电场",
+            id: 'MHS_BT',
             content: "限电",
             createTime: new Date(),
             isActive: false,
@@ -76,6 +80,7 @@ export default class BackgroundData {
             createTime: new Date(),
             isActive: false,
             stationID: 'XS_AGC',
+            id: 'XS_BT',
             values:'XSFCJSFW.NX_GD_XSF_XX_XX_XXX_XXX_CI0263'
         },
         "SBQFCJSFW.NX_GD_SBQF_XX_XX_XXX_XXX_CI026X": {
@@ -84,6 +89,7 @@ export default class BackgroundData {
             createTime: new Date(),
             isActive: false,
             stationID: 'NW_AGC',
+            id: 'N5_BT',
             values:'SBQFCJSFW.NX_GD_SBQF_XX_XX_XXX_XXX_CI026X'
         },
         "SLAGC.NX_GD_QSF_DQ_P1_L1_001_DI0165": {
@@ -92,6 +98,7 @@ export default class BackgroundData {
             createTime: new Date(),
             isActive: false,
             stationID: 'QS3_AGC',
+            id: 'SL_BT',
             values:'SLAGC.NX_GD_QSF_DQ_P1_L1_001_DI0165'
         },
     };