From 56bbc2497aeccba81bedb1da805771f0f5c4a97b Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 8 Aug 2022 13:47:56 +0800 Subject: [PATCH] update table --- .../components/operationComponent.js | 9 ++- src/views/modules/monitoring/equipment.vue | 2 +- .../modules/monitoring/equipmentAlarmLog.vue | 11 ++-- .../modules/monitoring/equipmentFile.vue | 11 ++-- .../modules/monitoring/equipmentGroup.vue | 11 ++-- .../monitoring/equipmentGroupAlarm.vue | 11 ++-- src/views/modules/monitoring/equipmentPlc.vue | 11 ++-- .../monitoring/equipmentPlcConnect.vue | 11 ++-- .../modules/monitoring/equipmentPlcParam.vue | 11 ++-- .../modules/monitoring/equipmentQuantity.vue | 11 ++-- .../modules/monitoring/equipmentStatusLog.vue | 11 ++-- .../modules/monitoring/equipmentType.vue | 11 ++-- .../modules/monitoring/equipmentTypeFile.vue | 11 ++-- .../modules/monitoring/equipmentattr.vue | 11 ++-- src/views/modules/monitoring/factory.vue | 12 ++-- src/views/modules/monitoring/product.vue | 64 +++++++++++-------- src/views/modules/monitoring/productArrt.vue | 11 ++-- .../modules/monitoring/productionLine.vue | 11 ++-- .../monitoring/productionLineRecSch.vue | 11 ++-- .../monitoring/qualityInspectionDet.vue | 11 ++-- .../monitoring/qualityInspectionRecord.vue | 11 ++-- .../monitoring/qualityInspectionType.vue | 11 ++-- src/views/modules/monitoring/reportSheet.vue | 11 ++-- .../monitoring/reportSheetCategory.vue | 11 ++-- src/views/modules/monitoring/sysfile.vue | 11 ++-- src/views/modules/monitoring/sysfileType.vue | 11 ++-- .../modules/monitoring/workShopSection.vue | 11 ++-- .../monitoring/workShopSectionEquipment.vue | 11 ++-- 28 files changed, 195 insertions(+), 156 deletions(-) diff --git a/src/components/base-table/components/operationComponent.js b/src/components/base-table/components/operationComponent.js index 96e2756..094e350 100644 --- a/src/components/base-table/components/operationComponent.js +++ b/src/components/base-table/components/operationComponent.js @@ -23,11 +23,15 @@ export default { // add more... }, colors: { + delete: '#FF5454', // add more... }, text: { // for i18n inject: - add: '添加' + edit: '编辑', + detail: '详情', + delete: '删除', + viewAttr: '查看属性' // add more... } } @@ -38,7 +42,8 @@ export default { render: function (h) { let btns = [] for (const optionStr of this.injectData.head?.options) { - btns.push(h('el-button', { props: { type: this.btnTypes[optionStr] } }, optionStr)) + // btns.push(h('el-button', { props: { type: this.btnTypes[optionStr] } }, optionStr)) + btns.push(h('el-button', { props: { type: 'text' }, style: { color: this.colors[optionStr] || '#0b58ff' } }, this.text[optionStr])) } return h('span', null, btns) } diff --git a/src/views/modules/monitoring/equipment.vue b/src/views/modules/monitoring/equipment.vue index 5ee2d6a..a5a6635 100644 --- a/src/views/modules/monitoring/equipment.vue +++ b/src/views/modules/monitoring/equipment.vue @@ -50,7 +50,7 @@ const tableConfigs = [ { prop: 'enName', name: '英文名称' }, { prop: 'abbr', name: '缩写' }, { prop: 'details', name: '详情', subcomponent: TableTextComponent }, - { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['add', 'detail', 'delete'] } + { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } ] export default { diff --git a/src/views/modules/monitoring/equipmentAlarmLog.vue b/src/views/modules/monitoring/equipmentAlarmLog.vue index d545cd6..2e8c06a 100644 --- a/src/views/modules/monitoring/equipmentAlarmLog.vue +++ b/src/views/modules/monitoring/equipmentAlarmLog.vue @@ -10,7 +10,7 @@ 批量删除 - + + 批量删除 - + + 批量删除 - + + - + + 批量删除 - + + - + + 批量删除 - + + 批量删除 - + + - + + 批量删除 - + + 批量删除 - + + 批量删除 - + + 批量删除 - + + 批量删除 - + + + + 批量删除 - + + 批量删除 - + + - + + - + + - + + - + + 批量删除 - + + - + + 批量删除 - + + 批量删除 - + + 批量删除 - + + - + +