Parcourir la source

供应商API参数变更

hebinlong il y a 4 ans
Parent
commit
c4c922fe55
2 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 1 1
      src/api/channel.js
  2. 6 6
      src/views/channel/index.vue

+ 1 - 1
src/api/channel.js

@@ -5,7 +5,7 @@ export default {
     return request({
       url: '/supplier/list',
       method: 'POST',
-      params: operator
+      data: operator
     })
   }
 

+ 6 - 6
src/views/channel/index.vue

@@ -90,7 +90,7 @@
       <el-table-column label="是否有效" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span v-if="scope.row.isValid==1">有效</span>
-          <span v-if="scope.row.isValid==2">无效</span>
+          <span v-if="scope.row.isValid==0">无效</span>
         </template>
       </el-table-column>
 
@@ -171,8 +171,8 @@
 
     <div class="pagination">
       <el-pagination
-        current-page.sync="body.page"
-        :current-page="body.page"
+        current-page.sync="body.current"
+        :current-page="body.current"
         :page-sizes="[10, 20, 30, 50]"
         :page-size="body.size"
         layout="total, sizes, prev, pager, next, jumper"
@@ -194,7 +194,7 @@ export default {
   data() {
     return {
       body: {
-        page: 1,
+        current: 1,
         size: 10,
         supplierName: ''
       },
@@ -215,7 +215,7 @@ export default {
     },
 
     Search() {
-      this.body.page = 1
+      this.body.current = 1
       this.reLoad()
     },
     // 新建供应商
@@ -241,7 +241,7 @@ export default {
     },
     // 换页
     handleCurrentChange: function(val) {
-      this.body.page = val
+      this.body.current = val
       this.reLoad()
     }
   }