Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
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
葛齐林
energyai_vue
Commits
c7596845
Commit
c7596845
authored
Apr 09, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
ea6a6ff1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
100 deletions
+14
-100
config.js
public/config.js
+0
-3
App.vue
src/App.vue
+0
-1
index.vue
src/layout/header-aside/components/bim/index.vue
+0
-82
index.vue
src/pages/eq/view/index.vue
+7
-7
index.vue
src/pages/ol/demo/index.vue
+7
-7
No files found.
public/config.js
View file @
c7596845
...
...
@@ -13,6 +13,3 @@ CONFIG.requestPath = 'http://59.110.43.122:8046'
// 文件上传
// CONFIG.urlPath = 'http://10.20.72.33/'
CONFIG
.
urlPath
=
'http://59.110.43.122/'
// BIM
CONFIG
.
bimPath
=
'http://10.20.2.98:8066/'
src/App.vue
View file @
c7596845
...
...
@@ -151,7 +151,6 @@ export default {
urlPath
:
window
.
CONFIG
.
urlPath
,
tipList
:
[],
showList
:
[],
src
:
window
.
CONFIG
.
bimPath
,
takeoverInfo
:
''
}
},
...
...
src/layout/header-aside/components/bim/index.vue
deleted
100644 → 0
View file @
ea6a6ff1
<
template
>
<div
v-if=
'isShow'
class=
"map_right"
>
<iframe
:src=
"src"
ref=
"iframe"
></iframe>
</div>
</
template
>
<
script
>
import
{
mapState
,
mapGetters
,
mapActions
}
from
'vuex'
export
default
{
data
()
{
return
{
code
:
''
,
src
:
window
.
CONFIG
.
bimPath
,
}
},
computed
:
{
...
mapState
(
'd2admin/bjCode'
,
[
'resourceCode'
]),
...
mapState
(
'd2admin/bim'
,
[
'isShow'
])
},
watch
:
{
resourceCode
(
val
)
{
console
.
log
(
'resourceCode:'
,
val
)
if
(
this
.
transformationSta
==
2
)
{
this
.
sendBjMessage
(
val
.
substring
(
0
,
val
.
indexOf
(
'+'
)))
}
}
},
mounted
()
{
this
.
code
=
this
.
resourceCode
console
.
log
(
this
.
isShow
,
'111111111111'
)
// this.sendMessage()
},
methods
:
{
sendMessage
(
code
)
{
console
.
log
(
111
)
setTimeout
(()
=>
{
if
(
!
this
.
$refs
.
iframe
)
{
return
}
this
.
$refs
.
iframe
.
contentWindow
.
postMessage
(
{
func
:
'locateByCode'
,
data
:
{
code
:
code
}
},
this
.
src
)
},
1000
)
},
sendBjMessage
(
code
)
{
console
.
log
(
'********'
+
code
)
setTimeout
(()
=>
{
if
(
!
this
.
$refs
.
iframe
)
{
return
}
this
.
$refs
.
iframe
.
contentWindow
.
postMessage
({
func
:
'alarm'
,
data
:
{
code
:
code
}
},
this
.
src
)
},
1000
)
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
iframe
{
width
:
1580px
;
height
:
770px
;
position
:absolute
;
top
:
50px
;
right
:
0
;
z-index
:
99
;
}
</
style
>
\ No newline at end of file
src/pages/eq/view/index.vue
View file @
c7596845
...
...
@@ -164,7 +164,6 @@ export default {
editable
:
false
,
activeName
:
'1'
,
searchInput
:
''
,
src
:
window
.
CONFIG
.
bimPath
,
regionMouse
:
{
x
:
0
,
y
:
0
,
...
...
@@ -281,12 +280,13 @@ export default {
//点击事件
this
.
changeVectorLayer
(
this
.
list
)
this
.
map
.
on
(
'click'
,
function
(
evt
)
{
let
feature
=
evt
.
map
.
forEachFeatureAtPixel
(
evt
.
pixel
,
function
(
feature
)
{
return
feature
})
this
.
map
.
on
(
'click'
,
function
(
evt
)
{
let
feature
=
evt
.
map
.
forEachFeatureAtPixel
(
evt
.
pixel
,
function
(
feature
)
{
return
feature
}
)
if
(
feature
)
{
for
(
let
i
in
that
.
list
)
{
let
style
=
that
.
getPointStyle
(
...
...
src/pages/ol/demo/index.vue
View file @
c7596845
...
...
@@ -163,7 +163,6 @@ export default {
editable
:
false
,
activeName
:
'1'
,
searchInput
:
''
,
src
:
window
.
CONFIG
.
bimPath
,
regionMouse
:
{
x
:
0
,
y
:
0
,
...
...
@@ -280,12 +279,13 @@ export default {
//点击事件
this
.
changeVectorLayer
(
this
.
list
)
this
.
map
.
on
(
'click'
,
function
(
evt
)
{
let
feature
=
evt
.
map
.
forEachFeatureAtPixel
(
evt
.
pixel
,
function
(
feature
)
{
return
feature
})
this
.
map
.
on
(
'click'
,
function
(
evt
)
{
let
feature
=
evt
.
map
.
forEachFeatureAtPixel
(
evt
.
pixel
,
function
(
feature
)
{
return
feature
}
)
if
(
feature
)
{
for
(
let
i
in
that
.
list
)
{
let
style
=
that
.
getPointStyle
(
...
...
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