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
7bef0e15
Commit
7bef0e15
authored
Apr 04, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
ef29cd01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
index.vue
pages/aps/dispatch/index.vue
+11
-6
No files found.
pages/aps/dispatch/index.vue
View file @
7bef0e15
...
...
@@ -366,17 +366,19 @@ export default {
},
// 打开抽屉
openDrawer
()
{
let
chekids
=
this
.
ids
let
formData
=
this
.
listTask
let
timebegin
=
formData
[
0
].
beginTime
//: "2020-04-06 10:00:00"
let
timend
=
formData
[
0
].
endTime
//: "2020-04-06 10:00:00"
if
(
this
.
button2
==
'设备'
)
{
this
.
entity
.
taskTime
=
[
timebegin
,
timend
]
this
.
facilityModal
=
true
}
else
{
this
.
pentity
.
taskTime
=
[
timebegin
,
timend
]
this
.
manModal
=
true
}
let
chekids
=
this
.
ids
let
formData
=
this
.
listTask
this
.
newList
=
[]
let
timebegin
=
formData
[
0
].
beginTime
//: "2020-04-06 10:00:00"
let
timend
=
formData
[
0
].
endTime
//: "2020-04-06 10:00:00"
this
.
entity
.
taskTime
=
[
timebegin
,
timend
]
chekids
.
forEach
((
v
)
=>
{
var
item
=
formData
.
filter
((
u
)
=>
{
return
u
.
id
==
v
...
...
@@ -392,8 +394,9 @@ export default {
let
item
=
this
.
newList
item
.
map
((
u
)
=>
{
u
.
userIds
=
this
.
entity
.
userIds
u
.
remark
=
this
.
entity
.
remark
})
console
.
log
(
item
)
//
console.log(item)
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
){
Api
.
saveTeamentry
(
item
).
then
((
res
)
=>
{
...
...
@@ -413,7 +416,9 @@ export default {
let
item
=
this
.
newList
item
.
map
((
u
)
=>
{
u
.
userIds
=
this
.
peploeId
u
.
remark
=
this
.
pentity
.
remark
})
// console.log(item)
this
.
$refs
[
'formpepole'
].
validate
((
valid
)
=>
{
if
(
valid
){
Api
.
saveTeamentry
(
item
).
then
((
res
)
=>
{
...
...
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