能源权限
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
v-hasPermi="['monitoring:energy-statistics-det:query']"
|
||||
type="success"
|
||||
size="small"
|
||||
v-if="showBtn"
|
||||
@@ -30,6 +31,7 @@
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['monitoring:energy-statistics-det:delete']"
|
||||
type="danger"
|
||||
size="small"
|
||||
v-if="showBtn"
|
||||
@@ -161,11 +163,13 @@ export default {
|
||||
this.drawerTitle = '参数绑定';
|
||||
this.showBtn = true;
|
||||
this.tableBtn = [
|
||||
{
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
},
|
||||
];
|
||||
this.$auth.hasPermi('monitoring:energy-statistics-det:delete')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
}
|
||||
: undefined,
|
||||
].filter((v) => v);
|
||||
}
|
||||
},
|
||||
getList() {
|
||||
|
||||
@@ -88,7 +88,9 @@ export default {
|
||||
type: 'separate',
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
type: this.$auth.hasPermi('monitoring:energy-statistics-det:create')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '关联',
|
||||
name: 'add',
|
||||
color: 'primary',
|
||||
|
||||
@@ -104,7 +104,9 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: 'separate',
|
||||
type: this.$auth.hasPermi('monitoring:energy-statistics:create')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('monitoring:energy-statistics:create')
|
||||
@@ -118,17 +120,22 @@ export default {
|
||||
],
|
||||
tableProps,
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('monitoring:energy-statistics:bind')
|
||||
this.$auth.hasPermi('monitoring:energy-statistics-det:query')
|
||||
? {
|
||||
type: 'connect',
|
||||
btnName: '绑定',
|
||||
}
|
||||
: undefined,
|
||||
{
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
},
|
||||
this.$auth.hasPermi('monitoring:energy-statistics:update')
|
||||
this.$auth.hasPermi('monitoring:energy-statistics:query')
|
||||
? {
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermiAnd([
|
||||
'monitoring:energy-statistics:update',
|
||||
'monitoring:energy-statistics:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
|
||||
Reference in New Issue
Block a user