-
-
-
- 关闭
- 开启
-
-
-
-
- 全天
- 自定义
-
-
-
-
-
-
- 每天
-
-
添加时间段
-
-
- --
-
- 删除
-
-
-
-
-
-
- 每周
-
-
添加星期
-
-
-
-
-
-
-
- --
-
-
- 删除
-
-
添加时间段
-
-
-
-
-
-
-
-
- 每日最多可提现
-
-
-
-
-
- 每月最多可提现
-
-
-
-
+
+
+
+
+
+ {{item.itemValue.falseLable}}
+ {{item.itemValue.trueLable}}
+
+
+
+
+
+
+
+
diff --git a/src/app/routes/sys-setting/components/basic-setting/basic-setting.component.ts b/src/app/routes/sys-setting/components/basic-setting/basic-setting.component.ts
index d8bba040..fcaf3dd5 100644
--- a/src/app/routes/sys-setting/components/basic-setting/basic-setting.component.ts
+++ b/src/app/routes/sys-setting/components/basic-setting/basic-setting.component.ts
@@ -39,13 +39,71 @@ export class BasicSettingComponent implements OnInit {
{ label: '周日', value: '周日' }
];
+ configList: any = [
+ {
+ configId: '1475393700370898945',
+ itemKey: 'goods.name.config.type.3.3',
+ itemType: 1,
+ itemValue: '{"data":false,"type":"radio","trueLable":"开启","falseLable":"关闭"}',
+ name: '货主是否可以设置车队长',
+ parentId: '0',
+ remark: ''
+ },
+ {
+ configId: '1475393700370898945',
+ itemKey: 'goods.name.config.type.3.4',
+ itemType: 1,
+ itemValue: '{"data":false,"type":"radio","trueLable":"开启","falseLable":"关闭"}',
+ name: '货主企业四要素校验开关',
+ parentId: '0',
+ remark: ''
+ },
+ {
+ configId: '1475393700370898945',
+ itemKey: 'goods.name.config.type.3.5',
+ itemType: 1,
+ itemValue: '{"data":false,"type":"radio","trueLable":"开启","falseLable":"关闭"}',
+ name: '货主提现功能开关',
+ parentId: '0',
+ remark: ''
+ },
+ {
+ configId: '1475393700370898945',
+ itemKey: 'goods.name.config.type.3.5',
+ itemType: 1,
+ itemValue: '{"data":"","type":"input","afterLable":"%"}',
+ name: '货主费率配置',
+ parentId: '0',
+ remark: ''
+ },
+ {
+ configId: '1475393700370898945',
+ itemKey: 'goods.name.config.type.3.5',
+ itemType: 1,
+ itemValue: '{"data":"5","type":"input","afterLable":"次"}',
+ name: '单个用户每天最大发送短信次数',
+ parentId: '0',
+ remark: ''
+ },
+ {
+ configId: '1475393700370898945',
+ itemKey: 'goods.name.config.type.3.5',
+ itemType: 1,
+ itemValue: '{"data":true,"type":"radio","trueLable":"开启","falseLable":"关闭","isCustom":true}',
+ name: '合同单权限',
+ parentId: '0',
+ remark: ''
+ }
+ ];
+
constructor(private service: SystemService) {}
- ngOnInit() {}
+ ngOnInit() {
+ this.configList = this.configList.map((item: any) => ({ ...item, itemValue: JSON.parse(item.itemValue) }));
+ }
changeType(type: number): void {
this.selectedTab = type;
console.log(type);
-
}
}
diff --git a/src/app/routes/sys-setting/components/role-management/edit/edit.component.spec.ts b/src/app/routes/sys-setting/components/role-management/edit/edit.component.spec.ts
deleted file mode 100644
index 0690cbe6..00000000
--- a/src/app/routes/sys-setting/components/role-management/edit/edit.component.spec.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-import { CucRoleEditComponent } from './edit.component';
-
-describe('CucRoleEditComponent', () => {
- let component: CucRoleEditComponent;
- let fixture: ComponentFixture
;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [CucRoleEditComponent],
- }).compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(CucRoleEditComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts b/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts
index 846d6e7b..4142d33c 100644
--- a/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts
+++ b/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts
@@ -61,17 +61,17 @@ export class StaffManagementComponent implements OnInit {
},
{
text: '冻结',
- iif: item => item.stateLocked === 0,
+ iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
click: item => this.action(item, 1)
},
{
text: '超管转授',
- iif: item => item.status === 0,
+ iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
click: item => this.transpowerAction(item)
},
{
text: '删除',
- iif: item => item.stateLocked === 0,
+ iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
click: item => this.action(item, 3)
}
]
@@ -124,12 +124,15 @@ export class StaffManagementComponent implements OnInit {
transpowerAction(item: any) {
const modal = this.nzModalService.create({
+ nzTitle: '超级管理员转授',
nzContent: BuyerTranspowerComponent,
nzComponentParams: { i: { ...item } },
nzFooter: null
});
modal.afterClose.subscribe(res => {
- this.st.load();
+ if (res) {
+ this.st.load();
+ }
});
}
diff --git a/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.html b/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.html
index 1d16b237..87d7b3b2 100644
--- a/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.html
+++ b/src/app/routes/sys-setting/components/staff-management/staff-modal/staff-modal.component.html
@@ -2,23 +2,9 @@
{{ i.id === 0 ? '添加员工' : '编辑员工' }}