UI
This commit is contained in:
@ -2,21 +2,23 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema } from '@delon/form';
|
||||
import { DynamicSettingModalComponent } from '@shared';
|
||||
import { DynamicSettingModalComponent, SearchDrawerService } from '@shared';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { BasicTableComponent } from 'src/app/routes/commom';
|
||||
import { UsermanageService } from '../../../services/usercenter.service';
|
||||
@Component({
|
||||
selector: 'app-usercenter-components-driver-config',
|
||||
templateUrl: './driver-config.component.html',
|
||||
styleUrls: ['./driver-config.component.less']
|
||||
styleUrls: ['../../../../commom/less/commom-table.less']
|
||||
})
|
||||
export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
||||
export class UserCenterComponentsDriverConfigComponent extends BasicTableComponent implements OnInit {
|
||||
schema: SFSchema = this.initSF();
|
||||
columns: STColumn[] = this.initST();
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
|
||||
constructor(public service: UsermanageService, private modal: NzModalService) {}
|
||||
constructor(public service: UsermanageService, private modal: NzModalService, public searchDrawerService: SearchDrawerService) {
|
||||
super(searchDrawerService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询参数
|
||||
@ -33,6 +35,10 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
search() {
|
||||
this.st?.load(1);
|
||||
}
|
||||
|
||||
settingAction(item?: any) {
|
||||
const modal = this.modal.create({
|
||||
nzTitle: '配置',
|
||||
@ -105,7 +111,7 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
||||
// { title: '', type: 'checkbox', className: 'text-center' },
|
||||
{ title: '司机姓名', className: 'text-center', width: '170px', index: 'name' },
|
||||
{ title: '手机号', className: 'text-center', width: '170px', index: 'mobile' },
|
||||
{ title: '类型', className: 'text-center', width: '170px',render: 'isCaptain' },
|
||||
{ title: '类型', className: 'text-center', width: '170px', render: 'isCaptain' },
|
||||
{ title: '月承运金额上限(元)', className: 'text-center', width: '200px', render: 'monthFreightAmount' },
|
||||
{ title: '日提现金额上限(元)', className: 'text-center', width: '200px', render: 'dayWithdrawalAmount' },
|
||||
{ title: '月提现金额上限(元)', className: 'text-center', width: '200px', render: 'monthWithdrawalAmount' },
|
||||
|
||||
Reference in New Issue
Block a user