1915 lines
77 KiB
TypeScript
1915 lines
77 KiB
TypeScript
|
|
import { reactive } from 'vue'
|
||
|
|
|
||
|
|
interface TableStoreParams {
|
||
|
|
url: string
|
||
|
|
pk?: string
|
||
|
|
column: TableColumn[]
|
||
|
|
params?: anyObj
|
||
|
|
}
|
||
|
|
export default class TableStore {
|
||
|
|
public url
|
||
|
|
public pk
|
||
|
|
public table: CnTable = reactive({
|
||
|
|
ref: null,
|
||
|
|
selection: [],
|
||
|
|
data: [],
|
||
|
|
total: 0,
|
||
|
|
params: {
|
||
|
|
pageNum: 1,
|
||
|
|
pageSize: 10
|
||
|
|
},
|
||
|
|
loading: true,
|
||
|
|
column: []
|
||
|
|
})
|
||
|
|
|
||
|
|
constructor(public options: TableStoreParams) {
|
||
|
|
this.url = options.url
|
||
|
|
this.pk = options.pk || 'id'
|
||
|
|
this.table.column = options.column
|
||
|
|
Object.assign(this.table.params, options.params)
|
||
|
|
}
|
||
|
|
index() {
|
||
|
|
// 请求
|
||
|
|
this.table.data = [
|
||
|
|
{
|
||
|
|
id: 1,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu',
|
||
|
|
title: '控制台',
|
||
|
|
name: 'dashboard',
|
||
|
|
path: 'dashboard',
|
||
|
|
icon: 'fa fa-dashboard',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/dashboard.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: 'Remark lang',
|
||
|
|
weigh: 999,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1651926966,
|
||
|
|
create_time: 1646889188,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 94,
|
||
|
|
pid: 1,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'dashboard/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1694467750,
|
||
|
|
create_time: 1694467750
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 2,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu_dir',
|
||
|
|
title: '权限管理',
|
||
|
|
name: 'auth',
|
||
|
|
path: 'auth',
|
||
|
|
icon: 'fa fa-group',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 100,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648948034,
|
||
|
|
create_time: 1645876529,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 3,
|
||
|
|
pid: 2,
|
||
|
|
type: 'menu',
|
||
|
|
title: '角色组管理',
|
||
|
|
name: 'auth/group',
|
||
|
|
path: 'auth/group',
|
||
|
|
icon: 'fa fa-group',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/auth/group/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 99,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648162157,
|
||
|
|
create_time: 1646927597,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 4,
|
||
|
|
pid: 3,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'auth/group/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 99,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 5,
|
||
|
|
pid: 3,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'auth/group/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 99,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 6,
|
||
|
|
pid: 3,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'auth/group/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 99,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 7,
|
||
|
|
pid: 3,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'auth/group/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 99,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 8,
|
||
|
|
pid: 2,
|
||
|
|
type: 'menu',
|
||
|
|
title: '管理员管理',
|
||
|
|
name: 'auth/admin',
|
||
|
|
path: 'auth/admin',
|
||
|
|
icon: 'el-icon-UserFilled',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/auth/admin/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 98,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067239,
|
||
|
|
create_time: 1647549566,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 9,
|
||
|
|
pid: 8,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'auth/admin/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 98,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 10,
|
||
|
|
pid: 8,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'auth/admin/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 98,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 11,
|
||
|
|
pid: 8,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'auth/admin/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 98,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 12,
|
||
|
|
pid: 8,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'auth/admin/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 98,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 13,
|
||
|
|
pid: 2,
|
||
|
|
type: 'menu',
|
||
|
|
title: '菜单规则管理',
|
||
|
|
name: 'auth/rule',
|
||
|
|
path: 'auth/rule',
|
||
|
|
icon: 'el-icon-Grid',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/auth/rule/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 97,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648133759,
|
||
|
|
create_time: 1645876529,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 14,
|
||
|
|
pid: 13,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'auth/rule/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 97,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 15,
|
||
|
|
pid: 13,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'auth/rule/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 97,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 16,
|
||
|
|
pid: 13,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'auth/rule/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 97,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 17,
|
||
|
|
pid: 13,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'auth/rule/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 97,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 18,
|
||
|
|
pid: 13,
|
||
|
|
type: 'button',
|
||
|
|
title: '快速排序',
|
||
|
|
name: 'auth/rule/sortable',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 97,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 19,
|
||
|
|
pid: 2,
|
||
|
|
type: 'menu',
|
||
|
|
title: '管理员日志管理',
|
||
|
|
name: 'auth/adminLog',
|
||
|
|
path: 'auth/adminLog',
|
||
|
|
icon: 'el-icon-List',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/auth/adminLog/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 96,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067241,
|
||
|
|
create_time: 1647963918,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 20,
|
||
|
|
pid: 19,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'auth/adminLog/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 96,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 21,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu_dir',
|
||
|
|
title: '会员管理',
|
||
|
|
name: 'user',
|
||
|
|
path: 'user',
|
||
|
|
icon: 'fa fa-drivers-license',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 95,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648947448,
|
||
|
|
create_time: 1648049553,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 22,
|
||
|
|
pid: 21,
|
||
|
|
type: 'menu',
|
||
|
|
title: '会员管理',
|
||
|
|
name: 'user/user',
|
||
|
|
path: 'user/user',
|
||
|
|
icon: 'fa fa-user',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/user/user/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 94,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648255019,
|
||
|
|
create_time: 1648049712,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 23,
|
||
|
|
pid: 22,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'user/user/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 94,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 24,
|
||
|
|
pid: 22,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'user/user/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 94,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 25,
|
||
|
|
pid: 22,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'user/user/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 94,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 26,
|
||
|
|
pid: 22,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'user/user/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 94,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 27,
|
||
|
|
pid: 21,
|
||
|
|
type: 'menu',
|
||
|
|
title: '会员分组管理',
|
||
|
|
name: 'user/group',
|
||
|
|
path: 'user/group',
|
||
|
|
icon: 'fa fa-group',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/user/group/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 93,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067248,
|
||
|
|
create_time: 1648051141,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 28,
|
||
|
|
pid: 27,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'user/group/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 93,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 29,
|
||
|
|
pid: 27,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'user/group/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 93,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 30,
|
||
|
|
pid: 27,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'user/group/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 93,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 31,
|
||
|
|
pid: 27,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'user/group/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 93,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 32,
|
||
|
|
pid: 21,
|
||
|
|
type: 'menu',
|
||
|
|
title: '会员规则管理',
|
||
|
|
name: 'user/rule',
|
||
|
|
path: 'user/rule',
|
||
|
|
icon: 'fa fa-th-list',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/user/rule/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 92,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067247,
|
||
|
|
create_time: 1648051207,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 33,
|
||
|
|
pid: 32,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'user/rule/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 92,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 34,
|
||
|
|
pid: 32,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'user/rule/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 92,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 35,
|
||
|
|
pid: 32,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'user/rule/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 92,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 36,
|
||
|
|
pid: 32,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'user/rule/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 92,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 37,
|
||
|
|
pid: 32,
|
||
|
|
type: 'button',
|
||
|
|
title: '快速排序',
|
||
|
|
name: 'user/rule/sortable',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 92,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 38,
|
||
|
|
pid: 21,
|
||
|
|
type: 'menu',
|
||
|
|
title: '会员余额管理',
|
||
|
|
name: 'user/moneyLog',
|
||
|
|
path: 'user/moneyLog',
|
||
|
|
icon: 'el-icon-Money',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/user/moneyLog/index.vue',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 91,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648437356,
|
||
|
|
create_time: 1648052587,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 39,
|
||
|
|
pid: 38,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'user/moneyLog/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 91,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 40,
|
||
|
|
pid: 38,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'user/moneyLog/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 91,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 41,
|
||
|
|
pid: 21,
|
||
|
|
type: 'menu',
|
||
|
|
title: '会员积分管理',
|
||
|
|
name: 'user/scoreLog',
|
||
|
|
path: 'user/scoreLog',
|
||
|
|
icon: 'el-icon-Discount',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/user/scoreLog/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 90,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067246,
|
||
|
|
create_time: 1648052689,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 42,
|
||
|
|
pid: 41,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'user/scoreLog/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 90,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 43,
|
||
|
|
pid: 41,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'user/scoreLog/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 90,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 44,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu_dir',
|
||
|
|
title: '常规管理',
|
||
|
|
name: 'routine',
|
||
|
|
path: 'routine',
|
||
|
|
icon: 'fa fa-cogs',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 89,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648133739,
|
||
|
|
create_time: 1645876529,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 45,
|
||
|
|
pid: 44,
|
||
|
|
type: 'menu',
|
||
|
|
title: '系统配置',
|
||
|
|
name: 'routine/config',
|
||
|
|
path: 'routine/config',
|
||
|
|
icon: 'el-icon-Tools',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/routine/config/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 88,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648781089,
|
||
|
|
create_time: 1648053389,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 46,
|
||
|
|
pid: 45,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'routine/config/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 88,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 47,
|
||
|
|
pid: 45,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'routine/config/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 88,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 77,
|
||
|
|
pid: 45,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'routine/config/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 88,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1655375826,
|
||
|
|
create_time: 1655375812
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 48,
|
||
|
|
pid: 44,
|
||
|
|
type: 'menu',
|
||
|
|
title: '附件管理',
|
||
|
|
name: 'routine/attachment',
|
||
|
|
path: 'routine/attachment',
|
||
|
|
icon: 'fa fa-folder',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/routine/attachment/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: 'Remark lang',
|
||
|
|
weigh: 87,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067228,
|
||
|
|
create_time: 1647105410,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 49,
|
||
|
|
pid: 48,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'routine/attachment/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 87,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 50,
|
||
|
|
pid: 48,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'routine/attachment/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 87,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 51,
|
||
|
|
pid: 48,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'routine/attachment/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 87,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 52,
|
||
|
|
pid: 44,
|
||
|
|
type: 'menu',
|
||
|
|
title: '个人资料',
|
||
|
|
name: 'routine/adminInfo',
|
||
|
|
path: 'routine/adminInfo',
|
||
|
|
icon: 'fa fa-user',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/routine/adminInfo.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 86,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648067229,
|
||
|
|
create_time: 1645876529,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 53,
|
||
|
|
pid: 52,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'routine/adminInfo/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 86,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 54,
|
||
|
|
pid: 52,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'routine/adminInfo/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 86,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 78,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu',
|
||
|
|
title: '模块市场',
|
||
|
|
name: 'moduleStore/moduleStore',
|
||
|
|
path: 'moduleStore',
|
||
|
|
icon: 'el-icon-GoodsFilled',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/module/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 86,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1661317584,
|
||
|
|
create_time: 1661317424,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 83,
|
||
|
|
pid: 78,
|
||
|
|
type: 'button',
|
||
|
|
title: '更新',
|
||
|
|
name: 'moduleStore/moduleStore/update',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 5,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 82,
|
||
|
|
pid: 78,
|
||
|
|
type: 'button',
|
||
|
|
title: '卸载',
|
||
|
|
name: 'moduleStore/moduleStore/uninstall',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 4,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 81,
|
||
|
|
pid: 78,
|
||
|
|
type: 'button',
|
||
|
|
title: '调整状态',
|
||
|
|
name: 'moduleStore/moduleStore/changeState',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 3,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 80,
|
||
|
|
pid: 78,
|
||
|
|
type: 'button',
|
||
|
|
title: '安装',
|
||
|
|
name: 'moduleStore/moduleStore/install',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 2,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 79,
|
||
|
|
pid: 78,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'moduleStore/moduleStore/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 1,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 55,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu_dir',
|
||
|
|
title: '数据安全管理',
|
||
|
|
name: 'security',
|
||
|
|
path: 'security',
|
||
|
|
icon: 'fa fa-shield',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 85,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1649853629,
|
||
|
|
create_time: 1648948025,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 56,
|
||
|
|
pid: 55,
|
||
|
|
type: 'menu',
|
||
|
|
title: '数据回收站',
|
||
|
|
name: 'security/dataRecycleLog',
|
||
|
|
path: 'security/dataRecycleLog',
|
||
|
|
icon: 'fa fa-database',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/security/dataRecycleLog/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 84,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1651603319,
|
||
|
|
create_time: 1648948283,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 57,
|
||
|
|
pid: 56,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'security/dataRecycleLog/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 84,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 58,
|
||
|
|
pid: 56,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'security/dataRecycleLog/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 84,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 59,
|
||
|
|
pid: 56,
|
||
|
|
type: 'button',
|
||
|
|
title: '还原',
|
||
|
|
name: 'security/dataRecycleLog/restore',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 84,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 60,
|
||
|
|
pid: 56,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看详情',
|
||
|
|
name: 'security/dataRecycleLog/info',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 84,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 61,
|
||
|
|
pid: 55,
|
||
|
|
type: 'menu',
|
||
|
|
title: '敏感数据修改记录',
|
||
|
|
name: 'security/sensitiveDataLog',
|
||
|
|
path: 'security/sensitiveDataLog',
|
||
|
|
icon: 'fa fa-expeditedssl',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/security/sensitiveDataLog/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 83,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1649112262,
|
||
|
|
create_time: 1649059604,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 62,
|
||
|
|
pid: 61,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'security/sensitiveDataLog/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 83,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 63,
|
||
|
|
pid: 61,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'security/sensitiveDataLog/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 83,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 64,
|
||
|
|
pid: 61,
|
||
|
|
type: 'button',
|
||
|
|
title: '回滚',
|
||
|
|
name: 'security/sensitiveDataLog/rollback',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 83,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 65,
|
||
|
|
pid: 61,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看详情',
|
||
|
|
name: 'security/sensitiveDataLog/info',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 83,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 66,
|
||
|
|
pid: 55,
|
||
|
|
type: 'menu',
|
||
|
|
title: '数据回收规则管理',
|
||
|
|
name: 'security/dataRecycle',
|
||
|
|
path: 'security/dataRecycle',
|
||
|
|
icon: 'fa fa-database',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/security/dataRecycle/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '在此定义需要回收的数据,实现数据自动统一回收',
|
||
|
|
weigh: 82,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1651603319,
|
||
|
|
create_time: 1648948215,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 67,
|
||
|
|
pid: 66,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'security/dataRecycle/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 82,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 68,
|
||
|
|
pid: 66,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'security/dataRecycle/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 82,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 69,
|
||
|
|
pid: 66,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'security/dataRecycle/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 82,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 70,
|
||
|
|
pid: 66,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'security/dataRecycle/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 82,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 71,
|
||
|
|
pid: 55,
|
||
|
|
type: 'menu',
|
||
|
|
title: '敏感字段规则管理',
|
||
|
|
name: 'security/sensitiveData',
|
||
|
|
path: 'security/sensitiveData',
|
||
|
|
icon: 'fa fa-expeditedssl',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/security/sensitiveData/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '在此定义需要保护的敏感字段,随后系统将自动监听该字段的修改操作,并提供了敏感字段的修改回滚功能',
|
||
|
|
weigh: 81,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1649112263,
|
||
|
|
create_time: 1649005119,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 72,
|
||
|
|
pid: 71,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'security/sensitiveData/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 81,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 73,
|
||
|
|
pid: 71,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'security/sensitiveData/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 81,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 74,
|
||
|
|
pid: 71,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'security/sensitiveData/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 81,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806129
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 75,
|
||
|
|
pid: 71,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'security/sensitiveData/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 81,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1648065864,
|
||
|
|
create_time: 1647806112
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 90,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu',
|
||
|
|
title: 'CRUD代码生成',
|
||
|
|
name: 'crud/crud',
|
||
|
|
path: 'crud/crud',
|
||
|
|
icon: 'fa fa-code',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/crud/index.vue',
|
||
|
|
keepalive: 1,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 80,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1668848266,
|
||
|
|
create_time: 1668848266,
|
||
|
|
children: []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 76,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu',
|
||
|
|
title: 'BuildAdmin',
|
||
|
|
name: 'buildadmin',
|
||
|
|
path: 'buildadmin',
|
||
|
|
icon: 'local-logo',
|
||
|
|
menu_type: 'link',
|
||
|
|
url: 'https://doc.buildadmin.com',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '0',
|
||
|
|
update_time: 1651926977,
|
||
|
|
create_time: 1648947396,
|
||
|
|
children: []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 84,
|
||
|
|
pid: 0,
|
||
|
|
type: 'menu',
|
||
|
|
title: '知识库(可修改)',
|
||
|
|
name: 'testBuild',
|
||
|
|
path: 'testBuild',
|
||
|
|
icon: 'el-icon-Notebook',
|
||
|
|
menu_type: 'tab',
|
||
|
|
url: '',
|
||
|
|
component: '/src/views/backend/testBuild/index.vue',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1663685642,
|
||
|
|
create_time: 1663685461,
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
id: 91,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'crud/crud/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 3,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1668848809,
|
||
|
|
create_time: 1668848770
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 92,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '生成',
|
||
|
|
name: 'crud/crud/generate',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 2,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1668848809,
|
||
|
|
create_time: 1668848770
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 93,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'crud/crud/delete',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 1,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1668848921,
|
||
|
|
create_time: 1668848921
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 85,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '查看',
|
||
|
|
name: 'testBuild/index',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1663685461,
|
||
|
|
create_time: 1663685461
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 86,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '添加',
|
||
|
|
name: 'testBuild/add',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1663685461,
|
||
|
|
create_time: 1663685461
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 87,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '编辑',
|
||
|
|
name: 'testBuild/edit',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1663685461,
|
||
|
|
create_time: 1663685461
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 88,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '删除',
|
||
|
|
name: 'testBuild/del',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1663685461,
|
||
|
|
create_time: 1663685461
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 89,
|
||
|
|
pid: 84,
|
||
|
|
type: 'button',
|
||
|
|
title: '快速排序',
|
||
|
|
name: 'testBuild/sortable',
|
||
|
|
path: '',
|
||
|
|
icon: '',
|
||
|
|
menu_type: null,
|
||
|
|
url: '',
|
||
|
|
component: '',
|
||
|
|
keepalive: 0,
|
||
|
|
extend: 'none',
|
||
|
|
remark: '',
|
||
|
|
weigh: 0,
|
||
|
|
status: '1',
|
||
|
|
update_time: 1663685461,
|
||
|
|
create_time: 1663685461
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
this.table.loading = false
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 表格内的事件统一响应
|
||
|
|
* @param event 事件:selection-change=选中项改变,page-size-change=每页数量改变,current-page-change=翻页
|
||
|
|
* @param data 携带数据
|
||
|
|
*/
|
||
|
|
onTableAction = (event: string, data: anyObj) => {
|
||
|
|
const actionFun = new Map([
|
||
|
|
[
|
||
|
|
'selection-change',
|
||
|
|
() => {
|
||
|
|
this.table.selection = data as TableRow[]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'page-size-change',
|
||
|
|
() => {
|
||
|
|
this.table.params!.pageSize = data.size
|
||
|
|
}
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'current-page-change',
|
||
|
|
() => {
|
||
|
|
this.table.params!.pageNum = data.page
|
||
|
|
this.index()
|
||
|
|
}
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'field-change',
|
||
|
|
() => {
|
||
|
|
console.warn('field-change')
|
||
|
|
}
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'default',
|
||
|
|
() => {
|
||
|
|
console.warn('No action defined')
|
||
|
|
}
|
||
|
|
]
|
||
|
|
])
|
||
|
|
|
||
|
|
const action = actionFun.get(event) || actionFun.get('default')
|
||
|
|
action!.call(this)
|
||
|
|
}
|
||
|
|
}
|