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
cf3e335f
Commit
cf3e335f
authored
Oct 25, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(年度): 统计
parent
1491eb5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
4 deletions
+54
-4
completedData.vue
src/views/completed/completedData.vue
+9
-2
data.tsx
src/views/completed/data.tsx
+45
-2
No files found.
src/views/completed/completedData.vue
View file @
cf3e335f
...
...
@@ -30,7 +30,7 @@
import
{
BasicForm
,
FormActionType
,
useForm
}
from
'@/components/Form'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
searchFormSchema
}
from
'./data'
;
import
{
searchFormSchema
,
searchSchema
}
from
'./data'
;
import
PageCard
from
'@/components/Page/src/PageCard.vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
getListAll
}
from
'@/api/project/completed'
;
...
...
@@ -47,12 +47,19 @@
const
[
registerForm
,
{
getFieldsValue
}]
=
useForm
({
labelWidth
:
90
,
baseColProps
:
{
span
:
24
},
schemas
:
search
Form
Schema
,
schemas
:
searchSchema
,
showActionButtonGroup
:
false
,
});
const
params
=
ref
({
filingCycle
:
'2024'
,
planType
:
'计划投资项目'
,
company
:
''
});
const
loadingRef
=
ref
(
false
);
const
columns
=
ref
([]);
function
setRowClassName
(
record
)
{
if
(
record
.
projectType
===
'总计'
)
{
return
'rowcolor'
;
}
else
{
return
;
}
}
function
handleSubmit
()
{
let
data
=
getFieldsValue
();
...
...
src/views/completed/data.tsx
View file @
cf3e335f
...
...
@@ -78,8 +78,7 @@ export const columns: (
width
:
180
,
},
];
export
const
searchFormSchema
:
FormSchema
[]
=
[
export
const
searchSchema
:
FormSchema
[]
=
[
{
field
:
'filingCycle'
,
label
:
''
,
...
...
@@ -123,6 +122,50 @@ export const searchFormSchema: FormSchema[] = [
colProps
:
{
span
:
4
},
},
];
export
const
searchFormSchema
:
FormSchema
[]
=
[
{
field
:
'filingCycle'
,
label
:
''
,
defaultValue
:
''
,
component
:
'DatePicker'
,
componentProps
:
{
placeholder
:
'选择填报周期'
,
picker
:
'year'
,
valueFormat
:
'YYYY'
,
format
:
'YYYY'
,
style
:
{
width
:
'100%'
},
},
colProps
:
{
span
:
4
},
},
{
field
:
'company'
,
label
:
''
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'公司A'
,
value
:
'0'
},
{
label
:
'公司B'
,
value
:
'1'
},
{
label
:
'公司C'
,
value
:
'2'
},
],
placeholder
:
'公司名称'
,
},
colProps
:
{
span
:
4
},
},
{
field
:
'planType'
,
label
:
''
,
defaultValue
:
'计划投资项目'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'计划投资项目'
,
value
:
'计划投资项目'
},
{
label
:
'已竣工验收项目'
,
value
:
'已竣工验收项目'
},
],
placeholder
:
'项目类型'
,
},
colProps
:
{
span
:
4
},
},
];
export
const
formSchema
:
FormSchema
[]
=
[
// {
...
...
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