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
1fd296a3
Commit
1fd296a3
authored
Oct 29, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
d4947821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
edit.vue
pages/project/task/edit.vue
+14
-3
No files found.
pages/project/task/edit.vue
View file @
1fd296a3
...
@@ -12,11 +12,14 @@
...
@@ -12,11 +12,14 @@
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<UserGroup
ref=
"userSelected"
v-model=
"entity.userId"
:projectId=
"eid"
/>
<UserGroup
ref=
"userSelected"
v-model=
"entity.userId"
:projectId=
"entity.projectId"
/>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"计划日期"
prop=
"date"
>
<DatePicker
type=
"datetimerange"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间范围"
v-model=
"planDate"
@
on-change=
"changeFormat"
style=
"width: 300px"
></DatePicker>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<i-quill
v-model=
"entity.note"
:height=
"300"
v-paste=
"handleImg"
/>
<i-quill
v-model=
"entity.note"
:height=
"300"
v-paste=
"handleImg"
/>
...
@@ -45,6 +48,7 @@ export default {
...
@@ -45,6 +48,7 @@ export default {
return
{
return
{
disabled
:
false
,
disabled
:
false
,
entity
:
{},
entity
:
{},
planDate
:
[],
rules
:
{
rules
:
{
name
:
[{
name
:
[{
required
:
true
,
required
:
true
,
...
@@ -75,6 +79,9 @@ export default {
...
@@ -75,6 +79,9 @@ export default {
}).
then
(
r
=>
{
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
entity
.
userId
=
parseInt
(
r
.
result
.
userId
)
this
.
entity
.
userId
=
parseInt
(
r
.
result
.
userId
)
if
(
r
.
result
.
plansToStartDate
&&
r
.
result
.
plansToStartDate
!=
''
&&
r
.
result
.
plansToEndTime
&&
r
.
result
.
plansToEndTime
!=
''
)
{
this
.
planDate
=
[
r
.
result
.
plansToStartDate
,
r
.
result
.
plansToEndTime
]
}
})
})
},
},
handleSubmit
()
{
handleSubmit
()
{
...
@@ -121,6 +128,10 @@ export default {
...
@@ -121,6 +128,10 @@ export default {
// new R
// new R
}
}
},
},
changeFormat
(
val
)
{
this
.
entity
.
plansToStartDate
=
val
[
0
];
this
.
entity
.
plansToEndTime
=
val
[
1
];
},
l
(
key
)
{
l
(
key
)
{
key
=
"project_task"
+
"."
+
key
;
key
=
"project_task"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
)
...
...
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