Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
whp-xl
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
lizhichao
whp-xl
Commits
09227322
Commit
09227322
authored
Jun 22, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏
parent
698ca823
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
302 additions
and
24 deletions
+302
-24
demo.vue
dcit-hcsystem-hcsystem-master/src/views/Enterprises/demo.vue
+2
-1
tongji.vue
...hcsystem-hcsystem-master/src/views/Enterprises/tongji.vue
+6
-13
chart-wrapper.png
...csystem-hcsystem-master/src/views/qyMap/chart-wrapper.png
+0
-0
qyMap.vue
dcit-hcsystem-hcsystem-master/src/views/qyMap/qyMap.vue
+17
-10
qyMaptwo.vue
dcit-hcsystem-hcsystem-master/src/views/qyMap/qyMaptwo.vue
+277
-0
No files found.
dcit-hcsystem-hcsystem-master/src/views/Enterprises/demo.vue
View file @
09227322
...
@@ -186,7 +186,8 @@ export default {
...
@@ -186,7 +186,8 @@ export default {
}
}
.pie
#pie2
{
.pie
#pie2
{
/* border:1px #000000 solid; */
/* border:1px #000000 solid; */
padding
:
30px
;
margin-left
:
20px
;
margin-top
:
20px
;
}
}
.el-main
.el-tabs
.el-tabs__content
{
.el-main
.el-tabs
.el-tabs__content
{
background-image
:
url(bg.png)
;
background-image
:
url(bg.png)
;
...
...
dcit-hcsystem-hcsystem-master/src/views/Enterprises/tongji.vue
View file @
09227322
<
template
>
<
template
>
<el-tabs
v-model=
"activeName"
type=
"border-card"
>
<el-tabs
v-model=
"activeName"
type=
"border-card"
>
<el-tab-pane
label=
"列表"
name=
"first"
>
<el-tab-pane
label=
"列表"
name=
"first"
>
<div
class=
"EnseList"
style=
"
height: 700px;
background-color: #fff;padding: 20px;"
>
<div
class=
"EnseList"
style=
"background-color: #fff;padding: 20px;"
>
<el-row
class=
"topBar"
>
<el-row
class=
"topBar"
>
<el-col>
<el-col>
<el-form
:inline=
"true"
:model=
"searchData"
>
<el-form
:inline=
"true"
:model=
"searchData"
>
...
@@ -74,6 +76,7 @@
...
@@ -74,6 +76,7 @@
></el-pagination>
></el-pagination>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"图表"
name=
"second"
>
<el-tab-pane
label=
"图表"
name=
"second"
>
<div
style=
"width: 100%;height: 10em;"
>
<div
style=
"width: 100%;height: 10em;"
>
<div
class=
"el-tab-pane-div second-div"
style=
""
>
<div
class=
"el-tab-pane-div second-div"
style=
""
>
...
@@ -231,18 +234,8 @@ export default class EnterprisesMg extends Vue {
...
@@ -231,18 +234,8 @@ export default class EnterprisesMg extends Vue {
}
}
main
>
div
{
main
>
div
{
background
:
#ffffff
;
background
:
#ffffff
;
height
:
calc
(
100vh
-
120px
);
height
:
calc
(
100vh
-
120px
)
!
important
;
padding
:
0px
!
important
;
padding
:
0px
!
important
;
}
}
main
>
div
.el-table
[
data-v-350d47e5
]
{
min-height
:
calc
(
100%
-
580px
);
max-height
:
calc
(
100%
-
120px
);
height
:
auto
;
}
main
>
div
.el-table
{
min-height
:
calc
(
100%
-
180px
)
!
important
;
max-height
:
calc
(
100%
-
120px
)
!
important
;
height
:
auto
;
}
</
style
>
</
style
>
\ No newline at end of file
dcit-hcsystem-hcsystem-master/src/views/qyMap/chart-wrapper.png
0 → 100644
View file @
09227322
2.98 KB
dcit-hcsystem-hcsystem-master/src/views/qyMap/qyMap.vue
View file @
09227322
...
@@ -29,12 +29,15 @@
...
@@ -29,12 +29,15 @@
</div>
-->
</div>
-->
<div
style=
""
>
<div
style=
""
>
<div
style=
"width: 500px;height: 100%;z-index: 11;background-color: rgba(2, 40, 90, 0.4);position: absolute;top: 0;left: 10px;float: left;"
>
<div
style=
"width: 500px;height: 100%;z-index: 11;background-color: rgba(2, 40, 90, 0.7);position: absolute;top: 0;left: 10px;float: left;"
>
<div
id=
"pieReport"
style=
"width: 480px;height: 200px;background-color: rgba(2, 20, 44, 0.5);margin-top: 30px;margin-left: 10px;"
></div>
<QyMaptwo></QyMaptwo>
<!--
<div
id=
"pieReport"
style=
"width: 480px;height: 200px;background-color: rgba(2, 20, 44, 0.5);margin-top: 30px;margin-left: 10px;"
>
</div>
<div
id=
"pieReport"
style=
"width: 480px;height: 250px;background-color: rgba(2, 20, 44, 0.5);margin-top: 30px;margin-left: 10px;"
>
<div
id=
"pieReport"
style=
"width: 480px;height: 250px;background-color: rgba(2, 20, 44, 0.5);margin-top: 30px;margin-left: 10px;"
>
<div
id=
"main1"
style=
"width:480px;height:250px;"
></div>
<div
id=
"main1"
style=
"width:480px;height:250px;"
></div>
</div>
</div>
<div
id=
"pieReport"
style=
"width: 480px;height: 250px;background-color: rgba(2, 20, 44, 0.5);margin-top: 30px;margin-left: 10px;"
></div>
<div
id=
"pieReport"
style=
"width: 480px;height: 250px;background-color: rgba(2, 20, 44, 0.5);margin-top: 30px;margin-left: 10px;"
></div>
-->
<!--
<div
id=
"pieReport"
style=
"width: 400px;height: 300px;background-color: rgba(2, 20, 44, 0.4)"
></div>
-->
<!--
<div
id=
"pieReport"
style=
"width: 400px;height: 300px;background-color: rgba(2, 20, 44, 0.4)"
></div>
-->
</div>
</div>
<div
style=
"width: 500px;height: 100%;z-index: 12;background-color: rgba(2, 40, 90, 0.3);position: absolute;top: 0;right: 10px;float: right"
>
<div
style=
"width: 500px;height: 100%;z-index: 12;background-color: rgba(2, 40, 90, 0.3);position: absolute;top: 0;right: 10px;float: right"
>
...
@@ -79,17 +82,21 @@ import "@/utils/VamapLoad.ts";
...
@@ -79,17 +82,21 @@ import "@/utils/VamapLoad.ts";
import
DrawTool
from
"@/components/drawTool.vue"
;
import
DrawTool
from
"@/components/drawTool.vue"
;
import
Search
from
"@/components/search.vue"
;
import
Search
from
"@/components/search.vue"
;
import
Mutil
from
"@/utils/mapUtil.js"
;
import
Mutil
from
"@/utils/mapUtil.js"
;
let
echarts
=
require
(
'echarts/lib/echarts'
)
//
let echarts = require('echarts/lib/echarts')
// 引入饼状图组件
//
//
引入饼状图组件
require
(
'echarts/lib/chart/pie'
)
//
require('echarts/lib/chart/pie')
// 引入提示框和title组件
//
//
引入提示框和title组件
require
(
'echarts/lib/component/tooltip'
)
//
require('echarts/lib/component/tooltip')
require
(
'echarts/lib/component/title'
)
//
require('echarts/lib/component/title')
import
METHOD
from
"@/utils/methods"
;
import
METHOD
from
"@/utils/methods"
;
import
QyMaptwo
from
'./qyMaptwo.vue'
;
import
Demo
from
'@/views/Enterprises/demo.vue'
;
@
Component
({
@
Component
({
components
:
{
components
:
{
DrawTool
,
DrawTool
,
Search
Search
,
QyMaptwo
,
Demo
},
},
})
})
export
default
class
GIS
extends
Vue
{
export
default
class
GIS
extends
Vue
{
...
...
dcit-hcsystem-hcsystem-master/src/views/qyMap/qyMaptwo.vue
0 → 100644
View file @
09227322
<
template
style=
""
>
<div
class=
"pie"
style=
"width:480px;margin-left: 10px;margin-top: 20px;"
>
<div
class=
"pie-div"
>
<div
style=
"width:420px;height: 30px;text-align: center;"
>
<span
style=
"font-size: 25px;color: #fff;"
>
企业注册
</span>
</div>
<div
style=
"width: 180px;float: left;margin-left: 20px;"
>
<vue-ellipse-progress
:progress=
"50"
:angle=
"-90"
color=
"blue"
emptyColor=
"#8ec5fc"
:size=
"150"
:thickness=
"10"
emptyThickness=
"5%"
lineMode=
"in 10"
:legend=
"true"
:legendValue=
"10"
legendClass=
"legend-custom-style"
dash=
"60 0.9"
animation=
"reverse 700 400"
:noData=
"false"
:loading=
"false"
fontColor=
"white"
:half=
"false"
:gap=
"10"
dot=
"10 blue"
fontSize=
"2rem"
>
<span
slot=
"legend-value"
>
/20
</span>
<p
slot=
"legend-caption"
>
GOOD JOB
</p>
</vue-ellipse-progress>
</div>
<div
style=
"width: 180px;float: right;margin-left: 20px;"
>
<vue-ellipse-progress
:progress=
"50"
:angle=
"-90"
color=
"blue"
emptyColor=
"#8ec5fc"
:size=
"150"
:thickness=
"10"
emptyThickness=
"5%"
lineMode=
"in 10"
:legend=
"true"
:legendValue=
"10"
legendClass=
"legend-custom-style"
dash=
"60 0.9"
animation=
"reverse 700 400"
:noData=
"false"
:loading=
"false"
fontColor=
"white"
:half=
"false"
:gap=
"10"
dot=
"10 blue"
fontSize=
"2rem"
>
<span
slot=
"legend-value"
>
/20
</span>
<p
slot=
"legend-caption"
>
GOOD JOB
</p>
</vue-ellipse-progress>
</div>
</div>
<div
id=
"pie2"
style=
"width:450px;height: 300px;"
>
<!-- 为 ECharts 准备一个具备大小(宽高)的 DOM -->
<div
id=
"main2"
style=
"width:450px;height:270px;"
></div>
</div>
<div
class=
"div-table"
style=
"width:480px;height: 350px;"
>
<el-table
:data=
"tableData"
height=
"250"
border
:header-cell-style=
"
{background:'#02285a',color:'#fff',}">
<el-table-column
prop=
"date"
label=
"企业名称"
width=
"120"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"预警信息"
width=
"120"
>
</el-table-column>
<el-table-column
prop=
"province"
label=
"设备名称"
>
</el-table-column>
<el-table-column
prop=
"city"
label=
"预警时间"
>
</el-table-column>
</el-table>
</div>
</div>
</
template
>
<
script
>
// 引入基本模板
import
{
Component
,
Vue
,
Provide
}
from
"vue-property-decorator"
;
import
*
as
echarts
from
'echarts/core'
;
import
{
BarChart
,
PieChart
}
from
'echarts/charts'
;
import
{
TitleComponent
,
TooltipComponent
,
GridComponent
,
LegendComponent
,
DatasetComponent
}
from
'echarts/components'
;
import
{
CanvasRenderer
}
from
'echarts/renderers'
;
echarts
.
use
(
[
TitleComponent
,
TooltipComponent
,
GridComponent
,
BarChart
,
PieChart
,
LegendComponent
,
DatasetComponent
,
CanvasRenderer
]
);
// let echarts = require('echarts/lib/echarts')
// 引入饼状图组件
// require('echarts/lib/chart/pie')
// 引入提示框和title组件
// require('echarts/lib/component/legend')
// require('echarts/lib/component/tooltip')
// require('echarts/lib/component/title')
import
METHOD
from
"@/utils/methods"
;
import
VueEllipseProgress
from
'vue-ellipse-progress'
;
// Vue.prototype.$echarts = echarts;
Vue
.
use
(
VueEllipseProgress
);
export
default
{
data
()
{
return
{
tableData
:
[{
date
:
'测试瓷砖厂'
,
name
:
'压力过大'
,
province
:
'传感器001'
,
city
:
'2020-07-23 10:20:37'
},
{
date
:
'赞皇测试有限公司'
,
name
:
'压力过大'
,
province
:
'传感器001'
,
city
:
'2020-07-23 10:20:37'
},
{
date
:
'奔腾大河有限公司'
,
name
:
'压力过大'
,
province
:
'传感器001'
,
city
:
'2020-07-23 10:20:37'
},
{
date
:
'泽宏科技股份有限公司'
,
name
:
'压力过大'
,
province
:
'传感器001'
,
city
:
'2020-07-23 10:20:37'
},
{
date
:
'测试瓷砖厂'
,
name
:
'压力过大'
,
province
:
'传感器001'
,
city
:
'2020-07-23 10:20:37'
},
{
date
:
'测试瓷砖厂'
,
name
:
'压力过大'
,
province
:
'传感器001'
,
city
:
'2020-07-23 10:20:37'
}]
}
},
created
(){
},
mounted
(){
this
.
drawPieChart
();
},
methods
:{
deleteRow
(
index
,
rows
)
{
rows
.
splice
(
index
,
1
);
},
//初始化数据
drawPieChart
(){
// 基于准备好的dom,初始化echarts实例
var
myChart2
=
echarts
.
init
(
document
.
getElementById
(
'main2'
));
let
that
=
this
;
var
getData1
=
[];
var
getData2
=
[];
METHOD
.
axiosGet
(
this
,
`/enterpriseGoods/getNumberByEnterprise`
,
function
(
res
)
{
if
(
res
.
code
===
0
)
{
//先进行赋值
for
(
let
i
=
0
;
i
<
res
.
data
.
result
.
length
;
i
++
)
{
var
obj
=
new
Object
();
var
arr
=
new
Object
();
// obj = res.data.result[i].number;
// arr = res.data.result[i].type;
obj
=
res
.
data
.
result
[
i
].
number
;
arr
=
res
.
data
.
result
[
i
].
name
;
getData1
[
i
]
=
obj
;
getData2
[
i
]
=
arr
;
}
myChart2
.
setOption
({
xAxis
:
{
data
:
getData2
,
},
series
:[{
data
:
getData1
,
}]
})
}
});
// 绘制图表
myChart2
.
setOption
({
title
:
{
text
:
'企业危险源数量统计'
,
//主标题
color
:
'#fff'
,
// subtext: '柱状图',
textStyle
:
{
color
:
"#fff"
,
}
},
tooltip
:
{},
legend
:
{
data
:[
'危险源'
],
textStyle
:
{
//图例文字的样式
color
:
'#fff'
,
}
},
xAxis
:
{
axisLabel
:
{
interval
:
0
,
rotate
:
40
}
,
data
:
[],
},
yAxis
:
{},
series
:
[{
name
:
'危险源'
,
type
:
'bar'
,
// data: [5, 20, 36, 10, 10, 20],
data
:
[],
}],
textStyle
:
{
color
:
"#fff"
,
fontSize
:
18
},
});
}
}
}
</
script
>
<
style
>
.el-main
.el-tabs
.el-tabs__content
{
/* height: 100%; */
padding
:
0px
!important
;
}
.pie-div
{
width
:
425px
;
height
:
180px
;
border-style
:
solid
;
border-width
:
5px
27px
27px
;
border-image
:
url(chart-wrapper.png)
5
27
27
fill
/
1
/
0
repeat
;
}
.div-table
.el-table
tr
>
td
{
background-color
:
#02285a
;
color
:
#fff
;
border
:
1px
solid
#8ec5fc
;
}
.div-table
.el-table
tr
>
th
{
border
:
1px
solid
#8ec5fc
;
}
.div-table
.el-table
tr
:hover
>
td
{
background-color
:
#2c5794
!important
;
/* color: #fff; */
}
</
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