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
c060897d
Commit
c060897d
authored
Nov 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
76591d9e
76621a8f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
224 additions
and
158 deletions
+224
-158
device-manager-ui/admin/src/assets/mixins/table.js
device-manager-ui/admin/src/assets/mixins/table.js
+200
-130
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+4
-1
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
+18
-25
device-manager-ui/admin/src/views/sitestat/maplist.vue
device-manager-ui/admin/src/views/sitestat/maplist.vue
+2
-2
No files found.
device-manager-ui/admin/src/assets/mixins/table.js
View file @
c060897d
This diff is collapsed.
Click to expand it.
device-manager-ui/admin/src/views/device/list.vue
View file @
c060897d
...
@@ -758,7 +758,10 @@ export default {
...
@@ -758,7 +758,10 @@ export default {
handleBack
()
{
handleBack
()
{
let
path
=
sessionStorage
.
getItem
(
"
sitestat
"
);
let
path
=
sessionStorage
.
getItem
(
"
sitestat
"
);
if
(
path
)
{
if
(
path
)
{
this
.
$router
.
push
(
path
);
this
.
$router
.
push
({
path
,
query
:
this
.
info
,
});
}
else
{
}
else
{
this
.
$router
.
back
();
this
.
$router
.
back
();
}
}
...
...
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
View file @
c060897d
...
@@ -139,22 +139,24 @@
...
@@ -139,22 +139,24 @@
<el-divider></el-divider>
<el-divider></el-divider>
<el-row
<el-row
v-for=
"(
label, value, index) in tableData.dict.productId
"
v-for=
"(
v, index) in tableData.data
"
:key=
"index"
:key=
"index"
type=
"flex"
type=
"flex"
style=
"border-bottom: 1px solid #e8eaec; padding: 10px"
style=
"border-bottom: 1px solid #e8eaec; padding: 10px"
justify=
"space-between"
justify=
"space-between"
>
>
<!--
<img
src=
"../../assets/images/排队机.png"
alt=
""
/>
-->
<img
<img
v-if=
"
label
"
v-if=
"
formatDevIcon(v.productId)
"
:src=
"require(`
../../assets/images/$
{label
}.png`)"
:src=
"require(`
@/assets/images/$
{formatDevIcon(v.productId)
}.png`)"
/>
/>
<img
v-else
src=
"@/assets/images/dn.png"
/>
<!--
<i
style=
"font-size: 20px"
class=
"el-icon-location-information"
></i>
-->
<!--
<i
style=
"font-size: 20px"
class=
"el-icon-location-information"
></i>
-->
<span
style=
"font-size: 12px"
>
{{
label
}}
</span>
<span
style=
"font-size: 12px"
>
{{
formatDevIcon
(
v
.
productId
)
||
"
--
"
}}
</span>
<el-switch
<el-switch
v-model=
"items[index]"
v-model=
"items[index]"
:active-value=
"
value
"
:active-value=
"
String(v.productId)
"
:inactive-value=
"0"
:inactive-value=
"0"
@
change=
"switchChange"
@
change=
"switchChange"
active-color=
"#2882ED"
active-color=
"#2882ED"
...
@@ -251,15 +253,14 @@ export default {
...
@@ -251,15 +253,14 @@ export default {
if
(
arr
.
length
>
0
)
{
if
(
arr
.
length
>
0
)
{
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
productIdList
:
arr
});
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
productIdList
:
arr
});
}
}
this
.
getData
();
this
.
getData
();
},
},
afterRender
(
data
)
{
afterRender
(
data
)
{
if
(
!
this
.
sync
)
{
if
(
!
this
.
sync
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
count
=
0
;
let
count
=
0
;
for
(
var
i
in
data
.
dict
.
productId
)
{
for
(
let
i
of
data
.
data
)
{
this
.
items
[
count
]
=
i
+
""
;
this
.
items
[
count
]
=
i
.
productId
+
""
;
count
++
;
count
++
;
}
}
this
.
sync
=
true
;
this
.
sync
=
true
;
...
@@ -287,6 +288,12 @@ export default {
...
@@ -287,6 +288,12 @@ export default {
toView
(
row
)
{
toView
(
row
)
{
this
.
$refs
.
drawerViewform
.
view
(
row
);
this
.
$refs
.
drawerViewform
.
view
(
row
);
},
},
// 格式设备图标
formatDevIcon
(
product
)
{
let
{
productId
}
=
this
.
tableData
.
dict
;
let
label
=
productId
[
product
];
return
label
||
""
;
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -314,21 +321,7 @@ export default {
...
@@ -314,21 +321,7 @@ export default {
deviceStatus
:
null
,
deviceStatus
:
null
,
deviceName
:
null
,
deviceName
:
null
,
items
:
{
items
:
{},
item0
:
""
,
item1
:
""
,
item2
:
""
,
item3
:
""
,
item4
:
""
,
item5
:
""
,
item6
:
""
,
item7
:
""
,
item8
:
""
,
item9
:
""
,
item10
:
""
,
item11
:
""
,
item12
:
""
,
},
info
:
{},
info
:
{},
options
:
[
options
:
[
...
...
device-manager-ui/admin/src/views/sitestat/maplist.vue
View file @
c060897d
...
@@ -179,7 +179,7 @@ export default {
...
@@ -179,7 +179,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"
/sitestat/mapDetail
"
,
path
:
"
/sitestat/mapDetail
"
,
// query: info,
// query: info,
query
:
{
sitestatId
:
info
.
i
d
,
siteId
:
info
.
siteId
||
info
.
id
},
query
:
{
sitestatId
:
info
.
siteStatI
d
,
siteId
:
info
.
siteId
||
info
.
id
},
});
});
},
},
...
@@ -317,7 +317,7 @@ export default {
...
@@ -317,7 +317,7 @@ export default {
justify-content: space-between;
justify-content: space-between;
}
}
.ckxq {
.ckxq {
font-size: 1
0
px;
font-size: 1
2
px;
margin-right: 20px;
margin-right: 20px;
margin-top: 8px;
margin-top: 8px;
color: #1890ff;
color: #1890ff;
...
...
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