edit
This commit is contained in:
		| @ -2,6 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STColumnBadge, STComponent, STData } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { DynamicSettingModalComponent } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { UsermanageService } from '../../../services/usercenter.service'; | ||||
| @Component({ | ||||
| @ -82,6 +83,19 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit { | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   settingAction(item?: any) { | ||||
|     this.modal.create({ | ||||
|       nzTitle: '基础设置', | ||||
|       nzContent: DynamicSettingModalComponent, | ||||
|       nzWidth: 900, | ||||
|       nzComponentParams: { | ||||
|         extendType: '4', | ||||
|         businessId: item.id | ||||
|       }, | ||||
|       nzFooter: null | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   expandToggle() { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/expand', this._$expand); | ||||
| @ -206,6 +220,10 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit { | ||||
|             click: item => { | ||||
|               this.router.navigate(['/usercenter/driver/captain/detail', item.appUserId]); | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             text: '基础设置', | ||||
|             click: item => this.settingAction(item) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|  | ||||
| @ -2,6 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STColumnBadge, STComponent, STData } from '@delon/abc/st'; | ||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { DynamicSettingModalComponent } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { UsermanageService } from '../../services/usercenter.service'; | ||||
| @Component({ | ||||
| @ -77,6 +78,19 @@ export class UserCenterComponentsDriverComponent implements OnInit { | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   settingAction(item?: any) { | ||||
|     this.modal.create({ | ||||
|       nzTitle: '基础设置', | ||||
|       nzContent: DynamicSettingModalComponent, | ||||
|       nzWidth: 900, | ||||
|       nzComponentParams: { | ||||
|         extendType: '3', | ||||
|         businessId: item.id | ||||
|       }, | ||||
|       nzFooter: null | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   expandToggle() { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/expand', this._$expand); | ||||
| @ -264,6 +278,10 @@ export class UserCenterComponentsDriverComponent implements OnInit { | ||||
|               this.router.navigate(['./detail', item.appUserId], { relativeTo: this.ar }); | ||||
|               // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             text: '基础设置', | ||||
|             click: item => this.settingAction(item) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|  | ||||
| @ -2,6 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STColumnBadge, STComponent, STData } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { DynamicSettingModalComponent } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { UsermanageService } from '../../../services/usercenter.service'; | ||||
| @Component({ | ||||
| @ -52,6 +53,20 @@ export class FreightComponentsListComponent implements OnInit { | ||||
|       return i; | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   settingAction(item?: any) { | ||||
|     this.modal.create({ | ||||
|       nzTitle: '基础设置', | ||||
|       nzContent: DynamicSettingModalComponent, | ||||
|       nzWidth: 900, | ||||
|       nzComponentParams: { | ||||
|         extendType: '2', | ||||
|         businessId: item.id | ||||
|       }, | ||||
|       nzFooter: null | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   initSF() { | ||||
|     this.schema = { | ||||
|       properties: { | ||||
| @ -180,6 +195,10 @@ export class FreightComponentsListComponent implements OnInit { | ||||
|               this.router.navigate(['./detail', item.id], { relativeTo: this.ar }); | ||||
|               // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             text: '基础设置', | ||||
|             click: item => this.settingAction(item) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|  * @FilePath: \tms-obc-web\src\app\routes\usercenter\usercenter.module.ts | ||||
|  */ | ||||
| import { NgModule } from '@angular/core'; | ||||
| import { SharedModule } from '@shared'; | ||||
| import { DynamicSettingModule, SharedModule } from '@shared'; | ||||
| import { UserCenterComponentsDriverCaptainComponent } from './components/driver/captain/captain.component'; | ||||
| import { UserCenterComponentsDriverDetailComponent } from './components/driver/detail/detail.component'; | ||||
| import { UserCenterComponentsDriverComponent } from './components/driver/driver.component'; | ||||
| @ -40,7 +40,7 @@ const COMPONENTS = [ | ||||
| ]; | ||||
|  | ||||
| @NgModule({ | ||||
|   imports: [SharedModule, UsercenterRoutingModule], | ||||
|   imports: [SharedModule, UsercenterRoutingModule, DynamicSettingModule], | ||||
|   declarations: [...COMPONENTS] | ||||
| }) | ||||
| export class UsercenterModule {} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user