Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
6aa70c58
Commit
6aa70c58
authored
Oct 29, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recordTimeLinedetail task
parent
f77606a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
43 deletions
+91
-43
recordTimeLine.vue
pages/project/record/recordTimeLine.vue
+2
-3
detail.vue
pages/project/task/detail.vue
+87
-38
index.vue
pages/project/task/index.vue
+2
-2
No files found.
pages/project/record/recordTimeLine.vue
View file @
6aa70c58
...
@@ -17,14 +17,13 @@
...
@@ -17,14 +17,13 @@
<p
class=
"content"
>
<p
class=
"content"
>
操作员:
<User
:value=
"item.creatorUserId"
></User>
操作员:
<User
:value=
"item.creatorUserId"
></User>
</p>
</p>
<p
class=
"content"
>
<p
class=
"content"
v-if=
"item.workHour&&item.workHour>0"
>
工时:
{{
item
.
workHour
}}
工时:
{{
item
.
workHour
}}
</p>
</p>
<p
class=
"content"
>
<p
class=
"content"
>
标题:
{{
item
.
title
}}
标题:
{{
item
.
title
}}
</p>
</p>
<p
class=
"pl10"
v-if=
"item.note"
><a
@
click=
"view(item.id)"
>
查看详细
</a></p>
<p
class=
"pl10"
v-if=
"item.note&&item.note.length>0"
><a
@
click=
"view(item.id)"
>
查看详细
</a></p>
<p
class=
"pl10"
v-if=
"item.attachment"
><a
@
click=
"viewFiles(item.attachment)"
>
查看附件
</a></p>
</TimelineItem>
</TimelineItem>
</Timeline>
</Timeline>
<p
class=
"content"
v-else
>
暂无数据
</p>
<p
class=
"content"
v-else
>
暂无数据
</p>
...
...
pages/project/task/detail.vue
View file @
6aa70c58
<
template
>
<
template
>
<div
class=
"detail"
style=
"width:100%;overflow:auto"
>
<div
style=
"width:100%;overflow:auto"
>
<div
style=
"width:80%; border-right:1px solid #ccc;padding-right:30px;float:left"
>
<div
style=
"width:80%; border-right:1px solid #ccc;padding-right:30px;float:left"
>
<Row
style=
"height:284px"
>
<Form
:model=
"bugForm"
:label-width=
"5"
ref=
"formValidate"
>
<Filed
:span=
"12"
:name=
"l('title')"
>
{{
entity
.
title
}}
</Filed>
<Row>
<Filed
:span=
"12"
:name=
"l('level')"
>
<Col
:span=
"8"
>
<state
code=
"project.task.level"
:value=
"entity.level"
type=
"text"
></state>
<FormItem
label
>
</Filed>
<span
style=
"float:left"
>
{{
l
(
'title'
)
}}
:
</span>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
title
}}
<state
code=
"project.task.status"
:value=
"entity.status"
type=
"text"
></state>
</FormItem>
</Filed>
</Col>
<Filed
:span=
"12"
:name=
"l('userId')"
>
<Col
:span=
"8"
>
<User
:value=
"parseInt(entity.userId)"
></User>
<FormItem
label
>
</Filed>
<span
style=
"float:left"
>
{{
l
(
'level'
)
}}
:
</span>
<Filed
:span=
"12"
name=
"计划起止日期"
>
<state
code=
"project.task.level"
:value=
"entity.level"
type=
"text"
></state>
<TimeDifference
:timeValue=
"timeValuePlan"
:work=
"0"
></TimeDifference>
</FormItem>
</Filed>
</Col>
<Filed
:span=
"12"
name=
"实际起止日期"
>
<Col
:span=
"8"
>
<TimeDifference
:timeValue=
"timeValue"
:work=
"1"
></TimeDifference>
<FormItem
label
>
</Filed>
<span
style=
"float:left"
>
{{
l
(
'status'
)
}}
:
</span>
<state
code=
"project.task.status"
:value=
"entity.status"
type=
"text"
></state>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
{{
l
(
'userId'
)
}}
:
</span>
<User
:value=
"parseInt(entity.userId)"
></User>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
计划起止日期:
</span>
<TimeDifference
:timeValue=
"timeValuePlan"
:work=
"1"
></TimeDifference>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
实际起止日期:
</span>
<TimeDifference
:timeValue=
"timeValue"
:work=
"1"
></TimeDifference>
</FormItem>
</Col>
</Row>
<Row
:gutter=
"24"
index=
""
>
<Col
:span=
"24"
>
<FormItem
label
><span
style=
"float:left"
>
{{
l
(
'note'
)
}}
:
</span>
<div
style=
"height:200px;background:#fff;border:#c5c5c5 solid 1px;margin-left:50px;padding:10px;"
v-html=
"entity.note"
class=
"tex_in10"
></div>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
{{
l
(
'creationTime'
)
}}
:
</span>
{{
entity
.
creationTime
}}
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
{{
l
(
'creatorUserId'
)
}}
:
</span>
<User
:value=
"entity.creatorUserId"
></User>
</FormItem>
</Col>
</Row>
<Row
:gutter=
"24"
>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
操作:
</span>
<Dictionary
code=
"project.task.status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
label
>
<span
style=
"float:left"
>
工时:
</span>
<InputNumber
v-model=
"entity.workHour"
:min=
"0"
></InputNumber>
</FormItem>
</Col>
</Row>
</Form>
<Filed
:span=
"24"
:name=
"l('note')"
>
<div
style=
"height:200px"
v-html=
"entity.note"
class=
"tex_in10"
></div>
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
<User
:value=
"entity.creatorUserId"
></User>
</Filed>
</Row>
</div>
</div>
<div
class=
"rightDiv"
:style=
"
{height:divHeight}">
<div
class=
"rightDiv"
:style=
"
{height:divHeight}">
<component
:is=
"detail"
:eid=
"curId"
/>
<component
:is=
"detail"
:eid=
"curId"
/>
</div>
</div>
<FooterToolbar
class=
"ftball"
>
<FooterToolbar
class=
"ftball"
>
<div
class=
"tip"
><Button
type=
"primary"
@
click=
"updatepart(2)"
>
完成
</Button><Button
type=
"primary"
@
click=
"updatepart(3)"
>
冻结
</Button><Button
@
click=
"handleClose"
>
取消
</Button></div>
<div
class=
"tip"
><Button
type=
"primary"
@
click=
"updatepart(2)"
>
确定
</Button><Button
@
click=
"handleClose"
>
取消
</Button></div>
</FooterToolbar>
</FooterToolbar>
</div>
</div>
...
@@ -94,16 +142,18 @@ export default {
...
@@ -94,16 +142,18 @@ export default {
}).
then
(
r
=>
{
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
timeValue
=
{
this
.
timeValue
=
{
startDate
:
r
.
result
.
startDate
,
startDate
:
r
.
result
.
startDate
,
endDate
:
r
.
result
.
endDate
,
endDate
:
r
.
result
.
endDate
,
},
};
this
.
timeValuePlan
=
{
this
.
timeValuePlan
=
{
startDate
:
r
.
result
.
plansToStartDate
,
startDate
:
r
.
result
.
plansToStartDate
,
endDate
:
r
.
result
.
plansToEndTime
,
endDate
:
r
.
result
.
plansToEndTime
,
},
};
this
.
$emit
(
'on-load'
)
this
.
entity
.
status
=
2
;
this
.
curId
=
v
this
.
entity
.
workHour
=
0
;
this
.
detail
=
()
=>
import
(
'../record/recordTimeLine'
)
this
.
$emit
(
'on-load'
);
this
.
curId
=
v
;
this
.
detail
=
()
=>
import
(
'../record/recordTimeLine'
);
})
})
},
},
...
@@ -151,7 +201,6 @@ export default {
...
@@ -151,7 +201,6 @@ export default {
<
style
scoped
>
<
style
scoped
>
.tex_in10
{
.tex_in10
{
text-indent
:
12px
;
text-align
:
inherit
!important
;
text-align
:
inherit
!important
;
}
}
...
...
pages/project/task/index.vue
View file @
6aa70c58
...
@@ -274,11 +274,11 @@ export default {
...
@@ -274,11 +274,11 @@ export default {
icon
:
"ios-alarm"
,
icon
:
"ios-alarm"
,
type
:
"icon"
,
type
:
"icon"
,
oprate
:
"edit"
,
oprate
:
"edit"
,
title
:
"
完成
"
,
title
:
"
回报工作
"
,
disable
:
params
.
row
.
status
==
1
?
0
:
1
disable
:
params
.
row
.
status
==
1
?
0
:
1
},
},
on
:
{
on
:
{
click
:
()
=>
this
.
updatepart
(
params
.
row
.
id
,
2
)
click
:
()
=>
this
.
viewRecord
(
params
.
row
.
id
,
params
.
row
.
status
)
}
}
}),
}),
h
(
'op'
,
{
h
(
'op'
,
{
...
...
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