|
@@ -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) => {
|