diff --git a/README.md b/README.md index e69de29b..4740c64a 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,30 @@ +## 权限设置方式 + +* v-hasPermi="['iot:project:add']" + +* 组件添加 上述代码 + +* 菜单管理 添加 按钮菜单 --> 赋予用户权限(超级管理员默认拥有所有权限) --> 刷新加载 + + +#### 项目详情 按钮权限 + +project:tenant:add --- 项目-租户(用户)-新增 +project:tenant:relieve --- 项目-租户(用户)-解除 + +project:space:add --- 项目-空间-新增 +project:space:remove --- 项目-空间-删除 +project:space:edit --- 项目-空间-编辑 +project:space:device --- 项目-空间-设备管理 +project:device:add --- 项目-空间-设备-添加 +project:device:relieve --- 项目-空间-设备-删除 + +project:price:add --- 项目-能源-合同-删除 +project:price:edit --- 项目-能源-合同-编辑 +project:price:remove --- 项目-能源-合同-删除 + +project:scene:add --- 项目-场景-新增 +project:scene:edit --- 项目-场景-编辑 +project:scene:remove --- 项目-场景-删除 +project:scene:run --- 项目-场景-执行一次 +project:scene:status --- 项目-场景-禁用/启用 \ No newline at end of file diff --git a/src/views/iot/statistics/chain/index.vue b/src/views/iot/statistics/chain/index.vue index aaba1d04..549d76ba 100644 --- a/src/views/iot/statistics/chain/index.vue +++ b/src/views/iot/statistics/chain/index.vue @@ -135,23 +135,23 @@ export default { return { selectTable, total: 0, - activeName: 'water', + activeName: 'electry', queryParams: { projectName: "", year: '' }, time: "", tabsList: [ + { + label: "电量统计", + key: "electry", + unit: "kwh", + }, { label: '水量统计', key: 'water', unit: '吨' }, - { - label: '电量统计', - key: 'electry', - unit: 'kwh' - }, { label: '气量统计', key: 'gas', diff --git a/src/views/iot/statistics/compared/index.vue b/src/views/iot/statistics/compared/index.vue index d8a25e2b..fef7d881 100644 --- a/src/views/iot/statistics/compared/index.vue +++ b/src/views/iot/statistics/compared/index.vue @@ -22,7 +22,13 @@ - + @@ -146,22 +152,22 @@ export default { return { selectTable, total: 0, - activeName: "water", + activeName: "electry", queryParams: { projectName: "", year: "", }, tabsList: [ - { - label: "水量统计", - key: "water", - unit: "吨", - }, { label: "电量统计", key: "electry", unit: "kwh", }, + { + label: "水量统计", + key: "water", + unit: "吨", + }, { label: "气量统计", key: "gas",