Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dangan_dataV
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
78c0c8e3
authored
2025-04-28 13:54:10 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看板
1 parent
dff07a15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
7 deletions
src/viewsPc/vip/centerPage.vue
src/viewsPc/vip/scrollingData.vue
src/viewsPc/vip/centerPage.vue
View file @
78c0c8e
...
...
@@ -98,8 +98,6 @@ import {onMounted, ref} from 'vue'
import
{
dayjs
}
from
'element-plus'
import
{
getYS001
,
getYS002
,
getYS003
,
getYS004
,
getYS005
}
from
'@/api/server.js'
const
dataItems
=
ref
([]);
const
zhuRef1
=
ref
(
null
)
const
zhuRef2
=
ref
(
null
)
const
zhuRef3
=
ref
(
null
)
...
...
@@ -330,13 +328,24 @@ const handelBing1 = (arr1, arr2) => {
tooltip
:
{
trigger
:
'item'
,
position
:
[
'20%'
,
'30%'
],
valueFormatter
:
(
value
)
=>
value
+
'万'
,
//
valueFormatter: (value) => value + '万',
backgroundColor
:
'rgba(5, 28, 51, 1)'
,
// 背景色
borderColor
:
'rgba(46, 151, 198, 1)'
,
// 边框颜色
borderWidth
:
1
,
// 边框宽度
textStyle
:
{
color
:
'#fff'
,
// 文字颜色
fontSize
:
12
,
// 文字大小
}
,
formatter
:
function
(
params
)
{
// params.seriesIndex 可以判断是哪个系列(外环或内环)
// params.seriesName 可以获取系列名称
if
(
params
.
seriesIndex
===
1
)
{
// 外环的提示内容
return
`营业收入<br/>${arr1.YEAR
}
: ${(arr1.TOTAL / 10000).toFixed()
}
万`
;
}
else
if
(
params
.
seriesIndex
===
2
)
{
// 内环的提示内容
return
`营业收入<br/>${arr2.YEAR
}
: ${(arr2.TOTAL / 10000).toFixed()
}
万`
;
}
}
}
,
series
:
[
...
...
@@ -498,20 +507,31 @@ const handelBing2 = (row1, row2) => {
textStyle
:
{
color
:
'#fff'
,
// 文字颜色
fontSize
:
12
,
// 文字大小
}
,
formatter
:
function
(
params
)
{
// params.seriesIndex 可以判断是哪个系列(外环或内环)
// params.seriesName 可以获取系列名称
if
(
params
.
seriesIndex
===
1
)
{
// 外环的提示内容
return
`应收余额<br/>${params.name
}
: ${params.value
}
万`
;
}
}
}
,
series
:
[
{
name
:
'
应收余额
'
,
name
:
''
,
type
:
'pie'
,
radius
:
[
'99%'
,
'100%'
],
center
:
[
'50%'
,
'60%'
],
emphasis
:
{
scale
:
false
,
}
,
label
:
{
show
:
false
,
}
,
emphasis
:
{
scale
:
false
emphasis
:
{
show
:
false
}
}
,
startAngle
:
180
,
endAngle
:
360
,
...
...
@@ -607,6 +627,14 @@ const handelBing3 = (row1, row2) => {
textStyle
:
{
color
:
'#fff'
,
// 文字颜色
fontSize
:
12
,
// 文字大小
}
,
formatter
:
function
(
params
)
{
// params.seriesIndex 可以判断是哪个系列(外环或内环)
// params.seriesName 可以获取系列名称
if
(
params
.
seriesIndex
===
1
)
{
// 外环的提示内容
return
`应收余额<br/>${params.name
}
: ${params.value
}
万`
;
}
}
}
,
...
...
src/viewsPc/vip/scrollingData.vue
View file @
78c0c8e
...
...
@@ -119,6 +119,10 @@ onUnmounted(() => {
color
:
#FFFFFF
;
height
:
calc
(
40
*
100vh
/
1920
);
margin
:
calc
(
8
*
100vw
/
1920
)
0
;
white-space
:
nowrap
;
/* 强制文本不换行 */
overflow
:
hidden
;
/* 隐藏溢出内容 */
text-overflow
:
ellipsis
;
/* 显示省略号 */
width
:
99%
;
/* 必须指定宽度 */
span
{
display
:
inline-block
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment