File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/views/mall/product/spu Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 222
222
import {deleteSpu , getSpuPage ,} from " @/api/mall/product/spu" ;
223
223
import {getProductCategoryList } from " @/api/mall/product/category" ;
224
224
import {getBrandList } from " @/api/mall/product/brand" ;
225
+ import {ProductSpuStatusEnum } from " @/utils/constants" ;
225
226
226
227
export default {
227
228
name: " Spu" ,
@@ -260,7 +261,6 @@ export default {
260
261
salesCountMax: null ,
261
262
marketPriceMin: null ,
262
263
marketPriceMax: null ,
263
- tabStatus: null ,
264
264
},
265
265
};
266
266
},
@@ -341,15 +341,17 @@ export default {
341
341
// 选中 tab
342
342
handleClick (val ) {
343
343
if (val .name === " all" ) {
344
- this .queryParams .tabStatus = null ;
344
+ this .queryParams .status = undefined ;
345
+ this .queryParams .alarmStock = undefined ;
345
346
} else if (val .name === " on" ) {
346
- this .queryParams .tabStatus = 0 ;
347
+ this .queryParams .status = ProductSpuStatusEnum .ENABLE .status ;
348
+ this .queryParams .alarmStock = undefined ;
347
349
} else if (val .name === " off" ) {
348
- this .queryParams .tabStatus = 1 ;
350
+ this .queryParams .status = ProductSpuStatusEnum .DISABLE .status ;
351
+ this .queryParams .alarmStock = undefined ;
349
352
} else if (val .name === " remind" ) {
350
- this .queryParams .tabStatus = 2 ;
351
- } else {
352
- this .queryParams .tabStatus = null ;
353
+ this .queryParams .status = undefined ;
354
+ this .queryParams .alarmStock = true ;
353
355
}
354
356
this .getList ();
355
357
}
You can’t perform that action at this time.
0 commit comments