枚举更新
This commit is contained in:
@ -2,9 +2,9 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
// todo 打包项目时切换baseUrl
|
// todo 打包项目时切换baseUrl
|
||||||
// 测试环境
|
// 测试环境
|
||||||
// baseUrl: 'http://110.40.171.179:8089',
|
baseUrl: 'http://110.40.171.179:8089',
|
||||||
// 生产环境
|
// 生产环境
|
||||||
baseUrl: 'http://1.15.120.242:8089',
|
// baseUrl: 'http://1.15.120.242:8089',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
|
|||||||
@ -99,7 +99,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import Chart from './Chart.vue'
|
|
||||||
import DateRangeSelect from './../DateRangeSelect.vue'
|
import DateRangeSelect from './../DateRangeSelect.vue'
|
||||||
import {
|
import {
|
||||||
getStackNameList,
|
getStackNameList,
|
||||||
@ -111,14 +110,6 @@
|
|||||||
mapState
|
mapState
|
||||||
} from 'vuex'
|
} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
|
||||||
...mapState({
|
|
||||||
workStatusOptions: (state) =>
|
|
||||||
state.ems.workStatusOptions,
|
|
||||||
communicationStatusOptions: (state) =>
|
|
||||||
state.ems.communicationStatusOptions,
|
|
||||||
})
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
DateRangeSelect
|
DateRangeSelect
|
||||||
},
|
},
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<uni-collapse ref="collapse" accordion v-if="list.length > 0">
|
<uni-collapse ref="collapse" accordion v-if="list.length > 0">
|
||||||
<uni-collapse-item v-for="(item,index) in list" :key="item.deviceId+'pcs'" :open="index===0"
|
<uni-collapse-item v-for="(item,index) in list" :key="item.deviceId+'pcs'" :open="index===0"
|
||||||
:class="item.workStatus === '1' ? 'danger' : item.workStatus === '2' ? 'close' : 'running'">
|
:class="item.workStatus === '2' ? 'danger' : item.workStatus === '1' ? 'close' : 'running'">
|
||||||
<template v-slot:title>
|
<template v-slot:title>
|
||||||
<view class="title-row">
|
<view class="title-row">
|
||||||
<view class="title">{{index+1}}#{{item.deviceName || ''}}</view>
|
<view class="title">{{index+1}}#{{item.deviceName || ''}}</view>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<view class="grid-item-box">
|
<view class="grid-item-box">
|
||||||
<view class="title">设备状态</view>
|
<view class="title">设备状态</view>
|
||||||
<text class="text"
|
<text class="text"
|
||||||
:class="item.deviceStatus === '2' ? 'status-running' : 'status-danger'">{{deviceStatusOptions[item.deviceStatus]}}</text>
|
:class="item.deviceStatus === '1' ? 'status-running' : 'status-danger'">{{deviceStatusOptions[item.deviceStatus]}}</text>
|
||||||
</view>
|
</view>
|
||||||
</uni-grid-item>
|
</uni-grid-item>
|
||||||
<uni-grid-item>
|
<uni-grid-item>
|
||||||
|
|||||||
@ -1,18 +1,14 @@
|
|||||||
const ems = {
|
const ems = {
|
||||||
state: {
|
state: {
|
||||||
workStatusOptions: {
|
workStatusOptions: {
|
||||||
'0': '正常',
|
'0': '运行',
|
||||||
'1': '异常',
|
'1': '停机',
|
||||||
'2': '停止'
|
'2': '故障'
|
||||||
}, //工作状态
|
}, //工作状态
|
||||||
deviceStatusOptions: {
|
deviceStatusOptions: {
|
||||||
'0': '离线',
|
'0': '离线',
|
||||||
'1': '待机',
|
'1': '在线'
|
||||||
'2': '运行',
|
|
||||||
'3': '故障',
|
|
||||||
'4': '停机'
|
|
||||||
}, //设备状态
|
}, //设备状态
|
||||||
|
|
||||||
gridStatusOptions: {
|
gridStatusOptions: {
|
||||||
'0': '并网',
|
'0': '并网',
|
||||||
'1': '未并网'
|
'1': '未并网'
|
||||||
@ -65,7 +61,8 @@ const ems = {
|
|||||||
}, //策略状态
|
}, //策略状态
|
||||||
chargeStatusOptions: {
|
chargeStatusOptions: {
|
||||||
'1': '充电',
|
'1': '充电',
|
||||||
'2': '待机'
|
'2': '待机',
|
||||||
|
'3': '放电'
|
||||||
}, //冲放状态
|
}, //冲放状态
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user