chenrui 9 miesięcy temu
rodzic
commit
5a8090d450

+ 6 - 3
src/views/numsGoodsShelves/easyPassShopping/index.vue

@@ -138,11 +138,12 @@ export default {
         productTypeSn1: '', //  产品一级分类
         productTypeSn2: '', //  产品二级分类
         productTypeSn3: '', //  产品三级分类
-        status: undefined, //  状态
+        status: undefined, //  产品商城状态
         categorySn1: undefined, // 产品一级类目
         categorySn2: undefined, // 产品二级类目
         orderBy: 'createDate', // 按照创建时间排序
-        hotFlag: undefined // 热销产品
+        hotFlag: undefined, // 热销产品
+        categoryStatus: '1'// 状态 默认值1
       },
       productType: [], // 产品分类
       categoryOptions: [], // 产品类目列表
@@ -202,7 +203,7 @@ export default {
     getCategoryList () {
       const _this = this
       _this.spinning = true
-      queryExtList({}).then(res => {
+      queryExtList({ status: 1 }).then(res => {
         if (res.status == 200) {
           this.categoryOptions = res.data || []
         }
@@ -221,6 +222,8 @@ export default {
       this.queryParam.categorySn1 = undefined
       this.queryParam.categorySn2 = undefined
       this.queryParam.hotFlag = undefined
+      this.queryParam.orderBy = 'createDate'
+      this.queryParam.categoryStatus = '1'
       this.productType = []
       this.category = []
       this.$refs.table.refresh(true)