Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		| @ -1,18 +1,14 @@ | ||||
| /* eslint-disable import/order */ | ||||
| /* eslint-disable import/no-duplicates */ | ||||
| import { HttpClientModule } from '@angular/common/http'; | ||||
| import { default as ngLang } from '@angular/common/locales/zh'; | ||||
| import { APP_INITIALIZER, DEFAULT_CURRENCY_CODE, LOCALE_ID, NgModule, Type } from '@angular/core'; | ||||
| import { APP_INITIALIZER, DEFAULT_CURRENCY_CODE, NgModule, Type } from '@angular/core'; | ||||
| import { BrowserModule } from '@angular/platform-browser'; | ||||
| import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||||
| import { SimpleInterceptor } from '@delon/auth'; | ||||
| import { NzNotificationModule } from 'ng-zorro-antd/notification'; | ||||
| import zh from '@angular/common/locales/zh'; | ||||
| registerLocaleData(zh); | ||||
| // #region global third module | ||||
|  | ||||
| import { BidiModule } from '@angular/cdk/bidi'; | ||||
| const GLOBAL_THIRD_MODULES: Array<Type<any>> = [BidiModule]; | ||||
| const GLOBAL_THIRD_MODULES: Array<Type<any>> = []; | ||||
|  | ||||
| // #endregion | ||||
|  | ||||
| @ -43,37 +39,19 @@ const APPINIT_PROVIDES = [ | ||||
|   }, | ||||
|   { provide: DEFAULT_CURRENCY_CODE, useValue: '¥' }, | ||||
|   { provide: RouteReuseStrategy, useClass: ReuseTabStrategy, deps: [ReuseTabService] }, | ||||
|   AuthGuard | ||||
| ]; | ||||
| // #endregion | ||||
|  | ||||
| import { AppComponent } from './app.component'; | ||||
| 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 { SharedModule } from './shared/shared.module'; | ||||
| import { STWidgetModule } from './shared/widget/st-widget.module'; | ||||
| import { registerLocaleData } from '@angular/common'; | ||||
| import { AuthGuard } from './core/guards/auth.guard'; | ||||
| import { RouteReuseStrategy } from '@angular/router'; | ||||
| import { RouteReuseStrategy, RouterModule } from '@angular/router'; | ||||
| import { ReuseTabService, ReuseTabStrategy } from '@delon/abc/reuse-tab'; | ||||
|  | ||||
| @NgModule({ | ||||
|   declarations: [AppComponent], | ||||
|   imports: [ | ||||
|     BrowserModule, | ||||
|     BrowserAnimationsModule, | ||||
|     HttpClientModule, | ||||
|     GlobalConfigModule.forRoot(), | ||||
|     CoreModule, | ||||
|     SharedModule, | ||||
|     LayoutModule, | ||||
|     RoutesModule, | ||||
|     STWidgetModule, | ||||
|     NzNotificationModule, | ||||
|     ...GLOBAL_THIRD_MODULES | ||||
|   ], | ||||
|   imports: [BrowserModule, BrowserAnimationsModule, CoreModule, RoutesModule, RouterModule, ...GLOBAL_THIRD_MODULES], | ||||
|   providers: [...INTERCEPTOR_PROVIDES, ...APPINIT_PROVIDES], | ||||
|   bootstrap: [AppComponent] | ||||
| }) | ||||
|  | ||||
| @ -1,10 +1,11 @@ | ||||
| import { NgModule, Optional, SkipSelf } from '@angular/core'; | ||||
| import { AuthGuard } from './guards/auth.guard'; | ||||
| import { EATokenGuard } from './guards/token.guard'; | ||||
|  | ||||
| import { throwIfAlreadyLoaded } from './module-import-guard'; | ||||
|  | ||||
| @NgModule({ | ||||
|   providers: [EATokenGuard] | ||||
|   providers: [AuthGuard, EATokenGuard] | ||||
| }) | ||||
| export class CoreModule { | ||||
|   constructor(@Optional() @SkipSelf() parentModule: CoreModule) { | ||||
|  | ||||
| @ -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> | ||||
|  | ||||
|  | ||||
| @ -40,6 +40,7 @@ import { AccountDetailComponent } from './components/account-detail/account-deta | ||||
| import { CaptchaModule } from './components/captcha'; | ||||
| import { rebateTableModule } from './components/rebate-table'; | ||||
| import { SearchDrawerModule } from './components/search-drawer'; | ||||
| import { HttpClientModule } from '@angular/common/http'; | ||||
| // import { SearchDrawerComponent } from './components/search-drawer/search-drawer.component'; | ||||
|  | ||||
|  | ||||
| @ -71,6 +72,7 @@ const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent, Accou | ||||
|     CommonModule, | ||||
|     FormsModule, | ||||
|     RouterModule, | ||||
|     HttpClientModule, | ||||
|     ReactiveFormsModule, | ||||
|     AlainThemeModule.forChild(), | ||||
|     DelonACLModule, | ||||
| @ -83,6 +85,7 @@ const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent, Accou | ||||
|   exports: [ | ||||
|     CommonModule, | ||||
|     FormsModule, | ||||
|     HttpClientModule, | ||||
|     ReactiveFormsModule, | ||||
|     RouterModule, | ||||
|     AlainThemeModule, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user