This commit is contained in:
Taric Xin
2022-04-27 17:32:00 +08:00
parent 1b9f5bac29
commit ff7fd89b9f
2 changed files with 11 additions and 7 deletions

View File

@ -19,12 +19,16 @@ import { ContractManagementIndexComponent } from './components/index/index.compo
import { ContractManagementPolicyComponent } from './components/policy/policy.component';
import { ContractManagementTemplateComponent } from './components/template/template.component';
const routes: Routes = [
{ path: 'index', component: ContractManagementIndexComponent },
{ path: 'index', component: ContractManagementIndexComponent, data: { guard: { ability: ['CONTRACT-INDEX-searchDetail'] } } },
{ path: 'index/detail/:id', component: ContractManagementDetailComponent },
{ path: 'template', component: ContractManagementTemplateComponent },
{ path: 'template/text/:id', component: ContractManagementTemplateTextComponent },
{ path: 'policy', component: ContractManagementPolicyComponent },
{ path: 'partner', component: ContractManagementPartnerComponent },
{ path: 'template', component: ContractManagementTemplateComponent, data: { guard: { ability: ['CONTRACT-TEMPLATE-search'] } } },
{
path: 'template/text/:id',
component: ContractManagementTemplateTextComponent,
data: { guard: { ability: ['CONTRACT-TEMPLATE-detail'] } }
},
{ path: 'policy', component: ContractManagementPolicyComponent, data: { guard: { ability: ['CONTRACT-POLICY-search'] } } },
{ path: 'partner', component: ContractManagementPartnerComponent }
];
@NgModule({

View File

@ -7,7 +7,7 @@
</div>
<div class="rightBox">
<nz-tabset [nzSize]="'small'">
<nz-tab nzTitle="操作权限">
<nz-tab nzTitle="操作权限(查询权限必须勾选)">
<div *ngIf="origin.buttonInfoList && origin.buttonInfoList.length">
<label style="width: 100%" nz-checkbox [ngModel]="_apiAuthSet.has(item.functionButtonId)"
*ngFor="let item of origin.buttonInfoList"