Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 a9283b9e
authored
May 16, 2022
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加常驻地按钮
1 parent
d3838cf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
src/views/alarmCenter/shutdown.vue
src/views/alarmCenter/shutdown.vue
View file @
a9283b9
...
...
@@ -78,6 +78,11 @@
<el-table-column
label=
"最后GPS定位地址"
prop=
"lastGpsAddress"
show-overflow-tooltip
width=
"240"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
lastGpsAddress
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
prop=
"lastGpsAddress"
>
<
template
slot-scope=
"{row}"
>
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookDetail(row)"
>
常住地
</el-link>
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination_list"
>
<el-pagination
background
layout=
"sizes, total,prev, pager, next, jumper"
:total=
"pageTotal"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
:page-sizes=
"pageSizes"
@
current-change=
"getList"
@
size-change=
"changePageSize"
/>
...
...
@@ -90,15 +95,18 @@
<
script
>
import
{
shutDownShortcuts
}
from
"@/common"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
GET_ALARM_SHUTDOWN
,
ALARM_SHUTDOWN_EXPORT
}
from
"@/services/alarmCenter"
;
import
{
deepClone
,
showToast
,
downFileByPath
}
from
"@/utils/util"
;
import
{
GET_ALARM_SHUTDOWN
,
ALARM_SHUTDOWN_EXPORT
,
}
from
"@/services/alarmCenter"
;
import
{
deepClone
,
showToast
,
downFileByPath
}
from
"@/utils/util"
;
export
default
{
components
:
{
GlsxOrganization
,
},
data
()
{
return
{
searchForm
:
{
stayRange
:
2
},
searchForm
:
{
stayRange
:
2
},
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
...
...
@@ -157,8 +165,8 @@ export default {
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageNumber
=
current
||
this
.
currentPage
;
this
.
tloading
=
true
;
if
(
current
)
{
this
.
currentPage
=
current
if
(
current
)
{
this
.
currentPage
=
current
;
}
GET_ALARM_SHUTDOWN
(
oParams
).
then
((
res
)
=>
{
this
.
tloading
=
false
;
...
...
@@ -197,10 +205,16 @@ export default {
if
(
res
.
code
!=
200
)
{
return
false
;
}
downFileByPath
(
res
.
data
)
downFileByPath
(
res
.
data
)
;
//window.open(res.data);
});
},
// 查看常驻地
lookDetail
(
row
)
{
let
path
=
`/oEshield#/monitor/resident?sn=
${
row
.
sn
}
&name=
${
encodeURI
(
row
.
ownerName
)}
&standno=
${
row
.
vin
}
&locationType=
${
row
.
locationType
}
`
;
window
.
open
(
path
);
},
},
};
</
script
>
...
...
@@ -215,7 +229,7 @@ export default {
.el_radio_group
{
vertical-align
:
middle
;
}
.table_box
{
.table_box
{
margin-top
:
0
;
}
</
style
>
\ No newline at end of file
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