mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
系统总览布局,场站运行模式
This commit is contained in:
@@ -78,7 +78,7 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
height: calc(100% - 45px);
|
||||
.oper-bg {
|
||||
font-size: 1vw;
|
||||
display: flex;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios'
|
||||
import openNotification from '../utils/notification'
|
||||
// import { message } from 'ant-design-vue'
|
||||
|
||||
import router from 'vue-router'
|
||||
const service = axios.create({
|
||||
baseURL: '/api',
|
||||
timeout: 120000
|
||||
@@ -17,13 +17,14 @@ service.interceptors.response.use(
|
||||
const res = response.data
|
||||
|
||||
if (res.errCode !== 0) {
|
||||
console.log(res, 'res')
|
||||
if ((res.ERR_TOKEN = 2 || res.errmsg == '校验token过期')) {
|
||||
setTimeout(() => {
|
||||
// router.push({ path: '/login' })
|
||||
}, 1000)
|
||||
} else {
|
||||
console.log(res.errmsg, 'res.errmsg')
|
||||
message.error(res.errmsg)
|
||||
// message.error(res.errmsg)
|
||||
// openNotification({
|
||||
// status: 'error',
|
||||
// desc: res.tip
|
||||
|
||||
@@ -13,11 +13,11 @@ export const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: '/',
|
||||
redirect: '/Home',
|
||||
redirect: '/home',
|
||||
component: () => import(/* webpackChunkName: "main" */ '@/views/MainView.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'Home',
|
||||
path: 'home',
|
||||
component: () => import(/* webpackChunkName: "monitor" */ '@/views/sub/Home.vue')
|
||||
},
|
||||
{
|
||||
|
||||
@@ -257,7 +257,7 @@ export default {
|
||||
}
|
||||
|
||||
.tianditu {
|
||||
width: calc(100% - 520px * 2);
|
||||
width: 44%;
|
||||
height: 100%;
|
||||
margin: 0px 15px;
|
||||
}
|
||||
@@ -265,7 +265,7 @@ export default {
|
||||
.content-left,
|
||||
.content-right {
|
||||
height: 100%;
|
||||
width: 520px;
|
||||
width: 28%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -21,11 +21,10 @@
|
||||
</template>
|
||||
<template #work_mode="record">
|
||||
<span>{{ workModeList.find((item) => record.value == item.value)?.label || '' }}</span>
|
||||
</template>
|
||||
</template>
|
||||
<template #policy_id="record">
|
||||
<span>{{ policyList.find((item) => record.value == item.value)?.label || '' }}</span>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
<template #action="record">
|
||||
<OperateCom :record="record" :operate-list="operateList" @operateForm="operateForm" />
|
||||
</template>
|
||||
@@ -78,16 +77,24 @@ export default {
|
||||
paramsDate: {},
|
||||
workModeList: [
|
||||
{
|
||||
label: '最优经济化',
|
||||
value: 1
|
||||
label: '峰谷套利',
|
||||
value: '1'
|
||||
},
|
||||
{
|
||||
label: '支撑电网稳定',
|
||||
value: 2
|
||||
label: '增网配容',
|
||||
value: '2'
|
||||
},
|
||||
{
|
||||
label: '自定义',
|
||||
value: 3
|
||||
label: '应急供电',
|
||||
value: '3'
|
||||
},
|
||||
{
|
||||
label: '并网保电',
|
||||
value: '4'
|
||||
},
|
||||
{
|
||||
label: '自定时段',
|
||||
value: '5'
|
||||
}
|
||||
],
|
||||
policyList: [
|
||||
|
||||
Reference in New Issue
Block a user