Browse Source

资源目录添加导出功能

maxiaoxiao 9 months ago
parent
commit
5e86a3f717
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/views/system/zyml/index.vue

+ 8 - 1
src/views/system/zyml/index.vue

@@ -82,7 +82,7 @@
           plain
           icon="el-icon-download                                                                                                 ws"
           size="mini"
-          @click="handleAdd"
+          @click="handleExport"
           v-hasPermi="['system:zymlexport']"
           >导出</el-button
         >
@@ -622,6 +622,13 @@ export default {
     this.getList();
   },
   methods: {
+    handleExport() {
+      this.download(
+        "system/zyml/export",
+        {},
+        `zyml_${new Date().getTime()}.xlsx`
+      );
+    },
     handleRowOnEnd(evt) {
       setTimeout(() => {
         // 输出移动后每行的数据及索引