@@ -43,25 +43,29 @@ export class ${firstuppercomponentname$}Component implements OnInit {
43
43
44
44
getquery(event) {
45
45
console.log(event);
46
- this.loading = true ;
47
- this.querydata.Pageindex = this.pageindex;
48
- this.querydata.Pagesize = this.pagesize;
49
- this.querydata.Flowstatus = this.ms.checkboxgroup2string(this.queryitems[3].checkboxgroup);
50
- this.cs.get${componentname$} count(this.querydata).subscribe(response => {
51
- this.total = response.Total;
52
- } );
53
-
54
- this.cs.get${ componentname$} bypageindex(this.querydata).subscribe(data => {
55
- let respons: any[] = [];
56
- respons = data;
57
- for (let data1 of respons) {
58
- data1.Routerlink = " /${componentname$}" ;
59
- data1.QueryParams = {' Mode' : ' s' , ' Flowinstid' : data1.Flowinstid} ;
60
- }
61
- this.listdata = respons;
62
- this.loading = false;
63
- });
64
-
46
+ if (event == ' search' ) {
47
+ this.loading = true ;
48
+ this.querydata.Pageindex = this.pageindex;
49
+ this.querydata.Pagesize = this.pagesize;
50
+ this.querydata.Flowstatus = this.ms.checkboxgroup2string(this.queryitems[3].checkboxgroup);
51
+ this.cs.get${componentname$} count(this.querydata).subscribe(response => {
52
+ this.total = response.Total;
53
+ } );
54
+
55
+ this.cs.get${ componentname$} bypageindex(this.querydata).subscribe(data => {
56
+ let respons: any[] = [];
57
+ respons = data;
58
+ for (let data1 of respons) {
59
+ data1.Routerlink = " /${componentname$}" ;
60
+ data1.QueryParams = {' Mode' : ' s' , ' Flowinstid' : data1.Flowinstid} ;
61
+ data1.Editable = true;
62
+ }
63
+ this.listdata = respons;
64
+ this.loading = false;
65
+ });
66
+ } else {
67
+ this.reset();
68
+ }
65
69
}
66
70
67
71
edit(event) {
@@ -85,6 +89,7 @@ export class ${firstuppercomponentname$}Component implements OnInit {
85
89
for (let data1 of respons) {
86
90
data1.Routerlink = " /${componentname$}" ;
87
91
data1.QueryParams = {' Mode' : ' s' , ' Flowinstid' : data1.Flowinstid} ;
92
+ data1.Editable = true;
88
93
}
89
94
this.listdata = respons;
90
95
this.loading = false;
0 commit comments