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
5d80911e
Commit
5d80911e
authored
May 08, 2021
by
高超凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
cfcf85b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
18 deletions
+19
-18
index.vue
src/pages/eq/view/index.vue
+15
-15
query-detail.vue
src/pages/eq/view/query-detail.vue
+1
-1
index.vue
src/pages/sys/point/index.vue
+3
-2
No files found.
src/pages/eq/view/index.vue
View file @
5d80911e
...
...
@@ -61,7 +61,7 @@
<div v-show="transformationSta==1">
<el-row style="padding-bottom:15px;height:780px;background:#fff;" :span="24">
<el-col class="resource-container" :style="obj" ref="drag">
<div id="map" class="map" ref='map' style="width: 100%;height: 720px;position:relative;" ></div>
<div id="map" class="map" ref='map' style="width: 100%;height: 720px;position:relative;"
@click='closeDetails'
></div>
</el-col>
</el-row>
</div>
...
...
@@ -72,7 +72,7 @@
//- </div>
</el-card>
</el-main>
<query-detail v-if='queryDetailVisible' ref='queryDetail' @closeQ="closeQueryDetailVisible"
@click.stop
></query-detail>
<query-detail v-if='queryDetailVisible' ref='queryDetail' @closeQ="closeQueryDetailVisible"></query-detail>
</el-container>
</div>
...
...
@@ -172,7 +172,8 @@ export default {
vectorLayer
:
[],
lineVectorLayer
:
[],
resolutions
:
[],
code
:
''
code
:
''
,
times
:
1
,
}
},
components
:
{
...
...
@@ -187,11 +188,16 @@ export default {
that
=
this
this
.
initTreeStationMap
()
this
.
initResourceTypeDicList
()
},
mounted
(){
},
methods
:
{
// 点击空白位置关闭详情框
closeDetails
(){
if
(
this
.
queryDetailVisible
&&
this
.
times
>
1
){
this
.
queryDetailVisible
=
false
this
.
times
=
0
}
this
.
times
++
},
// 初始化地图
initMap
(
url
)
{
this
.
resolutions
=
[]
...
...
@@ -386,14 +392,12 @@ export default {
text
:
new
Text
({
text
:
name
,
// 添加文字描述
font
:
'bold 14px font-size'
,
// 设置字体大小
// padding: 'left',
stroke
:
new
Stroke
({
color
:
'white'
,
width
:
5
}),
//设置文字背景
fill
:
new
Fill
({
// 设置字体颜色
color
:
'black'
,
// font:'normal bold 18px sans-serif'
color
:
'blue'
}),
offsetY
:
30
,
// 设置文字偏移量
// offsetX: 10 // 设置文字偏移量
offsetY
:
30
// 设置文字偏移量
})
})
return
style
...
...
@@ -955,10 +959,6 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$refs
.
queryDetail
.
init
(
id
,
this
.
checkedData
.
sId
)
})
document
.
querySelector
(
'canvas'
).
addEventListener
(
'click'
,()
=>
{
console
.
log
(
'触发'
);
this
.
queryDetailVisible
=
false
;
},
false
);
},
closeQueryDetailVisible
()
{
...
...
src/pages/eq/view/query-detail.vue
View file @
5d80911e
<
template
lang=
"pug"
>
.animation
(close-on-click-modal)
.animation
.info-title
|
{{
dataForm
.
name
}}
//- | 空调
...
...
src/pages/sys/point/index.vue
View file @
5d80911e
...
...
@@ -489,10 +489,11 @@ export default {
}),
text
:
new
Text
({
text
:
name
,
// 添加文字描述
font
:
'14px font-size'
,
// 设置字体大小
font
:
'bold 14px font-size'
,
// 设置字体大小
stroke
:
new
Stroke
({
color
:
'white'
,
width
:
5
}),
//设置文字背景
fill
:
new
Fill
({
// 设置字体颜色
color
:
'bl
ack
'
color
:
'bl
ue
'
}),
offsetY
:
30
// 设置文字偏移量
})
...
...
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