Sfoglia il codice sorgente

工具借用分页

qymljy 2 anni fa
parent
commit
0eee41eb52

+ 2 - 3
src/HDrpManagement/contractManage/components/toolList/addTool.vue

@@ -13,14 +13,13 @@
         <div style="display:flex;justify-content:space-between;align-items:center;margin-top:10px">
           <span>已添加产品数:{{addProductLength}}</span>
           <el-pagination
-              style="display:inline-block"
               background
-              small
               @size-change="handleSizeChange"
               @current-change="handleCurrentChange"
               :current-page="params.content.pageNumber"
               :page-sizes="[20, 50, 100, 200]"
-              layout="total, prev, pager, next, jumper"
+              :page-size="100"
+              layout="total,sizes, prev, pager, next, jumper"
               :total="total">
           </el-pagination>
         </div>

+ 5 - 5
src/HDrpManagement/contractManage/components/toolList/toolList.vue

@@ -53,13 +53,12 @@
       <div style="float: right">
         <el-pagination
             background
-            small
-            style="text-align: right;"
             @size-change="handleSizeChange"
             @current-change="handleCurrentChange"
             :current-page="params.content.pageNumber"
-            :page-size="params.content.pageSize"
-            layout="total, prev, pager, next, jumper"
+            :page-sizes="[20, 50, 100, 200]"
+            :page-size="100"
+            layout="total,sizes, prev, pager, next, jumper"
             :total="total">
         </el-pagination>
       </div>
@@ -97,7 +96,8 @@ export default {
       tablecols:[],
       total:0,
       editIndex:'',
-      totalPrice:0
+      totalPrice:0,
+      currentPage:0
     };
   },
   computed:{

+ 2 - 1
vue.config.js

@@ -14,7 +14,8 @@ module.exports = {
       port: 8000,
       proxy: {
         '/apis': {
-          target: 'http://61.164.207.46:8000',  // target host*/
+          // target: 'http://61.164.207.46:8000',  // target host*/
+            target: 'http://192.168.3.9:8080',
           // target: 'https://oms.idcgroup.com.cn:8079/',  // target host
           // target: 'localhost:8080',  // target host
           ws: true,  // proxy websockets