权限
This commit is contained in:
@@ -244,7 +244,8 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: 'separate',
|
||||
type: this.$auth.hasPermi('equipment:alarm-group:create')
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:alarm-group:create')
|
||||
|
||||
@@ -201,7 +201,8 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: 'separate',
|
||||
type: this.$auth.hasPermi('equipment:bind-group:create')
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:bind-group:create')
|
||||
|
||||
@@ -158,14 +158,14 @@ export default {
|
||||
: undefined,
|
||||
].filter((v) => v),
|
||||
tableProps: [
|
||||
{ prop: 'productionLine', label: '产线', width: 120, showOverflowtooltip: true },
|
||||
{ prop: 'workshopSection', label: '工段', width: 120, showOverflowtooltip: true },
|
||||
{ prop: 'equipmentName', label: '设备名', width: 120, showOverflowtooltip: true },
|
||||
{ prop: 'equipmentCode', label: '设备编码', width: 200, showOverflowtooltip: true },
|
||||
{ prop: 'plcCode', label: '关联表编码', width: 220, showOverflowtooltip: true },
|
||||
{ prop: 'plcTableName', label: '关联表名', width: 150, showOverflowtooltip: true },
|
||||
{ prop: 'plcName', label: '标识名称', width: 150, showOverflowtooltip: true },
|
||||
{ prop: 'bindingParameters', label: '绑定参数数量', width: 120, showOverflowtooltip: true },
|
||||
{ prop: 'productionLine', label: '产线', minWidth: 120, showOverflowtooltip: true },
|
||||
{ prop: 'workshopSection', label: '工段', minWidth: 120, showOverflowtooltip: true },
|
||||
{ prop: 'equipmentName', label: '设备名', minWidth: 120, showOverflowtooltip: true },
|
||||
{ prop: 'equipmentCode', label: '设备编码', minWidth: 200, showOverflowtooltip: true },
|
||||
{ prop: 'plcCode', label: '关联表编码', minWidth: 220, showOverflowtooltip: true },
|
||||
{ prop: 'plcTableName', label: '关联表名', minWidth: 150, showOverflowtooltip: true },
|
||||
{ prop: 'plcName', label: '标识名称', minWidth: 150, showOverflowtooltip: true },
|
||||
{ prop: 'bindingParameters', label: '绑定参数数量', minWidth: 120, showOverflowtooltip: true },
|
||||
// {
|
||||
// _action: 'params-bind',
|
||||
// label: '查看绑定',
|
||||
@@ -217,7 +217,8 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: 'separate',
|
||||
type: this.$auth.hasPermi('equipment:collection-config:create')
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:collection-config:create')
|
||||
|
||||
@@ -160,13 +160,12 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: 'separate',
|
||||
type: this.$auth.hasPermi('base:equipment-plc:create')
|
||||
? 'separate' : '',
|
||||
},
|
||||
{
|
||||
// type: this.$auth.hasPermi('equipment:realtime-table-config:create')
|
||||
// ? 'button'
|
||||
// : '',
|
||||
type: 'button',
|
||||
type: this.$auth.hasPermi('base:equipment-plc:create')
|
||||
? 'button' : '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
plain: true,
|
||||
@@ -194,7 +193,7 @@ export default {
|
||||
input: true,
|
||||
label: '编码',
|
||||
prop: 'code',
|
||||
url: '/base/equipment-group/getCode',
|
||||
url: '/base/energy-plc/getCode',
|
||||
rules: [{ required: true, message: '编码不能为空', trigger: 'blur' }],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user