Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
2ce36050
Commit
2ce36050
authored
Sep 08, 2022
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改列表返回按钮
parent
1d0cd293
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
234 additions
and
181 deletions
+234
-181
device-manager-ui/admin/src/views/device/alarm/info/dialogshow.vue
...nager-ui/admin/src/views/device/alarm/info/dialogshow.vue
+175
-133
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+50
-43
device-manager-ui/admin/src/views/sitestat/list.vue
device-manager-ui/admin/src/views/sitestat/list.vue
+5
-5
yarn.lock
yarn.lock
+4
-0
No files found.
device-manager-ui/admin/src/views/device/alarm/info/dialogshow.vue
View file @
2ce36050
This diff is collapsed.
Click to expand it.
device-manager-ui/admin/src/views/device/list.vue
View file @
2ce36050
align: "center",
<
template
>
<
template
>
<div
class=
"page"
>
<div
class=
"page"
>
<span
style=
"font-size: 13px"
<div
class=
"page-header"
>
><b>
设备列表
</b>
(
<el-link
<div>
style=
"margin-left: 10px"
<span
style=
"font-size: 14px"
type=
"primary"
><b>
设备列表
</b>
(
<el-link
:underline=
"false"
style=
"margin-left: 10px"
>
{{
siteName
}}
</el-link
type=
"primary"
:underline=
"false"
>
{{
siteName
}}
</el-link
>
站点编码:
{{
siteCode
}}
)
</span
>
<el-link
style=
"margin-left: 10px"
type=
"primary"
@
click=
"switchMap"
:underline=
"false"
>
地图模式
</el-link
>
</div>
<el-button
style=
"margin-right: 10px"
@
click=
"$router.back()"
size=
"small"
>
返回上一级
</el-button
>
>
站点编码:
{{
siteCode
}}
)
</span
</div>
>
<el-link
style=
"margin-left: 10px"
type=
"primary"
@
click=
"switchMap"
:underline=
"false"
>
地图模式
</el-link
>
<el-button
style=
"float: right; margin-right: 10px"
type=
"text"
icon=
"el-icon-back"
@
click=
"$router.go(-1)"
size=
"small"
>
返回
</el-button
>
<el-divider></el-divider>
<el-divider></el-divider>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
<el-button
...
@@ -43,7 +42,11 @@
...
@@ -43,7 +42,11 @@
:disabled=
"isExport"
:disabled=
"isExport"
>
导出
</el-button
>
导出
</el-button
>
>
<el-tag
slot=
"table-head-row2-left"
size=
"mini"
class=
"cursord"
@
click=
"changeStat(null)"
<el-tag
slot=
"table-head-row2-left"
size=
"mini"
class=
"cursord"
@
click=
"changeStat(null)"
>
设备总数:
{{
tableData
.
totalCount
}}
台
</el-tag
>
设备总数:
{{
tableData
.
totalCount
}}
台
</el-tag
>
>
...
@@ -73,7 +76,7 @@
...
@@ -73,7 +76,7 @@
style=
"margin: 5px"
style=
"margin: 5px"
type=
"danger"
type=
"danger"
class=
"cursord"
class=
"cursord"
@
click=
"changeStat(null,0)"
@
click=
"changeStat(null,
0)"
>
停用:
{{
tableData
.
stopCount
}}
台
</el-tag
>
停用:
{{
tableData
.
stopCount
}}
台
</el-tag
>
>
...
@@ -83,7 +86,7 @@
...
@@ -83,7 +86,7 @@
style=
"margin: 5px"
style=
"margin: 5px"
type=
"danger"
type=
"danger"
class=
"cursord"
class=
"cursord"
@
click=
"changeStat(0)"
@
click=
"changeStat(0)"
>
未激活:
{{
tableData
.
unActiveCount
}}
台
</el-tag
>
未激活:
{{
tableData
.
unActiveCount
}}
台
</el-tag
>
>
</LayoutTable>
</LayoutTable>
...
@@ -292,22 +295,20 @@ export default {
...
@@ -292,22 +295,20 @@ export default {
this
.
$refs
.
drawerViewform
.
view
(
row
);
this
.
$refs
.
drawerViewform
.
view
(
row
);
},
},
changeStat
(
val
,
enabled
)
{
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatus
:
val
});
changeStat
(
val
,
enabled
){
if
(
!
enabled
)
{
this
.
query
=
Object
.
assign
(
this
.
query
,
{
this
.
query
=
Object
.
assign
(
this
.
query
,{
deviceStatus
:
val
});
deviceStatusList
:
[
1
,
2
],
enabled
:
enabled
,
if
(
!
enabled
){
});
this
.
query
=
Object
.
assign
(
this
.
query
,{
deviceStatusList
:[
1
,
2
],
enabled
:
enabled
});
}
}
this
.
getData
();
this
.
getData
();
// delete this.query.deviceStatus
// delete this.query.deviceStatusList
// delete this.query.deviceStatus
// delete this.query.deviceStatusList
},
},
downMsg
(
row
)
{
downMsg
(
row
)
{
...
@@ -560,14 +561,20 @@ export default {
...
@@ -560,14 +561,20 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
lang=
"less"
scoped
>
.page-header {
height: 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
.el-divider--horizontal {
.el-divider--horizontal {
margin: 2px 0;
margin: 2px 0;
background: 0 0;
background: 0 0;
border-top: 1px solid #e8eaec;
border-top: 1px solid #e8eaec;
}
}
.cursord
{
.cursord
{
cursor
:
pointer
cursor: pointer;
}
}
</
style
>
</
style
>
\ No newline at end of file
device-manager-ui/admin/src/views/sitestat/list.vue
View file @
2ce36050
...
@@ -187,35 +187,35 @@ export default {
...
@@ -187,35 +187,35 @@ export default {
label
:
"
设备总数
"
,
label
:
"
设备总数
"
,
align
:
"
center
"
,
align
:
"
center
"
,
prop
:
"
deviceTotal
"
,
prop
:
"
deviceTotal
"
,
formatter
:
this
.
formatter
,
//
formatter: this.formatter,
},
},
{
{
label
:
"
在线数量
"
,
label
:
"
在线数量
"
,
align
:
"
center
"
,
align
:
"
center
"
,
prop
:
"
onlineCount
"
,
prop
:
"
onlineCount
"
,
formatter
:
this
.
formatter
,
//
formatter: this.formatter,
},
},
{
{
label
:
"
离线数量
"
,
label
:
"
离线数量
"
,
align
:
"
center
"
,
align
:
"
center
"
,
prop
:
"
offlineCount
"
,
prop
:
"
offlineCount
"
,
formatter
:
this
.
formatter
,
//
formatter: this.formatter,
},
},
{
{
label
:
"
停用数量
"
,
label
:
"
停用数量
"
,
align
:
"
center
"
,
align
:
"
center
"
,
prop
:
"
stopCount
"
,
prop
:
"
stopCount
"
,
formatter
:
this
.
formatter
,
//
formatter: this.formatter,
},
},
{
{
label
:
"
待激活数量
"
,
label
:
"
待激活数量
"
,
align
:
"
center
"
,
align
:
"
center
"
,
prop
:
"
unActiveCount
"
,
prop
:
"
unActiveCount
"
,
formatter
:
this
.
formatter
,
//
formatter: this.formatter,
},
},
{
{
label
:
"
操作
"
,
label
:
"
操作
"
,
...
...
yarn.lock
0 → 100644
View file @
2ce36050
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
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