所有页面的按钮标识和自定义路由标识的匹配

This commit is contained in:
康冉冉
2025-12-09 14:22:28 +08:00
parent 4c634ab06a
commit 2dced36534
9 changed files with 73 additions and 69 deletions
+6 -6
View File
@@ -63,13 +63,13 @@
],
tableButton: {
top: [
{content: '新增', fnCode: 'insert', type: 'primary', icon: 'el-icon-plus', hasPermi: 'problemRecord:add'},
{content: '删除', fnCode: 'delete', type: 'danger', icon: 'el-icon-delete', hasPermi: 'problemRecord:delete'},
{content: '导出', fnCode: 'export', type: 'primary', icon: 'el-icon-download', hasPermi: 'problemRecord:export'},
{content: '新增', fnCode: 'insert', type: 'primary', icon: 'el-icon-plus', hasPermi: 'sync:problemRecord:add'},
{content: '删除', fnCode: 'delete', type: 'danger', icon: 'el-icon-delete', hasPermi: 'sync:problemRecord:delete'},
{content: '导出', fnCode: 'export', type: 'primary', icon: 'el-icon-download', hasPermi: 'sync:problemRecord:export'},
],
line: [
{content: '修改', fnCode: 'edit', type: 'text', icon: 'el-icon-edit', hasPermi: 'problemRecord:edit'},
{content: '查看', fnCode: 'view', type: 'text', icon: 'el-icon-view', hasPermi: 'problemRecord:view'},
{content: '修改', fnCode: 'edit', type: 'text', icon: 'el-icon-edit', hasPermi: 'sync:problemRecord:edit'},
{content: '查看', fnCode: 'details', type: 'text', icon: 'el-icon-view', hasPermi: 'sync:problemRecord:details'},
]
}
}
@@ -132,7 +132,7 @@
}
});
break;
case 'view':
case 'details':
this.fnDetails(rowData);
break;
case 'delete':