edit
This commit is contained in:
@ -19,12 +19,16 @@ import { ContractManagementIndexComponent } from './components/index/index.compo
|
|||||||
import { ContractManagementPolicyComponent } from './components/policy/policy.component';
|
import { ContractManagementPolicyComponent } from './components/policy/policy.component';
|
||||||
import { ContractManagementTemplateComponent } from './components/template/template.component';
|
import { ContractManagementTemplateComponent } from './components/template/template.component';
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: 'index', component: ContractManagementIndexComponent },
|
{ path: 'index', component: ContractManagementIndexComponent, data: { guard: { ability: ['CONTRACT-INDEX-searchDetail'] } } },
|
||||||
{ path: 'index/detail/:id', component: ContractManagementDetailComponent },
|
{ path: 'index/detail/:id', component: ContractManagementDetailComponent },
|
||||||
{ path: 'template', component: ContractManagementTemplateComponent },
|
{ path: 'template', component: ContractManagementTemplateComponent, data: { guard: { ability: ['CONTRACT-TEMPLATE-search'] } } },
|
||||||
{ path: 'template/text/:id', component: ContractManagementTemplateTextComponent },
|
{
|
||||||
{ path: 'policy', component: ContractManagementPolicyComponent },
|
path: 'template/text/:id',
|
||||||
{ path: 'partner', component: ContractManagementPartnerComponent },
|
component: ContractManagementTemplateTextComponent,
|
||||||
|
data: { guard: { ability: ['CONTRACT-TEMPLATE-detail'] } }
|
||||||
|
},
|
||||||
|
{ path: 'policy', component: ContractManagementPolicyComponent, data: { guard: { ability: ['CONTRACT-POLICY-search'] } } },
|
||||||
|
{ path: 'partner', component: ContractManagementPartnerComponent }
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="rightBox">
|
<div class="rightBox">
|
||||||
<nz-tabset [nzSize]="'small'">
|
<nz-tabset [nzSize]="'small'">
|
||||||
<nz-tab nzTitle="操作权限">
|
<nz-tab nzTitle="操作权限(查询权限必须勾选)">
|
||||||
<div *ngIf="origin.buttonInfoList && origin.buttonInfoList.length">
|
<div *ngIf="origin.buttonInfoList && origin.buttonInfoList.length">
|
||||||
<label style="width: 100%" nz-checkbox [ngModel]="_apiAuthSet.has(item.functionButtonId)"
|
<label style="width: 100%" nz-checkbox [ngModel]="_apiAuthSet.has(item.functionButtonId)"
|
||||||
*ngFor="let item of origin.buttonInfoList"
|
*ngFor="let item of origin.buttonInfoList"
|
||||||
|
|||||||
Reference in New Issue
Block a user