Browse Source

导出按钮功能添加

yuhongqi 11 hours ago
parent
commit
ba07fd9112
1 changed files with 13 additions and 10 deletions
  1. 13 10
      src/views/live/liveAfteraSales/index.vue

+ 13 - 10
src/views/live/liveAfteraSales/index.vue

@@ -118,15 +118,16 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
-<!--      <el-col :span="1.5">-->
-<!--        <el-button-->
-<!--          type="warning"-->
-<!--          icon="el-icon-download"-->
-<!--          size="mini"-->
-<!--          @click="handleExport"-->
-<!--          v-hasPermi="['store:storeAfterSales:export']"-->
-<!--        >导出</el-button>-->
-<!--      </el-col>-->
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          :disabled="exportLoading"
+          @click="handleExport"
+          v-hasPermi="['live:liveAfteraSales:export']"
+        >导出</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -427,7 +428,9 @@ export default {
         }).then(response => {
           this.download(response.msg);
           this.exportLoading = false;
-        }).catch(() => {});
+        }).catch(() => {
+        this.exportLoading = false;
+      });
     },
     getTreeselect() {
       var param={companyId:this.companyId}