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
be0948b0
Commit
be0948b0
authored
Jun 28, 2023
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用 单选
parent
04e903d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
use-management.vue
...ws/equipment-management/use-management/use-management.vue
+18
-2
No files found.
src/views/equipment-management/use-management/use-management.vue
View file @
be0948b0
...
...
@@ -20,7 +20,7 @@
</el-select>
</el-form-item>
<el-form-item
prop=
"status"
>
<el-select
v-model=
"queryParams.insureList"
placeholder=
"宠物保险"
multiple
collapse-tags
clearable
>
<el-select
v-model=
"queryParams.insureList"
placeholder=
"宠物保险"
collapse-tags
clearable
>
<el-option
v-for=
"dict in insureList"
:key=
"dict.value"
...
...
@@ -307,12 +307,28 @@ export default {
}
this
.
getUseList
()
}
,
// 导出格式化
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
}
,
/** 导出按钮操作 */
handleExport
()
{
if
(
this
.
ids
.
length
!==
0
)
{
const
exportTable
=
{
}
exportTable
.
useIds
=
this
.
ids
this
.
download
(
'business/check/exportUse'
,
exportTable
,
`
use_${new Date().getTime(
)
}
.xlsx`
).
then
(
res
=>
{
this
.
download
(
'business/check/exportUse'
,
exportTable
,
`
使用管理_${this.exportFormatTime(new Date()
)
}
.xlsx`
).
then
(
res
=>
{
this
.
$refs
.
table
.
clearSelection
()
}
)
}
else
{
...
...
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