mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改菜单+权限+图表渲染
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
ref="comTable"
|
||||
:table-option="tableOption"
|
||||
:page-option="pageOption"
|
||||
:table-h="tableH"
|
||||
>
|
||||
<template #is_open="record">
|
||||
<!-- 0:禁用; 1:启用 -->
|
||||
@@ -104,8 +103,14 @@ export default {
|
||||
if (res.errcode === 0) {
|
||||
this.$refs.comTable.loading = false
|
||||
|
||||
this.tableData = res.data
|
||||
|
||||
// this.tableData = res.data
|
||||
this.tableData =JSON.parse( localStorage.getItem('permission')).map((item)=>{
|
||||
return {
|
||||
...item,
|
||||
key:item.permission_id,
|
||||
}
|
||||
})
|
||||
console.log( this.tableData," this.tableData")
|
||||
this.pageOption = {
|
||||
page: res.page,
|
||||
pageSize: res.page_size,
|
||||
|
||||
Reference in New Issue
Block a user