lilei 1 vuosi sitten
vanhempi
commit
23ca4d8336
3 muutettua tiedostoa jossa 14 lisäystä ja 4 poistoa
  1. 2 2
      src/api/salesDetailNew.js
  2. 12 1
      src/components/Table/index.js
  3. 0 1
      src/utils/request.js

+ 2 - 2
src/api/salesDetailNew.js

@@ -160,7 +160,7 @@ export const salesDisablePromo = params => {
       data: params,
       method: 'post',
       headers:{
-        'module': encodeURIComponent('禁用活动')
+        'module': encodeURIComponent('禁用规则')
       }
     })
   }
@@ -171,7 +171,7 @@ export const salesEnablePromoPromo = params => {
     data: params,
     method: 'post',
     headers:{
-      'module': encodeURIComponent('启用活动')
+      'module': encodeURIComponent('启用规则')
     }
   })
 }

+ 12 - 1
src/components/Table/index.js

@@ -47,6 +47,10 @@ export default {
       type: Boolean,
       default: true
     },
+    showQuickJumper: {
+      type: Boolean,
+      default: true
+    },
     size: {
       type: String,
       default: 'default'
@@ -116,6 +120,11 @@ export default {
         pageSize: val
       })
     },
+    showQuickJumper(val){
+      Object.assign(this.localPagination, {
+        showQuickJumper: val
+      })
+    },
     showSizeChanger (val) {
       Object.assign(this.localPagination, {
         showSizeChanger: val
@@ -129,7 +138,8 @@ export default {
       current: localPageNum,
       pageSize: this.pageSize,
       showTotal: total => `共 ${total} 条记录`,
-      showSizeChanger: this.showSizeChanger
+      showSizeChanger: this.showSizeChanger,
+      showQuickJumper: this.showQuickJumper
     }) || false
     // console.log('this.localPagination', this.localPagination)
     this.needTotalList = this.initTotalList(this.columns)
@@ -209,6 +219,7 @@ export default {
             current: r.pageNo, // 返回结果中的当前分页数
             total: Number(r.count), // 返回结果中的总记录数
             showSizeChanger: this.showSizeChanger,
+            showQuickJumper: this.showQuickJumper,
             pageSize: (pagination && pagination.pageSize) ||
               this.localPagination.pageSize
           }) || false

+ 0 - 1
src/utils/request.js

@@ -131,7 +131,6 @@ service.interceptors.request.use(config => {
   
   // 当前页面路径
   const currentPage = router.history.current
-  console.log(currentPage)
   if(currentPage&&currentPage.meta&&config.headers['module']){
     config.headers['module'] = encodeURIComponent(currentPage.meta.title||'') + ',' +config.headers['module']
   }