Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zentao-view
Project
Project
Details
Activity
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
zentao
zentao-view
Commits
bd976fd9
Commit
bd976fd9
authored
Dec 24, 2021
by
王鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 项目成本表添加项目状态
parent
c5122f12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
ProjectCostReportList.vue
src/views/projectCostReport/ProjectCostReportList.vue
+46
-0
No files found.
src/views/projectCostReport/ProjectCostReportList.vue
View file @
bd976fd9
...
...
@@ -22,6 +22,31 @@
<a-range-picker
@
change=
"onChange"
/>
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
label=
"项目状态"
:labelCol=
"
{ span: 8 }"
:wrapperCol="{ span: 16 }"
>
<a-select
style=
"width: 150px"
@
change=
"onStatusChange"
>
<a-select-option
value=
"unfinished"
>
未完成
</a-select-option>
<a-select-option
value=
"wait"
>
未开始
</a-select-option>
<a-select-option
value=
"doing"
>
进行中
</a-select-option>
<a-select-option
value=
"suspended"
>
已挂起
</a-select-option>
<a-select-option
value=
"closed"
>
已关闭
</a-select-option>
</a-select>
</a-form-item>
</a-col>
</a-row>
</div>
</a-form>
...
...
@@ -46,6 +71,9 @@
</a-button-group>
</div>
</div>
<div
slot=
"projectStatus"
slot-scope=
"text"
>
<a-tag
:color=
"colorMap[text]"
>
{{
text
}}
</a-tag>
</div>
</a-table>
</div>
</a-card>
...
...
@@ -57,6 +85,13 @@ import { formatDate } from "@/util/util";
const
dataSource
=
[];
const
columns
=
[
{
title
:
"名称"
,
dataIndex
:
"name"
,
align
:
"left"
},
{
title
:
"项目状态"
,
width
:
130
,
dataIndex
:
"projectStatus"
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'projectStatus'
},
},
{
title
:
"最早登记时间"
,
width
:
130
,
...
...
@@ -87,6 +122,7 @@ export default {
isFirstLoad
:
true
,
query
:
{
projectName
:
""
,
projectStatus
:
""
,
beginDate
:
null
,
endDate
:
null
,
},
...
...
@@ -95,6 +131,12 @@ export default {
loading
:
false
,
columns
:
columns
,
dataSource
:
dataSource
,
colorMap
:{
"未开始"
:
"cyan"
,
"进行中"
:
"green"
,
"已挂起"
:
"orange"
,
"已关闭"
:
"red"
,
}
};
},
methods
:
{
...
...
@@ -104,6 +146,10 @@ export default {
this
.
query
.
endDate
=
dateString
[
1
];
}
},
onStatusChange
(
value
){
console
.
log
(
value
)
this
.
query
.
projectStatus
=
value
;
},
search
()
{
this
.
loadData
();
},
...
...
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