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
6978a0e9
Commit
6978a0e9
authored
Apr 23, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目清单列表字段
parent
e3b47bbf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
12 deletions
+27
-12
task.js
src/apis/task.js
+5
-1
taskForm.vue
src/components/task/taskForm.vue
+2
-2
taskGroupForm.vue
src/components/task_group/taskGroupForm.vue
+1
-1
taskItem.vue
src/components/task_list/taskItem.vue
+19
-8
No files found.
src/apis/task.js
View file @
6978a0e9
...
...
@@ -27,6 +27,10 @@ export default {
url
:
'/vue/task/delete'
},
closeTask
:
{
url
:
'/vue/task/close'
},
// ---项目列表---
getTaskGroupList
:
{
url
:
'/vue/task/list-group'
...
...
@@ -46,6 +50,6 @@ export default {
},
stopTaskGroup
:
{
url
:
'/vue/task/
close
-group'
url
:
'/vue/task/
stop
-group'
}
}
src/components/task/taskForm.vue
View file @
6978a0e9
...
...
@@ -28,8 +28,8 @@
<el-date-picker
size=
"small"
v-model=
"model.target_completed_at"
type=
"date
time
"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
type=
"date"
value-format=
"yyyy-MM-dd"
@
change=
"targetCompletedAtChange"
placeholder=
"选择日期时间"
>
</el-date-picker>
...
...
src/components/task_group/taskGroupForm.vue
View file @
6978a0e9
...
...
@@ -39,7 +39,7 @@
v-model
.
trim=
"model.title"
>
</el-input>
</el-form-item>
<el-form-item
label=
"
提醒人
"
prop=
"remindReceivers"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<el-form-item
label=
"
成员
"
prop=
"remindReceivers"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<multiple-check-group
:check-group-form-item=
"model.remindReceivers"
:check-group-options-list=
"salesOrderRemindReceiversArray"
...
...
src/components/task_list/taskItem.vue
View file @
6978a0e9
...
...
@@ -4,13 +4,13 @@
<el-col
:span=
"8"
:xs=
"24"
class=
"obear-schedule-left"
:style=
"
{background: item.bgcolor}">
<el-row
:gutter=
"10"
>
<el-col
:span=
"24"
>
<el-checkbox
v-model=
"checked"
>
<el-checkbox
v-model=
"checked"
:label=
"item.id"
@
change=
"checkBoxChange(item.id)"
>
<span
class=
"obear-schedule-left__checkbox"
>
普通
</span>
</el-checkbox>
<span>
{{
item
.
title
}}
</span>
</el-col>
<el-col
:span=
"24"
>
<span
class=
"obear-app-frame__white"
>
剩余时间
{{
item
.
remain_time
}}
</span>
<span
class=
"obear-app-frame__white"
>
剩余时间
{{
item
.
remain_time
}}
</span>
</el-col>
</el-row>
</el-col>
...
...
@@ -52,6 +52,10 @@
</
template
>
<
script
>
import
{
requestAPI
,
api
}
from
'@/lib/commonMixin'
export
default
{
name
:
'taskItem'
,
...
...
@@ -61,7 +65,7 @@ export default {
data
()
{
return
{
checked
:
''
checked
:
[]
}
},
...
...
@@ -72,11 +76,18 @@ export default {
},
methods
:
{
},
watch
:
{
checked
(
val
)
{
console
.
log
(
val
)
checkBoxChange
(
id
)
{
let
type
=
''
if
(
this
.
checked
.
indexOf
(
id
)
>
-
1
)
{
type
=
1
}
else
{
type
=
0
}
requestAPI
(
api
.
closeTask
,
{
id
,
type
})
.
then
((
res
)
=>
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$parent
.
_reload
()
})
}
}
}
...
...
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