diff --git a/src/app/core/guards/auth.guard.ts b/src/app/core/guards/auth.guard.ts
index 9c42852e..89c471f8 100644
--- a/src/app/core/guards/auth.guard.ts
+++ b/src/app/core/guards/auth.guard.ts
@@ -80,7 +80,7 @@ export class AuthGuard extends ACLGuard {
}
for (const key of Object.keys(params)) {
if (_route.indexOf(params[key]) > -1) {
- _route = _route.replace(params[key], ':id');
+ _route = _route.replace(params[key], ':' + key);
}
}
diff --git a/src/app/routes/sys-setting/components/role-management/edit/edit.component.html b/src/app/routes/sys-setting/components/role-management/edit/edit.component.html
index 6b382452..5c8790c6 100644
--- a/src/app/routes/sys-setting/components/role-management/edit/edit.component.html
+++ b/src/app/routes/sys-setting/components/role-management/edit/edit.component.html
@@ -1,15 +1,16 @@
-
-
+
+
+
\ No newline at end of file
diff --git a/src/app/routes/sys-setting/components/role-management/edit/edit.component.ts b/src/app/routes/sys-setting/components/role-management/edit/edit.component.ts
index 966a809e..7a3f2ec8 100644
--- a/src/app/routes/sys-setting/components/role-management/edit/edit.component.ts
+++ b/src/app/routes/sys-setting/components/role-management/edit/edit.component.ts
@@ -18,25 +18,18 @@ export class SettingRoleEditComponent implements OnInit {
sf!: SFComponent;
@ViewChild('menu', { static: false })
menu!: SettingMenuComponent;
- record: any = {};
roleInfoData: any = {};
authorityAssistId: any[] = [];
- appList: any[] = [];
- source = '';
- i: any;
+ params: any;
schema!: SFSchema;
authority: any[] = [];
- roleTplData: any[] = [];
- ui!: SFUISchema;
- constructor(private modal: NzModalRef, public service: SystemService, private envSrv: EAEnvironmentService) {}
+ constructor(private modal: NzModalRef, public service: SystemService) {}
ngOnInit(): void {
- if (this.i.id) {
+ this.initSF();
+ if (this.params.id) {
this.getRoleInfo();
}
- if (this.source === '') {
- this.initSF();
- }
}
initSF() {
this.schema = {
@@ -57,7 +50,7 @@ export class SettingRoleEditComponent implements OnInit {
default: this.roleInfoData.roleDescription,
ui: {
autosize: { minRows: 3 },
- hidden: this.i.lookType === 'detail',
+ hidden: this.params.lookType === 'detail',
placeholder: '请输入角色描述',
widget: 'textarea'
}
@@ -65,46 +58,15 @@ export class SettingRoleEditComponent implements OnInit {
},
required: ['roleName']
};
- this.ui = {
- '*': {
- spanLabelFixed: 120,
- grid: { span: 24 }
- }
- };
- }
- getAppList() {
- const params = {
- pageSize: 10000,
- pageIndex: 1
- };
- return this.service.request(this.service.$api_getAppList, params).pipe(
- map(res => {
- this.appList = res;
- const versionArr: any[] = [];
- const resArr = res;
- if (resArr && resArr.length) {
- resArr.forEach((item: any) => {
- versionArr.push({
- label: item.appName,
- value: item.appId
- });
- });
- }
- return versionArr;
- })
- );
}
getRoleInfo() {
const params = {
- id: this.i.id
+ id: this.params.id
};
- this.service.request(this.service.$api_getRoleInfo, params).subscribe(res => {
+ this.service.request(this.params.infoUrl, params).subscribe(res => {
if (res) {
this.roleInfoData = res;
- }
-
- if (this.source === '') {
this.initSF();
}
});
@@ -117,6 +79,10 @@ export class SettingRoleEditComponent implements OnInit {
this.modal.destroy();
}
sure() {
+ if (!this.sf?.valid) {
+ this.service.msgSrv.warning('校验错误');
+ return;
+ }
// this.menu.washTree();
// if (this.authorityAssistId.length === 0) {
// this.service.msgSrv.warning('请选择权限!');
@@ -124,28 +90,20 @@ export class SettingRoleEditComponent implements OnInit {
// }
const auths = this.menu?.washTree();
const params: any = {
- id: this.i.id,
+ id: this.params.id,
...this.sf.value,
authority: auths.authority,
authorityAssistId: auths.authorityAssistId
};
- // if (this.sf) {
- // this.appList.forEach(item => {
- // if (item.appId === this.sf.value.appId) {
- // params.tenantId = item.tenantId;
- // }
- // });
- // }
- // delete params.tplId;
- if (this.i.id === 0) {
+ if (this.params.id === 0) {
delete params.id;
}
- if (this.i.id) {
- this.service.request(this.service.$api_update_role, params).subscribe(res => {
+ if (this.params.id) {
+ this.service.request(this.params.updateUrl, params).subscribe(res => {
this.modal.close(true);
});
} else {
- this.service.request(this.service.$api_save_role, params).subscribe(res => {
+ this.service.request(this.params.addUrl, params).subscribe(res => {
this.modal.close(true);
});
}
diff --git a/src/app/routes/sys-setting/components/role-management/menu/funcs.ts b/src/app/routes/sys-setting/components/role-management/menu/funcs.ts
deleted file mode 100644
index e120aa3f..00000000
--- a/src/app/routes/sys-setting/components/role-management/menu/funcs.ts
+++ /dev/null
@@ -1,1897 +0,0 @@
-export const Funcs = [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 0,
- icon: '',
- link: '',
- title: '主导航',
- isLeaf: false,
- parentId: '0',
- i18n: 'menu.main',
- hide: false,
- sorted: '0',
- expanded: true,
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 1,
- icon: 'anticon anticon-dashboard',
- link: '/dashboard',
- title: '工作台',
- isLeaf: true,
- parentId: '1420203656199319554',
- i18n: 'menu.dashboard',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '工作台',
- id: '1420203657109483522',
- functionType: 0,
- key: '1420203657109483522'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 1,
- icon: 'anticon anticon-appstore',
- link: '',
- title: '设置中心',
- isLeaf: false,
- parentId: '1420203656199319554',
- i18n: 'menu.systemset',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '/system/info',
- title: '企业信息',
- isLeaf: true,
- parentId: '1420203657138843649',
- i18n: 'menu.systemset.info',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '企业信息',
- id: '1420203659714146306',
- functionType: 0,
- key: '1420203659714146306'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/system/base',
- title: '通用设置',
- isLeaf: true,
- parentId: '1420203657138843649',
- i18n: 'menu.systemset.base',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '通用设置',
- id: '1420203659827392514',
- functionType: 0,
- key: '1420203659827392514'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '/system/staffmanagement',
- title: '员工管理',
- isLeaf: true,
- parentId: '1420203657138843649',
- i18n: 'menu.systemset.staffmanagement',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '员工管理',
- id: '1420203659911278594',
- functionType: 0,
- key: '1420203659911278594'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/system/roles',
- title: '角色管理',
- isLeaf: true,
- parentId: '1420203657138843649',
- i18n: 'menu.systemset.roles',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '角色管理',
- id: '1420203659923861505',
- functionType: 0,
- key: '1420203659923861505'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/system/violationType',
- title: '违规类型配置',
- isLeaf: true,
- parentId: '1420203657138843649',
- i18n: 'menu.systemset.violationType',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '违规类型配置',
- id: '1420203660024524802',
- functionType: 0,
- key: '1420203660024524802'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/system/log',
- title: '操作日志',
- isLeaf: true,
- parentId: '1420203657138843649',
- i18n: 'menu.systemset.log',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '操作日志',
- id: '1420203660209074178',
- functionType: 0,
- key: '1420203660209074178'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '设置中心',
- id: '1420203657138843649',
- functionType: 0,
- key: '1420203657138843649'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 1,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '商品中心',
- isLeaf: false,
- parentId: '1420203656199319554',
- i18n: 'menu.cmc',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '商品管理',
- isLeaf: false,
- parentId: '1420203657289838594',
- i18n: 'menu.cmc.goods',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/goods',
- title: '商品列表',
- isLeaf: true,
- parentId: '1420203661043740674',
- i18n: 'menu.cmc.goods.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品列表',
- id: '1420203666928349186',
- functionType: 0,
- key: '1420203666928349186'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/goods/view',
- title: '商品详情',
- isLeaf: true,
- parentId: '1420203661043740674',
- i18n: 'menu.cmc.goods.view',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品详情',
- id: '1420203666974486530',
- functionType: 0,
- key: '1420203666974486530'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/goods/check',
- title: '商品审核',
- isLeaf: true,
- parentId: '1420203661043740674',
- i18n: 'menu.cmc.goods.check',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品审核',
- id: '1420203667297447938',
- functionType: 0,
- key: '1420203667297447938'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/goods/record',
- title: '违规下架记录',
- isLeaf: true,
- parentId: '1420203661043740674',
- i18n: 'menu.cmc.goods.record',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '违规下架记录',
- id: '1420203667339390978',
- functionType: 0,
- key: '1420203667339390978'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/goods/check/checkdetail',
- title: '商品审核详情',
- isLeaf: true,
- parentId: '1420203661043740674',
- i18n: 'menu.cmc.goods.checkdetail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品审核详情',
- id: '1420203667813347330',
- functionType: 0,
- key: '1420203667813347330'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品管理',
- id: '1420203661043740674',
- functionType: 0,
- key: '1420203661043740674'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '服务管理',
- isLeaf: false,
- parentId: '1420203657289838594',
- i18n: 'menu.cmc.service',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/service/view',
- title: '服务详情',
- isLeaf: true,
- parentId: '1420203661475753985',
- i18n: 'menu.cmc.service.view',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务详情',
- id: '1420203668606070786',
- functionType: 0,
- key: '1420203668606070786'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/service',
- title: '服务列表',
- isLeaf: true,
- parentId: '1420203661475753985',
- i18n: 'menu.cmc.service.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务列表',
- id: '1420203668987752449',
- functionType: 0,
- key: '1420203668987752449'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/service/check/checkdetail',
- title: '服务审核详情',
- isLeaf: true,
- parentId: '1420203661475753985',
- i18n: 'menu.cmc.service.checkdetail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务审核详情',
- id: '1420203668996141057',
- functionType: 0,
- key: '1420203668996141057'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/service/check',
- title: '服务审核',
- isLeaf: true,
- parentId: '1420203661475753985',
- i18n: 'menu.cmc.service.check',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务审核',
- id: '1420203669059055617',
- functionType: 0,
- key: '1420203669059055617'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务管理',
- id: '1420203661475753985',
- functionType: 0,
- key: '1420203661475753985'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '标签管理',
- isLeaf: false,
- parentId: '1420203657289838594',
- i18n: 'menu.cmc.tags',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/tags',
- title: '服务列表',
- isLeaf: true,
- parentId: '1420203661479948291',
- i18n: 'menu.cmc.tags.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务列表',
- id: '1420203669025501186',
- functionType: 0,
- key: '1420203669025501186'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/cmc/tags/add',
- title: '新增标签',
- isLeaf: true,
- parentId: '1420203661479948291',
- i18n: 'menu.cmc.tags.add',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '新增标签',
- id: '1420203669025501187',
- functionType: 0,
- key: '1420203669025501187'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '标签管理',
- id: '1420203661479948291',
- functionType: 0,
- key: '1420203661479948291'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品中心',
- id: '1420203657289838594',
- functionType: 0,
- key: '1420203657289838594'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 1,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '用户中心',
- isLeaf: false,
- parentId: '1420203656199319554',
- i18n: 'menu.usercenter',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'anticon anticon-appstore',
- link: '',
- title: '供应商管理',
- isLeaf: false,
- parentId: '1420203657306615810',
- i18n: 'menu.usercenter.supplier',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 3,
- icon: 'anticon anticon-dashboard',
- link: '/usercenter/supplier/list',
- title: '供应商列表',
- isLeaf: false,
- parentId: '1420203660372652033',
- i18n: 'menu.usercenter.supplier.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: 'anticon anticon-dashboard',
- link: '/usercenter/supplier/list/save',
- title: '独立店铺',
- isLeaf: true,
- parentId: '1420203666026573825',
- i18n: 'menu.usercenter.supplier.list.save',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '独立店铺',
- id: '1465976910655643649',
- functionType: 0,
- key: '1465976910655643649'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '供应商列表',
- id: '1420203666026573825',
- functionType: 0,
- key: '1420203666026573825'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'anticon anticon-dashboard',
- link: '/usercenter/supplier/list/view',
- title: '供应商详情',
- isLeaf: true,
- parentId: '1420203660372652033',
- i18n: 'menu.usercenter.supplier.detail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '供应商详情',
- id: '1420203666148208641',
- functionType: 0,
- key: '1420203666148208641'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'anticon anticon-dashboard',
- link: '/usercenter/supplier/authority',
- title: '供应商权限',
- isLeaf: true,
- parentId: '1420203660372652033',
- i18n: 'menu.usercenter.supplier.authority',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '供应商权限',
- id: '1420203666160791555',
- functionType: 0,
- key: '1420203666160791555'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/usercenter/supplier/apply/view',
- title: '入驻详情',
- isLeaf: true,
- parentId: '1420203660372652033',
- i18n: 'menu.usercenter.supplier.apply.detail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '入驻详情',
- id: '1420203666160791556',
- functionType: 0,
- key: '1420203666160791556'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'anticon anticon-dashboard',
- link: '/usercenter/supplier/apply',
- title: '供应商入驻',
- isLeaf: true,
- parentId: '1420203660372652033',
- i18n: 'menu.usercenter.supplier.apply',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '供应商入驻',
- id: '1420203666454392835',
- functionType: 0,
- key: '1420203666454392835'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '供应商管理',
- id: '1420203660372652033',
- functionType: 0,
- key: '1420203660372652033'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '/usercenter/user',
- title: '用户查询',
- isLeaf: true,
- parentId: '1420203657306615810',
- i18n: 'menu.usercenter.user',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '用户查询',
- id: '1420203660372652034',
- functionType: 0,
- key: '1420203660372652034'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '采购商管理',
- isLeaf: false,
- parentId: '1420203657306615810',
- i18n: 'menu.usercenter.buyer',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/usercenter/buyer/authentication-view',
- title: '认证详情',
- isLeaf: true,
- parentId: '1420203660582367233',
- i18n: 'menu.usercenter.buyer.authentication.detail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '认证详情',
- id: '1420203666043351042',
- functionType: 0,
- key: '1420203666043351042'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/usercenter/buyer/authentication',
- title: '采购商认证',
- isLeaf: true,
- parentId: '1420203660582367233',
- i18n: 'menu.usercenter.buyer.authentication',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '采购商认证',
- id: '1420203666517307393',
- functionType: 0,
- key: '1420203666517307393'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/usercenter/buyer/search',
- title: '采购商查询',
- isLeaf: true,
- parentId: '1420203660582367233',
- i18n: 'menu.usercenter.buyer.search',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '采购商查询',
- id: '1420203666915766273',
- functionType: 0,
- key: '1420203666915766273'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '采购商管理',
- id: '1420203660582367233',
- functionType: 0,
- key: '1420203660582367233'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '用户中心',
- id: '1420203657306615810',
- functionType: 0,
- key: '1420203657306615810'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 1,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '订单中心',
- isLeaf: false,
- parentId: '1420203656199319554',
- i18n: 'menu.ctc',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/ctc/order/orderlist',
- title: '商品订单',
- isLeaf: true,
- parentId: '1420203657315004417',
- i18n: 'menu.ctc.order.orderlist',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '商品订单',
- id: '1420203660645281793',
- functionType: 0,
- key: '1420203660645281793'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/ctc/order/purpose-order',
- title: '采购意向单',
- isLeaf: true,
- parentId: '1420203657315004417',
- i18n: 'menu.ctc.order.purpose-order',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '采购意向单',
- id: '1420203660649476097',
- functionType: 0,
- key: '1420203660649476097'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/ctc/order/service-order',
- title: '服务订单',
- isLeaf: true,
- parentId: '1420203657315004417',
- i18n: 'menu.ctc.order.service-order',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务订单',
- id: '1420203660691419138',
- functionType: 0,
- key: '1420203660691419138'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/ctc/order/serviceorderdetail',
- title: '服务订单详情',
- isLeaf: true,
- parentId: '1420203657315004417',
- i18n: 'menu.ctc.order.serviceorderdetail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务订单详情',
- id: '1420203661047934978',
- functionType: 0,
- key: '1420203661047934978'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 2,
- icon: '',
- link: '/ctc/order/orderdetail',
- title: '订单详情',
- isLeaf: true,
- parentId: '1420203657315004417',
- i18n: 'menu.ctc.order.orderdetail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '订单详情',
- id: '1420203661047934979',
- functionType: 0,
- key: '1420203661047934979'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '订单中心',
- id: '1420203657315004417',
- functionType: 0,
- key: '1420203657315004417'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 1,
- icon: 'anticon anticon-appstore',
- link: '/download/list',
- title: '下载中心',
- isLeaf: true,
- parentId: '1420203656199319554',
- i18n: 'menu.download',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '下载中心',
- id: '1420203657327587329',
- functionType: 0,
- key: '1420203657327587329'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 1,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '运营中心',
- isLeaf: false,
- parentId: '1420203656199319554',
- i18n: 'menu.operationcenter',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'anticon anticon-dashboard',
- link: '',
- title: '前台配置',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.operationcenter.frontconfig',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/category',
- title: '前台商品类目',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.category',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '前台商品类目',
- id: '1420203667372945409',
- functionType: 0,
- key: '1420203667372945409'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/ad/list/editad',
- title: '编辑广告位',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.ad.editad',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '编辑广告位',
- id: '1420203667758821377',
- functionType: 0,
- key: '1420203667758821377'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/service',
- title: '前台服务类目',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.service',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '前台服务类目',
- id: '1420203667767209986',
- functionType: 0,
- key: '1420203667767209986'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'icon-appstore',
- link: '/operationcenter/frontconfig/ad/list',
- title: '广告位管理',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.ad',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '广告位管理',
- id: '1420203667796570114',
- functionType: 0,
- key: '1420203667796570114'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/ad/list/addad',
- title: '新增广告位',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.ad.addad',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '新增广告位',
- id: '1420203667934982145',
- functionType: 0,
- key: '1420203667934982145'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'icon-appstore',
- link: '/operationcenter/frontconfig/addata',
- title: '宣传数据',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.addata',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '宣传数据',
- id: '1420203668182446082',
- functionType: 0,
- key: '1420203668182446082'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'icon-appstore',
- link: '/operationcenter/frontconfig/supplier',
- title: '推荐供应商',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.supplier',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '推荐供应商',
- id: '1420203668186640385',
- functionType: 0,
- key: '1420203668186640385'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 3,
- icon: 'icon-appstore',
- link: '/operationcenter/frontconfig/adimg/list',
- title: '广告图管理',
- isLeaf: false,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.adimg',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/frontconfig/adimg/list/addad',
- title: '新增广告',
- isLeaf: true,
- parentId: '1420203668203417601',
- i18n: 'menu.operationcenter.adimg.addad',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '新增广告',
- id: '1420203671172984833',
- functionType: 0,
- key: '1420203671172984833'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/frontconfig/adimg/list/editad',
- title: '编辑广告',
- isLeaf: true,
- parentId: '1420203668203417601',
- i18n: 'menu.operationcenter.adimg.editad',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '编辑广告',
- id: '1420203671294619649',
- functionType: 0,
- key: '1420203671294619649'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/frontconfig/adimg/list/view',
- title: '广告图详情',
- isLeaf: true,
- parentId: '1420203668203417601',
- i18n: 'menu.operationcenter.adimg.detail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '广告图详情',
- id: '1449064125224194049',
- functionType: 0,
- key: '1449064125224194049'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '广告图管理',
- id: '1420203668203417601',
- functionType: 0,
- key: '1420203668203417601'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 3,
- icon: 'icon-appstore',
- link: '/operationcenter/frontconfig/net-config/list',
- title: '服务网点配置',
- isLeaf: false,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.service.net',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/frontconfig/net-config/list/addad',
- title: '新增',
- isLeaf: true,
- parentId: '1449064113471754242',
- i18n: 'menu.operationcenter.service.net.add',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '新增',
- id: '1449064125211611138',
- functionType: 0,
- key: '1449064125211611138'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/frontconfig/net-config/list/editad',
- title: '编辑',
- isLeaf: true,
- parentId: '1449064113471754242',
- i18n: 'menu.operationcenter.service.net.edit',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '编辑',
- id: '1449064125215805441',
- functionType: 0,
- key: '1449064125215805441'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '服务网点配置',
- id: '1449064113471754242',
- functionType: 0,
- key: '1449064113471754242'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: 'icon-appstore',
- link: '/operationcenter/frontconfig/cooperate',
- title: '合作页面配置',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.cooperate',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '合作页面配置',
- id: '1449064114306420737',
- functionType: 0,
- key: '1449064114306420737'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/homepage',
- title: '首页配置',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.HonePage',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '首页配置',
- id: '1449064114730045442',
- functionType: 0,
- key: '1449064114730045442'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/cooperation',
- title: '合作详情页',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.cooperation.detail',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '合作详情页',
- id: '1449064115136892929',
- functionType: 0,
- key: '1449064115136892929'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/frontconfig/platform',
- title: '平台介绍页面配置',
- isLeaf: true,
- parentId: '1420203661471559682',
- i18n: 'menu.operationcenter.platform',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '平台介绍页面配置',
- id: '1449064115581489153',
- functionType: 0,
- key: '1449064115581489153'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '前台配置',
- id: '1420203661471559682',
- functionType: 0,
- key: '1420203661471559682'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: '',
- link: '',
- title: '合伙人管理',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.oc.partners',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/partners/invite',
- title: '合伙人邀请统计',
- isLeaf: true,
- parentId: '1420203661479948290',
- i18n: 'menu.oc.partners.invite',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '合伙人邀请统计',
- id: '1420203668597682177',
- functionType: 0,
- key: '1420203668597682177'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/partners/list',
- title: '合伙人申请管理',
- isLeaf: true,
- parentId: '1420203661479948290',
- i18n: 'menu.oc.partners.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '合伙人申请管理',
- id: '1420203668643819522',
- functionType: 0,
- key: '1420203668643819522'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '合伙人管理',
- id: '1420203661479948290',
- functionType: 0,
- key: '1420203661479948290'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: '',
- link: '',
- title: '资讯管理',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.oc.info-manage',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/info-manage/add-info',
- title: '添加资讯',
- isLeaf: true,
- parentId: '1420203661903572994',
- i18n: 'menu.oc.info-manage.add-info',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '添加资讯',
- id: '1420203669696589826',
- functionType: 0,
- key: '1420203669696589826'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/info-manage/info-details',
- title: '查看资讯',
- isLeaf: true,
- parentId: '1420203661903572994',
- i18n: 'menu.oc.info-manage.info-details',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '查看资讯',
- id: '1420203669872750594',
- functionType: 0,
- key: '1420203669872750594'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/info-manage/info-list',
- title: '资讯列表',
- isLeaf: true,
- parentId: '1420203661903572994',
- i18n: 'menu.oc.info-manage.info-list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '资讯列表',
- id: '1420203669885333505',
- functionType: 0,
- key: '1420203669885333505'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/info-manage/edit-info',
- title: '编辑资讯',
- isLeaf: true,
- parentId: '1420203661903572994',
- i18n: 'menu.oc.info-manage.edit-info',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '编辑资讯',
- id: '1420203669910499330',
- functionType: 0,
- key: '1420203669910499330'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '资讯管理',
- id: '1420203661903572994',
- functionType: 0,
- key: '1420203661903572994'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: 'icon-appstore',
- link: '',
- title: '业务资讯管理',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.operationcenter.business',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 3,
- icon: '',
- link: '/operationcenter/business/audit',
- title: '业务资讯审核',
- isLeaf: false,
- parentId: '1420203661907767298',
- i18n: 'menu.operationcenter.business.audit',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/business/list/detail',
- title: '业务资讯详情',
- isLeaf: true,
- parentId: '1420203669432348674',
- i18n: 'menu.operationcenter.business.lsit.detail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯详情',
- id: '1420203671445614594',
- functionType: 0,
- key: '1420203671445614594'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/business/list/detail',
- title: '业务资讯详情',
- isLeaf: true,
- parentId: '1420203669432348674',
- i18n: 'menu.operationcenter.business.lsit.detail1',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯详情',
- id: '1449064125215805442',
- functionType: 0,
- key: '1449064125215805442'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯审核',
- id: '1420203669432348674',
- functionType: 0,
- key: '1420203669432348674'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 3,
- icon: '',
- link: '/operationcenter/business/list',
- title: '业务资讯列表',
- isLeaf: false,
- parentId: '1420203661907767298',
- i18n: 'menu.operationcenter.business.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 4,
- icon: '',
- link: '/operationcenter/business/list/detail',
- title: '业务资讯详情',
- isLeaf: true,
- parentId: '1420203669621092353',
- i18n: 'menu.operationcenter.business.lsit.detail',
- hide: true,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯详情',
- id: '1420203671495946241',
- functionType: 0,
- key: '1420203671495946241'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯列表',
- id: '1420203669621092353',
- functionType: 0,
- key: '1420203669621092353'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/operationcenter/business/deal',
- title: '业务资讯处理',
- isLeaf: true,
- parentId: '1420203661907767298',
- i18n: 'menu.operationcenter.business.deal',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯处理',
- id: '1420203669704978433',
- functionType: 0,
- key: '1420203669704978433'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '业务资讯管理',
- id: '1420203661907767298',
- functionType: 0,
- key: '1420203661907767298'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: '',
- link: '',
- title: '更多管理',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.ope.center.more',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/announcements/list',
- title: '公告管理',
- isLeaf: true,
- parentId: '1420203662058762242',
- i18n: 'menu.ope.center.notice',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '公告管理',
- id: '1420203670275403777',
- functionType: 0,
- key: '1420203670275403777'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/hc/content-conf-index',
- title: '帮助中心',
- isLeaf: true,
- parentId: '1420203662058762242',
- i18n: 'menu.ope.center.help',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '帮助中心',
- id: '1420203670279598081',
- functionType: 0,
- key: '1420203670279598081'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/feekback/list',
- title: '意见反馈',
- isLeaf: true,
- parentId: '1420203662058762242',
- i18n: 'menu.ope.center.opinion',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '意见反馈',
- id: '1420203670434787330',
- functionType: 0,
- key: '1420203670434787330'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/oc/feekback-type/list',
- title: '反馈类型',
- isLeaf: true,
- parentId: '1420203662058762242',
- i18n: 'menu.ope.center.back.type',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '反馈类型',
- id: '1420203670602559489',
- functionType: 0,
- key: '1420203670602559489'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '更多管理',
- id: '1420203662058762242',
- functionType: 0,
- key: '1420203662058762242'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: '',
- link: '',
- title: '项目管理',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.operationcenter.object.manage',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/ctc/order/object',
- title: '项目列表',
- isLeaf: true,
- parentId: '1449064098389037058',
- i18n: 'menu.operationcenter.object.list',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '项目列表',
- id: '1449064112561590274',
- functionType: 0,
- key: '1449064112561590274'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '项目管理',
- id: '1449064098389037058',
- functionType: 0,
- key: '1449064098389037058'
- },
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: false,
- level: 2,
- icon: '',
- link: '',
- title: '项目管理',
- isLeaf: false,
- parentId: '1420203657663131650',
- i18n: 'menu.operationcenter.object.manage1',
- hide: false,
- sorted: '0',
- shortcut: 0,
- children: [
- {
- hideInBreadcrumb: 0,
- reuse: 0,
- isLea: true,
- level: 3,
- icon: '',
- link: '/ctc/order/object',
- title: '项目列表',
- isLeaf: true,
- parentId: '1449078391142617090',
- i18n: 'menu.operationcenter.object.list1',
- hide: false,
- sorted: '0',
- shortcut: 0,
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '项目列表',
- id: '1449078669807980545',
- functionType: 0,
- key: '1449078669807980545'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '项目管理',
- id: '1449078391142617090',
- functionType: 0,
- key: '1449078391142617090'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '运营中心',
- id: '1420203657663131650',
- functionType: 0,
- key: '1420203657663131650'
- }
- ],
- appId: '2537B72DDA534361AE4931903F0BFEB3',
- menuType: 0,
- text: '主导航',
- id: '1420203656199319554',
- functionType: 0,
- key: '1420203656199319554'
- }
-];
diff --git a/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts b/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts
index 5e6210b2..635ec659 100644
--- a/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts
+++ b/src/app/routes/sys-setting/components/role-management/menu/menu.component.ts
@@ -1,10 +1,8 @@
import { ChangeDetectorRef, Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core';
import { ModalHelper, _HttpClient } from '@delon/theme';
import { EAEnvironmentService } from '@shared';
-import { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/core/tree';
import { NzTreeComponent } from 'ng-zorro-antd/tree';
import { SystemService } from '../../../services/system.service';
-import { Funcs } from './funcs';
@Component({
selector: 'app-cuc-menu',
@@ -20,10 +18,9 @@ export class SettingMenuComponent implements OnInit, OnChanges {
defaultExpandedKeys: any[] = [];
defaultCheckedKeys: any[] = [];
functionList: any[] = [];
- selectProject: any = {};
- selectApp: any = {};
@Input() type = 'edit';
@Input() source = '';
+ @Input() appId = this.envSrv.env.appId;
@Input() isAuthorityIdDTOList: any[] = [];
@Input() authorityAssistId: any[] = [];
@Input() roleId: any;
@@ -44,17 +41,15 @@ export class SettingMenuComponent implements OnInit, OnChanges {
ngOnInit() {}
getAllFunction() {
- this.service
- .request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.envSrv.env.appId }, 'POST', true, 'FORM')
- .subscribe(res => {
- // if (this.source === 'onlyRelationAuth') {
- // this.addDisabledTree(res);
- // } else {
- // // this.addDisabledLeafTree(res);
- // }
- this.functionList = res;
- this.defaultCheckedKeys = this.authorityAssistId;
- });
+ this.service.request(this.service.$api_getAllFunctionInfoByAppId, { appId: this.appId }, 'POST', true, 'FORM').subscribe(res => {
+ // if (this.source === 'onlyRelationAuth') {
+ // this.addDisabledTree(res);
+ // } else {
+ // // this.addDisabledLeafTree(res);
+ // }
+ this.functionList = res;
+ this.defaultCheckedKeys = this.authorityAssistId;
+ });
}
addAuthority(origin: { id: any; all: any }, node: { buttonInfoList: any[] }, item?: { checked: any; functionButtonId: any }) {
if (this.authority.length && this.authority.filter(authItem => authItem.authorityId === origin.id).length) {
@@ -207,7 +202,7 @@ export class SettingMenuComponent implements OnInit, OnChanges {
}
});
}
-
+
addDisabledTree(arr: any[]) {
arr.forEach((item: any) => {
item.disableCheckbox = true;
@@ -283,7 +278,7 @@ export class SettingMenuComponent implements OnInit, OnChanges {
}
});
}
-
+
initButtonList(id: any, origin: any) {
const params = {
id
diff --git a/src/app/routes/sys-setting/components/role-management/role-management.component.html b/src/app/routes/sys-setting/components/role-management/role-management.component.html
index 03b892de..8ebc4ac9 100644
--- a/src/app/routes/sys-setting/components/role-management/role-management.component.html
+++ b/src/app/routes/sys-setting/components/role-management/role-management.component.html
@@ -14,13 +14,12 @@
-