Optimize structure
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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 {}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
})
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user