edit
This commit is contained in:
@ -7,6 +7,7 @@ import { UsermanageService } from '../../../services/usercenter.service';
|
||||
@Component({
|
||||
selector: 'app-usercenter-components-driver-captain',
|
||||
templateUrl: './captain.component.html',
|
||||
styleUrls: ['./captain.component.less']
|
||||
})
|
||||
export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
_$expand = false;
|
||||
@ -41,8 +42,8 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
unifiedSocialCreditCode3: '常用服务',
|
||||
unifiedSocialCreditCode2: '正常',
|
||||
tenantId: 2
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
|
||||
@ -59,7 +60,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
*/
|
||||
get reqParams() {
|
||||
const params: any = {
|
||||
...(this.sf && this.sf.value),
|
||||
...(this.sf && this.sf.value)
|
||||
};
|
||||
if (this.sf?.value.effectiveDate) {
|
||||
params.effectiveDateStart = this.sf?.value.effectiveDate[0];
|
||||
@ -71,13 +72,13 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
}
|
||||
|
||||
get selectedRows() {
|
||||
return this.st?.list.filter((item) => item.checked) || [];
|
||||
return this.st?.list.filter(item => item.checked) || [];
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.ar.url.subscribe((params) => {
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
});
|
||||
}
|
||||
@ -93,8 +94,8 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
expand: {
|
||||
type: 'boolean',
|
||||
ui: {
|
||||
hidden: true,
|
||||
},
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
storeName: { title: '司机姓名', type: 'string', ui: { showRequired: false } },
|
||||
phone: {
|
||||
@ -103,15 +104,15 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
format: 'mobile',
|
||||
maxLength: 11,
|
||||
ui: {
|
||||
placeholder: '请输入手机号',
|
||||
},
|
||||
placeholder: '请输入手机号'
|
||||
}
|
||||
},
|
||||
phon747e: {
|
||||
title: '银行卡号',
|
||||
type: 'string',
|
||||
ui: {
|
||||
placeholder: '请输入银行卡号',
|
||||
},
|
||||
placeholder: '请输入银行卡号'
|
||||
}
|
||||
},
|
||||
|
||||
phone2: {
|
||||
@ -124,10 +125,9 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } };
|
||||
}
|
||||
@ -149,13 +149,13 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '查看',
|
||||
click: (item) => {
|
||||
click: item => {
|
||||
this.router.navigate(['/usercenter/driver/detail', item.tenantId], { relativeTo: this.ar });
|
||||
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
daoyun(item: any) {
|
||||
@ -166,7 +166,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
this.sf?.setValue('/expand', this._$expand);
|
||||
}
|
||||
creat() {
|
||||
this.router.navigate(['./new',], { relativeTo: this.ar });
|
||||
this.router.navigate(['./new'], { relativeTo: this.ar });
|
||||
}
|
||||
/**
|
||||
* 重置表单
|
||||
|
||||
Reference in New Issue
Block a user