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
12a18031
Commit
12a18031
authored
Oct 23, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updatestatus
parent
2d3d17be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
92 deletions
+35
-92
add.vue
pages/project/record/add.vue
+2
-48
index1.vue
pages/project/record/index1.vue
+5
-19
add.vue
pages/project/task/add.vue
+1
-5
api.js
pages/project/task/api.js
+5
-1
index.vue
pages/project/task/index.vue
+22
-19
No files found.
pages/project/record/add.vue
View file @
12a18031
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.creationTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<InputNumber
v-model=
"entity.isDeleted"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('projectId')"
prop=
"projectId"
>
<Input
v-model=
"entity.projectId"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('planId')"
prop=
"planId"
>
<Input
v-model=
"entity.planId"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('workHour')"
prop=
"workHour"
>
<InputNumber
v-model=
"entity.workHour"
></InputNumber>
...
...
@@ -66,11 +24,6 @@
<FormItem
:label=
"l('attachment')"
prop=
"attachment"
>
<Input
v-model=
"entity.attachment"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('taskId')"
prop=
"taskId"
>
<Input
v-model=
"entity.taskId"
></Input>
</FormItem>
</Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
...
@@ -126,6 +79,7 @@ export default {
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
taskId
=
this
.
eid
Api
.
create
(
this
.
entity
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
...
...
pages/project/record/index1.vue
View file @
12a18031
...
...
@@ -80,22 +80,6 @@
<User
:value=
"item.creatorUserId"
></User>
关闭了 任务 1089 测试任务
</p>
</TimelineItem>
<TimelineItem>
<p
class=
"content"
>
12:13
</p>
<p
class=
"content"
>
管理员 继续了 任务 1089 测试任务
</p>
</TimelineItem>
<TimelineItem>
<p
class=
"content"
>
11:54
</p>
<p
class=
"content"
>
管理员 暂停了 任务 1089 测试任务
</p>
</TimelineItem>
<TimelineItem>
<p
class=
"content"
>
09:20
</p>
<p
class=
"content"
>
管理员 开启了 任务 1089 测试任务
</p>
</TimelineItem>
<TimelineItem>
<p
class=
"content"
>
09:08
</p>
<p
class=
"content"
>
管理员 创建了 任务 1089 测试任务
</p>
</TimelineItem>
</Timeline>
</div>
</Col>
...
...
@@ -297,6 +281,8 @@ export default {
fieldValue
:
v
,
conditionalType
:
"Equal"
,
}],
sortBy
:
"creationTime"
,
isDesc
:
false
,
}
Api
.
list
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
...
...
@@ -306,15 +292,15 @@ export default {
})
},
ok
()
{
this
.
$refs
.
grid
.
load
(
)
this
.
load
(
this
.
eid
)
this
.
modal
=
false
this
.
curId
=
0
;
this
.
curId
=
''
;
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
add
()
{
this
.
curId
=
0
;
this
.
curId
=
this
.
eid
;
this
.
title
=
"新增记录"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
...
...
pages/project/task/add.vue
View file @
12a18031
...
...
@@ -12,11 +12,6 @@
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"project.task.status"
v-model=
"entity.status"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('projectTitle')"
prop=
"projectTitle"
>
<Input
v-model=
"entity.projectTitle"
>
</Input>
</FormItem>
</Col>
...
...
@@ -146,6 +141,7 @@ export default {
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
status
=
0
Api
.
create
(
this
.
entity
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
...
...
pages/project/task/api.js
View file @
12a18031
...
...
@@ -19,5 +19,9 @@ export default {
},
deletes
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projecttask/batchdelete`
,
params
);
}
},
//改变状态
updatestatus
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projecttask/updatestatus`
,
params
);
}
}
\ No newline at end of file
pages/project/task/index.vue
View file @
12a18031
...
...
@@ -239,47 +239,37 @@ export default {
return
h
(
'div'
,
{
class
:
"action"
},
[
// h('op', {
// attrs: {
// oprate: 'detail'
// },
// on: {
// click: () => this.view(params.row.id)
// }
// }, '查看'),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
h
(
'op'
,
{
attrs
:
{
icon
:
"ios-play"
,
type
:
"icon"
,
title
:
"继续"
,
color
:
"#19be6b"
,
title
:
params
.
row
.
status
==
0
?
"开始"
:
params
.
row
.
status
==
2
?
"继续"
:
'无法操作'
,
color
:
params
.
row
.
status
==
0
||
params
.
row
.
status
==
2
?
"#19be6b"
:
'#ccc'
,
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
click
:
()
=>
params
.
row
.
status
==
0
||
params
.
row
.
status
==
2
?
this
.
updatestatus
(
params
.
row
.
id
,
1
)
:
null
}
}),
h
(
'op'
,
{
attrs
:
{
icon
:
"ios-pause"
,
type
:
"icon"
,
title
:
"暂停
"
,
color
:
"#19be6b
"
,
title
:
params
.
row
.
status
==
1
?
"暂停"
:
"无法操作
"
,
color
:
params
.
row
.
status
==
1
?
"#19be6b"
:
"#ccc
"
,
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
click
:
()
=>
params
.
row
.
status
==
1
?
this
.
updatestatus
(
params
.
row
.
id
,
2
)
:
null
}
}),
h
(
'op'
,
{
attrs
:
{
icon
:
"ios-close"
,
type
:
"icon"
,
title
:
"完成
"
,
color
:
"#19be6b
"
,
title
:
params
.
row
.
status
!=
0
?
"完成"
:
"无法操作
"
,
color
:
params
.
row
.
status
!=
0
?
"#19be6b"
:
"#ccc
"
,
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
click
:
()
=>
params
.
row
.
status
!=
0
?
this
.
updatestatus
(
params
.
row
.
id
,
3
)
:
null
}
}),
h
(
'op'
,
{
...
...
@@ -396,6 +386,19 @@ export default {
};
this
.
$refs
.
grid
.
reload
(
where
);
},
updatestatus
(
valId
,
valStatus
)
{
let
params
=
{
id
:
valId
,
status
:
valStatus
,
detail
:
''
}
Api
.
updatestatus
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
'修改成功'
)
}
})
},
onSelect
(
val
)
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
...
...
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