场站+服务管理功能开发,角色权限完善,总览弹窗接口联调

This commit is contained in:
ym1026
2025-09-09 09:33:14 +08:00
parent c1cce63c85
commit 7a50130d12
20 changed files with 1741 additions and 244 deletions

View File

@@ -17,13 +17,14 @@
:page-option="pageOption"
:table-h="tableH"
>
<template #is_open="record">
<!-- 0:禁用; 1:启用 -->
<span>{{ ['禁用', '启用'][record.is_open] }}</span>
<template #status="record">
<span>{{ ['未启用', '启用'][record.status] }}</span>
</template>
<template #permission="record">
<!-- 0:禁用; 1:启用 -->
<span>{{record.permission.map(item=>item.name).toString() }}</span>
<template #work_mode_id="record">
<span>{{workModeList.find(item=>record.value==item.value)?.label|| '' }}</span>
</template>
<template #policy_id="record">
<span>{{policyList.find(item=>record.value==item.value)?.label|| ''}}</span>
</template>
<template #action="record">
@@ -72,7 +73,35 @@ export default {
page: 1
},
btnOptionList: [],
paramsDate: {}
paramsDate: {},
workModeList:[
{
label:'最优经济化',
value:1
},
{
label:'支撑电网稳定',
value:2
},
{
label:'自定义',
value:3
},
],
policyList:[
{
label:'削峰套利',
value:1
},
{
label:'需求响应',
value:2
},
{
label:'自发自用',
value:3
},
]
}
},
computed: {},
@@ -194,7 +223,7 @@ export default {
let row = {}
if (record && record.station_id) {
row = await getInfo({ station_id: record.station_id},'/queryStationInfo')
// row = await getInfo({ station_id: record.station_id},'/queryStationInfo')
this.record = record
row = record
// this.type='edit'