定制化报表,基础核心

This commit is contained in:
helloDy
2023-12-14 14:01:19 +08:00
parent 8399081a6f
commit 79274aa8c8
23 changed files with 1264 additions and 63 deletions

View File

@@ -83,13 +83,19 @@ export default {
},
tableProps,
tableBtn: [
this.$auth.hasPermi(`base:core-hot-material:update`)
this.$auth.hasPermi(`base:core-hot-material-check:detail`)
? {
type: 'detail',
btnName: '详情',
}
: undefined,
this.$auth.hasPermi(`base:core-hot-material-check:update`)
? {
type: 'edit',
btnName: '编辑',
}
: undefined,
this.$auth.hasPermi(`base:core-hot-material:delete`)
this.$auth.hasPermi(`base:core-hot-material-check:delete`)
? {
type: 'delete',
btnName: '删除',
@@ -120,7 +126,7 @@ export default {
type: 'separate',
},
{
type: this.$auth.hasPermi('base:core-hot-material:create') ? 'button' : '',
type: this.$auth.hasPermi('base:core-hot-material-check:create') ? 'button' : '',
btnName: '新增',
name: 'add',
color: 'success',
@@ -143,6 +149,14 @@ export default {
// this.dataListLoading = false;
// });
// },
otherMethods(val) {
// 详情
this.addOrUpdateVisible = true;
this.addOrEditTitle = "详情";
this.$nextTick(() => {
this.$refs.addOrUpdate.init(val.data.id, true);
});
},
buttonClick(val) {
switch (val.btnName) {
case 'search':