edit
This commit is contained in:
@ -9,8 +9,8 @@
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { ACLService } from '@delon/acl';
|
||||
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { dateTimePickerUtil } from '@delon/util';
|
||||
import { SystemService } from '../../services/system.service';
|
||||
const NOJSONTYPE = new Set([8, 12, 13]);
|
||||
@Component({
|
||||
@ -23,7 +23,10 @@ export class BasicSettingComponent implements OnInit {
|
||||
selectedTab: any = null;
|
||||
labelWidth = 250;
|
||||
configList: any = [];
|
||||
constructor(public service: SystemService) {}
|
||||
isCanSave = false;
|
||||
constructor(public service: SystemService, private acl: ACLService) {
|
||||
this.isCanSave = !!acl.data.abilities?.find(a => a === 'SYSTEM-BASIC_SETTING-save');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.getTypeList();
|
||||
|
||||
Reference in New Issue
Block a user