cfort 3 жил өмнө
parent
commit
fc4a15d835

+ 12 - 1
src/business/platform/data/templaterender/templates/list.vue

@@ -273,7 +273,7 @@
     import Scan from '@/views/system/jbdScan/scan.vue'
     import Scan from '@/views/system/jbdScan/scan.vue'
 
 
     //import BpmnFormrender from '@/vuew/business/platform/bpmn/form/dialog'//新增流程打开页面
     //import BpmnFormrender from '@/vuew/business/platform/bpmn/form/dialog'//新增流程打开页面
-
+    import IbpsExport from '@/plugins/export'
     import Vue from 'vue'
     import Vue from 'vue'
     Vue.component('ibps-data-template-render-dialog', () =>
     Vue.component('ibps-data-template-render-dialog', () =>
         import('@/business/platform/data/templaterender/preview/dialog.vue')
         import('@/business/platform/data/templaterender/preview/dialog.vue')
@@ -916,6 +916,17 @@
                     this.getResponseData(buttonType, ids)
                     this.getResponseData(buttonType, ids)
                 }
                 }
             },
             },
+            //数据导出
+            getIbpsExport(columns, data, title, nameKey = 'name') {
+                IbpsExport.excel({
+                    columns: columns,
+                    data: data,
+                    nameKey: nameKey,
+                    title: title
+                }).then(() => {
+                    ActionUtils.success('导出成功')
+                })
+            },
             getResponseData(buttonType, ids, exportColumns) {
             getResponseData(buttonType, ids, exportColumns) {
                 const { template, dataTemplate, fields, pagination, sorts } = this
                 const { template, dataTemplate, fields, pagination, sorts } = this
                 const params = {}
                 const params = {}