|
@@ -5,29 +5,29 @@
|
|
|
<el-row style="width: 100%">
|
|
|
<el-col :span="6">
|
|
|
<div style="text-align: center">
|
|
|
- <span class="elname">{{ this.elName }}</span>
|
|
|
+ <span class="elname"></span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="3.5">
|
|
|
<div style="display: flex;justify-content: space-around;padding-top: 2.5%">
|
|
|
<div class="myswitch">
|
|
|
- <el-switch
|
|
|
- v-model="sign"
|
|
|
- class="switchStyle"
|
|
|
- style="margin-left:20px;"
|
|
|
- active-text="限电"
|
|
|
- active-color="red"
|
|
|
- active-value="1"
|
|
|
- inactive-text="不限电"
|
|
|
- inactive-value="0"
|
|
|
- inactive-color="#40E0D0"
|
|
|
- @change="saveXD"
|
|
|
- />
|
|
|
+ <!-- <el-switch-->
|
|
|
+ <!-- v-model="sign"-->
|
|
|
+ <!-- class="switchStyle"-->
|
|
|
+ <!-- style="margin-left:20px;"-->
|
|
|
+ <!-- active-text="限电"-->
|
|
|
+ <!-- active-color="red"-->
|
|
|
+ <!-- active-value="1"-->
|
|
|
+ <!-- inactive-text="不限电"-->
|
|
|
+ <!-- inactive-value="0"-->
|
|
|
+ <!-- inactive-color="#40E0D0"-->
|
|
|
+ <!-- @change="saveXD"-->
|
|
|
+ <!-- />-->
|
|
|
</div>
|
|
|
<div class="qrcodeDiv">
|
|
|
- <svg class="icon" aria-hidden="true" @click="openQrcodeDrawer">
|
|
|
- <use xlink:href="#icon-erweima"></use>
|
|
|
- </svg>
|
|
|
+ <!-- <svg class="icon" aria-hidden="true" @click="openQrcodeDrawer">-->
|
|
|
+ <!-- <use xlink:href="#icon-erweima"></use>-->
|
|
|
+ <!-- </svg>-->
|
|
|
<!--<img src="./img/QRcode.png" width="40px" height="40px" style="cursor: pointer" @click="openQrcodeDrawer">-->
|
|
|
</div>
|
|
|
</div>
|
|
@@ -35,46 +35,39 @@
|
|
|
<el-col :span="7">
|
|
|
<div style="width:80%;margin-left: 5%">
|
|
|
<dv-border-box-7 :color="['#0c71d4']"
|
|
|
- style="height: 50px;line-height: 25px; text-align:center;border-radius: 10px">
|
|
|
- <span class="title-gl" style="color: #f4f4f5;font-size: 25px;font-family: 'mytext'"
|
|
|
- @click="changeConsole">
|
|
|
+ style="text-align:center;border-radius: 10px">
|
|
|
+ <span style="color: #f4f4f5;font-size: 25px;font-family: 'mytext'">
|
|
|
功率预测数据平台
|
|
|
</span>
|
|
|
- <div style="display: flex;justify-content: space-evenly;font-size: 10px;color: #f4f4f5;">
|
|
|
- <div>后台管理:{{ this.consoleVersion }}</div>
|
|
|
- <div>统计查询:{{ this.reportVersion }}</div>
|
|
|
- <div>系统监控:{{ this.monitorVersion }}</div>
|
|
|
- <div>lib:{{ this.libVersion }}</div>
|
|
|
- </div>
|
|
|
</dv-border-box-7>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<div style="display: flex;justify-content: space-around;margin-top: 2.5%">
|
|
|
- <div>
|
|
|
- <audio muted ref="mySummaryAudio" :src="summaryAudioUrl"/>
|
|
|
- <el-button class="waringbutt" size="small" @click="openDraw">
|
|
|
- 修改通道告警通知
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- <el-tooltip effect="dark" placement="bottom">
|
|
|
- <div slot="content">{{isAbnormalInfo}}</div>
|
|
|
- <el-button :class="statusFlag=='true'? 'barbutt' : 'waringbutt'" size="small" @click="equipmentInfo">
|
|
|
- 环境数据展示
|
|
|
- </el-button>
|
|
|
- </el-tooltip>
|
|
|
+ <!-- <div>-->
|
|
|
+ <!-- <audio muted ref="mySummaryAudio" :src="summaryAudioUrl"/>-->
|
|
|
+ <!-- <el-button class="waringbutt" size="small" @click="openDraw">-->
|
|
|
+ <!-- 修改通道告警通知-->
|
|
|
+ <!-- </el-button>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- <el-tooltip effect="dark" placement="bottom">-->
|
|
|
+ <!-- <div slot="content">{{isAbnormalInfo}}</div>-->
|
|
|
+ <!-- <el-button :class="statusFlag=='true'? 'barbutt' : 'waringbutt'" size="small" @click="equipmentInfo">-->
|
|
|
+ <!-- 环境数据展示-->
|
|
|
+ <!-- </el-button>-->
|
|
|
+ <!-- </el-tooltip>-->
|
|
|
|
|
|
<el-button class="waringbutt" size="small" @click="jump">
|
|
|
后台数据展示
|
|
|
</el-button>
|
|
|
- <el-tooltip placement="bottom" content="扫码小程序" effect="dark" v-show="showAbout">
|
|
|
- <el-button class="waringbutt" icon="el-icon-full-screen" circle size="small"
|
|
|
- @click="appletsDialogVisible=true"/>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip placement="bottom" content="关于我们" effect="dark" v-show="showAbout">
|
|
|
- <el-button class="waringbutt" icon="el-icon-s-custom" circle size="small"
|
|
|
- @click="aboutusDialogVisible=true"/>
|
|
|
- </el-tooltip>
|
|
|
+ <!-- <el-tooltip placement="bottom" content="扫码小程序" effect="dark" v-show="showAbout">-->
|
|
|
+ <!-- <el-button class="waringbutt" icon="el-icon-full-screen" circle size="small"-->
|
|
|
+ <!-- @click="appletsDialogVisible=true"/>-->
|
|
|
+ <!-- </el-tooltip>-->
|
|
|
+ <!-- <el-tooltip placement="bottom" content="关于我们" effect="dark" v-show="showAbout">-->
|
|
|
+ <!-- <el-button class="waringbutt" icon="el-icon-s-custom" circle size="small"-->
|
|
|
+ <!-- @click="aboutusDialogVisible=true"/>-->
|
|
|
+ <!-- </el-tooltip>-->
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -317,9 +310,9 @@
|
|
|
aboutusDialogVisible: false,
|
|
|
appletsDialogVisible: false,
|
|
|
time: '',
|
|
|
- sign: '0',
|
|
|
+ // sign: '0',
|
|
|
value15: '0',
|
|
|
- elName: '',
|
|
|
+ // elName: '',
|
|
|
eqId: '',
|
|
|
timer: '',
|
|
|
qrtimer: '',
|
|
@@ -379,8 +372,8 @@
|
|
|
this.daysRemainTimer = setInterval(this.getServiceExpirationDays, 1000 * 60 * 60)
|
|
|
this.nowTime()
|
|
|
this.nowTimer = setInterval(this.nowTime, 1000 * 60)
|
|
|
- this.queryXD()
|
|
|
- this.getVersion()
|
|
|
+ // this.queryXD()
|
|
|
+ // this.getVersion()
|
|
|
this.init()
|
|
|
this.getEl()
|
|
|
this.test = setInterval(this.init, 60 * 1000)
|
|
@@ -415,14 +408,14 @@
|
|
|
if (gs != "2") {
|
|
|
this.showAbout = true
|
|
|
}
|
|
|
- Promise.all([this.getChannelStatus(), this.getChannelAlarmInfo()]).then((res) => {
|
|
|
+ Promise.all([this.getChannelStatus()]).then((res) => {
|
|
|
this.analysisList = res[0].analysisList
|
|
|
this.callBackList = res[0].callBackList
|
|
|
this.dataexchangeList = res[0].dataexchangeList
|
|
|
this.uploadList = res[0].uploadList
|
|
|
- this.channelAlarmList = res[1]
|
|
|
+ // this.channelAlarmList = res[1]
|
|
|
var data = []
|
|
|
- var valueList = []
|
|
|
+ // var valueList = []
|
|
|
if (this.analysisList.length > 0) {
|
|
|
for (var i = 0; i < this.analysisList.length; i++) {
|
|
|
if (this.analysisList[i].channelStatus === '0') {
|
|
@@ -479,42 +472,42 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- for (var i = 0; i < this.channelAlarmList.length; i++) {
|
|
|
- for (var j = 0; j < data.length; j++) {
|
|
|
- if (data[j].id === this.channelAlarmList[i].channelId) {
|
|
|
- valueList.push(data[j].key)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (var i = 0; i < this.channelAlarmList.length; i++) {
|
|
|
+ // for (var j = 0; j < data.length; j++) {
|
|
|
+ // if (data[j].id === this.channelAlarmList[i].channelId) {
|
|
|
+ // valueList.push(data[j].key)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.dataList = data
|
|
|
- this.valueList = valueList
|
|
|
- this.getLeftChannel()
|
|
|
- this.getEnvirStatus()
|
|
|
+ // this.valueList = valueList
|
|
|
+ // this.getLeftChannel()
|
|
|
+ // this.getEnvirStatus()
|
|
|
})
|
|
|
},
|
|
|
- getLeftChannel() {
|
|
|
- var waringLeft = this.dataList
|
|
|
- var waringRight = this.valueList
|
|
|
- var temp = []
|
|
|
- for (let i = 0; i < waringLeft.length; i++) {
|
|
|
- var flag = true
|
|
|
- a:for (let j = 0; j < waringRight.length; j++) {
|
|
|
- var is = waringRight[j].indexOf('-')
|
|
|
- var right = waringRight[j].substring((is + 1), (waringRight[j].length + 1))
|
|
|
- if (waringLeft[i].id == right) {
|
|
|
- flag = false
|
|
|
- break a
|
|
|
- }
|
|
|
- }
|
|
|
- if (flag) {
|
|
|
- temp.push(waringLeft[i])
|
|
|
- if (waringLeft[i].channelStatus == '0') {
|
|
|
- this.summaryAudioClick()
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ // getLeftChannel() {
|
|
|
+ // var waringLeft = this.dataList
|
|
|
+ // var waringRight = this.valueList
|
|
|
+ // var temp = []
|
|
|
+ // for (let i = 0; i < waringLeft.length; i++) {
|
|
|
+ // var flag = true
|
|
|
+ // a:for (let j = 0; j < waringRight.length; j++) {
|
|
|
+ // var is = waringRight[j].indexOf('-')
|
|
|
+ // var right = waringRight[j].substring((is + 1), (waringRight[j].length + 1))
|
|
|
+ // if (waringLeft[i].id == right) {
|
|
|
+ // flag = false
|
|
|
+ // break a
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (flag) {
|
|
|
+ // temp.push(waringLeft[i])
|
|
|
+ // if (waringLeft[i].channelStatus == '0') {
|
|
|
+ // this.summaryAudioClick()
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
/*父给子通道信息*/
|
|
|
toTunnelList(list, name) {
|
|
|
this.onshow = true
|
|
@@ -591,34 +584,34 @@
|
|
|
this.libVersion = res.data[0].libVersion
|
|
|
})
|
|
|
},
|
|
|
- saveXD(val) {
|
|
|
- var sign = 0
|
|
|
- if (val === '1') {
|
|
|
- sign = 1
|
|
|
- }
|
|
|
- var PowerLimitPlanSign = {
|
|
|
- id: 1,
|
|
|
- sign: sign
|
|
|
- }
|
|
|
- this.$axios.post('/dashboard/savePowerLimitPlanSign', PowerLimitPlanSign).then(res => {
|
|
|
-
|
|
|
- }).catch((error) => {
|
|
|
- this.$message.error('保存限电标识出错' + error)
|
|
|
- })
|
|
|
- },
|
|
|
- queryXD() {
|
|
|
- this.$axios.get('/dashboard/getPowerLimitPlanSign').then((res) => {
|
|
|
- if (res.data.sign === 1) {
|
|
|
- // 限电
|
|
|
- this.sign = '1'
|
|
|
- } else {
|
|
|
- // 不限电
|
|
|
- this.sign = '0'
|
|
|
- }
|
|
|
- }).catch((error) => {
|
|
|
- this.$message.error('查询限电标识出错' + error)
|
|
|
- })
|
|
|
- },
|
|
|
+ // saveXD(val) {
|
|
|
+ // var sign = 0
|
|
|
+ // if (val === '1') {
|
|
|
+ // sign = 1
|
|
|
+ // }
|
|
|
+ // var PowerLimitPlanSign = {
|
|
|
+ // id: 1,
|
|
|
+ // sign: sign
|
|
|
+ // }
|
|
|
+ // this.$axios.post('/dashboard/savePowerLimitPlanSign', PowerLimitPlanSign).then(res => {
|
|
|
+ //
|
|
|
+ // }).catch((error) => {
|
|
|
+ // this.$message.error('保存限电标识出错' + error)
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ // queryXD() {
|
|
|
+ // this.$axios.get('/dashboard/getPowerLimitPlanSign').then((res) => {
|
|
|
+ // if (res.data.sign === 1) {
|
|
|
+ // // 限电
|
|
|
+ // this.sign = '1'
|
|
|
+ // } else {
|
|
|
+ // // 不限电
|
|
|
+ // this.sign = '0'
|
|
|
+ // }
|
|
|
+ // }).catch((error) => {
|
|
|
+ // this.$message.error('查询限电标识出错' + error)
|
|
|
+ // })
|
|
|
+ // },
|
|
|
equipmentInfo() {
|
|
|
this.filterbg = true
|
|
|
this.topup = true
|
|
@@ -650,15 +643,15 @@
|
|
|
openDraw() {
|
|
|
this.drawer = true
|
|
|
},
|
|
|
- openQrcodeDrawer() {
|
|
|
- this.qrcodeDrawer = true
|
|
|
- this.qrtimer = new Date().getTime()
|
|
|
- this.url = ''
|
|
|
- },
|
|
|
- colseQrcode() {
|
|
|
- this.qrcodeDrawer = false
|
|
|
- this.url = '/aboutus.png'
|
|
|
- },
|
|
|
+ // openQrcodeDrawer() {
|
|
|
+ // this.qrcodeDrawer = true
|
|
|
+ // this.qrtimer = new Date().getTime()
|
|
|
+ // this.url = ''
|
|
|
+ // },
|
|
|
+ // colseQrcode() {
|
|
|
+ // this.qrcodeDrawer = false
|
|
|
+ // this.url = '/aboutus.png'
|
|
|
+ // },
|
|
|
summaryAudioClick() {
|
|
|
const that = this
|
|
|
if (that.summaryAudioStatus == 'pause') {
|