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
10c28a6b
Commit
10c28a6b
authored
Jul 23, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户设备管理
parent
3d0b374c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
index.vue
resources/js/views/userdevice/index.vue
+30
-7
No files found.
resources/js/views/userdevice/index.vue
View file @
10c28a6b
...
...
@@ -161,21 +161,23 @@
<
/el-form
>
<
/el-card
>
<
/el-drawer
>
<
el
-
drawer
title
=
"编辑设备"
:
visible
.
sync
=
"drawerup"
:
direction
=
"directionup"
:
before
-
close
=
"handleCloseup"
>
<
el
-
drawer
title
=
"编辑设备"
:
visible
.
sync
=
"drawerup"
:
direction
=
"directionup"
:
before
-
close
=
"handleCloseup"
custom
-
class
=
"zl-drawer"
>
<
el
-
card
class
=
"box-card"
>
<
el
-
form
ref
=
"updevicedata"
:
model
=
"updevicedata"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"设备编号"
label
-
width
=
"
92
px"
>
<
el
-
form
-
item
label
=
"设备编号"
label
-
width
=
"
100
px"
>
<
el
-
input
v
-
model
=
"updevicedata.devicenum"
:
disabled
=
"disabled"
style
=
"width: 80%;"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"用户名称"
label
-
width
=
"
92
px"
>
<
el
-
form
-
item
label
=
"用户名称"
label
-
width
=
"
100
px"
>
<
el
-
input
v
-
model
=
"updevicedata.name"
:
disabled
=
"disabled"
style
=
"width: 80%;"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备名称"
label
-
width
=
"
92
px"
>
<
el
-
form
-
item
label
=
"设备名称"
label
-
width
=
"
100
px"
>
<
el
-
input
v
-
model
=
"updevicedata.username"
style
=
"width: 80%;"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备坐标"
label
-
width
=
"100px"
>
<
el
-
input
v
-
model
=
"updevicedata.devicecoord"
style
=
"width: 80%;"
><
/el-input
>
<
el
-
button
type
=
"primary"
style
=
"left: 18px;z-index: 999;width: 54px;"
@
click
=
"accuracy"
><
span
style
=
"left: -22px;position: relative;"
>
拾取坐标
<
/span></
el
-
button
>
<
el
-
input
v
-
model
=
"updevicedata.devicecoord"
style
=
"width: 50%;"
><
/el-input
>
<
el
-
button
type
=
"primary"
@
click
=
"drawerMap = true"
>
拾取坐标
<
/el-button
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备联系人"
label
-
width
=
"100px"
>
<
el
-
input
v
-
model
=
"updevicedata.devicelinkman"
style
=
"width: 80%;"
><
/el-input
>
...
...
@@ -200,6 +202,9 @@
<
/el-form-item
>
<
/el-form
>
<
/el-card
>
<
el
-
drawer
title
=
"拾取坐标"
:
visible
.
sync
=
"drawerMap"
:
modal
=
"false"
:
direction
=
"directionMap"
:
before
-
close
=
"handleClose"
size
=
"70%"
:
with
-
header
=
"false"
>
<
div
><
CoordinateMap
@
map
-
confirm
=
"mapConfirmData"
@
giveLnglat
=
"getLnglat"
><
/CoordinateMap></
div
>
<
/el-drawer
>
<
/el-drawer
>
<
/div
>
<
/div
>
...
...
@@ -212,12 +217,15 @@ import waves from '@/directive/waves'; // 水波纹效果
import
clip
from
'@/utils/clipboard'
;
import
checkPermission
from
'@/utils/permission'
;
import
{
parseTime
}
from
'@/utils'
;
import
CoordinateMap
from
'@/components/coordinateMap'
;
export
default
{
name
:
'Devicetype'
,
components
:
{
Pagination
}
,
components
:
{
Pagination
,
CoordinateMap
}
,
directives
:
{
waves
}
,
data
()
{
return
{
drawerMap
:
false
,
directionMap
:
'rtl'
,
tableKey
:
0
,
downloadLoading
:
false
,
pvData
:
[],
...
...
@@ -261,6 +269,18 @@ export default {
}
,
methods
:
{
mapConfirmData
(
text
)
{
if
(
text
.
state
===
true
)
{
this
.
updevicedata
.
devicecoord
=
text
.
location
;
this
.
drawerMap
=
false
;
}
if
(
text
.
state
===
false
)
{
this
.
drawerMap
=
false
;
}
}
,
getLnglat
(
lnglnt
)
{
console
.
log
(
lnglnt
);
}
,
checkPermission
,
getList
()
{
deviceTypeList
()
...
...
@@ -513,4 +533,7 @@ export default {
margin
-
bottom
:
0
;
width
:
50
%
;
}
.
zl
-
drawer
.
el
-
drawer__body
{
overflow
-
y
:
auto
!
important
;
}
<
/style
>
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