Browse Source

:ambulance: 正在导出时禁止下载,每页条数限制数量

Twelve615 1 year ago
parent
commit
7a4628fce0
1 changed files with 6 additions and 2 deletions
  1. 6 2
      airport-vue/src/views/admin/AdminFileExportList.vue

+ 6 - 2
airport-vue/src/views/admin/AdminFileExportList.vue

@@ -91,7 +91,7 @@
         @change="handleTableChange">
 
         <template slot="fileName" slot-scope="text, record">
-          <a-button type="link" @click="download(record.url,record.name)">
+          <a-button type="link" @click="record.exportStatus==='0'?false:download(record.url,record.name)">
             {{ record.name }}
           </a-button>
         </template>
@@ -116,7 +116,7 @@
         </template>
 
         <span slot="action" slot-scope="text, record">
-          <a-button type="link" @click="download(record.url,record.name)">
+          <a-button type="link" @click="record.exportStatus==='0'?false:download(record.url,record.name)">
             下载
           </a-button>
           <!--          <a @click="handleEdit(record)">编辑</a>-->
@@ -226,6 +226,10 @@ export default {
       },
       queryParam: {
         exportType: 'AdminOrderList'
+      },
+      /* 分页参数 后台用了参数用了 blob 不能查询太多 */
+      ipagination:{
+        pageSizeOptions: ['10', '20'],
       }
     }
   },