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
f6bce482
Commit
f6bce482
authored
Feb 26, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
38f8fe2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
43 deletions
+41
-43
rightBar.vue
gassafetyprogress-web/src/components/bigWindow/rightBar.vue
+37
-37
map.js
gassafetyprogress-web/src/utils/mapClass/map.js
+1
-3
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+3
-3
No files found.
gassafetyprogress-web/src/components/bigWindow/rightBar.vue
View file @
f6bce482
...
@@ -685,43 +685,43 @@
...
@@ -685,43 +685,43 @@
},
},
]
]
});
});
myChart32
.
setOption
({
//
myChart32.setOption({
title
:
{
//
title: {
text
:
'设备数量:'
+
data
.
deviceNum
,
//
text: '设备数量:'+data.deviceNum,
left
:
'center'
,
//
left: 'center',
textStyle
:
{
//
textStyle: {
color
:
"#0ff"
//
color: "#0ff"
}
//
}
},
//
},
tooltip
:
{
//
tooltip: {
trigger
:
'item'
//
trigger: 'item'
},
//
},
series
:
[
//
series: [
{
//
{
name
:
'设备概况'
,
//
name: '设备概况',
type
:
'pie'
,
//
type: 'pie',
radius
:
[
'50%'
,
'70%'
],
//
radius: ['50%', '70%'],
center
:
[
'50%'
,
'60%'
],
//
center: ['50%', '60%'],
avoidLabelOverlap
:
false
,
//
avoidLabelOverlap: false,
label
:
{
//
label: {
show
:
false
,
//
show: false,
position
:
'center'
//
position: 'center'
},
//
},
emphasis
:
{
//
emphasis: {
label
:
{
//
label: {
show
:
true
,
//
show: true,
fontSize
:
'40'
,
//
fontSize: '40',
fontWeight
:
'bold'
//
fontWeight: 'bold'
}
//
}
},
//
},
labelLine
:
{
//
labelLine: {
show
:
false
//
show: false
},
//
},
data
:
data
.
divice
,
//
data:data.divice,
color
:[
"#188df0"
,
"#ffff00"
,
"#FF4040"
]
//
color:["#188df0","#ffff00","#FF4040"]
}
//
}
]
//
]
});
//
});
}
}
}
}
}
}
...
...
gassafetyprogress-web/src/utils/mapClass/map.js
View file @
f6bce482
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-02-26 23:
23:01
* @LastEditTime: 2022-02-26 23:
40:59
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
* @FilePath: /test/hello-world/src/utils/mapClass.js
...
@@ -349,7 +349,6 @@ export class EditorMap {
...
@@ -349,7 +349,6 @@ export class EditorMap {
// 地图上add管道
// 地图上add管道
addPipeLine
(
objData
,
component
)
{
addPipeLine
(
objData
,
component
)
{
const
{
path
,
pipePressure
,
iconType
}
=
objData
;
const
{
path
,
pipePressure
,
iconType
}
=
objData
;
console
.
log
(
path
);
// 根据压力获取颜色
// 根据压力获取颜色
const
color
=
pipeColor
[
pipePressure
+
1
];
const
color
=
pipeColor
[
pipePressure
+
1
];
const
pipe
=
this
.
createPipeLine
({
const
pipe
=
this
.
createPipeLine
({
...
@@ -361,7 +360,6 @@ export class EditorMap {
...
@@ -361,7 +360,6 @@ export class EditorMap {
});
});
this
.
map
.
add
(
pipe
);
this
.
map
.
add
(
pipe
);
console
.
log
(
pipe
.
getExtData
());
// pipe.hide();
// pipe.hide();
if
(
!
Array
.
isArray
(
this
.
pipeArr
[
iconType
]))
{
if
(
!
Array
.
isArray
(
this
.
pipeArr
[
iconType
]))
{
this
.
pipeArr
[
iconType
]
=
[];
this
.
pipeArr
[
iconType
]
=
[];
...
...
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
f6bce482
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-01-11 13:44:17
* @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-02-26 23:
31:14
* @LastEditTime: 2022-02-26 23:
40:26
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue
* @FilePath: /test/hello-world/src/views/Home.vue
...
@@ -313,8 +313,8 @@ export default {
...
@@ -313,8 +313,8 @@ export default {
}
}
this
.
currentTime
();
this
.
currentTime
();
//
this.$refs.mychild.choice(0);
this
.
$refs
.
mychild
.
choice
(
0
);
//
this.$refs.mychild2.choice(0);
this
.
$refs
.
mychild2
.
choice
(
0
);
},
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
...
...
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