Jelajahi Sumber

Merge branch 'mw2' of ssh://61.161.152.110:29418/electronic-map into tjj2

darker 3 tahun lalu
induk
melakukan
c9268d9f9a

+ 26 - 1
src/views/WindSite/components/generalappearance/mhs.vue

@@ -1625,10 +1625,35 @@ export default {
       green: "#02A434",
       red: "#FF0000",
       datas: undefined,
+	  fjID:'',
     };
   },
-  created() {},
+  beforeUpdate() {
+	if(this.fjID == ''){
+		this.fjClcik();
+	}
+  },
   methods: {
+	fjClcik(){
+		var that = this;
+		$('#fan g').click(function(){
+			if($(this).attr('id') != undefined){
+				if(that.fjID == ''){
+					that.fjID = $(this).attr('id');
+					var p = that.$route.path.split('/');
+					var pData = p[p.length - 1].split('_')[0].substr(0,1);
+					var wpId = p[p.length - 1];
+					var id = parseInt($(this).attr('id'));
+					if(id<10){
+						id = '0'+id
+					}
+					if (wpId.indexOf("FDC") !== -1) {
+						that.$router.replace(`/monitor/windsite/info/${wpId}/${pData[0] + 'G01_'+id}`);
+					}
+				}
+			}
+		})
+	},
     refreshFan: function (data) {
       if (data) {
         data.forEach((element) => {

+ 30 - 4
src/views/WindSite/components/generalappearance/nss.vue

@@ -3632,6 +3632,7 @@
 </template>
 <script>
 import previewPicture from "../previewPicture.vue";
+import $ from "jquery";
 export default {
   components: {
     previewPicture,
@@ -3643,10 +3644,35 @@ export default {
       green: "#02A434",
       red: "#FF0000",
       datas: undefined,
-    };
-  },
-  created() {},
-  methods: {
+		fjID:'',
+     };
+   },
+   beforeUpdate() {
+   	if(this.fjID == ''){
+   		this.fjClcik();
+   	}
+   },
+   methods: {
+   	fjClcik(){
+   		var that = this;
+   		$('#fan g').click(function(){
+   			if($(this).attr('id') != undefined){
+   				if(that.fjID == ''){
+   					that.fjID = $(this).attr('id');
+   					var p = that.$route.path.split('/');
+   					var pData = p[p.length - 1].split('_')[0].substr(0,1);
+   					var wpId = p[p.length - 1];
+   					var id = parseInt($(this).attr('id').split('_')[2]);
+   					if(id<10){
+   						id = '0'+id
+   					}
+   					if (wpId.indexOf("FDC") !== -1) {
+   						that.$router.replace(`/monitor/windsite/info/${wpId}/${pData[0] + 'G01_'+id}`);
+   					}
+   				}
+   			}
+   		})
+   	},
     refreshFan: function (data) {
       if (data) {
         data.forEach((element) => {

+ 30 - 4
src/views/WindSite/components/generalappearance/qs.vue

@@ -3386,6 +3386,7 @@
 </template>
 <script>
 import previewPicture from "../previewPicture.vue";
+import $ from "jquery";
 export default {
   components: {
     previewPicture,
@@ -3397,10 +3398,35 @@ export default {
       green: "#02A434",
       red: "#FF0000",
       datas: undefined,
-    };
-  },
-  created() {},
-  methods: {
+		fjID:'',
+     };
+   },
+   beforeUpdate() {
+   	if(this.fjID == ''){
+   		this.fjClcik();
+   	}
+   },
+   methods: {
+   	fjClcik(){
+   		var that = this;
+   		$('#fan g').click(function(){
+   			if($(this).attr('id') != undefined){
+   				if(that.fjID == ''){
+   					that.fjID = $(this).attr('id');
+   					var p = that.$route.path.split('/');
+   					var pData = p[p.length - 1].split('_')[0].substr(0,1);
+   					var wpId = p[p.length - 1];
+   					var id = parseInt($(this).attr('id').split('_')[2]);
+   					if(id<10){
+   						id = '0'+id
+   					}
+   					if (wpId.indexOf("FDC") !== -1) {
+   						that.$router.replace(`/monitor/windsite/info/${wpId}/${pData[0] + 'G01_'+id}`);
+   					}
+   				}
+   			}
+   		})
+   	},
     refreshFan: function (data) {
       if (data) {
         data.forEach((element) => {

+ 30 - 4
src/views/WindSite/components/generalappearance/sbq.vue

@@ -4323,6 +4323,7 @@
 </template>
 <script>
 import previewPicture from "../previewPicture.vue";
+import $ from "jquery";
 export default {
   components: {
     previewPicture,
@@ -4334,10 +4335,35 @@ export default {
       green: "#02A434",
       red: "#FF0000",
       datas: undefined,
-    };
-  },
-  created() {},
-  methods: {
+		fjID:'',
+     };
+   },
+   beforeUpdate() {
+   	if(this.fjID == ''){
+   		this.fjClcik();
+   	}
+   },
+   methods: {
+   	fjClcik(){
+   		var that = this;
+   		$('#fan g').click(function(){
+   			if($(this).attr('id') != undefined){
+   				if(that.fjID == ''){
+   					that.fjID = $(this).attr('id');
+   					var p = that.$route.path.split('/');
+   					var pData = p[p.length - 1].split('_')[0].substr(0,1);
+   					var wpId = p[p.length - 1];
+   					var id = parseInt($(this).attr('id').split('_')[2]);
+   					if(id<10){
+   						id = '0'+id
+   					}
+   					if (wpId.indexOf("FDC") !== -1) {
+   						that.$router.replace(`/monitor/windsite/info/${wpId}/${pData[0] + 'G01_'+id}`);
+   					}
+   				}
+   			}
+   		})
+   	},
     refreshFan: function (data) {
       if (data) {
         data.forEach((element) => {

+ 30 - 4
src/views/WindSite/components/generalappearance/xs.vue

@@ -7108,6 +7108,7 @@
 </template>
 <script>
 import previewPicture from "../previewPicture.vue";
+import $ from "jquery";
 export default {
   components: {
     previewPicture,
@@ -7119,10 +7120,35 @@ export default {
       green: "#02A434",
       red: "#FF0000",
       datas: undefined,
-    };
-  },
-  created() {},
-  methods: {
+		fjID:'',
+     };
+   },
+   beforeUpdate() {
+   	if(this.fjID == ''){
+   		this.fjClcik();
+   	}
+   },
+   methods: {
+   	fjClcik(){
+   		var that = this;
+   		$('#fan g').click(function(){
+   			if($(this).attr('id') != undefined){
+   				if(that.fjID == ''){
+   					that.fjID = $(this).attr('id');
+   					var p = that.$route.path.split('/');
+   					var pData = p[p.length - 1].split('_')[0].substr(0,1);
+   					var wpId = p[p.length - 1];
+   					var id = parseInt($(this).attr('id').split('_')[2]);
+   					if(id<10){
+   						id = '0'+id
+   					}
+   					if (wpId.indexOf("FDC") !== -1) {
+   						that.$router.replace(`/monitor/windsite/info/${wpId}/${pData[0] + 'G01_'+id}`);
+   					}
+   				}
+   			}
+   		})
+   	},
     refreshFan: function (data) {
       if (data) {
         data.forEach((element) => {