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
30e5d464
authored
2023-02-08 15:20:14 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:取消打印
1 parent
f3692735
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
30 deletions
src/components/Echart/Map/Chart.vue
src/components/Echart/Rose/Chart.vue
src/components/Echart/Rose/index.vue
src/views/dataView/leftcard.vue
src/components/Echart/Map/Chart.vue
View file @
30e5d46
...
...
@@ -68,7 +68,7 @@ export default {
},
// 如果需要自定义 tooltip样式,需要使用formatter
formatter
:
params
=>
{
return
`<div style="">
${
params
.
name
}
:
${
params
.
value
+
"个"
}
</div>`
return
`<div style="">
${
params
.
name
}
:
${
params
.
value
+
"个"
}
</div>`
}
},
visualMap
:
{
...
...
@@ -121,7 +121,7 @@ export default {
borderColor
:
'rgba(0,242,252,.5)'
,
borderWidth
:
2
,
shadowBlur
:
7
,
borderColor
:
'rgba(19,54,162,.1)'
,
borderColor
:
'rgba(19,54,162,.1)'
,
shadowColor
:
'#44f2fc'
,
},
emphasis
:
{
...
...
@@ -133,9 +133,8 @@ export default {
},
},
label
:
{
formatter
:
params
=>
{
return
`
${
params
.
data
.
name
}
\n
${
params
.
data
.
value
+
"个"
}
`
;
return
`
${
params
.
data
?.
name
}
\
n$
{
params
.
data
?.
value
+
"个"
}
`;
},
show: true,
position: 'insideRight',
...
...
src/components/Echart/Rose/Chart.vue
View file @
30e5d46
...
...
@@ -7,9 +7,9 @@ export default {
components
:
{
Echart
,
},
data
()
{
data
()
{
return
{
key
:
0
key
:
0
}
},
props
:
{
...
...
@@ -21,11 +21,10 @@ export default {
watch
:
{
cdata
:
{
handler
(
newData
)
{
console
.
log
(
"newData"
,
newData
);
this
.
options
=
{
grid
:
{
right
:
"1%"
,
bottom
:
"4%"
right
:
"1%"
,
bottom
:
"4%"
},
color
:
[
"#37a2da"
,
...
...
@@ -49,7 +48,7 @@ export default {
{
name
:
"业务量"
,
type
:
"pie"
,
radius
:
[
40
,
100
],
radius
:
[
40
,
100
],
roseType
:
"area"
,
data
:
newData
.
seriesData
}
...
...
src/components/Echart/Rose/index.vue
View file @
30e5d46
...
...
@@ -33,7 +33,6 @@ export default {
XZQDM
:
""
,
};
let
res
=
await
work
.
getdjywltotal
(
p
);
console
.
log
(
"res"
,
res
);
// 遍历修改数组键,作为echars图表的参数
res
.
result
.
map
((
item
)
=>
{
return
(
...
...
@@ -51,4 +50,5 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
...
...
src/views/dataView/leftcard.vue
View file @
30e5d46
...
...
@@ -18,7 +18,7 @@
</p>
<p>
<span>
成功率
</span>
<span
class=
"cg"
>
{{
qxcgl
}}
</span>
<span
class=
"cg"
>
{{
qxcgl
}}
</span>
</p>
</div>
</div>
...
...
@@ -41,7 +41,7 @@
</p>
<p>
<span>
成功率
</span>
<span
class=
"cg"
>
{{
stcgl
}}
</span>
<span
class=
"cg"
>
{{
stcgl
}}
</span>
</p>
</div>
</div>
...
...
@@ -66,8 +66,8 @@ export default {
stsuccess
:
""
,
qxjrl
:
""
,
stjrl
:
""
,
qxcgl
:
""
,
stcgl
:
""
qxcgl
:
""
,
stcgl
:
""
};
},
mounted
()
{
...
...
@@ -76,10 +76,10 @@ export default {
components
:
{
columnar
},
computed
:
{
qxjrlList
:
function
()
{
return
this
.
qxjrl
.
toString
().
split
(
""
);
return
this
.
qxjrl
&&
this
.
qxjrl
.
toString
().
split
(
""
);
},
stjrlList
:
function
()
{
return
this
.
stjrl
.
toString
().
split
(
""
);
return
this
.
stjrl
&&
this
.
stjrl
.
toString
().
split
(
""
);
},
},
methods
:
{
...
...
@@ -92,19 +92,18 @@ export default {
XZQDM
:
""
,
};
let
res
=
await
work
.
getsthjqxjrtotal
(
p
);
console
.
log
(
"res"
,
res
);
this
.
stjrl
=
res
.
result
.
sum
this
.
qxjrl
=
res
.
result
.
sum
this
.
qxerrer
=
Number
(
res
.
result
.
qxjrerrer
)
this
.
sterrer
=
Number
(
res
.
result
.
sthjerrer
)
if
(
res
.
result
.
sum
==
"0"
){
this
.
qxcgl
=
"100%"
this
.
stcgl
=
"100%"
}
else
{
let
qxcglnum
=
Number
(
res
.
result
.
qxjrsuccess
)
/
this
.
qxjrl
*
100
let
stcgl
=
Number
(
res
.
result
.
sthjsuccess
)
/
this
.
qxjrl
*
100
this
.
qxcgl
=
qxcglnum
.
toFixed
(
2
)
+
"%"
;
this
.
stcgl
=
stcgl
.
toFixed
(
2
)
+
"%"
;
this
.
stjrl
=
res
.
result
.
sum
this
.
qxjrl
=
res
.
result
.
sum
this
.
qxerrer
=
Number
(
res
.
result
.
qxjrerrer
)
this
.
sterrer
=
Number
(
res
.
result
.
sthjerrer
)
if
(
res
.
result
.
sum
==
"0"
)
{
this
.
qxcgl
=
"100%"
this
.
stcgl
=
"100%"
}
else
{
let
qxcglnum
=
Number
(
res
.
result
.
qxjrsuccess
)
/
this
.
qxjrl
*
100
let
stcgl
=
Number
(
res
.
result
.
sthjsuccess
)
/
this
.
qxjrl
*
100
this
.
qxcgl
=
qxcglnum
.
toFixed
(
2
)
+
"%"
;
this
.
stcgl
=
stcgl
.
toFixed
(
2
)
+
"%"
;
}
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment