Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
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
office
haoban-4
Commits
3361cf6a
Commit
3361cf6a
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改数据维度
parent
c20aebd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
data-dimension.vue
src/views/apps/customer-app/data-dimension.vue
+16
-2
No files found.
src/views/apps/customer-app/data-dimension.vue
View file @
3361cf6a
...
...
@@ -172,13 +172,27 @@ export default {
.
then
(
res
=>
{
that
.
loadingMember
=
false
;
that
.
loadingService
=
false
;
that
.
memberCardData
=
res
.
result
.
cards
||
[];
that
.
serviceNumData
=
res
.
result
.
services
||
[];
if
(
res
.
result
.
cards
&&
res
.
result
.
cards
.
length
){
that
.
memberCardData
=
that
.
sortTable
(
res
.
result
.
cards
)
||
[];
}
if
(
res
.
result
.
services
&&
res
.
result
.
services
.
length
){
that
.
serviceNumData
=
that
.
sortTable
(
res
.
result
.
services
)
||
[];
}
})
.
catch
(
function
(
error
)
{
that
.
loadingMember
=
false
;
that
.
loadingService
=
false
;
});
},
/**
* @description: 排序
* @param {Array} arr
* @author: 无尘
*/
sortTable
(
arr
)
{
arr
.
sort
(
function
(
a
,
b
)
{
return
(
a
.
sort
-
b
.
sort
);
});
}
},
watch
:
{
...
...
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