Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
778b7e00
authored
2023-03-15 16:17:31 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
feat:引入配置文件
2 parents
0752255d
f55854f3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
34 deletions
public/index.html
src/components/Echart/Map/Chart.vue
src/views/home/dataView/centercard.vue
src/views/home/dataView/leftcard.vue
src/views/home/dataView/rightcard.vue
public/index.html
View file @
778b7e0
<!--
* @Description:
* @Description:
引入配置文件
* @Autor: renchao
* @LastEditTime: 2023-03-15 1
4:48:13
* @LastEditTime: 2023-03-15 1
6:17:17
-->
<!DOCTYPE html>
<html>
...
...
@@ -24,7 +24,7 @@
</html>
<script>
document
.
write
(
"<s"
+
"cript type='text/javascript' src='./
dist/
config.js?"
+
Math
.
random
().
toString
(
36
).
substr
(
2
)
+
"'></scr"
+
"ipt>"
);
document
.
write
(
"<s"
+
"cript type='text/javascript' src='./config.js?"
+
Math
.
random
().
toString
(
36
).
substr
(
2
)
+
"'></scr"
+
"ipt>"
);
window
.
baseUrl
=
location
.
origin
||
location
.
protocol
+
'//'
+
location
.
host
// window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR';
// window.authorization = 'bearer AT-223-c-Q86EHx75m7ig3EDf-SwMWl4U0AKn0b';
...
...
src/components/Echart/Map/Chart.vue
View file @
778b7e0
<
template
>
<!-- 地图 -->
<Echart
id=
"centreLeft2Chart"
class=
"centreLeft2Chart"
:key=
"key"
ref=
"centreLeft2ChartRef"
width=
"100%"
height=
"100%"
<Echart
id=
"centreLeft2Chart"
class=
"centreLeft2Chart"
:key=
"key"
ref=
"centreLeft2ChartRef"
width=
"100%"
height=
"100%"
:options=
"options"
></Echart>
</
template
>
<
script
>
import
Echart
from
"@/common/echart"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
import
Echart
from
"@/common/echart"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
data
()
{
return
{
options
:
{},
...
...
@@ -34,7 +28,6 @@
},
},
mounted
()
{
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
key
++
;
});
...
...
@@ -79,7 +72,7 @@
visualMap: {
min: 0,
max: _this.max,
bottom: "13
%",
bottom: "12
%",
left: 50,
splitNumber: 6,
seriesIndex: [0],
...
...
@@ -255,6 +248,6 @@
});
},
},
};
};
</
script
>
<
style
></
style
>
...
...
src/views/home/dataView/centercard.vue
View file @
778b7e0
...
...
@@ -11,9 +11,9 @@
</
template
>
<
script
>
import
maps
from
"@/components/Echart/Map"
;
import
brokenline
from
"@/components/Echart/Brokenline"
;
export
default
{
import
maps
from
"@/components/Echart/Map"
;
import
brokenline
from
"@/components/Echart/Brokenline"
;
export
default
{
data
()
{
return
{};
},
...
...
@@ -21,12 +21,12 @@
mounted
()
{
},
beforeDestroy
()
{
},
methods
:
{},
};
};
</
script
>
<
style
lang=
"scss"
scoped
>
.centercard
{
width
:
44
%
;
.centercard
{
width
:
40
%
;
height
:
calc
(
100vh
-
114px
);
box-sizing
:
border-box
;
padding
:
0
0.0521rem
;
...
...
@@ -75,10 +75,11 @@
text-align
:
center
;
margin-bottom
:
0.0521rem
;
}
.brokenline
{
margin
:
auto
;
width
:
100%
;
}
}
}
}
</
style
>
...
...
src/views/home/dataView/leftcard.vue
View file @
778b7e0
...
...
@@ -118,7 +118,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.leftcard
{
width
:
3
2
%
;
width
:
3
0
%
;
display
:
flex
;
height
:
calc
(
100vh
-
114px
);
flex-direction
:
column
;
...
...
src/views/home/dataView/rightcard.vue
View file @
778b7e0
...
...
@@ -19,10 +19,10 @@
</
template
>
<
script
>
import
columnarsmat
from
"@/components/Echart/Columnarsmat"
;
import
Rose
from
"@/components/Echart/Rose"
;
import
work
from
"@/api/work"
;
export
default
{
import
columnarsmat
from
"@/components/Echart/Columnarsmat"
;
import
Rose
from
"@/components/Echart/Rose"
;
import
work
from
"@/api/work"
;
export
default
{
data
()
{
return
{
config
:
{
...
...
@@ -70,15 +70,15 @@
},
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.row-item
:not
(
:last-child
)
{
/
deep
/
.row-item
:not
(
:last-child
)
{
margin-bottom
:
0.026rem
;
}
}
.rightcard
{
width
:
32
%
;
.rightcard
{
width
:
30
%
;
display
:
flex
;
height
:
calc
(
100vh
-
114px
);
flex-direction
:
column
;
...
...
@@ -121,20 +121,24 @@
height
:
33%
;
background
:
url("~@/image/xjgyfwxx.png")
no-repeat
;
background-size
:
100%
100%
;
/deep/.dv-scroll-board
{
.header
{
height
:
0.1875rem
;
align-items
:
center
;
}
}
.board
{
width
:
90%
;
margin
:
0
auto
;
height
:
1.1031rem
;
margin-top
:
0.0521rem
;
/deep/.header
{
font-size
:
0.0738rem
;
}
/
deep
/
.rows
{
.ceil
{
font-size
:
0.0738rem
;
...
...
@@ -167,5 +171,5 @@
.cardhead
{
position
:
absolute
;
}
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment