Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-05-11 16:50:41 +08:00
13 changed files with 27 additions and 46 deletions

View File

@ -1,18 +1,14 @@
/* eslint-disable import/order */ /* eslint-disable import/order */
/* eslint-disable import/no-duplicates */ /* eslint-disable import/no-duplicates */
import { HttpClientModule } from '@angular/common/http'; import { APP_INITIALIZER, DEFAULT_CURRENCY_CODE, NgModule, Type } from '@angular/core';
import { default as ngLang } from '@angular/common/locales/zh';
import { APP_INITIALIZER, DEFAULT_CURRENCY_CODE, LOCALE_ID, NgModule, Type } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { SimpleInterceptor } from '@delon/auth'; import { SimpleInterceptor } from '@delon/auth';
import { NzNotificationModule } from 'ng-zorro-antd/notification';
import zh from '@angular/common/locales/zh'; import zh from '@angular/common/locales/zh';
registerLocaleData(zh); registerLocaleData(zh);
// #region global third module // #region global third module
import { BidiModule } from '@angular/cdk/bidi'; const GLOBAL_THIRD_MODULES: Array<Type<any>> = [];
const GLOBAL_THIRD_MODULES: Array<Type<any>> = [BidiModule];
// #endregion // #endregion
@ -43,37 +39,19 @@ const APPINIT_PROVIDES = [
}, },
{ provide: DEFAULT_CURRENCY_CODE, useValue: '¥' }, { provide: DEFAULT_CURRENCY_CODE, useValue: '¥' },
{ provide: RouteReuseStrategy, useClass: ReuseTabStrategy, deps: [ReuseTabService] }, { provide: RouteReuseStrategy, useClass: ReuseTabStrategy, deps: [ReuseTabService] },
AuthGuard
]; ];
// #endregion // #endregion
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { CoreModule } from './core/core.module'; import { CoreModule } from './core/core.module';
import { GlobalConfigModule } from './global-config.module';
import { LayoutModule } from './layout/layout.module';
import { RoutesModule } from './routes/routes.module'; import { RoutesModule } from './routes/routes.module';
import { SharedModule } from './shared/shared.module';
import { STWidgetModule } from './shared/widget/st-widget.module';
import { registerLocaleData } from '@angular/common'; import { registerLocaleData } from '@angular/common';
import { AuthGuard } from './core/guards/auth.guard'; import { RouteReuseStrategy, RouterModule } from '@angular/router';
import { RouteReuseStrategy } from '@angular/router';
import { ReuseTabService, ReuseTabStrategy } from '@delon/abc/reuse-tab'; import { ReuseTabService, ReuseTabStrategy } from '@delon/abc/reuse-tab';
@NgModule({ @NgModule({
declarations: [AppComponent], declarations: [AppComponent],
imports: [ imports: [BrowserModule, BrowserAnimationsModule, CoreModule, RoutesModule, RouterModule, ...GLOBAL_THIRD_MODULES],
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
GlobalConfigModule.forRoot(),
CoreModule,
SharedModule,
LayoutModule,
RoutesModule,
STWidgetModule,
NzNotificationModule,
...GLOBAL_THIRD_MODULES
],
providers: [...INTERCEPTOR_PROVIDES, ...APPINIT_PROVIDES], providers: [...INTERCEPTOR_PROVIDES, ...APPINIT_PROVIDES],
bootstrap: [AppComponent] bootstrap: [AppComponent]
}) })

View File

@ -1,10 +1,11 @@
import { NgModule, Optional, SkipSelf } from '@angular/core'; import { NgModule, Optional, SkipSelf } from '@angular/core';
import { AuthGuard } from './guards/auth.guard';
import { EATokenGuard } from './guards/token.guard'; import { EATokenGuard } from './guards/token.guard';
import { throwIfAlreadyLoaded } from './module-import-guard'; import { throwIfAlreadyLoaded } from './module-import-guard';
@NgModule({ @NgModule({
providers: [EATokenGuard] providers: [AuthGuard, EATokenGuard]
}) })
export class CoreModule { export class CoreModule {
constructor(@Optional() @SkipSelf() parentModule: CoreModule) { constructor(@Optional() @SkipSelf() parentModule: CoreModule) {

View File

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

View File

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

View File

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

View File

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

View File

@ -98,7 +98,7 @@
</ng-template> </ng-template>
<ng-template #tpl> <ng-template #tpl>
<span style="font-size: 14px;"> 国家法规及行政命令禁限运货物不能托运 <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> </span>
</ng-template> </ng-template>
</sf> </sf>

View File

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

View File

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

View File

@ -56,7 +56,7 @@
<!-- 数据列表 --> <!-- 数据列表 -->
<st #st [columns]="columns" [data]='service.$api_freight_config_page' [req]="{ process: beforeReq }" [page]="{}" <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> </st>
</nz-card> </nz-card>

View File

@ -40,6 +40,7 @@ import { AccountDetailComponent } from './components/account-detail/account-deta
import { CaptchaModule } from './components/captcha'; import { CaptchaModule } from './components/captcha';
import { rebateTableModule } from './components/rebate-table'; import { rebateTableModule } from './components/rebate-table';
import { SearchDrawerModule } from './components/search-drawer'; import { SearchDrawerModule } from './components/search-drawer';
import { HttpClientModule } from '@angular/common/http';
// import { SearchDrawerComponent } from './components/search-drawer/search-drawer.component'; // import { SearchDrawerComponent } from './components/search-drawer/search-drawer.component';
@ -71,6 +72,7 @@ const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent, Accou
CommonModule, CommonModule,
FormsModule, FormsModule,
RouterModule, RouterModule,
HttpClientModule,
ReactiveFormsModule, ReactiveFormsModule,
AlainThemeModule.forChild(), AlainThemeModule.forChild(),
DelonACLModule, DelonACLModule,
@ -83,6 +85,7 @@ const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent, Accou
exports: [ exports: [
CommonModule, CommonModule,
FormsModule, FormsModule,
HttpClientModule,
ReactiveFormsModule, ReactiveFormsModule,
RouterModule, RouterModule,
AlainThemeModule, AlainThemeModule,