Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
c061a277
Commit
c061a277
authored
Feb 15, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
20dce006
c692296b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
29 deletions
+34
-29
index.vue
gassafetyprogress-web/src/components/GetPos/index.vue
+34
-29
getPath.js
gassafetyprogress-web/src/utils/mapClass/getPath.js
+0
-0
No files found.
gassafetyprogress-web/src/components/GetPos/index.vue
View file @
c061a277
<!--
* @Author: your name
* @Date: 2022-02-12 11:07:10
* @LastEditTime: 2022-02-1
2 15:13:41
* @LastEditTime: 2022-02-1
5 10:33:20
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/components/GetPos.vue/index.vue
...
...
@@ -14,32 +14,33 @@
width=
"60%"
:before-close=
"handleClose"
>
<div
class=
"search-wrapper pos"
>
<el-input
v-model=
"searchinput"
class=
"searchinput"
placeholder=
"请输入内容"
size=
"mini"
style=
"width: 150px"
ref=
"input"
></el-input>
</div>
<div
@
click=
"pos"
class=
"positionBtn pos"
>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-position"
>
定位
</el-button
>
</div>
<template
v-if=
"inputVisible"
>
<div
class=
"search-wrapper pos"
>
<el-input
v-model=
"searchinput"
class=
"searchinput"
placeholder=
"请输入内容"
size=
"mini"
style=
"width: 150px"
ref=
"input"
></el-input>
</div>
<div
@
click=
"pos"
class=
"positionBtn pos"
>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-position"
>
定位
</el-button
>
</div>
</
template
>
<div
id=
"getposmap"
></div>
</el-dialog>
</template>
<
script
>
import
{
EditorMap
}
from
"
./until
s/getPath.js"
;
import
{
EditorMap
}
from
"
@/utils/mapClas
s/getPath.js"
;
export
default
{
props
:
{
//管道路径,二维数组
//管道路径,二维数组
s
pipePath
:
{
type
:
Array
,
default
:
()
=>
[],
...
...
@@ -55,10 +56,15 @@ export default {
default
:
""
,
},
// 显示隐藏
dialogVisible
:{
type
:
Boolean
,
default
:
false
,
}
dialogVisible
:
{
type
:
Boolean
,
default
:
false
,
},
// input跟定位按钮是否展示
inputVisible
:
{
type
:
Boolean
,
default
:
true
,
},
},
data
()
{
return
{
...
...
@@ -80,8 +86,7 @@ export default {
});
},
},
mounted
()
{
},
mounted
()
{},
methods
:
{
init
()
{
this
.
$nextTick
(()
=>
{
...
...
@@ -90,13 +95,13 @@ export default {
if
(
this
.
device
==
""
)
{
// 如果传了路径就创建一个marker,如果没传就直接激活手动创建
if
(
this
.
devicePos
.
length
>
0
)
{
this
.
map
.
addDevice
({
path
:
this
.
devicePos
});
this
.
map
.
addDevice
({
path
:
this
.
devicePos
});
}
else
{
this
.
map
.
mouseAddMarker
();
}
}
else
{
if
(
this
.
pipePath
.
length
>
0
)
{
this
.
map
.
addPipeLine
({
path
:
this
.
pipePath
});
this
.
map
.
addPipeLine
({
path
:
this
.
pipePath
});
}
else
{
this
.
mouseAddPipeline
();
}
...
...
@@ -104,7 +109,7 @@ export default {
});
},
handleClose
()
{
this
.
$emit
(
"close"
)
this
.
$emit
(
"close"
)
;
},
open
()
{
this
.
dialogVisible
=
true
;
...
...
@@ -113,7 +118,7 @@ export default {
pos
()
{
this
.
path
=
this
.
map
.
getPath
();
this
.
$emit
(
"getPath"
,
this
.
path
);
console
.
log
(
this
.
path
)
console
.
log
(
this
.
path
)
;
if
(
this
.
path
?.
length
>
0
)
{
this
.
$emit
(
"update:dialogVisible"
,
false
);
}
...
...
gassafetyprogress-web/src/
components/GetPos/until
s/getPath.js
→
gassafetyprogress-web/src/
utils/mapClas
s/getPath.js
View file @
c061a277
File moved
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