|
@@ -1,25 +1,25 @@
|
|
|
<template>
|
|
|
- <view class="content">
|
|
|
- <cu-custom bgColor="bg-blacks" :isBack="false">
|
|
|
- <block slot="right">
|
|
|
- <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
|
|
|
- </block>
|
|
|
- <block slot="right">
|
|
|
- <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
|
|
|
- <view class="cu-tag looknumber" style="margin-top: -2%;">
|
|
|
- <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </block>
|
|
|
- <block slot="right">
|
|
|
-
|
|
|
- </block>
|
|
|
- <block slot="content">{{address}}</block>
|
|
|
- <block slot="right">
|
|
|
- <view class="plus" @tap="showModal" data-target="viewModal">+</view>
|
|
|
- </block>
|
|
|
- </cu-custom>
|
|
|
-
|
|
|
+ <view class="content">
|
|
|
+ <cu-custom bgColor="bg-blacks" :isBack="false">
|
|
|
+ <block slot="right">
|
|
|
+ <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
|
|
|
+ </block>
|
|
|
+ <block slot="right">
|
|
|
+ <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
|
|
|
+ <view class="cu-tag looknumber" style="margin-top: -2%;">
|
|
|
+ <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block slot="right">
|
|
|
+
|
|
|
+ </block>
|
|
|
+ <block slot="content">{{address}}</block>
|
|
|
+ <block slot="right">
|
|
|
+ <view class="plus" @tap="showModal" data-target="viewModal">+</view>
|
|
|
+ </block>
|
|
|
+ </cu-custom>
|
|
|
+
|
|
|
<!-- 抽屉组件 -->
|
|
|
<div>
|
|
|
<drawer ref="drawer"></drawer>
|
|
@@ -182,7 +182,7 @@
|
|
|
<view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.llglMax }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<!--接入卡片-->
|
|
|
<view class="interfaceCard">
|
|
@@ -391,7 +391,7 @@
|
|
|
<view class="qiun-chart"><canvas canvas-id="canvasColumnStack" id="canvasColumnStack" class="chart" @touchstart="touchColumn"></canvas></view>
|
|
|
</view>
|
|
|
<!-- 风电场卡片 -->
|
|
|
-
|
|
|
+
|
|
|
<view class="windStation">
|
|
|
<scroll-view scroll-x class="scrollWindStationCard">
|
|
|
<view class="windStationCardContainer">
|
|
@@ -900,20 +900,10 @@
|
|
|
index_curve_columnar_windSpeed_powermodule: ''
|
|
|
},
|
|
|
badge: 22,
|
|
|
- drawerList: [{
|
|
|
- name: '首页'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '状态监视'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '矩阵监视'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '人员监视'
|
|
|
- }
|
|
|
- ],
|
|
|
+ drawerList: [],
|
|
|
+ permissionsInformation:[],
|
|
|
plusDrawerList: [],
|
|
|
+ leftNavigationtitle:'监视功能分组',
|
|
|
modalName: null,
|
|
|
address: '河北能源集团',
|
|
|
windPowerStationId: '',
|
|
@@ -946,7 +936,7 @@
|
|
|
monthAngrey: '',
|
|
|
yearOlive: '',
|
|
|
yearAngrey: '',
|
|
|
- FDC:'CL_FDC',
|
|
|
+ FDC: 'CL_FDC',
|
|
|
socketTask_target_comprehensive_indicators: '',
|
|
|
socketTask_target_windSpeed_power: '',
|
|
|
socketTask_index_windturbine_status: '',
|
|
@@ -957,17 +947,18 @@
|
|
|
windpowerstationdetail: {
|
|
|
target_comprehensive_indicators: '',
|
|
|
target_windSpeed_power: '',
|
|
|
- index_windturbine_status:'',
|
|
|
+ index_windturbine_status: '',
|
|
|
index_electricQuantity: '',
|
|
|
index_target_basic_indicators: ''
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
module: true,
|
|
|
cardmodule: true
|
|
|
};
|
|
|
},
|
|
|
created: function() {
|
|
|
this.viewUserid();
|
|
|
+ this.monitoringAuthority();
|
|
|
this.address = this.getWindPowerStationNameToSessionStorage();
|
|
|
|
|
|
if (this.address == '') {
|
|
@@ -986,9 +977,9 @@
|
|
|
if (this.address == '康保风电场') {
|
|
|
this.FDC = 'KB_FDC';
|
|
|
}
|
|
|
- uni.setStorageSync('windPowerStationId',this.FDC);
|
|
|
+ uni.setStorageSync('windPowerStationId', this.FDC);
|
|
|
+
|
|
|
|
|
|
-
|
|
|
},
|
|
|
onLoad: function() {
|
|
|
let that = this;
|
|
@@ -999,29 +990,18 @@
|
|
|
this.cWidth = uni.upx2px(750);
|
|
|
this.cHeight = uni.upx2px(400);
|
|
|
this.getServerData();
|
|
|
- this.getColumnData();
|
|
|
+ this.getColumnData();
|
|
|
this.windStationCardCWidth = 250;
|
|
|
this.windStationCardCHeight = 150;
|
|
|
- /*
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- */
|
|
|
this.target_comprehensive_indicators();
|
|
|
this.index_electricQuantity();
|
|
|
-
|
|
|
this.index_target_basic_indicators();
|
|
|
-
|
|
|
this.index_curve_columnar_five_loss();
|
|
|
this.target_windSpeed_power();
|
|
|
this.index_windturbine_status();
|
|
|
this.getWindStationCardData();
|
|
|
this.index_curve_columnar_windSpeed_power();
|
|
|
- this.index_windStation_card(); /* P6F8与P6F4冲突 */
|
|
|
-
|
|
|
+ this.index_windStation_card(); /* P6F8与P6F4冲突 */
|
|
|
},
|
|
|
computed: {
|
|
|
backStageIp: function() {
|
|
@@ -1055,27 +1035,58 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- viewUserid:function(){
|
|
|
+ viewUserid: function() {
|
|
|
let _this = this;
|
|
|
- _this.userid =uni.getStorageSync('userid')
|
|
|
+ _this.userid = uni.getStorageSync('userid')
|
|
|
//_this.userid = sessionStorage.getItem('userid');
|
|
|
uni.request({
|
|
|
- url: 'http://' + this.backStageIp + ':' + this.backStagePort + '/GyeeorganController/GyeeOrganList?userid=' + _this.userid,
|
|
|
+ url: 'http://' + this.backStageIp + ':' + this.backStagePort + '/GyeeorganController/GyeeOrganList?userid=' +
|
|
|
+ _this.userid,
|
|
|
data: {},
|
|
|
method: 'GET',
|
|
|
success: function(res) {
|
|
|
- for(let i=0;i<res.data.data.length;i++){
|
|
|
+ for (let i = 0; i < res.data.data.length; i++) {
|
|
|
// _this.name.push(res.data.data[i].describes);
|
|
|
// _this.windId.push(res.data.data[i].name);
|
|
|
}
|
|
|
- for(let j=0;j<res.data.data.length;j++){
|
|
|
+ for (let j = 0; j < res.data.data.length; j++) {
|
|
|
var a = {};
|
|
|
- _this.$set(a,"name",res.data.data[j].describes);
|
|
|
- _this.$set(a,"windId",res.data.data[j].name);
|
|
|
+ _this.$set(a, "name", res.data.data[j].describes);
|
|
|
+ _this.$set(a, "windId", res.data.data[j].name);
|
|
|
_this.plusDrawerList.push(a);
|
|
|
}
|
|
|
},
|
|
|
- })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ monitoringAuthority: function() {
|
|
|
+ let _this = this;
|
|
|
+ uni.request({
|
|
|
+ url: 'http://' + this.backStageIp + ':' + this.backStagePort +
|
|
|
+ '/GyeepermissionController/GyeePermissionList?userid=' + _this.userid,
|
|
|
+ data: {},
|
|
|
+ method: 'GET',
|
|
|
+ success: function(res) {
|
|
|
+ console.log(res);
|
|
|
+ for (let i = 0; i < res.data.data.length; i++) {
|
|
|
+ if (res.data.data[i].describes == "监视") {
|
|
|
+ var b = {};
|
|
|
+ _this.$set(b, "gyeePermissionList", res.data.data[i].gyeePermissionList);
|
|
|
+ _this.permissionsInformation.push(b);
|
|
|
+ console.log(_this.permissionsInformation);
|
|
|
+ for (let k = 0; k < _this.permissionsInformation[0].gyeePermissionList.length; k++) {
|
|
|
+ if (_this.permissionsInformation[0].gyeePermissionList[k].parent == 1) {
|
|
|
+ var c = {};
|
|
|
+ var d = {};
|
|
|
+ _this.$set(c, "name", _this.permissionsInformation[0].gyeePermissionList[k].permisssionname);
|
|
|
+ _this.$set(c, "remark1",_this.permissionsInformation[0].gyeePermissionList[k].remark1);
|
|
|
+ _this.drawerList.push(c);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(_this.drawerList)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
async index_curve_columnar_five_loss() {
|
|
|
Date.prototype.Format = function(fmt) {
|
|
@@ -1941,14 +1952,15 @@
|
|
|
_this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
|
|
|
// _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
|
|
|
_this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
|
|
|
- _this.showWindStationCardLineA3('windStationCanvasLineC', LineC);/*
|
|
|
- _this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
|
|
|
- _this.showWindStationCardLineA5('windStationCanvasLineE', LineE); */
|
|
|
+ _this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
|
|
|
+ /*
|
|
|
+ _this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
|
|
|
+ _this.showWindStationCardLineA5('windStationCanvasLineE', LineE); */
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
openDrawer: function() {
|
|
|
- this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
|
|
|
+ this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
|
|
|
},
|
|
|
closeDrawer: function() {
|
|
|
this.drawerIsShow = false;
|
|
@@ -2171,8 +2183,7 @@
|
|
|
],
|
|
|
series: [{
|
|
|
name: '功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#4BB94B',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2184,8 +2195,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '风速',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#E82E2F',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2197,8 +2207,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '理论功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#F5A83C',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2615,8 +2624,7 @@
|
|
|
],
|
|
|
series: [{
|
|
|
name: '功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#4BB94B',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2628,8 +2636,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '风速',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#E82E2F',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2641,8 +2648,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '理论功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#F5A83C',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2697,8 +2703,7 @@
|
|
|
],
|
|
|
series: [{
|
|
|
name: '功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#4BB94B',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2710,8 +2715,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '风速',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#E82E2F',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2723,8 +2727,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '理论功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#F5A83C',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2779,8 +2782,7 @@
|
|
|
],
|
|
|
series: [{
|
|
|
name: '功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#4BB94B',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2792,8 +2794,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '风速',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#E82E2F',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2805,8 +2806,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '理论功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#F5A83C',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2861,8 +2861,7 @@
|
|
|
],
|
|
|
series: [{
|
|
|
name: '功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#4BB94B',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2874,8 +2873,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '风速',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#E82E2F',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2887,8 +2885,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '理论功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#F5A83C',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2943,8 +2940,7 @@
|
|
|
],
|
|
|
series: [{
|
|
|
name: '功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#4BB94B',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2956,8 +2952,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '风速',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#E82E2F',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -2969,8 +2964,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: '理论功率',
|
|
|
- data: [
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
color: '#F5A83C',
|
|
|
textColor: '#FFFFFF',
|
|
|
textSize: this.seriesTextSize,
|
|
@@ -3683,7 +3677,7 @@
|
|
|
font-size: 35px;
|
|
|
line-height: 45px;
|
|
|
text-align: right;
|
|
|
-
|
|
|
+
|
|
|
margin-right: 2.5%;
|
|
|
}
|
|
|
|
|
@@ -4659,5 +4653,4 @@
|
|
|
.DrawerPage .cu-bar.tabbar .action {
|
|
|
flex: initial;
|
|
|
}
|
|
|
-
|
|
|
</style>
|