Giter VIP home page Giter VIP logo

poi-excel-export's Introduction

excelExport

excel 公用导出组件,提供统一参数,然后导出excel 组件包 前端 或者导出传递参数,服务端会自动导出。

/**

  • 构造函数
  • @param index:序号
  • @param colName:列名 (必传)
  • @param colData:列取值(必传)
  • @param colWidth:列宽,默认100
  • @param colDataType:数据类型,默认字符串
  • @param colAlign:列对齐方式
  • @param colHidden:是否隐藏列 */

例: [

{ index: 0, colName: "商品ID", colData: "goodsId", colWidth: "47px", colDataType: "numeric", colAlign: "", colHidden: false },

{ index: 1, colName: "商品编号", colData: "goodsNo", colWidth: "84px", colDataType: "string", colAlign: "", colHidden: false }

]

代码引入: 引入com.xuri.export下所有包到工程中 引入export/下所有js代码到工程webapp目录下,js 是共用的提取前端表格样式到后台的统一抽象封装,如果不需要自动提取,可以手工传入,以上格式。

------------------------------------商城商品----------------------------------------------

序号 |商品ID | 商品编号 |商品名称 |商品价格 |结算比例 |结算金额 |返利比例 | 返利佣金

3 |67 |ECS000067 |上海康乐福养老院 | 5,400.00| 0.1| 540.00|0.8 |0.00

4 |67 |ECS001067 |上海康乐福养老院 | 10,00.00| 0.1| 1,000.00|0.0 |100.00

poi-excel-export's People

Contributors

songwie avatar zhangwei5095 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.