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
d7038a49
Commit
d7038a49
authored
Nov 16, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量设置功能完成
parent
0e19d11e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
api.js
pages/project/plan/api.js
+3
-0
index.vue
pages/project/plan/index.vue
+29
-2
No files found.
pages/project/plan/api.js
View file @
d7038a49
...
@@ -16,6 +16,9 @@ export default {
...
@@ -16,6 +16,9 @@ export default {
update
(
params
)
{
update
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projectplan/update`
,
params
);
return
Api
.
post
(
`
${
material
}
/projectplan/update`
,
params
);
},
},
batchUpdate
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projectplan/updatepartbatch`
,
params
);
},
sendtask
(
params
)
{
sendtask
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projectplan/sendtask`
,
params
);
return
Api
.
post
(
`
${
material
}
/projectplan/sendtask`
,
params
);
},
},
...
...
pages/project/plan/index.vue
View file @
d7038a49
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<
template
slot=
"batch"
>
<
template
slot=
"batch"
>
<span
v-width=
"300"
style=
"color:#333"
>
<span
v-width=
"300"
style=
"color:#333"
>
<DateRange
v-model=
"dateEntity"
edit
v-width=
"260"
></DateRange>
<DateRange
v-model=
"dateEntity"
edit
v-width=
"260"
></DateRange>
<Button
type=
"primary"
>
设置2计划
日期
</Button>
<Button
type=
"primary"
@
click=
"setDate()"
>
设置
日期
</Button>
</span>
</span>
<span>
<span>
<UserGroup
<UserGroup
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
:projectId=
"eid"
:projectId=
"eid"
v-width=
"300"
v-width=
"300"
></UserGroup>
></UserGroup>
<Button
type=
"primary"
>
设置执行人
</Button>
<Button
type=
"primary"
@
click=
"setExecutor()"
>
设置执行人
</Button>
</span>
</span>
<Button
type=
"primary"
@
click=
"bacthRemove()"
>
批量删除
</Button>
<Button
type=
"primary"
@
click=
"bacthRemove()"
>
批量删除
</Button>
</
template
>
</
template
>
...
@@ -361,6 +361,33 @@ export default {
...
@@ -361,6 +361,33 @@ export default {
this
.
list
=
data
;
this
.
list
=
data
;
});
});
},
},
setDate
(){
var
items
=
this
.
batchItems
.
map
(
u
=>
{
return
{
id
:
u
.
id
,
startDate
:
this
.
dateEntity
.
startDate
,
endDate
:
this
.
dateEntity
.
endDate
,
}
})
Api
.
batchUpdate
(
items
).
then
(
r
=>
{
if
(
r
.
success
){
this
.
search
();
}
});
},
setExecutor
(){
var
items
=
this
.
batchItems
.
map
(
u
=>
{
return
{
id
:
u
.
id
,
executor
:
this
.
executors
}
})
Api
.
batchUpdate
(
items
).
then
(
r
=>
{
if
(
r
.
success
){
this
.
search
();
}
});
},
add
(
row
)
{
add
(
row
)
{
if
(
row
)
{
if
(
row
)
{
this
.
curId
=
row
.
id
;
this
.
curId
=
row
.
id
;
...
...
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