Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冯超鹏
laravelzh
Commits
b42f6530
Commit
b42f6530
authored
Dec 22, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备地图定位
parent
59c6d81a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
index.vue
resources/js/views/map/index.vue
+7
-0
fire.vue
resources/js/views/monitor/fire.vue
+10
-3
No files found.
resources/js/views/map/index.vue
View file @
b42f6530
...
...
@@ -277,6 +277,13 @@ export default {
watch
:
{
},
mounted
()
{
console
.
log
(
this
.
$route
.
query
);
if
(
this
.
$route
.
query
.
device_id
>
0
)
{
this
.
markersDeviceVisible
=
true
;
this
.
zoom
=
15
;
console
.
log
(
this
.
$route
.
query
.
device_id
);
this
.
markerClickEvent
({
id
:
this
.
$route
.
query
.
device_id
});
}
},
created
()
{
this
.
$store
.
dispatch
(
'app/toggleSideBar'
);
...
...
resources/js/views/monitor/fire.vue
View file @
b42f6530
...
...
@@ -72,12 +72,12 @@
<span>
{{
scope
.
row
.
tname
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"检测介质"
width=
"1
7
0"
>
<el-table-column
align=
"center"
label=
"检测介质"
width=
"1
0
0"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
gas
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"切断装置"
width=
"1
7
0"
>
<el-table-column
align=
"center"
label=
"切断装置"
width=
"1
0
0"
>
<
template
slot-scope=
"scope"
>
<span>
{{
shutoffDevice
(
scope
.
row
.
shutoff_type
)
}}
</span>
</
template
>
...
...
@@ -92,7 +92,7 @@
<span>
{{
scope
.
row
.
danwei
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"切断装置状态"
width=
"
12
0"
>
<el-table-column
align=
"center"
label=
"切断装置状态"
width=
"
8
0"
>
<
template
slot-scope=
"scope"
>
<span>
<el-popconfirm
...
...
@@ -131,6 +131,13 @@
<span
v-if=
"scope.row.update_time > 0"
>
{{
scope
.
row
.
update_time
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"--"
width
=
"120"
>
<
template
slot
-
scope
=
"scope"
>
<
router
-
link
:
to
=
"{ path: '/map/map', query: { device_id: scope.row.id
}
}
"
>
<
el
-
button
class
=
"button"
>
查看地图
<
/el-button
>
<
/router-link
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
...
...
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