Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
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
daywrite
bms-vue-obear
Commits
e3b47bbf
Commit
e3b47bbf
authored
Apr 23, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'f_task' of 140.143.226.1:daywrite/bms-vue-obear into f_task
parents
9c5d4ced
2d33a900
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
16 deletions
+82
-16
task.js
src/apis/task.js
+12
-0
task-app.scss
src/assets/css/task-app.scss
+10
-0
groupHome.vue
src/components/task_group_list/groupHome.vue
+53
-9
groupItem.vue
src/components/task_group_list/groupItem.vue
+7
-7
No files found.
src/apis/task.js
View file @
e3b47bbf
...
@@ -35,5 +35,17 @@ export default {
...
@@ -35,5 +35,17 @@ export default {
getTaskGroupNew
:
{
getTaskGroupNew
:
{
// url: '/vue/task/get-new-group'
// url: '/vue/task/get-new-group'
url
:
'/vue/sales-order/get-new'
url
:
'/vue/sales-order/get-new'
},
deleteTaskGroup
:
{
url
:
'/vue/task/delete-group'
},
closeTaskGroup
:
{
url
:
'/vue/task/close-group'
},
stopTaskGroup
:
{
url
:
'/vue/task/close-group'
}
}
}
}
src/assets/css/task-app.scss
View file @
e3b47bbf
.task-app
{
.task-app
{
.el-button--cancel
{
color
:white
;
background-color
:
#EB7567
;
border-color
:
#e86150
;
}
.el-button--confirm
{
color
:white
;
background-color
:
#649FD7
;
border-color
:
#5092d2
;
}
.obear-app-frame__white
{
.obear-app-frame__white
{
border
:
1px
solid
white
;
border
:
1px
solid
white
;
border-radius
:
2px
;
border-radius
:
2px
;
...
...
src/components/task_group_list/groupHome.vue
View file @
e3b47bbf
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
<el-col
:span=
"4"
slot=
"pre"
>
<el-col
:span=
"4"
slot=
"pre"
>
<el-form-item>
<el-form-item>
<singleRadioTool
<singleRadioTool
:form-item=
"
groupType
"
:form-item=
"
form['TaskGroupSearch[filter]']
"
:options-list=
"groupArray"
:options-list=
"groupArray"
@
update:item=
"val =>
{
reim
TypeChange(val) }">
@
update:item=
"val =>
{
group
TypeChange(val) }">
</singleRadioTool>
</singleRadioTool>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -37,6 +37,8 @@
...
@@ -37,6 +37,8 @@
:key=
"item.id"
>
:key=
"item.id"
>
<span
slot=
"opearate"
class=
"obear-opearate-button"
>
<span
slot=
"opearate"
class=
"obear-opearate-button"
>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"leaveMessageSch(item)"
><span
class=
"badge"
v-if=
"item.commentCount.comment"
>
{{
item
.
commentCount
.
comment
?
item
.
commentCount
.
comment
:
''
}}
</span><i
class=
"fa fa-commenting"
></i>
留言
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"leaveMessageSch(item)"
><span
class=
"badge"
v-if=
"item.commentCount.comment"
>
{{
item
.
commentCount
.
comment
?
item
.
commentCount
.
comment
:
''
}}
</span><i
class=
"fa fa-commenting"
></i>
留言
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"checkSch(item)"
:disabled=
"!item.can_update"
><i
class=
"fa fa-fw fa-check"
></i>
完成
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"banSch(item)"
:disabled=
"!item.can_update"
><i
class=
"fa fa-fw fa-ban"
></i>
中止
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"editSch(item)"
:disabled=
"!item.can_update"
><i
class=
"fa fa-edit animated"
></i>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"editSch(item)"
:disabled=
"!item.can_update"
><i
class=
"fa fa-edit animated"
></i>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"deleteSch(item.id)"
:disabled=
"!item.can_delete"
><i
class=
"fa fa-trash-o animated-hove"
></i>
删除
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"deleteSch(item.id)"
:disabled=
"!item.can_delete"
><i
class=
"fa fa-trash-o animated-hove"
></i>
删除
</el-button>
</span>
</span>
...
@@ -125,15 +127,15 @@ export default {
...
@@ -125,15 +127,15 @@ export default {
}
}
],
],
filter
:
[],
filter
:
[],
groupType
:
'all'
,
//
groupType: 'all',
groupArray
:
[{
groupArray
:
[{
'key'
:
'
all
'
,
'key'
:
''
,
'name'
:
'全部'
'name'
:
'全部'
},
{
},
{
'key'
:
'
1
'
,
'key'
:
'
my
'
,
'name'
:
'我参与的'
'name'
:
'我参与的'
},
{
},
{
'key'
:
'
2
'
,
'key'
:
'
head
'
,
'name'
:
'我领导的'
'name'
:
'我领导的'
}],
}],
taskType
:
'group_list'
,
taskType
:
'group_list'
,
...
@@ -145,7 +147,8 @@ export default {
...
@@ -145,7 +147,8 @@ export default {
'name'
:
'项目列表'
'name'
:
'项目列表'
}],
}],
form
:
{
form
:
{
'ClientSearch[keyword]'
:
''
'ClientSearch[keyword]'
:
''
,
'TaskGroupSearch[filter]'
:
''
},
},
pagenation
:
{
pagenation
:
{
thispage
:
1
,
thispage
:
1
,
...
@@ -186,6 +189,15 @@ export default {
...
@@ -186,6 +189,15 @@ export default {
this
.
getList
(
params
)
this
.
getList
(
params
)
},
},
groupTypeChange
(
val
)
{
this
.
form
[
'TaskGroupSearch[filter]'
]
=
val
let
params
=
this
.
setParams
({
...
this
.
form
,
page
:
this
.
pagenation
.
thispage
},
{
'TaskGroupSearch[filter]'
:
val
})
this
.
getList
(
params
)
},
reimTypeChange
(
val
)
{
reimTypeChange
(
val
)
{
if
(
val
===
'list'
)
{
if
(
val
===
'list'
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -258,13 +270,45 @@ export default {
...
@@ -258,13 +270,45 @@ export default {
this
.
$refs
.
taskGroupModal
.
show
(
item
)
this
.
$refs
.
taskGroupModal
.
show
(
item
)
},
},
checkSch
(
id
)
{
this
.
$confirm
(
'完成?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
requestAPI
(
api
.
closeTaskGroup
,
{
id
})
.
then
((
res
)
=>
{
this
.
_reload
()
this
.
$message
.
success
(
'删除成功'
)
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
'取消删除'
)
})
},
banSch
(
id
)
{
this
.
$confirm
(
'中止?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
requestAPI
(
api
.
stopTaskGroup
,
{
id
})
.
then
((
res
)
=>
{
this
.
_reload
()
this
.
$message
.
success
(
'删除成功'
)
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
'取消删除'
)
})
},
deleteSch
(
id
)
{
deleteSch
(
id
)
{
this
.
$confirm
(
'删除
该待办事项
?'
,
'提示'
,
{
this
.
$confirm
(
'删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
requestAPI
(
api
.
delete
Reim
,
{
id
})
requestAPI
(
api
.
delete
TaskGroup
,
{
id
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
_reload
()
this
.
_reload
()
this
.
$message
.
success
(
'删除成功'
)
this
.
$message
.
success
(
'删除成功'
)
...
...
src/components/task_group_list/groupItem.vue
View file @
e3b47bbf
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<el-col
:span=
"6"
:xs=
"24"
>
<el-col
:span=
"6"
:xs=
"24"
>
<span>
负责人:
</span>
<span>
负责人:
</span>
<span>
<span>
<
!--
<img
class=
"user-avatar rounded-circle"
:src=
"item.headOf.avatar.name"
>
{{
item
.
headOf
.
name
}}
-->
<
img
class=
"user-avatar rounded-circle"
:src=
"item.headOf.avatar.name"
>
{{
item
.
headOf
.
name
}}
</span>
</span>
</el-col>
</el-col>
<el-col
:span=
"6"
:xs=
"24"
>
<el-col
:span=
"6"
:xs=
"24"
>
...
@@ -42,17 +42,17 @@
...
@@ -42,17 +42,17 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"
6
"
:xs=
"24"
>
<el-col
:span=
"
12
"
:xs=
"24"
>
<span>
成员:
</span>
<span>
成员:
</span>
<span
v-for=
"sItem in item.taskGroupUserRelationships"
>
<span
v-for=
"sItem in item.taskGroupUserRelationships"
>
<
!--
<img
class=
"user-avatar rounded-circle"
:src=
"item.user.avatar.name"
>
{{
item
.
user
.
name
}}
-->
<
img
class=
"user-avatar rounded-circle"
:src=
"sItem.user.avatar.name"
>
{{
sItem
.
user
.
name
}}
</span>
</span>
</el-col>
</el-col>
<el-col
:span=
"6"
:xs=
"24"
>
<!--
<el-col
:span=
"6"
:xs=
"24"
>
</el-col>
-->
<el-col
:span=
"2"
:xs=
"24"
>
</el-col>
</el-col>
<el-col
:span=
"6"
:xs=
"24"
>
<el-col
:span=
"10"
:xs=
"24"
>
</el-col>
<el-col
:span=
"6"
:xs=
"24"
>
<slot
name=
"opearate"
>
<slot
name=
"opearate"
>
</slot>
</slot>
</el-col>
</el-col>
...
...
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