Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
enterprise-platform
Commits
d978fc83
Commit
d978fc83
authored
Dec 19, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:修改数据判断类型
parent
53cd9da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
enterprise-manager-ui/admin/src/views/Home.vue
enterprise-manager-ui/admin/src/views/Home.vue
+20
-9
No files found.
enterprise-manager-ui/admin/src/views/Home.vue
View file @
d978fc83
...
...
@@ -128,18 +128,23 @@ export default {
this
.
$post
(
"
/company/stat
"
).
then
((
res
)
=>
{
const
{
data
,
code
}
=
res
;
if
(
code
==
1
)
{
this
.
enterpriseNums
=
data
.
enterpriseNums
;
this
.
productNums
=
data
.
productNums
;
this
.
staffNums
=
data
.
staffNums
;
this
.
newsNums
=
data
.
newsNums
;
this
.
feedbackNums
=
data
.
feedbackNums
;
this
.
customerNums
=
data
.
customerNums
;
data
.
enterpriseNums
?
(
this
.
enterpriseNums
=
data
.
enterpriseNums
)
:
"
--
"
;
data
.
productNums
?
(
this
.
productNums
=
data
.
productNums
)
:
"
--
"
;
data
.
staffNums
?
(
this
.
staffNums
=
data
.
staffNums
)
:
"
--
"
;
data
.
newsNums
?
(
this
.
newsNums
=
data
.
newsNums
)
:
"
--
"
;
data
.
feedbackNums
?
(
this
.
feedbackNums
=
data
.
feedbackNums
)
:
"
--
"
;
data
.
customerNums
?
(
this
.
customerNums
=
data
.
customerNums
)
:
"
--
"
;
this
.
lineDayValue
=
data
.
accessStatList
?
data
.
accessStatList
:
[];
this
.
barDayValue
=
data
.
sendCardStaffList
?
data
.
sendCardStaffList
:
[];
if
(
data
.
newsDistributionList
.
length
>
0
)
{
if
(
data
.
newsDistributionList
&&
data
.
newsDistributionList
.
length
>
0
)
{
let
arr
=
[];
data
.
newsDistributionList
.
forEach
((
item
)
=>
{
arr
.
push
({
...
...
@@ -152,7 +157,10 @@ export default {
this
.
xwfbDayValue
=
[];
}
if
(
data
.
productDistributionList
.
length
>
0
)
{
if
(
data
.
productDistributionList
&&
data
.
productDistributionList
.
length
>
0
)
{
let
arr
=
[];
data
.
productDistributionList
.
forEach
((
item
)
=>
{
arr
.
push
({
...
...
@@ -165,7 +173,10 @@ export default {
this
.
cpfbDayValue
=
[];
}
if
(
data
.
businessCardDistributionList
.
length
>
0
)
{
if
(
data
.
businessCardDistributionList
&&
data
.
businessCardDistributionList
.
length
>
0
)
{
let
arr
=
[];
data
.
businessCardDistributionList
.
forEach
((
item
)
=>
{
arr
.
push
({
...
...
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