소스 검색

update dynamicTable_export_interface

ZZJ 3 년 전
부모
커밋
5e57c56b6e
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

@@ -666,6 +666,18 @@ export default {
         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) {
       const position = button.position