From e8487041d22d9848320ad17754ed1447b5c2403e Mon Sep 17 00:00:00 2001 From: ym1026 <1539963735@qq.com> Date: Fri, 12 Sep 2025 10:09:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=80=BB=E8=A7=88?= =?UTF-8?q?=E5=B8=83=E5=B1=80=EF=BC=8C=E5=9C=BA=E7=AB=99=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/config/columnList.js | 15 +++++++++++---- web/src/components/Home/Operational.vue | 2 +- web/src/request/index.js | 5 +++-- web/src/router/index.js | 4 ++-- web/src/views/sub/Home.vue | 4 ++-- web/src/views/system/station.vue | 25 ++++++++++++++++--------- 6 files changed, 35 insertions(+), 20 deletions(-) diff --git a/web/public/config/columnList.js b/web/public/config/columnList.js index 42b1c99..3620499 100644 --- a/web/public/config/columnList.js +++ b/web/public/config/columnList.js @@ -225,7 +225,6 @@ export const columnList = [ key: 'policy_id', scopedSlots: { customRender: 'policy_id' } }, - { title: '操作', dataIndex: 'operate', @@ -671,16 +670,24 @@ export const stationOptions = [ type: 'select', list: [ { - label: '最优经济化', + label: '峰谷套利', value: '1' }, { - label: '支撑电网稳定', + label: '增网配容', value: '2' }, { - label: '自定义', + label: '应急供电', value: '3' + }, + { + label: '并网保电', + value: '4' + }, + { + label: '自定时段', + value: '5' } ] }, diff --git a/web/src/components/Home/Operational.vue b/web/src/components/Home/Operational.vue index 553878a..a75612f 100644 --- a/web/src/components/Home/Operational.vue +++ b/web/src/components/Home/Operational.vue @@ -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; diff --git a/web/src/request/index.js b/web/src/request/index.js index c8e7e27..a5c6afe 100644 --- a/web/src/request/index.js +++ b/web/src/request/index.js @@ -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 diff --git a/web/src/router/index.js b/web/src/router/index.js index 0743483..8a545e5 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -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') }, { diff --git a/web/src/views/sub/Home.vue b/web/src/views/sub/Home.vue index 0381e2f..5754b6b 100644 --- a/web/src/views/sub/Home.vue +++ b/web/src/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; diff --git a/web/src/views/system/station.vue b/web/src/views/system/station.vue index 3cffad1..9ffad72 100644 --- a/web/src/views/system/station.vue +++ b/web/src/views/system/station.vue @@ -21,11 +21,10 @@ + - + @@ -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: [ From f0720439d2e91d471aa0b776973c3cc8e203b454 Mon Sep 17 00:00:00 2001 From: ym1026 <1539963735@qq.com> Date: Fri, 12 Sep 2025 10:58:59 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/config/columnList.js | 30 +---- web/src/components/ComTable.vue | 10 +- web/src/components/EditCom.vue | 121 +++++++++++++----- web/src/components/TreeTable.vue | 5 + web/src/router/index.js | 40 +++++- web/src/style/antd.scss | 13 +- web/src/views/statisticalAnalysis.vue | 174 ++++++++++++-------------- web/src/views/system/permission.vue | 1 - web/src/views/system/role.vue | 3 +- web/src/views/system/service.vue | 3 +- web/src/views/system/station.vue | 3 +- web/src/views/system/user.vue | 2 + 12 files changed, 246 insertions(+), 159 deletions(-) diff --git a/web/public/config/columnList.js b/web/public/config/columnList.js index 3620499..fdba700 100644 --- a/web/public/config/columnList.js +++ b/web/public/config/columnList.js @@ -228,6 +228,8 @@ export const columnList = [ { title: '操作', dataIndex: 'operate', + fixed: 'right', + key: 'operate', scopedSlots: { customRender: 'action' } } @@ -667,29 +669,9 @@ export const stationOptions = [ label: '场站运行模式', value: undefined, key: 'work_mode', - type: 'select', - list: [ - { - label: '峰谷套利', - value: '1' - }, - { - label: '增网配容', - value: '2' - }, - { - label: '应急供电', - value: '3' - }, - { - label: '并网保电', - value: '4' - }, - { - label: '自定时段', - value: '5' - } - ] + type: 'slot', + slotName: 'work_mode', + list: [] }, { // 0:未启用,1:启用 @@ -697,7 +679,7 @@ export const stationOptions = [ label: '场站运行策略', value: undefined, key: 'policy_id', - type: 'select', + type: 'unshow', list: [ { label: '削峰套利', diff --git a/web/src/components/ComTable.vue b/web/src/components/ComTable.vue index 47a8073..53e8dd4 100644 --- a/web/src/components/ComTable.vue +++ b/web/src/components/ComTable.vue @@ -387,11 +387,15 @@ defineExpose({ ...toRefs(data), loading, mountedScroll, scroll: data.scroll }) background: #082e4a !important; } + :deep(.ant-table.ant-table-has-fix-left.ant-table-middle.ant-table-bordered){ + border-radius: 20px !important; + + } :deep(.ant-table-body) { color:#fff; background: $table-bg !important; - border: 1px solid $table-border; - border-radius: 0px 0px 20px 20px; + // border: 1px solid $table-border; + border-radius: 20px!important; .ant-table-cell { background: var(--theme-bg) !important; } @@ -424,6 +428,8 @@ defineExpose({ ...toRefs(data), loading, mountedScroll, scroll: data.scroll }) } :deep(.ant-table-wrapper .ant-table) { + border: 1px solid $table-border!important; + background-color: transparent !important; } diff --git a/web/src/components/EditCom.vue b/web/src/components/EditCom.vue index 05fbead..8e7f709 100644 --- a/web/src/components/EditCom.vue +++ b/web/src/components/EditCom.vue @@ -8,6 +8,24 @@ :ref="'detailInfo' + index" :disabled="disabled" > + +