2
3
Преглед на файлове

企业资质添加分页

dbcgit преди 6 години
родител
ревизия
6406cbcec5
променени са 1 файла, в които са добавени 29 реда и са изтрити 4 реда
  1. 29 4
      src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

+ 29 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -472,6 +472,17 @@
               </el-table-column>
               <el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
             </el-table>
+          
+             <el-pagination small
+                       @size-change="handleProjectSizeChange"
+                       @current-change="handleProjectCurrentChange"
+                       :current-page="currentPageProject"
+                       :page-sizes="[10, 20, 30]"
+                       :page-size="sizeProject"
+                       layout="total, sizes, prev, pager, next,jumper"
+                       :total="currentItemCountProject"
+                       style="margin: 5px;">
+        </el-pagination>  
           </el-card>
         </el-tab-pane>
 
@@ -592,7 +603,7 @@
               <el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
             </el-table>
           </el-card>
-        </el-tab-pane> -->
+        </el-tab-pane> -->     
       </el-tabs>
     </el-card>
     <el-dialog :title="Title" :visible.sync="visible" top="5vh">
@@ -835,6 +846,11 @@
         }
       }
       return {
+        size: 10,
+        sizeProject: 10,
+        currentItemCount: 0,
+        currentPageProject: 1,
+        currentItemCountProject: 0,
         UnitOrg: '',
         ComAuditdialogShow: false,
         chooseAuditorVisibleFen: false,
@@ -1319,6 +1335,15 @@
         this.$refs['chooseAuditorFen'].getorgtreelist('05')
         this.chooseAuditorVisibleFen = true
       },
+      handleProjectSizeChange (value) {
+        this.sizeProject = value
+        this.currentPageProject = 1
+        this.getsubfile1()
+      },
+      handleProjectCurrentChange (value) {
+        this.currentPageProject = value
+        this.getsubfile1()
+      },
       initDatas () {
         this.getMainInfo()
         let params = {
@@ -1384,15 +1409,15 @@
         const params = {
           SupplierId: this.supplierId,
           SupplierTypeCode: '\'01\',\'02\',\'03\'',
-          _currentPage: 1,
-          _size: 1000
+          _currentPage: this.currentPageProject,
+          _size: this.sizeProject
         }
         _this.$axios.get('qualchange/filelist', {
           params
         })
           .then(res => {
             _this.subfileList1 = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
+            _this.currentItemCountProject = res.data.currentItemCount
             for (let idx in _this.subfileList1) {
               _this.subfileList1[idx].FileUrlList = _this.subfileList1[idx].FileUrl.split('$')
             }