Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
紫光云
web-project
Commits
7d3e619d
Commit
7d3e619d
authored
Jun 26, 2024
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
f87df79b
aad60275
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
detail.data.ts
src/views/statement/annualPlanDrawer/detail.data.ts
+3
-0
annualPlan.vue
src/views/statement/tabs/annualPlan.vue
+28
-1
No files found.
src/views/statement/annualPlanDrawer/detail.data.ts
View file @
7d3e619d
...
...
@@ -96,6 +96,9 @@ export const formSchema: FormSchema[] = [
component
:
'InputTextArea'
,
},
];
export
const
exportUrl
=
'/pro/export/yearEngineer'
;
export
const
searchFormSchema
:
FormSchema
[]
=
[
{
field
:
'projecName'
,
...
...
src/views/statement/tabs/annualPlan.vue
View file @
7d3e619d
<
template
>
<BasicTable
@
register=
"registerTable"
>
<template
#
toolbar
>
<a-button
type=
"primary"
preIcon=
"mdi:plus"
@
click=
"handleExport"
>
导出筛选结果
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record, index }"
>
<template
v-if=
"column.key === 'serialNumber'"
>
{{
index
+
1
}}
...
...
@@ -19,18 +22,22 @@
</
template
>
</template>
</BasicTable>
<exportModal
@
register=
"registerModal"
/>
<detaildrawer
@
register=
"registerDrawer"
></detaildrawer>
</template>
<
script
lang=
"ts"
setup
>
import
exportModal
from
'../components/exportModal.vue'
;
import
detaildrawer
from
'@/views/statement/annualPlanDrawer/detailDrawer.vue'
;
import
{
annualPlanColumns
,
searchFormSchema
}
from
'./data'
;
import
{
exportUrl
}
from
'../annualPlanDrawer/detail.data'
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
inject
}
from
'vue'
;
import
{
getAnnualPlanDetail
,
getAnnualPlanTotalList
}
from
'@/api/project/annualPlan'
;
import
{
router
}
from
'@/router'
;
import
{
useDrawer
}
from
"@/components/Drawer"
;
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
import
{
useModal
}
from
"@/components/Modal"
;
const
[
registerModal
,
{
openModal
:
openModal
}]
=
useModal
();
let
detailId
=
inject
(
'detailId'
);
console
.
log
(
'detailId'
,
detailId
);
const
[
registerTable
,
{
reload
}]
=
useTable
({
...
...
@@ -55,6 +62,26 @@
fixed
:
undefined
,
},
});
function
handleExport
()
{
openModal
(
true
,
{
projectId
:
null
,
exportUrl
:
exportUrl
,
title
:
"年度资金计划"
,
exportData
:
getExportData
(),
});
}
//导出相关操作
function
getExportData
()
{
let
exportData
=
[];
annualPlanColumns
.
map
((
i
)
=>
{
exportData
.
push
({
label
:
i
.
title
,
value
:
i
.
dataIndex
,
});
});
return
exportData
;
}
async
function
handleDetail
(
record
:
Recordable
,
disabled
:
number
)
{
const
res
=
await
getAnnualPlanDetail
({
id
:
record
.
id
})
console
.
log
(
'res'
,
res
);
...
...
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