feat: 综合实例、权限管理重构

This commit is contained in:
陈凯龙
2021-10-22 17:11:12 +08:00
parent 07adefb89b
commit a4bd2068a5
29 changed files with 1715 additions and 242 deletions

View File

@@ -157,7 +157,7 @@ export function useWork(option?: InitOption) {
}
// 删除多选
function dels(item: IObj, single: boolean, callback: Fn) {
function dels(item: IObj, single?: boolean, callback?: Fn) {
delData(
async () => {
let ids: Nullable<IObj[]> = null
@@ -190,7 +190,7 @@ export function useWork(option?: InitOption) {
}
// 打开弹窗
function open(row: IObj, component: string, options: DilogOption) {
function open(row: Nullable<IObj>, component: string, options?: DilogOption) {
comName.value = component
dialogTitle.value =
(options && options.title) || (!row ? '新增' : component === 'Detail' ? '详情' : '编辑')