Optimize structure

This commit is contained in:
Taric Xin
2022-05-11 16:47:27 +08:00
parent 6760f5da45
commit f1fc336850
13 changed files with 27 additions and 46 deletions

View File

@ -22,11 +22,8 @@ import { ContractManagementService } from '../../services/contract-management.se
})
export class ContractManagementDetailComponent implements OnInit {
constructor(
private nzModalService: NzModalService,
public service: ContractManagementService,
public route: ActivatedRoute,
private datePipe: DatePipe,
private router: Router
public route: ActivatedRoute
) {}
textStatus = '合同详情';
name: any;

View File

@ -2,7 +2,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.less']
template: ''
})
export class DashboardComponent {}

View File

@ -83,11 +83,6 @@ const routes: Routes = [
]
},
// passport
{
path: 'agreement',
component: OrderAgreementComponent,
data: { title: '协议', titleI18n: 'app.login.agreement' }
},
{ path: '', loadChildren: () => import('./passport/passport.module').then(m => m.PassportModule) },
{ path: 'exception', loadChildren: () => import('./exception/exception.module').then(m => m.ExceptionModule) },
// 单页不包裹Layout

View File

@ -1,16 +1,24 @@
import { NgModule, Type } from '@angular/core';
import { SharedModule } from '@shared';
import { SharedModule, STWidgetModule } from '@shared';
// dashboard pages
import { DashboardComponent } from './dashboard/dashboard.component';
import { RouteRoutingModule } from './routes-routing.module';
import { BasicTableComponent } from './commom/components/basic-table/basic-table.component';
import { LayoutModule } from '../layout/layout.module';
import { GlobalConfigModule } from '../global-config.module';
const COMPONENTS = [DashboardComponent, BasicTableComponent];
const COMPONENTS_NOROUNT: Array<Type<void>> = [];
@NgModule({
imports: [SharedModule, RouteRoutingModule],
imports: [
LayoutModule,
SharedModule,
GlobalConfigModule.forRoot(),
STWidgetModule,
RouteRoutingModule
],
declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
entryComponents: COMPONENTS_NOROUNT
})

View File

@ -98,7 +98,7 @@
</ng-template>
<ng-template #tpl>
<span style="font-size: 14px;"> 国家法规及行政命令禁限运货物不能托运
<a target="_blank" [queryParams]="{ type: 15 }" [routerLink]="['/agreement']">《禁运物品说明》</a>
<a target="_blank" [queryParams]="{ type: 15 }" [routerLink]="['/passport/agreement']">《禁运物品说明》</a>
</span>
</ng-template>
</sf>

View File

@ -146,7 +146,7 @@
</ng-template>
<ng-template #tpl>
<span style="font-size: 14px;"> 国家法规及行政命令禁限运货物不能托运
<a target="_blank" [queryParams]="{ type: 15 }" [routerLink]="['/agreement']">《禁运物品说明》</a>
<a target="_blank" [queryParams]="{ type: 15 }" [routerLink]="['/passport/agreement']">《禁运物品说明》</a>
</span>
</ng-template>
</sf>
@ -201,7 +201,7 @@
<nz-alert nzType="warning" [nzMessage]="template1" nzShowIcon></nz-alert>
</ng-template>
<ng-template #template1>①香港、澳门、台湾、西藏、新疆不予承保②单次运输保额仅限200万元以内③保险详细内容及注意事项请见<a target="_blank"
[queryParams]="{ type: 10 }" [routerLink]="['/agreement']">《保险告知函》</a></ng-template>
[queryParams]="{ type: 10 }" [routerLink]="['/passport/agreement']">《保险告知函》</a></ng-template>
</sf>
</div>
</div>

View File

@ -145,7 +145,7 @@
</ng-template>
<ng-template #tpl>
<span style="font-size: 14px;"> 国家法规及行政命令禁限运货物不能托运
<a target="_blank" [queryParams]="{ type: 15 }" [routerLink]="['/agreement']">《禁运物品说明》</a>
<a target="_blank" [queryParams]="{ type: 15 }" [routerLink]="['/passport/agreement']">《禁运物品说明》</a>
</span>
</ng-template>
</sf>
@ -200,7 +200,7 @@
<nz-alert nzType="warning" [nzMessage]="template1" nzShowIcon></nz-alert>
</ng-template>
<ng-template #template1>①香港、澳门、台湾、西藏、新疆不予承保②单次运输保额仅限200万元以内③保险详细内容及注意事项请见<a target="_blank"
[queryParams]="{ type: 10 }" [routerLink]="['/agreement']">《保险告知函》</a></ng-template>
[queryParams]="{ type: 10 }" [routerLink]="['/passport/agreement']">《保险告知函》</a></ng-template>
</sf>
</div>
</div>

View File

@ -56,7 +56,7 @@
<!-- 数据列表 -->
<st #st [columns]="columns" [data]='service.$api_freight_config_page' [req]="{ process: beforeReq }" [page]="{}"
[scroll]="{ x: '1200px' }" [loading]="false" (change)="stChange($event)">
[scroll]="{ x: '1200px',y:scrollY }" [loading]="false" (change)="stChange($event)">
</st>
</nz-card>