diff --git a/src/app/routes/insurance-management/insurance-management-routing.module.ts b/src/app/routes/insurance-management/insurance-management-routing.module.ts
index 1ff630fd..d9348af8 100644
--- a/src/app/routes/insurance-management/insurance-management-routing.module.ts
+++ b/src/app/routes/insurance-management/insurance-management-routing.module.ts
@@ -1,5 +1,5 @@
/*
- * @Description :
+ * @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-01-06 09:24:00
@@ -13,13 +13,12 @@ import { RouterModule, Routes } from '@angular/router';
import { insuranceManagementListComponent } from './components/list/list.component';
import { insuranceManagementSetComponent } from './components/set/set.component';
-
const routes: Routes = [
- { path: 'list', component: insuranceManagementListComponent },
- { path: 'list-set', component: insuranceManagementSetComponent },
-]
+ { path: 'list', component: insuranceManagementListComponent, data: { guard: { ability: ['INSURANCE-LIST-search'] } } },
+ { path: 'list-set', component: insuranceManagementSetComponent, data: { guard: { ability: ['INSURANCE-LISTDETAIL-set'] } } }
+];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
-export class InsuranceManagementRoutingModule { }
+export class InsuranceManagementRoutingModule {}
diff --git a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html
index db84f3c8..180dc545 100644
--- a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html
+++ b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.html
@@ -14,10 +14,14 @@
- - 编辑
- - 上移
- - 下移
- - 删除
+ - 编辑
+ - 上移
+ - 下移
+ - 删除
@@ -25,7 +29,8 @@
-
@@ -39,7 +44,8 @@
-
diff --git a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts
index 4806f3d7..0d3cf1d9 100644
--- a/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts
+++ b/src/app/routes/sys-setting/components/goods-name-config/goods-name-config.component.ts
@@ -28,18 +28,22 @@ export class GoodsNameConfigComponent implements OnInit {
buttons: [
{
text: '编辑',
+ acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-edit'] },
click: item => this.typeItemAction(item)
},
{
text: '上移',
+ acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-sort'] },
click: item => this.sortTypeItem(item, 3)
},
{
text: '下移',
+ acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-sort'] },
click: item => this.sortTypeItem(item, 4)
},
{
text: '删除',
+ acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-delete'] },
click: item => this.removeTypeItem(item)
}
]