Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psa-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
高滢
psa-web
Commits
df12633c
Commit
df12633c
authored
Apr 15, 2025
by
yanzhengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增出差申请列表导出
parent
b0b4384e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
index.vue
src/views/costManage/tripApplication/index.vue
+21
-13
No files found.
src/views/costManage/tripApplication/index.vue
View file @
df12633c
...
...
@@ -124,6 +124,7 @@
<!-- 表格数据 -->
<el-table
v-loading=
"loading"
:data=
"tripApplicationList"
border
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
:row-class-name=
"tableRowClassName"
>
<el-table-column
type=
"selection"
width=
"40"
align=
"right"
/>
<el-table-column
label=
"项目编号"
align=
"center"
prop=
"projectNumber"
min-width=
"150"
/>
...
...
@@ -201,7 +202,7 @@ const { cost_daily_status, project_type } = proxy.useDict('cost_daily_status', '
const
tripApplicationList
=
ref
([]);
const
loading
=
ref
(
true
);
const
ids
=
ref
([])
const
total
=
ref
(
0
);
const
projectOption
=
ref
([]);
...
...
@@ -306,19 +307,26 @@ function handleDelete(row) {
}).
catch
(()
=>
{});
}
/** 导出按钮操作 */
// function handleExport() {
// proxy.download("system/role/export", {
// ...queryParams.value,
// }, `role_${new Date().getTime()}.xlsx`);
// }
/** 多选框选中数据 */
// function handleSelectionChange(selection) {
// ids.value = selection.map(item => item.roleId);
// single.value = selection.length != 1;
// multiple.value = !selection.length;
// }
function
handleSelectionChange
(
val
)
{
ids
.
value
=
val
.
map
((
item
)
=>
{
return
item
.
id
})
}
/** 导出按钮操作 */
function
handleExport
()
{
if
(
ids
.
value
.
length
===
0
)
{
proxy
.
$message
.
warning
(
'请选择要导出的数据'
);
}
else
{
let
arr
=
ids
.
value
.
join
(
","
)
let
obj
=
{
ids
:
arr
}
console
.
log
(
obj
)
proxy
.
download
(
'/tripApplication/tripApplication/export'
,
obj
,
`出差申请.xlsx`
)
}
}
/** 添加角色 */
function
handleAdd
()
{
...
...
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