Compare commits

..

No commits in common. "8f11c2f47c437167342e24d189191ad02d193a5a" and "087af452def47123e82efa8a93b7451b5c8e8416" have entirely different histories.

19 changed files with 80 additions and 231 deletions

View File

@ -1,8 +1,8 @@
### ###
# @Author: Do not edit # @Author: Do not edit
# @Date: 2023-08-29 09:40:39 # @Date: 2023-08-29 09:40:39
# @LastEditTime: 2024-04-11 17:04:05 # @LastEditTime: 2024-04-10 16:58:06
# @LastEditors: DY # @LastEditors: zhp
# @Description: # @Description:
### ###
# 开发环境配置 # 开发环境配置
@ -20,11 +20,11 @@ VUE_APP_TITLE = MES系统
# VUE_APP_BASE_API = 'http://192.168.1.8:48082' # VUE_APP_BASE_API = 'http://192.168.1.8:48082'
# VUE_APP_BASE_API = 'http://192.168.4.173:9001' # VUE_APP_BASE_API = 'http://192.168.4.173:9001'
# VUE_APP_BASE_API = 'http://192.168.1.104:48082' # VUE_APP_BASE_API = 'http://192.168.1.104:48082'
VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.0.33:48082'
# VUE_APP_BASE_API = 'http://192.168.1.62:48082' # VUE_APP_BASE_API = 'http://192.168.1.62:48082'
# VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082'
# VUE_APP_BASE_API = 'http://192.168.1.47:48082' # VUE_APP_BASE_API = 'http://192.168.1.47:48082'
# VUE_APP_BASE_API = 'http://192.168.1.78:48082' VUE_APP_BASE_API = 'http://192.168.1.78:48082'
# socket地址 # socket地址
# VUE_APP_Socket_API = 'ws://10.70.2.2:8080' # VUE_APP_Socket_API = 'ws://10.70.2.2:8080'
# VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' # VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081'

View File

