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

update 菜单子表添加自定义导出方法

linweizeng преди 3 години
родител
ревизия
9a2d476ca2
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

+ 12 - 0
src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

@@ -636,6 +636,18 @@ export default {
                 ActionUtils.success('导入成功')
                 ActionUtils.success('导入成功')
             })
             })
         },
         },
+        //数据导出
+        getIbpsExport(columns, data, title, message, nameKey = 'name') {
+            IbpsExport.excel({
+                columns: columns,
+                data: data,
+                nameKey: nameKey,
+                title: title
+            }).then(() => {
+                const msg = message ? message : '导出成功'
+                ActionUtils.success(msg)
+            })
+        },
         // 导出
         // 导出
         handleExport(button, index) {
         handleExport(button, index) {
             const position = button.position
             const position = button.position