Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
ab00357b
Commit
ab00357b
authored
Aug 16, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
17c4faac
fd5b6b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
treatment-management.vue
...-management/treatment-management/treatment-management.vue
+25
-4
No files found.
src/views/service-management/treatment-management/treatment-management.vue
View file @
ab00357b
...
...
@@ -798,7 +798,7 @@ export default {
this
.
sortedColumn
=
''
this
.
queryParams
=
{
pageNum
:
1
,
pageSize
:
1
0
,
pageSize
:
2
0
,
searchText
:
''
,
treatScheduleList
:
''
,
reportTime
:
''
,
...
...
@@ -843,15 +843,36 @@ export default {
/** 导出按钮操作 */
handleExport
()
{
if
(
this
.
ids
.
length
!==
0
)
{
const
exportTable
=
{
}
exportTable
.
treatIds
=
this
.
ids
this
.
download
(
'business/treat/export'
,
exportTable
,
`manage_${new Date().getTime()
}
.xlsx`
).
then
(
res
=>
{
const
exportTable
=
{
orderByColumn
:
this
.
queryParams
.
orderByColumn
,
isAsc
:
this
.
queryParams
.
isAsc
,
pageNum
:
1
,
pageSize
:
this
.
ids
.
length
,
treatIds
:
this
.
ids
}
this
.
download
(
'business/treat/export'
,
exportTable
,
`治疗管理_${this.exportFormatTime(new Date())
}
.xlsx`
).
then
(
res
=>
{
this
.
$refs
.
table
.
clearSelection
()
}
)
}
else
{
this
.
$modal
.
msgWarning
(
'请选择至少一条数据导出'
)
return
}
}
,
// 导出格式化
exportFormatTime
(
date
)
{
// 获取年月日
var
year
=
date
.
getFullYear
()
var
month
=
date
.
getMonth
()
+
1
// 月份从0开始,需要加1
var
day
=
date
.
getDate
()
// 将年月日格式化为字符串
if
(
month
<
10
)
{
month
=
'0'
+
month
}
if
(
day
<
10
)
{
day
=
'0'
+
day
}
const
formattedDate
=
year
.
toString
()
+
month
.
toString
()
+
day
.
toString
()
return
formattedDate
}
}
}
...
...
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