权限
This commit is contained in:
@@ -99,10 +99,14 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:voc:export') ? 'separate' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check-record:export')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:voc:export') ? 'button' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check-record:export')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '导出',
|
||||
name: 'export',
|
||||
color: 'primary',
|
||||
|
||||
@@ -103,10 +103,14 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:voc:create') ? 'separate' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check:create')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:voc:create') ? 'button' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check:create')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
color: 'success',
|
||||
@@ -124,13 +128,16 @@ export default {
|
||||
tableProps,
|
||||
list: [],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('base:voc:update')
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:environmental-check:update',
|
||||
'base:environmental-check:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:voc:delete')
|
||||
this.$auth.hasPermi('base:environmental-check:delete')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
|
||||
@@ -99,10 +99,14 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-gas:export') ? 'separate' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check-record:export')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-gas:export') ? 'button' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check-record:export')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '导出',
|
||||
name: 'export',
|
||||
color: 'primary',
|
||||
|
||||
@@ -103,10 +103,14 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-gas:create') ? 'separate' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check:create')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-gas:create') ? 'button' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check:create')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
color: 'success',
|
||||
@@ -124,13 +128,16 @@ export default {
|
||||
tableProps,
|
||||
list: [],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('base:waste-gas:update')
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:environmental-check:update',
|
||||
'base:environmental-check:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:waste-gas:delete')
|
||||
this.$auth.hasPermi('base:environmental-check:delete')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
|
||||
@@ -99,12 +99,14 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-water:export')
|
||||
type: this.$auth.hasPermi('base:environmental-check-record:export')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-water:export') ? 'button' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check-record:export')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '导出',
|
||||
name: 'export',
|
||||
color: 'primary',
|
||||
|
||||
@@ -103,12 +103,14 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-water:create')
|
||||
type: this.$auth.hasPermi('base:environmental-check:create')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:waste-water:create') ? 'button' : '',
|
||||
type: this.$auth.hasPermi('base:environmental-check:create')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
color: 'success',
|
||||
@@ -126,13 +128,13 @@ export default {
|
||||
tableProps,
|
||||
list: [],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('base:waste-water:update')
|
||||
this.$auth.hasPermi('base:environmental-check:update')
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:waste-water:delete')
|
||||
this.$auth.hasPermi('base:environmental-check:delete')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
|
||||
Reference in New Issue
Block a user