Commit 09a902da by sunchao

我的管理查询入参拿动态数据

parent 3fedd240
<div class="wrapper"> <div class="wrapper">
<div class="opt" style="margin-bottom: 10px;justify-content: flex-start;"> <div class="opt" style="margin-bottom: 10px;justify-content: flex-start;">
<select [(ngModel)]="mdDropOptionCode"> <select [(ngModel)]="mdDropOptionCode" (ngModelChange)="getCode($event)">
<option [value]="optItem.dropOptionCode" *ngFor="let optItem of optList"> <option [value]="optItem.dropOptionCode" *ngFor="let optItem of optList">
{{optItem.dropOptionName}} {{optItem.dropOptionName}}
</option> </option>
</select> </select>
<select [(ngModel)]="year"> <select [(ngModel)]="year" (ngModelChange)="getCode($event)">
<option value="null">全部</option> <option value="null">全部</option>
<option *ngFor="let yearItem of yearList">{{yearItem}}</option> <option *ngFor="let yearItem of yearList">{{yearItem}}</option>
</select> </select>
<select [(ngModel)]="month"> <select [(ngModel)]="month" (ngModelChange)="getCode($event)">
<option *ngFor="let monthItem of monthList">{{monthItem}}</option> <option *ngFor="let monthItem of monthList">{{monthItem}}</option>
</select> </select>
<!-- <div> <!-- <div>
......
...@@ -60,17 +60,17 @@ export class MyManagementComponent implements OnInit { ...@@ -60,17 +60,17 @@ export class MyManagementComponent implements OnInit {
}) })
} }
selectOpt(){ getCode(event){
this.changeIsTeam(this.isTeam)
} }
changeIsTeam(isTeam){ changeIsTeam(isTeam){
this.isTeam = isTeam; this.isTeam = isTeam;
const params = { const params = {
dateSpan:'2022-08-31 23:59:59', dateSpan:`${this.year}-${this.month}-31 23:59:59`,
practitionerId:25, // practitionerId:25,
// practitionerId:JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId:JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'],
mdDropOptionCode:null mdDropOptionCode:this.mdDropOptionCode
} }
if(this.isTeam == 0){ if(this.isTeam == 0){
this.myService.personalCompletionRate(params).subscribe((res)=>{ this.myService.personalCompletionRate(params).subscribe((res)=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment