Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
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
quanku
qk_admin
Commits
80d3d781
Commit
80d3d781
authored
Jul 17, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化账单列表筛选账期默认值
parent
8b7a80fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/views/finance/financeList.vue
src/views/finance/financeList.vue
+9
-4
No files found.
src/views/finance/financeList.vue
View file @
80d3d781
...
@@ -191,14 +191,19 @@ export default {
...
@@ -191,14 +191,19 @@ export default {
}
}
}
,
}
,
created
()
{
created
()
{
const
date
=
new
Date
()
this
.
$set
(
this
.
listQuery
,
'
accountPeriod
'
,
this
.
getPreviousMonthYear
())
const
year
=
date
.
getFullYear
()
const
month
=
date
.
getMonth
()
+
1
this
.
$set
(
this
.
listQuery
,
'
accountPeriod
'
,
year
+
'
-
'
+
(
month
<
10
?
`0${month
}
`
:
month
))
this
.
getList
()
this
.
getList
()
}
,
}
,
methods
:
{
methods
:
{
getPreviousMonthYear
()
{
const
now
=
new
Date
()
const
previousMonth
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
-
1
,
1
)
const
month
=
previousMonth
.
getMonth
()
+
1
const
year
=
previousMonth
.
getFullYear
()
const
time
=
year
+
'
-
'
+
(
month
<
10
?
`0${month
}
`
:
month
)
return
time
}
,
handleOnChange
(
value
)
{
handleOnChange
(
value
)
{
console
.
log
(
'
===
'
,
value
)
console
.
log
(
'
===
'
,
value
)
}
,
}
,
...
...
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