Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
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
刘怀志
qr-consistency-vue3
Commits
9b285af2
Commit
9b285af2
authored
Apr 21, 2025
by
lwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备案参数总表-修改导出文件名
parent
324609fe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
6 deletions
+35
-6
history.vue
src/views/carConsistency/filingParameter/history.vue
+11
-3
newAnnouncementVersion.vue
...carConsistency/filingParameter/newAnnouncementVersion.vue
+10
-2
parameterDetail.vue
src/views/carConsistency/filingParameter/parameterDetail.vue
+14
-1
No files found.
src/views/carConsistency/filingParameter/history.vue
View file @
9b285af2
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
plain
plain
@
click=
"handleExport"
@
click=
"handleExport"
v-hasPermi=
"['control:library:export']"
v-hasPermi=
"['control:library:export']"
>
导出
最新版本
列表数据
</el-button>
>
导出
历史数据
列表数据
</el-button>
<!-- 在el-table上添加v-if延迟渲染 -->
<!-- 在el-table上添加v-if延迟渲染 -->
...
@@ -360,9 +360,16 @@ function handleSelectionChange(selection) {
...
@@ -360,9 +360,16 @@ function handleSelectionChange(selection) {
/** 导出按钮操作 */
/** 导出按钮操作 */
function
handleExport
()
{
function
handleExport
()
{
const
now
=
new
Date
();
const
formattedTime
=
`
${
now
.
getFullYear
()}
`
+
`
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getMinutes
()).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getSeconds
()).
padStart
(
2
,
'0'
)}
`
;
proxy
.
download
(
'control/library/export'
,
{
proxy
.
download
(
'control/library/export'
,
{
...
queryParams
.
value
...
queryParams
.
value
},
`
library_
${
new
Date
().
getTime
()
}
.xlsx`
)
},
`
备案参数总表主列表信息-
${
formattedTime
}
.xlsx`
)
}
}
function
handleView
(
row
)
{
function
handleView
(
row
)
{
...
@@ -372,7 +379,8 @@ function handleView(row) {
...
@@ -372,7 +379,8 @@ function handleView(row) {
id
:
row
.
id
,
id
:
row
.
id
,
modelCode
:
row
.
modelCode
,
modelCode
:
row
.
modelCode
,
modelSeries
:
row
.
modelSeries
,
modelSeries
:
row
.
modelSeries
,
announcementNumber
:
row
.
announcementNumber
announcementNumber
:
row
.
announcementNumber
,
versionNumber
:
row
.
versionNumber
}
}
})
})
}
}
...
...
src/views/carConsistency/filingParameter/newAnnouncementVersion.vue
View file @
9b285af2
...
@@ -360,9 +360,16 @@ function handleSelectionChange(selection) {
...
@@ -360,9 +360,16 @@ function handleSelectionChange(selection) {
/** 导出按钮操作 */
/** 导出按钮操作 */
function
handleExport
()
{
function
handleExport
()
{
const
now
=
new
Date
();
const
formattedTime
=
`
${
now
.
getFullYear
()}
`
+
`
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getMinutes
()).
padStart
(
2
,
'0'
)}
`
+
`
${
String
(
now
.
getSeconds
()).
padStart
(
2
,
'0'
)}
`
;
proxy
.
download
(
'control/library/export'
,
{
proxy
.
download
(
'control/library/export'
,
{
...
queryParams
.
value
...
queryParams
.
value
},
`
library_
${
new
Date
().
getTime
()
}
.xlsx`
)
},
`
备案参数总表主列表信息-
${
formattedTime
}
.xlsx`
)
}
}
function
handleView
(
row
)
{
function
handleView
(
row
)
{
...
@@ -372,7 +379,8 @@ function handleView(row) {
...
@@ -372,7 +379,8 @@ function handleView(row) {
id
:
row
.
id
,
id
:
row
.
id
,
modelCode
:
row
.
modelCode
,
modelCode
:
row
.
modelCode
,
modelSeries
:
row
.
modelSeries
,
modelSeries
:
row
.
modelSeries
,
announcementNumber
:
row
.
announcementNumber
announcementNumber
:
row
.
announcementNumber
,
versionNumber
:
row
.
versionNumber
}
}
})
})
}
}
...
...
src/views/carConsistency/filingParameter/parameterDetail.vue
View file @
9b285af2
...
@@ -73,6 +73,7 @@ import { useRoute } from 'vue-router';
...
@@ -73,6 +73,7 @@ import { useRoute } from 'vue-router';
const
route
=
useRoute
();
const
route
=
useRoute
();
const
{
proxy
}
=
getCurrentInstance
();
const
{
proxy
}
=
getCurrentInstance
();
const
versionNumber
=
route
.
query
.
versionNumber
const
modelCode
=
route
.
query
.
modelCode
const
modelCode
=
route
.
query
.
modelCode
const
modelSeries
=
route
.
query
.
modelSeries
const
modelSeries
=
route
.
query
.
modelSeries
const
announcementNumber
=
route
.
query
.
announcementNumber
const
announcementNumber
=
route
.
query
.
announcementNumber
...
@@ -232,9 +233,21 @@ function handleDelete(row) {
...
@@ -232,9 +233,21 @@ function handleDelete(row) {
/** 导出按钮操作 */
/** 导出按钮操作 */
function
handleExport
()
{
function
handleExport
()
{
// 时间格式化处理
const
now
=
new
Date
();
const
formattedTime
=
[
now
.
getFullYear
(),
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
),
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
),
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
),
String
(
now
.
getMinutes
()).
padStart
(
2
,
'0'
),
String
(
now
.
getSeconds
()).
padStart
(
2
,
'0'
)
].
join
(
''
);
// 构造最终文件名
const
filename
=
`
${
announcementNumber
}
-
${
versionNumber
}
-
${
formattedTime
}
.xlsx`
;
proxy
.
download
(
'control/parameter/export'
,
{
proxy
.
download
(
'control/parameter/export'
,
{
...
queryParams
.
value
...
queryParams
.
value
},
`parameter_
${
new
Date
().
getTime
()}
.xlsx`
)
},
filename
)
}
}
getList
();
getList
();
...
...
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