|
@@ -177,18 +177,10 @@
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
address: '',
|
|
address: '',
|
|
|
|
+ userid:'',
|
|
|
|
+ permissionsInformation:[],
|
|
badge: 22,
|
|
badge: 22,
|
|
- drawerList: [{
|
|
|
|
- name: '首页'
|
|
|
|
- }, {
|
|
|
|
- name: '状态监视'
|
|
|
|
- }, {
|
|
|
|
- name: '矩阵监视'
|
|
|
|
- }, {
|
|
|
|
- name: '风场监视'
|
|
|
|
- }, {
|
|
|
|
- name: '人员监视'
|
|
|
|
- }],
|
|
|
|
|
|
+ drawerList: [],
|
|
plusDrawerList: [],
|
|
plusDrawerList: [],
|
|
windStationName: '',
|
|
windStationName: '',
|
|
modalWindStationName: '',
|
|
modalWindStationName: '',
|
|
@@ -1192,53 +1184,19 @@
|
|
// this.windStationListHeight=(this.windStation.length*50+40)+"px"
|
|
// this.windStationListHeight=(this.windStation.length*50+40)+"px"
|
|
// },
|
|
// },
|
|
onShow() {
|
|
onShow() {
|
|
- this.windPowerStationId = uni.getStorageSync('windPowerStationId');
|
|
|
|
- this.address = this.getWindPowerStationNameToSessionStorage();
|
|
|
|
- if (this.address == '宁夏新能源公司') {
|
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '麻黄山风电场') {
|
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '牛首山风电场') {
|
|
|
|
- this.FDC = 'NSS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '石板泉风电场') {
|
|
|
|
- this.FDC = 'SBQ_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '青山风电场') {
|
|
|
|
- this.FDC = 'QS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '香山风电场') {
|
|
|
|
- this.FDC = 'XS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '河北能源集团') {
|
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '崇礼风电场') {
|
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '康保风电场') {
|
|
|
|
- this.FDC = 'KB_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '代县风电场') {
|
|
|
|
- this.FDC = 'DX_FDC';
|
|
|
|
- }
|
|
|
|
|
|
+ this.address = this.dataprocessing.getWindPowerStationName();
|
|
|
|
+ this.FDC = this.dataprocessing.getWindPowerStationId();
|
|
|
|
+ this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
|
|
|
|
+
|
|
},
|
|
},
|
|
created: function() {
|
|
created: function() {
|
|
this.viewUserid();
|
|
this.viewUserid();
|
|
- this.address = this.getWindPowerStationNameToSessionStorage();
|
|
|
|
|
|
+ this.monitoringAuthority();
|
|
|
|
|
|
- this.windPowerStationId = uni.getStorageSync('windPowerStationId');
|
|
|
|
- this.FDC = uni.getStorageSync('windPowerStationId');
|
|
|
|
|
|
+ this.address = this.dataprocessing.getWindPowerStationName();
|
|
|
|
+ this.FDC = this.dataprocessing.getWindPowerStationId();
|
|
|
|
+ this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
|
|
|
|
|
|
- if (this.address == '宁夏新能源公司') {
|
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.address == '河北能源集团') {
|
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
|
- }
|
|
|
|
- uni.setStorageSync('windPowerStationId', this.FDC);
|
|
|
|
this.$nextTick(function() {
|
|
this.$nextTick(function() {
|
|
//this.getWeatherDataToday();
|
|
//this.getWeatherDataToday();
|
|
//this.getWeatherData7();
|
|
//this.getWeatherData7();
|
|
@@ -1248,66 +1206,9 @@
|
|
this.cWidth40 = uni.upx2px(5000);
|
|
this.cWidth40 = uni.upx2px(5000);
|
|
this.cHeight40 = uni.upx2px(350);
|
|
this.cHeight40 = uni.upx2px(350);
|
|
|
|
|
|
- if (this.address == '宁夏新能源公司') {
|
|
|
|
- this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'MHS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '麻黄山风电场') {
|
|
|
|
- this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'MHS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '牛首山风电场') {
|
|
|
|
- this.windStation = ['牛首山风电场', '麻黄山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'NSS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '石板泉风电场') {
|
|
|
|
- this.windStation = ['石板泉风电场', '麻黄山风电场', '牛首山风电场', '青山风电场', '香山风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'SBQ_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '香山风电场') {
|
|
|
|
- this.windStation = ['香山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'XS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '青山风电场') {
|
|
|
|
- this.windStation = ['青山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '香山风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '河北能源集团') {
|
|
|
|
- this.windStation = ['崇礼风电场', '康保风电场', '代县风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '崇礼风电场') {
|
|
|
|
- this.windStation = ['崇礼风电场', '康保风电场', '代县风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '康保风电场') {
|
|
|
|
- this.windStation = ['康保风电场', '崇礼风电场', '代县风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
- if (this.address == '代县风电场') {
|
|
|
|
- this.windStation = ['代县风电场', '康保风电场', '崇礼风电场'];
|
|
|
|
- this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
- // this.windPowerStationId = 'QS_FDC';
|
|
|
|
- // this.getWeatherDataToday();
|
|
|
|
- }
|
|
|
|
|
|
+ this.windStation = this.dataprocessing.getWindPowerStationNameByNames(this.address);
|
|
|
|
+ this.windStationName = this.windStation[0].replace('风电场', '');
|
|
|
|
+
|
|
this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
|
|
this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
|
|
this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
|
|
this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
|
|
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
|
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
|
@@ -1356,6 +1257,37 @@
|
|
},
|
|
},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ monitoringAuthority: function() {
|
|
|
|
+ let _this = this;
|
|
|
|
+ _this.userid = uni.getStorageSync('userid')
|
|
|
|
+ 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)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
pushWindPowerStationNameToSessionStorage(windpowerstationName) {
|
|
pushWindPowerStationNameToSessionStorage(windpowerstationName) {
|
|
uni.setStorageSync('windpowerstationName', windpowerstationName);
|
|
uni.setStorageSync('windpowerstationName', windpowerstationName);
|
|
//sessionStorage.setItem('windpowerstationName', windpowerstationName);
|
|
//sessionStorage.setItem('windpowerstationName', windpowerstationName);
|
|
@@ -1391,45 +1323,21 @@
|
|
this.modalName = null;
|
|
this.modalName = null;
|
|
},
|
|
},
|
|
choiceWindStation: function(item, index) {
|
|
choiceWindStation: function(item, index) {
|
|
- this.choiceIndex = index;
|
|
|
|
- this.windStationName = item.replace('风电场', '');
|
|
|
|
- this.modalWindStationName = item.replace('风电场', '');
|
|
|
|
- this.address = item;
|
|
|
|
- this.pushWindPowerStationNameToSessionStorage(item);
|
|
|
|
- let _this = this;
|
|
|
|
- setTimeout(function() {
|
|
|
|
- // _this.hideModal();
|
|
|
|
- _this.showCenterVisible = false;
|
|
|
|
- _this.choiceIndex = -1;
|
|
|
|
- _this.cardCur = index;
|
|
|
|
- }, 1000);
|
|
|
|
- if (this.windStationName == '麻黄山') {
|
|
|
|
-
|
|
|
|
- this.FDC = 'MHS_FDC';
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '牛首山') {
|
|
|
|
- this.FDC = 'NSS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '石板泉') {
|
|
|
|
- this.FDC = 'SBQ_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '青山') {
|
|
|
|
- this.FDC = 'QS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '香山') {
|
|
|
|
- this.FDC = 'XS_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '崇礼') {
|
|
|
|
- this.FDC = 'CL_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '康保') {
|
|
|
|
- this.FDC = 'KB_FDC';
|
|
|
|
- }
|
|
|
|
- if (this.windStationName == '代县') {
|
|
|
|
- this.FDC = 'YMG_FDC';
|
|
|
|
- }
|
|
|
|
|
|
+ this.choiceIndex = index;
|
|
|
|
+ this.windStationName = item.replace('风电场', '');
|
|
|
|
+ this.modalWindStationName = item.replace('风电场', '');
|
|
|
|
+ this.address = item;
|
|
|
|
+ this.pushWindPowerStationNameToSessionStorage(item);
|
|
|
|
+ let _this = this;
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ // _this.hideModal();
|
|
|
|
+ _this.showCenterVisible = false;
|
|
|
|
+ _this.choiceIndex = -1;
|
|
|
|
+ _this.cardCur = index;
|
|
|
|
+ }, 1000);
|
|
|
|
+ this.FDC =this.dataprocessing.getWindPowerStationNameById(item);
|
|
|
|
|
|
|
|
+ this.dataprocessing.putWindPowerStationId(this.FDC);
|
|
},
|
|
},
|
|
getWindMotorStatusCard: function() {
|
|
getWindMotorStatusCard: function() {
|
|
this.jieRu = 0;
|
|
this.jieRu = 0;
|
|
@@ -1561,10 +1469,10 @@
|
|
this.cardCur = e.detail.current;
|
|
this.cardCur = e.detail.current;
|
|
for (let i = 0; i < this.windStation.length; i++) {
|
|
for (let i = 0; i < this.windStation.length; i++) {
|
|
if (this.cardCur == i) {
|
|
if (this.cardCur == i) {
|
|
-
|
|
|
|
|
|
+
|
|
if (this.windStation[i].search('风电场') != -1) {
|
|
if (this.windStation[i].search('风电场') != -1) {
|
|
-
|
|
|
|
- this.address=this.windStation[i];
|
|
|
|
|
|
+
|
|
|
|
+ this.address = this.windStation[i];
|
|
this.windStationName = this.windStation[i].replace('风电场', '');
|
|
this.windStationName = this.windStation[i].replace('风电场', '');
|
|
} else {
|
|
} else {
|
|
this.windStationName = this.windStation[i];
|
|
this.windStationName = this.windStation[i];
|