@ -1,7 +1,7 @@
/* /*
* @Author: zhp * @Author: zhp
* @Date: 2023-11-07 14:10:18 * @Date: 2023-11-07 14:10:18
* @LastEditTime: 2024-04-11 16:16:05 * @LastEditTime: 2024-04-09 09:17:02
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
*/ */
@ -18,14 +18,14 @@ export function getStatisticalDataPage(query) {
export function getWorkOrderList(query) { export function getWorkOrderList(query) {
return request({ return request({
url: 'base/core-work-order/listbyfilter', url: 'base/quality-inspection-record/listbyfilter',
method: 'get', method: 'get',
params: query, params: query,
}) })
} }
export function getProductList(query) { export function getProductList(query) {
return request({ return request({
url: 'base/core-product/listAll', url: 'base/statistical-data/listAll',
method: 'get', method: 'get',
params: query, params: query,
}) })

View File

@ -130,20 +130,8 @@ export default {
{ prop: 'createTime', label: '报警时间', filter: timeFilter, width: 150, showOverflowtooltip: true }, { prop: 'createTime', label: '报警时间', filter: timeFilter, width: 150, showOverflowtooltip: true },
{ prop: 'alarmCode', label: '设备报警码', width: 180, showOverflowtooltip: true }, { prop: 'alarmCode', label: '设备报警码', width: 180, showOverflowtooltip: true },
{ prop: 'alarmContent', label: '报警内容', width: 150, showOverflowtooltip: true }, { prop: 'alarmContent', label: '报警内容', width: 150, showOverflowtooltip: true },
this.$auth.hasPermiAnd([ { prop: 'opt1', label: '处理记录', name: '查看', subcomponent: btn },
'monitoring:equipment-alarm-log:query', { prop: 'opt2', label: '处理', name: '报警处理', subcomponent: btn },
'base:equipment-alarm-hand:query'
]) ?
{ prop: 'opt1', label: '处理记录', name: '查看', subcomponent: btn } : undefined,
this.$auth.hasPermiAnd([
'monitoring:equipment-alarm-log:query',
'base:equipment-alarm-hand:query',
'base:core-worker:query',
'base:equipment-alarm-hand:create',
'base:equipment-alarm-hand:update',
'monitoring:equipment-alarm-log:update'
]) ?
{ prop: 'opt2', label: '处理', name: '报警处理', subcomponent: btn } : undefined,
// { prop: 'remark', label: '' }, // { prop: 'remark', label: '' },
], ],
searchBarFormConfig: [ searchBarFormConfig: [

View File

@ -122,30 +122,19 @@ export default {
editMode: '', editMode: '',
searchBarKeys: ['name', 'code'], searchBarKeys: ['name', 'code'],
tableBtn: [ tableBtn: [
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:alarm-group:update')
'base:equipment-group:query', ? {
'base:equipment-group-alarm:query'
])
? {
type: 'detail', type: 'detail',
btnName: '查看报警', btnName: '查看报警',
} }
: undefined, : undefined,
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:alarm-group:update')
'base:equipment-group:update',
'base:equipment-group:query',
'base:equipment-group-alarm:create',
'base:equipment-group-alarm:delete',
'base:equipment-group-alarm:update',
'base:equipment-group-alarm:query',
'base:equipment-group-alarm:query'
])
? { ? {
type: 'edit', type: 'edit',
btnName: '修改', btnName: '修改',
} }
: undefined, : undefined,
this.$auth.hasPermi('base:equipment-group:delete') this.$auth.hasPermi('equipment:alarm-group:delete')
? { ? {
type: 'delete', type: 'delete',
btnName: '删除', btnName: '删除',
@ -255,11 +244,11 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermi('base:equipment-group:create') type: this.$auth.hasPermi('equipment:alarm-group:create')
? 'separate' : '', ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('base:equipment-group:create') type: this.$auth.hasPermi('equipment:alarm-group:create')
? 'button' ? 'button'
: '', : '',
btnName: '新增', btnName: '新增',

View File

@ -123,23 +123,13 @@ export default {
return { return {
searchBarKeys: ['groupId', 'equipmentName'], searchBarKeys: ['groupId', 'equipmentName'],
tableBtn: [ tableBtn: [
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:bind-group:update')
'base:equipment-group-alarm:query',
'base:core-equipment:query'
])
? { ? {
type: 'detail', type: 'detail',
btnName: '查看报警', btnName: '查看报警',
} }
: undefined, : undefined,
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:bind-group:update')
'equipment:bind-group:update',
'base:core-equipment:query',
'base:equipment-group-alarm:create',
'base:equipment-group-alarm:update',
'base:equipment-group-alarm:delete',
'base:equipment-group-alarm:query'
])
? { ? {
type: 'edit', type: 'edit',
btnName: '修改', btnName: '修改',
@ -211,16 +201,12 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:bind-group:create')
'equipment:bind-group:create', ? 'separate' : '',
'base:core-equipment:query'
]) ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:bind-group:create')
'equipment:bind-group:create', ? 'button'
'base:core-equipment:query'
]) ? 'button'
: '', : '',
btnName: '新增', btnName: '新增',
name: 'add', name: 'add',

View File

@ -140,28 +140,17 @@ export default {
// tableBtn: [ // tableBtn: [
// ].filter((v) => v), // ].filter((v) => v),
tableBtn: [ tableBtn: [
this.$auth.hasPermiAnd([ {
'base:equipment-plc-connect:query', type: 'detail',
'base:equipment-plc-param:query' btnName: '参数绑定',
]) },
? { this.$auth.hasPermi('equipment:collection-config:update')
type: 'detail',
btnName: '参数绑定',
} : undefined,
this.$auth.hasPermiAnd([
'base:equipment-plc-connect:update',
'base:equipment-plc-connect:query',
'base:equipment-plc-param:create',
'base:equipment-plc-param:update',
'base:equipment-plc-param:delete',
'base:equipment-plc-param:query'
])
? { ? {
type: 'edit', type: 'edit',
btnName: '修改', btnName: '修改',
} }
: undefined, : undefined,
this.$auth.hasPermi('base:equipment-plc-connect:delete') this.$auth.hasPermi('equipment:collection-config:delete')
? { ? {
type: 'delete', type: 'delete',
btnName: '删除', btnName: '删除',
@ -228,11 +217,11 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermi('base:equipment-plc-connect:create') type: this.$auth.hasPermi('equipment:collection-config:create')
? 'separate' : '', ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('base:equipment-plc-connect:create') type: this.$auth.hasPermi('equipment:collection-config:create')
? 'button' ? 'button'
: '', : '',
// type: 'button', // type: 'button',

View File

@ -108,16 +108,13 @@ export default {
tableKey: Math.random(), tableKey: Math.random(),
searchBarKeys: ['name', 'plcTableName'], searchBarKeys: ['name', 'plcTableName'],
tableBtn: [ tableBtn: [
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:realtime-table-config:update')
'base:equipment-plc:update',
'base:equipment-plc:query'
])
? { ? {
type: 'edit', type: 'edit',
btnName: '修改', btnName: '修改',
} }
: undefined, : undefined,
this.$auth.hasPermi('base:equipment-plc:delete') this.$auth.hasPermi('equipment:realtime-table-config:delete')
? { ? {
type: 'delete', type: 'delete',
btnName: '删除', btnName: '删除',

View File

@ -91,7 +91,7 @@
<!-- btns --> <!-- btns -->
<el-table-column width="188" label="操作"> <el-table-column width="188" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip v-if="$auth.hasPermi('equipment:check:update')" content="确认" placement="top"> <el-tooltip content="确认" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"
@ -101,8 +101,8 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- line --> <!-- line -->
<span v-if="$auth.hasPermi('equipment:check:query')" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span> <span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
<el-tooltip v-if="$auth.hasPermi('equipment:check:query')" content="查看详情" placement="top"> <el-tooltip content="查看详情" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"
@ -111,26 +111,8 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- line --> <!-- line -->
<span v-if="$auth.hasPermiAnd([ <span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
'equipment:check:update', <el-tooltip content="编辑" placement="top">
'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 <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"
@ -139,8 +121,8 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- line --> <!-- line -->
<span v-if="$auth.hasPermi('equipment:check:delete')" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span> <span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
<el-tooltip v-if="$auth.hasPermi('equipment:check:delete')" content="删除" placement="top"> <el-tooltip content="删除" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"

View File

@ -101,23 +101,13 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: (this.$auth.hasPermiAnd([ type: (this.$auth.hasPermi('equipment:inspection-confirm:create') ||
'equipment:check:create', this.$auth.hasPermi('equipment:inspection-confirm:confirm') ||
'base:core-worker:query', this.$auth.hasPermi('equipment:inspection-confirm:export'))
'base:group-classes:query',
'base:core-department:query'
]) ||
this.$auth.hasPermi('equipment:check:update') ||
this.$auth.hasPermi('equipment:check:export'))
? 'separate' : '', ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:inspection-confirm:create')
'equipment:check:create',
'base:core-worker:query',
'base:group-classes:query',
'base:core-department:query'
])
? 'button' ? 'button'
: '', : '',
btnName: '新增', btnName: '新增',
@ -126,7 +116,7 @@ export default {
color: 'success', color: 'success',
}, },
{ {
type: this.$auth.hasPermi('equipment:check:update') type: this.$auth.hasPermi('equipment:inspection-confirm:confirm')
? 'button' ? 'button'
: '', : '',
btnName: '批量确认', btnName: '批量确认',
@ -135,7 +125,7 @@ export default {
plain: true, plain: true,
}, },
{ {
type: this.$auth.hasPermi('equipment:check:export') type: this.$auth.hasPermi('equipment:inspection-confirm:export')
? 'button' ? 'button'
: '', : '',
btnName: '导出', btnName: '导出',

View File

@ -100,7 +100,7 @@ export default {
addContent: false, addContent: false,
searchBarKeys: ['name', 'actualCheckTime'], searchBarKeys: ['name', 'actualCheckTime'],
tableBtn: [ tableBtn: [
this.$auth.hasPermi('equipment:check:query') this.$auth.hasPermi('equipment:check-record:detail')
? { ? {
type: 'detail', type: 'detail',
btnName: '详情', btnName: '详情',
@ -166,11 +166,11 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermi('equipment:check:export') type: this.$auth.hasPermi('equipment:check-record:export')
? 'separate' : '', ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('equipment:check:export') type: this.$auth.hasPermi('equipment:check-record:export')
? 'button' ? 'button'
: '', : '',
btnName: '导出', btnName: '导出',

View File

@ -68,23 +68,14 @@ export default {
addOrEditTitle: '', addOrEditTitle: '',
searchBarKeys: ['equipmentId', 'name'], searchBarKeys: ['equipmentId', 'name'],
tableBtn: [ tableBtn: [
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:check-setting:addInsp')
'equipment:check:create',
'equipment:check:query',
'equipment:check:update',
'equipment:check:delete'
])
? { ? {
type: 'add', type: 'add',
btnName: '添加', btnName: '添加',
showTip: '添加巡检', showTip: '添加巡检',
} }
: undefined, : undefined,
this.$auth.hasPermiAnd([ this.$auth.hasPermi('equipment:check-setting:update')
'equipment:check:update',
'equipment:check:query',
'base:core-department:query'
])
? { ? {
type: 'edit', type: 'edit',
btnName: '修改', btnName: '修改',
@ -96,7 +87,7 @@ export default {
// btnName: '', // btnName: '',
// } // }
// : undefined, // : undefined,
this.$auth.hasPermi('equipment:check:delete') this.$auth.hasPermi('equipment:check-setting:delete')
? { ? {
type: 'delete', type: 'delete',
btnName: '删除', btnName: '删除',
@ -166,17 +157,11 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:check-setting:create')
'equipment:check:create',
'base:core-department:query'
])
? 'separate' : '', ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:check-setting:create')
'equipment:check:create',
'base:core-department:query'
])
? 'button' ? 'button'
: '', : '',
btnName: '新增', btnName: '新增',

View File

@ -118,7 +118,7 @@
<!-- btns --> <!-- btns -->
<el-table-column width="188" label="操作"> <el-table-column width="188" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip v-if="$auth.hasPermi('equipment:maintain-record:update')" content="确认" placement="top"> <el-tooltip content="确认" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"
@ -128,8 +128,8 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- line --> <!-- line -->
<span v-if="$auth.hasPermi('equipment:maintain-record:query')" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span> <span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
<el-tooltip v-if="$auth.hasPermi('equipment:maintain-record:query')" content="查看详情" placement="top"> <el-tooltip content="查看详情" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"
@ -138,32 +138,18 @@
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!-- line --> <!-- line -->
<!-- <span v-if="$auth.hasPermiAnd([ <span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
'equipment:maintain-record:update', <el-tooltip content="编辑" placement="top">
'base:core-production-line:query',
'base:core-department:query',
'equipment:maintain-record:create',
'equipment:maintain-record:query',
'equipment:maintain-record:delete'
])" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
<el-tooltip v-if="$auth.hasPermiAnd([
'equipment:maintain-record:update',
'base:core-production-line:query',
'base:core-department:query',
'equipment:maintain-record:create',
'equipment:maintain-record:query',
'equipment:maintain-record:delete'
])" content="编辑" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"
@click="$emit('edit', scope.row)"> @click="$emit('edit', scope.row)">
<i class="iconfont icon-edit primary-color" /> <i class="iconfont icon-edit primary-color" />
</el-button> </el-button>
</el-tooltip> --> </el-tooltip>
<!-- line --> <!-- line -->
<span v-if="$auth.hasPermi('equipment:maintain-record:delete')" style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span> <span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
<el-tooltip v-if="$auth.hasPermi('equipment:maintain-record:delete')" content="删除" placement="top"> <el-tooltip content="删除" placement="top">
<el-button <el-button
type="text" type="text"
style="margin: 5px 0; padding: 0" style="margin: 5px 0; padding: 0"

View File

@ -157,20 +157,10 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: (this.$auth.hasPermiAnd([ type: (this.$auth.hasPermi('equipment:maintain-confirm:confirm') || this.$auth.hasPermi('equipment:maintain-confirm:confirm') || this.$auth.hasPermi('equipment:maintain-confirm:export')) ? 'separate' : '',
'equipment:maintain-record:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
]) || this.$auth.hasPermi('equipment:maintain-record:update') || this.$auth.hasPermi('equipment:maintain-record:export')) ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:maintain-confirm:create')
'equipment:maintain-record:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
])
? 'button' ? 'button'
: '', : '',
btnName: '新增', btnName: '新增',
@ -179,7 +169,7 @@ export default {
color: 'success', color: 'success',
}, },
{ {
type: this.$auth.hasPermi('equipment:maintain-record:update') type: this.$auth.hasPermi('equipment:maintain-confirm:confirm')
? 'button' ? 'button'
: '', : '',
btnName: '批量确认', btnName: '批量确认',
@ -188,7 +178,7 @@ export default {
plain: true, plain: true,
}, },
{ {
type: this.$auth.hasPermi('equipment:maintain-record:export') type: this.$auth.hasPermi('equipment:maintain-confirm:export')
? 'button' ? 'button'
: '', : '',
btnName: '导出', btnName: '导出',

View File

@ -160,8 +160,7 @@ export default {
// filter: publicFormatter(this.DICT_TYPE.MAINTAIN_TYPE), // filter: publicFormatter(this.DICT_TYPE.MAINTAIN_TYPE),
// }, // },
// { prop: 'opt1', label: '', name: '', subcomponent: btn }, // { prop: 'opt1', label: '', name: '', subcomponent: btn },
this.$auth.hasPermi('equipment:plan-config:query') ? { prop: 'opt2', label: '保养内容', name: '详情', subcomponent: btn, width: 100 },
{ prop: 'opt2', label: '保养内容', name: '详情', subcomponent: btn, width: 100 } : undefined,
{ {
prop: 'remainDays', prop: 'remainDays',
label: '距离下次保养剩余时间(天)', label: '距离下次保养剩余时间(天)',
@ -191,11 +190,11 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermi('equipment:plan-config:export') type: this.$auth.hasPermi('equipment:maintain-monitor:export')
? 'separate' : '', ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('equipment:plan-config:export') type: this.$auth.hasPermi('equipment:maintain-monitor:export')
? 'button' ? 'button'
: '', : '',
btnName: '导出', btnName: '导出',

View File

@ -14,7 +14,7 @@
<method-btn <method-btn
v-if="tableBtn.length" v-if="tableBtn.length"
slot="handleBtn" slot="handleBtn"
:width="180" :width="120"
label="操作" label="操作"
:method-list="tableBtn" :method-list="tableBtn"
@clickBtn="handleClick" /> @clickBtn="handleClick" />
@ -138,25 +138,13 @@ export default {
planName: undefined planName: undefined
}, },
tableBtn: [ tableBtn: [
this.$auth.hasPermiAnd([ this.$auth.hasPermi(`equipment:plan-config:add`)
'equipment:plan-config:query',
'equipment:plan-config:create',
'equipment:plan-config:update',
'equipment:plan-config:delete',
'base:core-equipment:query'
])
? { ? {
type: 'add', type: 'add',
btnName: '添加内容', btnName: '添加内容',
} }
: undefined, : undefined,
this.$auth.hasPermiAnd([ this.$auth.hasPermi(`equipment:plan-config:update`)
'equipment:plan-config:update',
'equipment:plan-config:query',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
])
? { ? {
type: 'edit', type: 'edit',
btnName: '编辑', btnName: '编辑',
@ -184,20 +172,10 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:plan-config:create') ? 'separate' : '',
'equipment:plan-config:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
]) ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:plan-config:create') ? 'button' : '',
'equipment:plan-config:create',
'base:core-worker:query',
'base:core-production-line:query',
'base:core-department:query'
]) ? 'button' : '',
btnName: '新增', btnName: '新增',
name: 'add', name: 'add',
color: 'success', color: 'success',

View File

@ -148,8 +148,7 @@ export default {
minWidth: 170, minWidth: 170,
showOverflowtooltip: true showOverflowtooltip: true
}, },
this.$auth.hasPermi('equipment:maintain-record:query') ? { prop: 'opt', label: '详情', name: '详情', subcomponent: btn }
{ prop: 'opt', label: '详情', name: '详情', subcomponent: btn } : undefined
// { prop: 'maintainDuration', label: '(h)' }, // { prop: 'maintainDuration', label: '(h)' },
// { prop: 'timeUsed', label: '(h)' }, // { prop: 'timeUsed', label: '(h)' },
// { prop: 'remark', label: '' }, // { prop: 'remark', label: '' },

View File

@ -71,7 +71,7 @@ export default {
addOrUpdateVisible: false, addOrUpdateVisible: false,
searchBarKeys: ['maintenanceResult', 'createTime', 'equipmentId'], searchBarKeys: ['maintenanceResult', 'createTime', 'equipmentId'],
tableBtn: [ tableBtn: [
this.$auth.hasPermi('equipment:repair:query') this.$auth.hasPermi('equipment:repair:update')
? { ? {
type: 'detail', type: 'detail',
btnName: '详情', btnName: '详情',
@ -173,12 +173,7 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: (this.$auth.hasPermi('equipment:repair:export') || type: (this.$auth.hasPermi('equipment:repair:export') || this.$auth.hasPermi('equipment:repair:create')) ? 'separate' : '',
this.$auth.hasPermiAnd([
'equipment:repair:create',
'base:core-worker:query',
'system:user:list'
])) ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '', type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '',
@ -188,11 +183,7 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: this.$auth.hasPermiAnd([ type: this.$auth.hasPermi('equipment:repair:create') ? 'button' : '',
'equipment:repair:create',
'base:core-worker:query',
'system:user:list'
]) ? 'button' : '',
btnName: '新增', btnName: '新增',
name: 'add', name: 'add',
plain: true, plain: true,

View File

@ -219,7 +219,7 @@ export default {
}, },
{ {
type: this.$auth.hasPermi( type: this.$auth.hasPermi(
'monitoring:equipment:query' 'monitoring:device-parameters:query'
) )
? 'button' ? 'button'
: '', : '',

View File

@ -261,7 +261,7 @@ export default {
// }, // },
{ {
type: this.$auth.hasPermi( type: this.$auth.hasPermi(
'analysis:equipment:query' 'monitoring:equipment-traceability:query'
) )
? 'button' ? 'button'
: '', : '',
@ -271,14 +271,14 @@ export default {
}, },
{ {
type: this.$auth.hasPermi( type: this.$auth.hasPermi(
'analysis:equipment:export' 'monitoring:equipment-traceability:export'
) )
? 'separate' ? 'separate'
: '', : '',
}, },
{ {
type: this.$auth.hasPermi( type: this.$auth.hasPermi(
'analysis:equipment:export' 'monitoring:equipment-traceability:export'
) )
? 'button' ? 'button'
: '', : '',