Commit c661abcd authored by wangqinghua's avatar wangqinghua

update

parent 1b846338
...@@ -223,9 +223,11 @@ export class ExamineComponent implements OnInit { ...@@ -223,9 +223,11 @@ export class ExamineComponent implements OnInit {
search(){ search(){
if(this.tabNum == 0){ if(this.tabNum == 0){
this.getListNo(); this.getListNo();
this.pageNoNo = 1;
} }
if(this.tabNum == 1){ if(this.tabNum == 1){
this.getListAlready(); this.getListAlready();
this.pageNoAlready = 1;
} }
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<input type="text" nz-input [(ngModel)]="obj.searchStr" placeholder="计划名称/负责人"> <input type="text" nz-input [(ngModel)]="obj.searchStr" placeholder="计划名称/负责人">
</div> </div>
<div nz-col nzSpan="2"> <div nz-col nzSpan="2">
<button (click)="getList()" nz-button nzType="default"><i class="anticon anticon-search" style="color: #6097b7"></i>搜索 <button (click)="search()" nz-button nzType="default"><i class="anticon anticon-search" style="color: #6097b7"></i>搜索
</button> </button>
</div> </div>
</div> </div>
......
...@@ -83,6 +83,11 @@ export class InspectPlanComponent implements OnInit { ...@@ -83,6 +83,11 @@ export class InspectPlanComponent implements OnInit {
this.getList(); this.getList();
} }
search(){
this.pageNum = 1;
this.getList();
}
//新增计划 //新增计划
addPlan() { addPlan() {
this.smartPlanMoadl.showAddModal(); this.smartPlanMoadl.showAddModal();
...@@ -114,7 +119,7 @@ export class InspectPlanComponent implements OnInit { ...@@ -114,7 +119,7 @@ export class InspectPlanComponent implements OnInit {
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.message.success('删除成功'); this.message.success('删除成功');
this.getList(); this.search();
} else { } else {
this.message.error(res.errMsg); this.message.error(res.errMsg);
} }
......
...@@ -148,9 +148,9 @@ export class WorkHandleComponent implements OnInit { ...@@ -148,9 +148,9 @@ export class WorkHandleComponent implements OnInit {
//搜索 //搜索
search() { search() {
this.pageNum = 1;
this.obj.startTime = this.datePipe.transform(this.startTime, 'yyyy-MM-dd HH:mm:ss'); this.obj.startTime = this.datePipe.transform(this.startTime, 'yyyy-MM-dd HH:mm:ss');
this.obj.endTime = this.datePipe.transform(this.endTime, 'yyyy-MM-dd HH:mm:ss'); this.obj.endTime = this.datePipe.transform(this.endTime, 'yyyy-MM-dd HH:mm:ss');
this.getList(); this.getList();
} }
} }
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