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
c4942a19
authored
2025-07-14 18:28:24 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看版
1 parent
72821f98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
src/viewsPc/vip/rightPage.vue
src/viewsPc/vip/rightPage.vue
View file @
c4942a1
...
...
@@ -53,7 +53,7 @@
</div>
<div
class=
"chartCard mt30"
>
<div
class=
"title"
>
逾期360天以上未开票
</div>
<div
class=
"title"
>
应收账款账期
</div>
<div
ref=
"overdueRef"
style=
"width: 100%; height: 24vh;"
></div>
</div>
</div>
...
...
@@ -834,10 +834,7 @@ const setC = (arry, arr1, arr2, arr3) => {
chartC
=
echarts
.
init
(
overdueRef
.
value
)
const
option
=
{
tooltip
:
{
// trigger: '',
// axisPointer: {
// type: 'shadow'
// },
trigger
:
'axis'
,
confine
:
true
,
valueFormatter
:
(
value
)
=>
value
+
'万'
,
backgroundColor
:
'rgba(5, 28, 51, 1)'
,
// 背景色
...
...
@@ -848,18 +845,18 @@ const setC = (arry, arr1, arr2, arr3) => {
fontSize
:
12
,
// 文字大小
},
position
:
'top'
,
formatter
:
function
(
row
)
{
return
`
<div style="font-weight:bold">
${
row
.
name
}
</div>
<div style="display:flex;align-items:center;margin-top:5px">
${
row
.
marker
}
${
row
.
seriesName
==
'逾期360天以上'
?
'未开票金额'
:
row
.
seriesName
}
:
${
row
.
value
}
万
</div>
<div>
${
row
.
data
?.
info
?
row
.
data
?.
info
?.
replaceAll
(
'\n'
,
'<br>'
)
:
''
}
<
/div
>
`;
}
//
formatter: function (row) {
//
return `
//
<div style="font-weight:bold">${row.name}</div>
//
<div style="display:flex;align-items:center;margin-top:5px">
//
${row.marker}
//
${row.seriesName == '逾期360天以上' ? '未开票金额' : row.seriesName}: ${row.value}万
//
</div>
//
<div>
//
${row.data?.info ? row.data?.info?.replaceAll('\n', '<br>') : ''}
//
</div>
//
`;
//
}
},
legend
:
{
top
:
'10%'
,
...
...
@@ -915,7 +912,7 @@ const setC = (arry, arr1, arr2, arr3) => {
],
series
:
[
{
name: '0-180天
未开票
',
name
:
'0-180天'
,
type
:
'bar'
,
stack
:
'Ad'
,
barMaxWidth
:
60
,
// 设置柱子的最大宽度为40px
...
...
@@ -938,7 +935,7 @@ const setC = (arry, arr1, arr2, arr3) => {
barWidth
:
'30%'
},
{
name: '180-360天
未开票
',
name
:
'180-360天'
,
type
:
'bar'
,
barMaxWidth
:
60
,
// 设置柱子的最大宽度为40px
stack
:
'Ad'
,
...
...
@@ -960,7 +957,7 @@ const setC = (arry, arr1, arr2, arr3) => {
barWidth
:
'30%'
},
{
name: '
逾期
360天以上',
name
:
'360天以上'
,
type
:
'bar'
,
stack
:
'Ad'
,
barMaxWidth
:
60
,
// 设置柱子的最大宽度为40px
...
...
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