系统总览布局,场站运行模式

This commit is contained in:
ym1026
2025-09-12 10:09:58 +08:00
parent 1a22f45b26
commit e8487041d2
6 changed files with 35 additions and 20 deletions

View File

@@ -225,7 +225,6 @@ export const columnList = [
key: 'policy_id', key: 'policy_id',
scopedSlots: { customRender: 'policy_id' } scopedSlots: { customRender: 'policy_id' }
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'operate', dataIndex: 'operate',
@@ -671,16 +670,24 @@ export const stationOptions = [
type: 'select', type: 'select',
list: [ list: [
{ {
label: '最优经济化', label: '峰谷套利',
value: '1' value: '1'
}, },
{ {
label: '支撑电网稳定', label: '增网配容',
value: '2' value: '2'
}, },
{ {
label: '自定义', label: '应急供电',
value: '3' value: '3'
},
{
label: '并网保电',
value: '4'
},
{
label: '自定时段',
value: '5'
} }
] ]
}, },

View File

@@ -78,7 +78,7 @@ export default {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
height: 100%; height: calc(100% - 45px);
.oper-bg { .oper-bg {
font-size: 1vw; font-size: 1vw;
display: flex; display: flex;

View File

@@ -1,7 +1,7 @@
import axios from 'axios' import axios from 'axios'
import openNotification from '../utils/notification' import openNotification from '../utils/notification'
// import { message } from 'ant-design-vue' // import { message } from 'ant-design-vue'
import router from 'vue-router'
const service = axios.create({ const service = axios.create({
baseURL: '/api', baseURL: '/api',
timeout: 120000 timeout: 120000
@@ -17,13 +17,14 @@ service.interceptors.response.use(
const res = response.data const res = response.data
if (res.errCode !== 0) { if (res.errCode !== 0) {
console.log(res, 'res')
if ((res.ERR_TOKEN = 2 || res.errmsg == '校验token过期')) { if ((res.ERR_TOKEN = 2 || res.errmsg == '校验token过期')) {
setTimeout(() => { setTimeout(() => {
// router.push({ path: '/login' }) // router.push({ path: '/login' })
}, 1000) }, 1000)
} else { } else {
console.log(res.errmsg, 'res.errmsg') console.log(res.errmsg, 'res.errmsg')
message.error(res.errmsg) // message.error(res.errmsg)
// openNotification({ // openNotification({
// status: 'error', // status: 'error',
// desc: res.tip // desc: res.tip

View File

@@ -13,11 +13,11 @@ export const routes = [
{ {
path: '/', path: '/',
name: '/', name: '/',
redirect: '/Home', redirect: '/home',
component: () => import(/* webpackChunkName: "main" */ '@/views/MainView.vue'), component: () => import(/* webpackChunkName: "main" */ '@/views/MainView.vue'),
children: [ children: [
{ {
path: 'Home', path: 'home',
component: () => import(/* webpackChunkName: "monitor" */ '@/views/sub/Home.vue') component: () => import(/* webpackChunkName: "monitor" */ '@/views/sub/Home.vue')
}, },
{ {

View File

@@ -257,7 +257,7 @@ export default {
} }
.tianditu { .tianditu {
width: calc(100% - 520px * 2); width: 44%;
height: 100%; height: 100%;
margin: 0px 15px; margin: 0px 15px;
} }
@@ -265,7 +265,7 @@ export default {
.content-left, .content-left,
.content-right { .content-right {
height: 100%; height: 100%;
width: 520px; width: 28%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;

View File

@@ -25,7 +25,6 @@
<template #policy_id="record"> <template #policy_id="record">
<span>{{ policyList.find((item) => record.value == item.value)?.label || '' }}</span> <span>{{ policyList.find((item) => record.value == item.value)?.label || '' }}</span>
</template> </template>
<template #action="record"> <template #action="record">
<OperateCom :record="record" :operate-list="operateList" @operateForm="operateForm" /> <OperateCom :record="record" :operate-list="operateList" @operateForm="operateForm" />
</template> </template>
@@ -78,16 +77,24 @@ export default {
paramsDate: {}, paramsDate: {},
workModeList: [ workModeList: [
{ {
label: '最优经济化', label: '峰谷套利',
value: 1 value: '1'
}, },
{ {
label: '支撑电网稳定', label: '增网配容',
value: 2 value: '2'
}, },
{ {
label: '自定义', label: '应急供电',
value: 3 value: '3'
},
{
label: '并网保电',
value: '4'
},
{
label: '自定时段',
value: '5'
} }
], ],
policyList: [ policyList: [