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 @@
批量删除
-
+
+
批量删除
-
+
+
批量删除
-
+
+
-
+
+
批量删除
-
+
+
-
+
+
批量删除
-
+
+
批量删除
-
+
+
-
+
+
批量删除
-
+
+
批量删除
-
+
+
批量删除
-
+
+
批量删除
-
+
+
批量删除
-
+
+
+
+
批量删除
-
+
+
批量删除
-
+
+
-
+
+
-
+
+
-
+
+
-
+
+
批量删除
-
+
+
-
+
+
批量删除
-
+
+
批量删除
-
+
+
批量删除
-
+
+
-
+
+