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
dcdc9ac6
authored
2025-07-14 15:59:50 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看版
1 parent
1d8088ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
13 deletions
src/viewsPc/home.vue
src/viewsPc/vip/rightPage.vue
src/viewsPc/home.vue
View file @
dcdc9ac
...
...
@@ -27,9 +27,9 @@ const type = ref('是')
const
url
=
ref
()
const
obj
=
ref
({})
const
result
=
ref
()
const
router
=
useRouter
()
// url.value = 'http://192.168.1.152:8899/login/sid=fa190207-f8bf-462c-a7f0-f2f0a14abe97
#/'
url
.
value
=
window
.
location
.
href
//
const router = useRouter()
url
.
value
=
'http://192.168.1.152:8899/login/sid=0210d28d-3d3b-4534-bdcf-d81aef6e9325
#/'
//
url.value = window.location.href
result
.
value
=
url
.
value
?.
split
(
'='
)[
1
]?.
split
(
'#'
)[
0
];
onMounted
(()
=>
{
...
...
src/viewsPc/vip/rightPage.vue
View file @
dcdc9ac
...
...
@@ -318,7 +318,13 @@ async function handelGetYS007() {
}
const
firstAbove
=
list7Y
.
value
.
find
(
v
=>
v
.
name
>=
BC
.
value
);
setA
(
list7Y
.
value
,
arr1
,
arr2
,
arr3
,
firstAbove
?.
value
||
''
,
BC
.
value
)
let
firstVal
=
''
if
(
firstAbove
&&
firstAbove
.
value
)
{
firstVal
=
firstAbove
.
value
}
else
{
firstVal
=
''
}
setA
(
list7Y
.
value
,
arr1
,
arr2
,
arr3
,
firstVal
,
BC
.
value
)
}
function
handelSelect7
()
{
...
...
@@ -347,9 +353,13 @@ function handelSelect7() {
arr3
.
push
(
val
.
EXERATIO
)
}
const
firstAbove
=
list7Y
.
value
.
find
(
v
=>
v
.
name
>=
BC
.
value
);
setA
(
list7Y
.
value
,
arr1
,
arr2
,
arr3
,
firstAbove
?.
value
||
''
,
BC
.
value
)
let
firstVal
=
''
if
(
firstAbove
&&
firstAbove
.
value
)
{
firstVal
=
firstAbove
.
value
}
else
{
firstVal
=
''
}
setA
(
list7Y
.
value
,
arr1
,
arr2
,
arr3
,
firstVal
,
BC
.
value
)
}
async
function
handelGetYS008
()
{
...
...
@@ -358,6 +368,7 @@ async function handelGetYS008() {
list8Y
.
value
=
[]
month8
.
value
=
[]
year8
.
value
=
[]
list8
.
value
.
sort
((
a
,
b
)
=>
a
.
HKQKMONTH
-
b
.
HKQKMONTH
);
for
(
let
i
=
0
;
i
<
list8
.
value
.
length
;
i
++
)
{
list8
.
value
[
i
].
itemStyle
=
itemStyleList
.
value
[
i
%
itemStyleList
.
value
.
length
]
list8Y
.
value
.
push
(
list8
.
value
[
i
].
BASEJC
)
...
...
@@ -375,17 +386,21 @@ async function handelGetYS008() {
}
function
handelSelect8
()
{
console
.
log
(
list8
.
value
)
month8
.
value
=
[]
year8
.
value
=
[]
let
arr
=
list8Y
.
value
.
map
(
val
=>
list8
.
value
.
find
(
item
=>
item
.
BASEJC
===
val
));
list8Y
.
value
=
[]
arr
.
sort
((
a
,
b
)
=>
a
.
HKQKMONTH
-
b
.
HKQKMONTH
);
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
list8Y
.
value
.
push
(
arr
[
i
].
BASEJC
)
month8
.
value
.
push
({
value
:
list8
.
value
[
i
].
HKQKTOTAL
/
10000
,
itemStyle
:
list8
.
value
[
i
].
itemStyle
,
value
:
arr
[
i
].
HKQKTOTAL
/
10000
,
itemStyle
:
arr
[
i
].
itemStyle
,
})
year8
.
value
.
push
({
value
:
list8
.
value
[
i
].
HKQKMONTH
/
10000
,
itemStyle
:
list8
.
value
[
i
].
itemStyle
,
value
:
arr
[
i
].
HKQKMONTH
/
10000
,
itemStyle
:
arr
[
i
].
itemStyle
,
})
}
let
arrc
=
type8
.
value
==
'2'
?
month8
.
value
:
year8
.
value
...
...
@@ -493,6 +508,11 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
type
:
'category'
,
data
:
arrY
,
offset
:
10
,
axisLabel
:
{
// formatter: '{value}w' // 在数值后添加单位
interval
:
0
,
fontSize
:
10
,
},
axisLine
:
{
show
:
true
,
lineStyle
:
{
...
...
@@ -656,7 +676,8 @@ const setB = (arrY, arr1, arr2) => {
data
:
arrY
,
axisLabel
:
{
// formatter: '{value}w' // 在数值后添加单位
interval
:
0
interval
:
0
,
fontSize
:
10
,
},
axisLine
:
{
show
:
true
,
...
...
@@ -858,13 +879,19 @@ const setC = (arry, arr1, arr2, arr3) => {
stack: 'Ad',
// data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
data: arry,
axisLabel: {
interval: 0,
// rotate: 45,
fontSize: 10,
},
axisLine: {
show: true,
lineStyle: {
color: '#fff',
width: 2,
type: 'solid'
}
},
},
}
],
...
...
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