Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
hel-developer-guide
Commits
7099915c
Commit
7099915c
authored
Aug 03, 2017
by
custom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 框架功能描述/jad.md
Auto commit by GitBook Editor
parent
1813efc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
jad.md
框架功能描述/jad.md
+26
-1
No files found.
框架功能描述/jad.md
View file @
7099915c
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
本系统支持Excel文件导出排队处理,支持超大数据量,能实时查询文件生成情况,支持取消导出。
本系统支持Excel文件导出排队处理,支持超大数据量,能实时查询文件生成情况,支持取消导出。
#### 前端使用方法
#### 前端使用方法
调用js方法
调用js方法
*
方法一(针对grid)
```
javascript
```
javascript
Hel
.
exportExcel
=
function
(
opts
){
Hel
.
exportExcel
=
function
(
opts
){
var
contextPath
=
opts
.
contextPath
,
var
contextPath
=
opts
.
contextPath
,
...
@@ -53,6 +53,31 @@
...
@@ -53,6 +53,31 @@
| dataSourceId | 数据源id |
| dataSourceId | 数据源id |
| _csrf_token | 防跨域的token |
| _csrf_token | 防跨域的token |
*
方式二(针对hlsPage)
```
javascript
Hel
.
exportPageExcel
({
contextPath
:
basePath
,
param
:{},
controller
:
"/acr/inf/index/excel/export"
,
fileName
:
"产品线"
,
pageConfig
:[
{
"name"
:
"documentNumber"
,
"title"
:
"单据编 号"
,
"width"
:
260
,
"align"
:
""
,
"type"
:
"string"
},
{
"name"
:
"invoiceDate"
,
"title"
:
"开票日期"
,
"align"
:
""
,
"type"
:
"string"
},
{
"name"
:
"invoiceKindDesc"
,
"title"
:
"发票种类"
,
"width"
:
160
,
"align"
:
"center"
,
"type"
:
"boolean"
},
{
"name"
:
"bpName"
,
"title"
:
"购货单位"
},
]
});
```
| 参数名 | 描述 |
| --- | --- |
| contextPath | 项目上的url |
| param| 配合controller添加查询条件 |
| controller | 对应查询url |
| fileName | 文件名 |
| | 文件名 |
#### 后端使用方法
#### 后端使用方法
1.
在代码中注入Excel导出Service
1.
在代码中注入Excel导出Service
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment