权限22
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
<!-- btns -->
|
||||
<el-table-column width="188" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip content="确认" placement="top">
|
||||
<el-tooltip v-if="$auth.hasPermi('equipment:check:update')" content="确认" placement="top">
|
||||
<el-button
|
||||
type="text"
|
||||
style="margin: 5px 0; padding: 0"
|
||||
@@ -101,8 +101,8 @@
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
<!-- line -->
|
||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-tooltip content="查看详情" placement="top">
|
||||
<span v-if="$auth.hasPermi('equipment:check:query')" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-tooltip v-if="$auth.hasPermi('equipment:check:query')" content="查看详情" placement="top">
|
||||
<el-button
|
||||
type="text"
|
||||
style="margin: 5px 0; padding: 0"
|
||||
@@ -111,8 +111,26 @@
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
<!-- line -->
|
||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-tooltip content="编辑" placement="top">
|
||||
<span v-if="$auth.hasPermiAnd([
|
||||
'equipment:check:update',
|
||||
'base:core-worker:query',
|
||||
'base:group-classes:query',
|
||||
'base:core-department:query',
|
||||
'equipment:check:query',
|
||||
'equipment:check:create',
|
||||
'equipment:check:delete',
|
||||
'base:core-equipment:query'
|
||||
])" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-tooltip v-if="$auth.hasPermiAnd([
|
||||
'equipment:check:update',
|
||||
'base:core-worker:query',
|
||||
'base:group-classes:query',
|
||||
'base:core-department:query',
|
||||
'equipment:check:query',
|
||||
'equipment:check:create',
|
||||
'equipment:check:delete',
|
||||
'base:core-equipment:query'
|
||||
])" content="编辑" placement="top">
|
||||
<el-button
|
||||
type="text"
|
||||
style="margin: 5px 0; padding: 0"
|
||||
@@ -121,8 +139,8 @@
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
<!-- line -->
|
||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
<span v-if="$auth.hasPermi('equipment:check:delete')" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
||||
<el-tooltip v-if="$auth.hasPermi('equipment:check:delete')" content="删除" placement="top">
|
||||
<el-button
|
||||
type="text"
|
||||
style="margin: 5px 0; padding: 0"
|
||||
|
||||
@@ -101,13 +101,23 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: (this.$auth.hasPermi('equipment:inspection-confirm:create') ||
|
||||
this.$auth.hasPermi('equipment:inspection-confirm:confirm') ||
|
||||
this.$auth.hasPermi('equipment:inspection-confirm:export'))
|
||||
type: (this.$auth.hasPermiAnd([
|
||||
'equipment:check:create',
|
||||
'base:core-worker:query',
|
||||
'base:group-classes:query',
|
||||
'base:core-department:query'
|
||||
]) ||
|
||||
this.$auth.hasPermi('equipment:check:update') ||
|
||||
this.$auth.hasPermi('equipment:check:export'))
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:inspection-confirm:create')
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:check:create',
|
||||
'base:core-worker:query',
|
||||
'base:group-classes:query',
|
||||
'base:core-department:query'
|
||||
])
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
@@ -116,7 +126,7 @@ export default {
|
||||
color: 'success',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:inspection-confirm:confirm')
|
||||
type: this.$auth.hasPermi('equipment:check:update')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '批量确认',
|
||||
@@ -125,7 +135,7 @@ export default {
|
||||
plain: true,
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:inspection-confirm:export')
|
||||
type: this.$auth.hasPermi('equipment:check:export')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '导出',
|
||||
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
addContent: false,
|
||||
searchBarKeys: ['name', 'actualCheckTime'],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('equipment:check-record:detail')
|
||||
this.$auth.hasPermi('equipment:check:query')
|
||||
? {
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
@@ -166,11 +166,11 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:check-record:export')
|
||||
type: this.$auth.hasPermi('equipment:check:export')
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:check-record:export')
|
||||
type: this.$auth.hasPermi('equipment:check:export')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '导出',
|
||||
|
||||
@@ -68,14 +68,23 @@ export default {
|
||||
addOrEditTitle: '',
|
||||
searchBarKeys: ['equipmentId', 'name'],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('equipment:check-setting:addInsp')
|
||||
this.$auth.hasPermiAnd([
|
||||
'equipment:check:create',
|
||||
'equipment:check:query',
|
||||
'equipment:check:update',
|
||||
'equipment:check:delete'
|
||||
])
|
||||
? {
|
||||
type: 'add',
|
||||
btnName: '添加',
|
||||
showTip: '添加巡检',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('equipment:check-setting:update')
|
||||
this.$auth.hasPermiAnd([
|
||||
'equipment:check:update',
|
||||
'equipment:check:query',
|
||||
'base:core-department:query'
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '修改',
|
||||
@@ -87,7 +96,7 @@ export default {
|
||||
// btnName: '查看详情',
|
||||
// }
|
||||
// : undefined,
|
||||
this.$auth.hasPermi('equipment:check-setting:delete')
|
||||
this.$auth.hasPermi('equipment:check:delete')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
@@ -157,11 +166,17 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:check-setting:create')
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:check:create',
|
||||
'base:core-department:query'
|
||||
])
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:check-setting:create')
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:check:create',
|
||||
'base:core-department:query'
|
||||
])
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
|
||||
Reference in New Issue
Block a user