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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 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) {
...
@@ -74,6 +74,7 @@ export default function $axios(options) {
// Util.closeLoading();
// Util.closeLoading();
// IE9时response.data是undefined,因此需要使用response.request.responseText(Stringify后的字符串)
// IE9时response.data是undefined,因此需要使用response.request.responseText(Stringify后的字符串)
console
.
log
(
response
)
if
(
response
)
{
if
(
response
)
{
if
(
response
.
data
==
undefined
)
{
if
(
response
.
data
==
undefined
)
{
let
str
=
response
.
request
.
responseText
;
let
str
=
response
.
request
.
responseText
;
...
...
src/http/interface.js
View file @
344dc5a
...
@@ -528,3 +528,10 @@ export const LOGOUT = params => {
...
@@ -528,3 +528,10 @@ export const LOGOUT = params => {
//设备管理-设备关系明细-导出excel
//设备管理-设备关系明细-导出excel
export
const
EXPORTDEVICEFILE
=
BASEURL
+
'JXCDevice/exportDeviceFile'
;
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
\ No newline at end of file
src/views/main/deviceConnection.vue
View file @
344dc5a
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:loading=
"tableLoading"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<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-item>
</el-form>
</el-form>
</el-card>
</el-card>
...
@@ -236,7 +236,8 @@ import {
...
@@ -236,7 +236,8 @@ import {
GETMAXDEVICESTATISREPORT
,
GETMAXDEVICESTATISREPORT
,
GETDEVICERELATIONDETAIL
,
GETDEVICERELATIONDETAIL
,
INITDEVICERELATION
,
INITDEVICERELATION
,
EXPORTDEVICEFILE
EXPORTDEVICEFILE
,
EXPORTDEVICEFILEMETHOD
}
from
'@/http/interface'
}
from
'@/http/interface'
import
GlsxDialog
from
'@/components/dialog/index'
import
GlsxDialog
from
'@/components/dialog/index'
import
{
exportExcel
}
from
'@/common/common'
import
{
exportExcel
}
from
'@/common/common'
...
@@ -493,8 +494,15 @@ export default {
...
@@ -493,8 +494,15 @@ export default {
}
}
_this
.
downloadLoading
=
true
_this
.
downloadLoading
=
true
exportExcel
(
options
)
exportExcel
(
options
)
},
/** 异步导出excel */
downloadExcel
(){
let
oParams
=
this
.
getParams
()
EXPORTDEVICEFILEMETHOD
(
oParams
);
}
}
},
},
}
}
</
script
>
</
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