Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
operation-web-project
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 344dc5ae
authored
Dec 17, 2020
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改设备明细导出
1 parent
793f4710
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
src/http/api.js
src/http/interface.js
src/views/main/deviceConnection.vue
src/http/api.js
View file @
344dc5a
...
...
@@ -74,6 +74,7 @@ export default function $axios(options) {
// Util.closeLoading();
// IE9时response.data是undefined,因此需要使用response.request.responseText(Stringify后的字符串)
console
.
log
(
response
)
if
(
response
)
{
if
(
response
.
data
==
undefined
)
{
let
str
=
response
.
request
.
responseText
;
...
...
src/http/interface.js
View file @
344dc5a
...
...
@@ -527,4 +527,11 @@ export const LOGOUT = params => {
}
//设备管理-设备关系明细-导出excel
export
const
EXPORTDEVICEFILE
=
BASEURL
+
'JXCDevice/exportDeviceFile'
;
\ No newline at end of file
export
const
EXPORTDEVICEFILE
=
BASEURL
+
'JXCDevice/exportDeviceFile'
;
export
const
EXPORTDEVICEFILEMETHOD
=
params
=>
{
return
axios
({
url
:
'/JXCDevice/exportDeviceFile'
,
method
:
'POST'
,
data
:
params
})
}
\ No newline at end of file
src/views/main/deviceConnection.vue
View file @
344dc5a
...
...
@@ -46,7 +46,7 @@
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-download"
:loading=
"downloadLoading"
@
click=
"download
()"
>
导出excel
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-download"
@
click=
"downloadExcel
()"
>
导出excel
</el-button>
</el-form-item>
</el-form>
</el-card>
...
...
@@ -236,7 +236,8 @@ import {
GETMAXDEVICESTATISREPORT
,
GETDEVICERELATIONDETAIL
,
INITDEVICERELATION
,
EXPORTDEVICEFILE
EXPORTDEVICEFILE
,
EXPORTDEVICEFILEMETHOD
}
from
'@/http/interface'
import
GlsxDialog
from
'@/components/dialog/index'
import
{
exportExcel
}
from
'@/common/common'
...
...
@@ -493,8 +494,15 @@ export default {
}
_this
.
downloadLoading
=
true
exportExcel
(
options
)
},
/** 异步导出excel */
downloadExcel
(){
let
oParams
=
this
.
getParams
()
EXPORTDEVICEFILEMETHOD
(
oParams
);
}
},
}
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment