-
-
-
-
+
+
- {{functionInfo.permissionsCode || '-'}}
+
diff --git a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.less b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.less
index e69de29b..40e50505 100644
--- a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.less
+++ b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.less
@@ -0,0 +1,6 @@
+:host:ng-deep {
+ st-td {
+ word-break: break-all;
+ word-wrap : break-word;
+ }
+}
\ No newline at end of file
diff --git a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts
index 902238b2..e9668879 100644
--- a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts
+++ b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts
@@ -21,6 +21,7 @@ export class AuthDrawerComponent implements OnInit {
id = null;
appId = '';
+ code = '';
functionInfo: any = {};
functions: any[] = [];
@@ -52,7 +53,7 @@ export class AuthDrawerComponent implements OnInit {
functionAction(item?: any, isDisabled = false) {
if (item) {
- this.functionInfo = { ...item, buttonId: item.id, id: item.functionButtonId };
+ this.functionInfo = { ...item, id: item.functionButtonId };
} else {
this.functionInfo = {};
}
@@ -126,9 +127,9 @@ export class AuthDrawerComponent implements OnInit {
private initST(): STColumn[] {
return [
- { title: '权限名称', index: 'name', width: 120 },
- { title: '权限编码', index: 'permissionsCode' },
- { title: '权限路径', index: 'permissionsUrl' },
+ { title: '权限名称', index: 'permissionsName', width: 120 },
+ { title: '权限编码', render: 'permissionsCode' },
+ { title: '权限路径', index: 'permissionsUrl', className: 'break-word-all', width: 200 },
{
title: '操作',
width: '150px',
diff --git a/src/app/shared/shared-zorro.module.ts b/src/app/shared/shared-zorro.module.ts
index 5bfa0098..03c39ce3 100644
--- a/src/app/shared/shared-zorro.module.ts
+++ b/src/app/shared/shared-zorro.module.ts
@@ -44,6 +44,7 @@ import { NzUploadModule } from 'ng-zorro-antd/upload';
import { NzCascaderModule } from 'ng-zorro-antd/cascader';
import { NzAnchorModule } from 'ng-zorro-antd/anchor';
import { NzAffixModule } from 'ng-zorro-antd/affix';
+import { NzTypographyModule } from 'ng-zorro-antd/typography';
export const SHARED_ZORRO_MODULES = [
NzButtonModule,
NzGridModule,
@@ -82,4 +83,5 @@ export const SHARED_ZORRO_MODULES = [
NzCascaderModule,
NzAnchorModule,
NzAffixModule,
+ NzTypographyModule
];
diff --git a/src/styles.less b/src/styles.less
index 68960edc..68492e62 100644
--- a/src/styles.less
+++ b/src/styles.less
@@ -31,4 +31,9 @@ input[type="number"] {
.alain-pro__sider-logo{
padding-left: 12px;
+}
+
+.break-word-all{
+ word-break: break-all;
+ word-wrap : break-word;
}
\ No newline at end of file