|
@@ -139,10 +139,14 @@ export class PharmacyComponent implements OnInit {
|
139
|
139
|
this.printPharmacyFlag = true;
|
140
|
140
|
}
|
141
|
141
|
// 列表数据合并
|
142
|
|
- this.printPharmacyList = [
|
143
|
|
- ...this.printPharmacyList,
|
144
|
|
- ...result["list"],
|
145
|
|
- ];
|
|
142
|
+ if(idx === 0){
|
|
143
|
+ this.printPharmacyList = result["list"];
|
|
144
|
+ }else{
|
|
145
|
+ this.printPharmacyList = [
|
|
146
|
+ ...this.printPharmacyList,
|
|
147
|
+ ...result["list"],
|
|
148
|
+ ];
|
|
149
|
+ }
|
146
|
150
|
break;
|
147
|
151
|
case 2:
|
148
|
152
|
this.waitPharmacyLoad = false;
|
|
@@ -153,10 +157,14 @@ export class PharmacyComponent implements OnInit {
|
153
|
157
|
} else {
|
154
|
158
|
this.waitPharmacyFlag = true;
|
155
|
159
|
}
|
156
|
|
- this.waitPharmacyList = [
|
157
|
|
- ...this.waitPharmacyList,
|
158
|
|
- ...result["list"],
|
159
|
|
- ];
|
|
160
|
+ if(idx === 0){
|
|
161
|
+ this.waitPharmacyList = result["list"];
|
|
162
|
+ }else{
|
|
163
|
+ this.waitPharmacyList = [
|
|
164
|
+ ...this.waitPharmacyList,
|
|
165
|
+ ...result["list"],
|
|
166
|
+ ];
|
|
167
|
+ }
|
160
|
168
|
break;
|
161
|
169
|
case 3:
|
162
|
170
|
this.pharmacyLoad = false;
|
|
@@ -167,7 +175,14 @@ export class PharmacyComponent implements OnInit {
|
167
|
175
|
} else {
|
168
|
176
|
this.pharmacyFlag = true;
|
169
|
177
|
}
|
170
|
|
- this.pharmacyList = [...this.pharmacyList, ...result["list"]];
|
|
178
|
+ if(idx === 0){
|
|
179
|
+ this.pharmacyList = result["list"];
|
|
180
|
+ }else{
|
|
181
|
+ this.pharmacyList = [
|
|
182
|
+ ...this.pharmacyList,
|
|
183
|
+ ...result["list"],
|
|
184
|
+ ];
|
|
185
|
+ }
|
171
|
186
|
break;
|
172
|
187
|
}
|
173
|
188
|
}
|