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
3ab840d0
Commit
3ab840d0
authored
Jul 28, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图模糊查询添加
parent
70d2fc07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
17 deletions
+36
-17
device-manager-ui/admin/src/components/Map.vue
device-manager-ui/admin/src/components/Map.vue
+1
-0
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
+35
-17
No files found.
device-manager-ui/admin/src/components/Map.vue
View file @
3ab840d0
...
...
@@ -31,6 +31,7 @@
<!--信息窗体-->
<el-amap-info-window
:closeWhenClickMap=
"true"
:position=
"window.position"
:visible=
"window.visible"
:content=
"window.content"
...
...
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
View file @
3ab840d0
...
...
@@ -89,7 +89,11 @@
>
编辑站点
</el-button
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"addDevice"
icon=
"el-icon-plus"
<el-button
type=
"primary"
size=
"mini"
@
click=
"addDevice"
icon=
"el-icon-plus"
>
添加设备
</el-button
>
</el-row>
...
...
@@ -103,6 +107,7 @@
<el-select
style=
"padding: 5px"
size=
"mini"
@
change=
"deviceStatuschange"
v-model=
"deviceStatus"
placeholder=
"请选择设备状态"
>
...
...
@@ -119,7 +124,8 @@
<el-row>
<el-input
size=
"mini"
v-model=
"deviceCode"
v-model=
"deviceName"
@
change=
"deviceNameChange"
style=
"padding: 5px"
placeholder=
"请输入设备编码"
></el-input>
...
...
@@ -177,12 +183,28 @@ export default {
this
.
query
=
{
siteId
,
siteId
};
this
.
$nextTick
(()
=>
{
this
.
$refs
.
map
.
relocate
(
this
.
info
);
})
})
;
},
methods
:
{
formatterDate
,
addDevice
(){
let
row
=
{}
deviceStatuschange
(
val
)
{
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
deviceStatus
:
val
});
this
.
getData
();
},
deviceNameChange
(
val
)
{
val
=
val
.
trim
();
if
(
val
.
charAt
(
0
)
!=
"
%
"
)
{
val
=
"
%
"
+
val
;
}
if
(
val
.
charAt
(
val
.
length
-
1
)
!=
"
%
"
)
{
val
=
val
+
"
%
"
;
}
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
deviceName
:
val
});
this
.
getData
();
},
addDevice
()
{
let
row
=
{};
row
.
siteId
=
this
.
info
.
siteId
;
row
.
siteName
=
this
.
info
.
siteName
;
row
.
siteCode
=
this
.
info
.
siteCode
;
...
...
@@ -210,7 +232,7 @@ export default {
if
(
this
.
items
[
item
]
&&
this
.
items
[
item
]
!=
0
)
arr
.
push
(
this
.
items
[
item
]);
}
if
(
arr
.
length
>
0
)
{
if
(
arr
.
length
>
0
)
{
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
productIdList
:
arr
});
}
...
...
@@ -219,7 +241,7 @@ export default {
afterRender
(
data
)
{
console
.
log
(
"
tableData
"
,
data
);
if
(
!
this
.
sync
)
{
console
.
log
(
"
sync
"
)
console
.
log
(
"
sync
"
)
;
this
.
$nextTick
(()
=>
{
var
count
=
0
;
for
(
var
i
in
data
.
dict
.
productId
)
{
...
...
@@ -231,8 +253,6 @@ export default {
}
//刷新地图markers
this
.
$refs
.
map
.
refresh
(
data
.
data
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
...
...
@@ -278,7 +298,7 @@ export default {
},
deviceStatus
:
null
,
device
Cod
e
:
null
,
device
Nam
e
:
null
,
items
:
{
item0
:
""
,
...
...
@@ -353,11 +373,9 @@ export default {
margin
:
0
;
}
}
</
style
>
<
style
>
.location0
{
font-size
:
18px
;
color
:
red
;
...
...
@@ -412,10 +430,10 @@ export default {
}
.location13
{
font-size
:
18px
;
color
:
cyan
;
color
:
cyan
;
}
.location14
{
font-size
:
18px
;
color
:
deepskyblue
;
color
:
deepskyblue
;
}
</
style
>
\ No newline at end of file
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