Просмотр исходного кода

解决列表查询时分页切换未携带查询条件问题

002390 2 лет назад
Родитель
Сommit
620208a160
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      src/views/material/basicFile/index.vue

+ 6 - 5
src/views/material/basicFile/index.vue

@@ -26,7 +26,7 @@
               <el-dropdown-item :command="filterCondition('stop')">显示停用</el-dropdown-item>
               <el-dropdown-item :command="filterCondition('allot')">显示已分配</el-dropdown-item>
             </el-dropdown-menu>
-                                                  </el-dropdown> -->
+                                                      </el-dropdown> -->
 
           <!-- <el-button size="small" @click="handleQuery">查询</el-button> -->
           <el-button size="small" @click="handleRefresh">刷新</el-button>
@@ -45,14 +45,14 @@
             </el-dropdown-menu>
           </el-dropdown>
         </el-button-group>
-                                              </el-col> -->
+                                                  </el-col> -->
 
       <!-- 申请单查询 -->
     <!-- <el-col :span="1.5">
         <el-button-group>
           <el-button size="small" @click="handleQueryForm">申请单查询</el-button>
         </el-button-group>
-                                              </el-col> -->
+                                                  </el-col> -->
 
       <!-- 导入导出 -->
       <el-col :span="1.5">
@@ -165,12 +165,12 @@ export default {
     // 改变分页大小
     handleSizeChange(e) {
       this.queryParams.pageSize = e;
-      this.getMaterialList('material');
+      this.handleQuery();
     },
     // 改变当前页
     handleCurrentChange(e) {
       this.queryParams.pageNum = e;
-      this.getMaterialList('material');
+      this.handleQuery();
     },
     // 新增
     handleInster() {
@@ -369,6 +369,7 @@ export default {
         templateCode,
         ...query
       }
+      console.log(param, 'param');
       materialApi.materialList(param, page).then((res) => {
         _this.loading = false;
         console.log(res, '获取物料列表信息以及表头字段');