Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8f3b8794
authored
Mar 14, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工资bug
1 parent
d9dc22b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
components/HomeFrame/components/Income/History.vue
components/HomeFrame/components/Income/History.vue
View file @
8f3b879
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-0
1-22 00:25:25
* @LastEditTime: 2025-0
3-14 14:54:11
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
return
true
return
true
},
},
getDetail
(
date
)
{
getDetail
(
date
)
{
uni
.
$api
.
pointApi
.
pageStat
({
salaryMonthBegin
:
`
${
this
.
year
}
-1`
,
salaryMonthEnd
:
`
${
this
.
year
}
-12`
}).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
pageStat
({
salaryMonthBegin
:
`
${
this
.
year
}
-
0
1`
,
salaryMonthEnd
:
`
${
this
.
year
}
-12`
}).
then
(
res
=>
{
const
list
=
res
.
list
||
[]
const
list
=
res
.
list
||
[]
const
canvasList
=
[]
const
canvasList
=
[]
for
(
let
i
=
0
;
i
<
12
;
i
++
)
{
for
(
let
i
=
0
;
i
<
12
;
i
++
)
{
...
@@ -155,7 +155,7 @@ export default {
...
@@ -155,7 +155,7 @@ export default {
this
.
canvasList
=
canvasList
this
.
canvasList
=
canvasList
this
.
showChart
(
this
.
month
-
1
)
this
.
showChart
(
this
.
month
-
1
)
})
})
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
this
.
month
)
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
String
(
this
.
month
).
padStart
(
2
,
0
)
)
},
},
/**
/**
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
this
.
showChart
(
i
)
// 重新绘制图表,如果需要更新显示
this
.
showChart
(
i
)
// 重新绘制图表,如果需要更新显示
const
month
=
this
.
canvasList
[
i
].
date
.
replace
(
/
\D
+/
,
''
)
const
month
=
this
.
canvasList
[
i
].
date
.
replace
(
/
\D
+/
,
''
)
this
.
monthStr
=
month
this
.
monthStr
=
month
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
month
)
this
.
monthSalaryDetail
(
this
.
year
+
'-'
+
month
.
padStart
(
2
,
0
)
)
}
}
break
break
...
...
Write
Preview
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