Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
huaxin-rq
Commits
2d9736c5
Commit
2d9736c5
authored
Mar 16, 2026
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/huaxin-rq
parents
b503d4a8
e4184aa3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
+7
-18
Right.vue
huaxin-web/src/views/bigWindow/Ind/components/Right.vue
+0
-1
UserTypeBarChart.vue
...b/src/views/bigWindow/Ind/components/UserTypeBarChart.vue
+7
-17
No files found.
huaxin-web/src/views/bigWindow/Ind/components/Right.vue
View file @
2d9736c5
...
...
@@ -82,7 +82,6 @@ export default {
if
(
res
.
code
==
200
&&
res
.
rows
){
//this.eventList = res.rows;
this
.
eventInfo
=
res
.
rows
[
0
];
console
.
log
(
">>>>>>>>>>"
,
this
.
eventInfo
)
}
});
},
...
...
huaxin-web/src/views/bigWindow/Ind/components/UserTypeBarChart.vue
View file @
2d9736c5
...
...
@@ -61,10 +61,13 @@ export default {
getUserStatistic
(){
userStatistic
().
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
categories
=
res
.
data
.
categories
;
this
.
residential
=
res
.
residential
;
this
.
commercial
=
res
.
data
.
commercial
;
console
.
log
(
">>>>>>>>>"
,
res
.
data
);
this
.
categories
=
res
.
data
.
categories
||
[];
this
.
residential
=
Array
.
isArray
(
res
.
data
.
residential
)
?
res
.
data
.
residential
:
(
res
.
data
.
residential
||
[]).
map
(
Number
);
this
.
commercial
=
Array
.
isArray
(
res
.
data
.
commercial
)
?
res
.
data
.
commercial
:
(
res
.
data
.
commercial
||
[]).
map
(
Number
);
this
.
updateChart
();
}
})
...
...
@@ -85,19 +88,6 @@ export default {
if
(
!
this
.
chart
)
{
return
;
}
// 修复5: 检查数据是否有效
if
(
!
this
.
categories
.
length
||
!
this
.
residential
.
length
||
!
this
.
commercial
.
length
)
{
console
.
warn
(
"数据不完整,图表无法显示"
);
return
;
}
// 修复6: 确保数据长度一致
const
maxLength
=
Math
.
max
(
this
.
categories
.
length
,
this
.
residential
.
length
,
this
.
commercial
.
length
);
if
(
this
.
categories
.
length
!==
maxLength
||
this
.
residential
.
length
!==
maxLength
||
this
.
commercial
.
length
!==
maxLength
)
{
console
.
warn
(
"数据长度不一致,可能显示异常"
);
}
this
.
chart
.
setOption
({
grid
:
{
left
:
8
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment