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
a368382b
Commit
a368382b
authored
Jun 03, 2024
by
mengzixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 报表中心
parent
81659b4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
14 deletions
+78
-14
data.tsx
src/views/statement/data.tsx
+35
-3
index.vue
src/views/statement/index.vue
+43
-11
No files found.
src/views/statement/data.tsx
View file @
a368382b
export
const
tabList
=
[
{
key
:
'1'
,
tab
:
'计划'
,
tab
:
'
投资
计划'
,
},
{
key
:
'2'
,
tab
:
'
完成
'
,
tab
:
'
计划完成情况
'
,
},
{
key
:
'3'
,
tab
:
'已结'
,
tab
:
'年度资金计划'
,
},
{
key
:
'4'
,
tab
:
'月度资金计划'
,
},
{
key
:
'5'
,
tab
:
'已竣工验收项目陈欠资金计划'
,
},
{
key
:
'6'
,
tab
:
'招标计划'
,
},
{
key
:
'7'
,
tab
:
'招标管理'
,
},
{
key
:
'8'
,
tab
:
'结算管理'
,
},
{
key
:
'9'
,
tab
:
'变更签证管理'
,
},
{
key
:
'10'
,
tab
:
'安全隐患管理'
,
},
{
key
:
'11'
,
tab
:
'安全教育培训'
,
},
];
src/views/statement/index.vue
View file @
a368382b
<
template
>
<div>
<!--
<Tabs
v-model:activeKey=
"activeKey"
@
change=
"change"
>
<a-tab-pane
v-for=
"(item, index) in tabList"
:key=
"index"
:tab=
"item.tab"
/>
</Tabs>
-->
<Tabs>
<div>
<Tabs
@
change=
"change"
>
<template
v-for=
"item in tabList"
:key=
"item.key"
>
<TabPane
:tab=
"item.tab"
>
</TabPane>
<TabPane
:tab=
"item.tab"
/>
</
template
>
</Tabs>
</div>
<div>
<BasicForm
submitOnReset
@
register=
"register"
@
submit=
"handleSearchInfoChange"
/>
</div>
<div>
<a-button
type=
"primary"
@
click=
"Import"
>
导入数据
</a-button>
</div>
<div>
<BasicTable
:title=
"'报表中心'"
/>
</div>
</div>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
'vue'
;
import
{
Tabs
}
from
'ant-design-vue'
;
// import Tabs from '../../layouts/default/tabs/index.vue';
import
{
tabList
}
from
'./data'
;
import
{
BasicForm
,
FormSchema
,
useForm
}
from
'@/components/Form'
;
const
activeKey
=
ref
(
'1'
);
const
schemas
:
FormSchema
[]
=
[
{
field
:
'data'
,
label
:
''
,
component
:
'Input'
,
componentProps
:
{
placeholder
:
'选择填报周期'
,
},
colProps
:
{
span
:
4
},
},
{
field
:
'ProjecName'
,
label
:
''
,
component
:
'Input'
,
componentProps
:
{
placeholder
:
'公司名称'
,
},
colProps
:
{
span
:
4
},
},
];
const
change
=
(
key
:
string
)
=>
{
console
.
log
(
'key'
,
key
);
};
const
Import
=
()
=>
{
console
.
log
(
'导入数据'
);
};
function
handleSearchInfoChange
(
info
:
Recordable
)
{
console
.
log
(
info
);
}
const
[
register
]
=
useForm
({
schemas
,
});
</
script
>
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