Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
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
刘文虎
account-book
Commits
fc5a2df7
Commit
fc5a2df7
authored
Aug 16, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug修复
parent
9ca9a097
Pipeline
#3249
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
index.vue
components/cell-card-swiper/index.vue
+2
-2
chart-view.vue
pages/index/bill/components/chart-view.vue
+7
-13
No files found.
components/cell-card-swiper/index.vue
View file @
fc5a2df7
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<swiper
<swiper
class=
"swiper"
class=
"swiper"
:indicator-dots=
"true"
:indicator-dots=
"true"
indicator-color=
"rgba(2
52, 184, 42
, 0.45)"
indicator-color=
"rgba(2
, 160, 116
, 0.45)"
indicator-active-color=
"
#FCB82A
"
indicator-active-color=
"
rgba(2, 160, 116, 1)
"
style=
"height: 420rpx"
style=
"height: 420rpx"
>
>
<swiper-item>
<swiper-item>
...
...
pages/index/bill/components/chart-view.vue
View file @
fc5a2df7
...
@@ -439,22 +439,18 @@ export default {
...
@@ -439,22 +439,18 @@ export default {
},
},
reloadData
()
{
reloadData
()
{
this
.
getBookRecordPeriod
()
this
.
getBookRecordPeriod
()
this
.
getBookRecordChart
()
if
(
this
.
infoIndex
!=
2
)
{
this
.
getBookRecordClassification
()
this
.
getBookRecordPage
()
}
},
},
handleClickInfo
(
index
)
{
handleClickInfo
(
index
)
{
this
.
infoIndex
=
index
this
.
infoIndex
=
index
this
.
otherRequest
()
},
otherRequest
()
{
this
.
getBookRecordChart
()
this
.
getBookRecordChart
()
if
(
this
.
infoIndex
!=
2
)
{
if
(
index
!=
2
)
{
this
.
getBookRecordPage
()
this
.
getBookRecordPage
()
this
.
getBookRecordClassification
()
this
.
getBookRecordClassification
()
}
}
},
},
// 收支
// 收支
getBookRecordPeriod
()
{
getBookRecordPeriod
()
{
this
.
loading
=
true
this
.
loading
=
true
...
@@ -492,6 +488,7 @@ export default {
...
@@ -492,6 +488,7 @@ export default {
}
}
})
})
this
.
loading
=
false
this
.
loading
=
false
this
.
otherRequest
()
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -549,17 +546,14 @@ export default {
...
@@ -549,17 +546,14 @@ export default {
return
Number
(
item2
.
amount
)
-
Number
(
item1
.
amount
)
return
Number
(
item2
.
amount
)
-
Number
(
item1
.
amount
)
})
})
var
list
=
[]
var
list
=
[]
var
all
=
Number
(
this
.
info
[
this
.
currentSetting
.
key
])
for
(
var
item
of
sortData
)
{
for
(
var
item
of
sortData
)
{
list
.
push
({
list
.
push
({
name
:
item
.
name
,
name
:
item
.
name
,
value
:
Number
(
item
.
amount
||
0
),
value
:
Number
(
item
.
amount
||
0
),
id
:
item
.
id
,
id
:
item
.
id
,
icon
:
item
.
icon
,
icon
:
item
.
icon
,
percent
:
(
percent
:
all
&&
item
.
amount
?
(
Number
(
item
.
amount
||
0
)
/
all
*
100
).
toFixed
(
2
)
:
0
,
(
Number
(
item
.
amount
||
0
)
/
Number
(
this
.
info
[
this
.
currentSetting
.
key
]))
*
100
).
toFixed
(
2
),
})
})
}
}
}
}
...
...
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