Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
tFIMS
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 cf9c18db
authored
Sep 03, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
导出
1 parent
283f9383
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
src/api/systemMonitor.js
src/views/deviceManagement/index.vue
src/views/subSysManagement/index.vue
src/views/systemMonitor/index.vue
src/api/systemMonitor.js
View file @
cf9c18d
...
...
@@ -11,7 +11,13 @@ function reportApi (data) {
return
request
(
data
)
}
function
exportApi
(
data
)
{
data
.
method
=
`
${
path
}
export`
return
request
(
data
)
}
export
{
getListApi
,
reportApi
reportApi
,
exportApi
}
src/views/deviceManagement/index.vue
View file @
cf9c18d
...
...
@@ -39,7 +39,7 @@
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFile($event)"
/>
</auth-button>
<auth-button
label=
"导出"
type=
""
></auth-button>
<auth-button
label=
"导出"
type=
"
Button"
@
e-auth-click=
"exportFile
"
></auth-button>
</el-col>
</el-row>
<el-table
...
...
@@ -229,6 +229,15 @@ export default {
notice
.
errorTips
()
})
},
exportFile
()
{
const
params
=
this
.
getParams
()
exportApi
(
params
).
then
(
res
=>
{
notice
.
okTips
()
}).
catch
(
err
=>
{
notice
.
errorTips
()
})
},
/* 接口请求-end */
// 搜索
handleSearch
()
{
...
...
src/views/subSysManagement/index.vue
View file @
cf9c18d
...
...
@@ -29,7 +29,7 @@
<el-col
:span=
"12"
>
子系统列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<!--
<el-button
@
click=
"handleEdit(editFormReset)"
>
添加子系统
</el-button>
-->
<auth-button
label=
"添加子系统"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
>
添加子系统
</auth-button>
<auth-button
label=
"添加子系统"
type=
""
@
e-auth-click=
"handleEdit(editFormReset)"
></auth-button>
</el-col>
</el-row>
<el-table
...
...
src/views/systemMonitor/index.vue
View file @
cf9c18d
...
...
@@ -61,7 +61,7 @@
<el-col
:span=
"12"
>
车辆状态列表
</el-col>
<el-col
:span=
"12"
style=
"text-align: right"
>
<!--
<el-button>
导出
</el-button>
-->
<auth-button
label=
"导出"
type=
"Button"
></auth-button>
<auth-button
label=
"导出"
type=
"Button"
@
e-auth-click=
"exportFile"
></auth-button>
</el-col>
</el-row>
<el-table
...
...
@@ -111,7 +111,7 @@
</template>
<
script
>
import
{
getListApi
,
reportApi
}
from
'@api/systemMonitor'
import
{
getListApi
,
reportApi
,
exportApi
}
from
'@api/systemMonitor'
import
notice
from
'@/common/notice'
require
(
'echarts/lib/chart/pie'
)
require
(
"echarts/lib/component/tooltip"
);
...
...
@@ -281,6 +281,14 @@ export default {
notice
.
errorTips
(
err
)
})
},
exportFile
()
{
const
params
=
this
.
getParams
()
exportApi
(
params
).
then
(
res
=>
{
notice
.
okTips
()
}).
catch
(
err
=>
{
notice
.
errorTips
()
})
},
/* 接口请求-end */
/* onlineNum Int 在网数量
offlineNum int 离网数量
...
...
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