Commit 7bef0e15 authored by kangzhenfei's avatar kangzhenfei

ok

parent ef29cd01
...@@ -366,17 +366,19 @@ export default { ...@@ -366,17 +366,19 @@ export default {
}, },
// 打开抽屉 // 打开抽屉
openDrawer() { 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 == '设备') { if (this.button2 == '设备') {
this.entity.taskTime = [timebegin,timend]
this.facilityModal = true this.facilityModal = true
} else { } else {
this.pentity.taskTime = [timebegin,timend]
this.manModal = true this.manModal = true
} }
let chekids = this.ids
let formData = this.listTask
this.newList = [] 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) => { chekids.forEach((v) => {
var item = formData.filter((u) => { var item = formData.filter((u) => {
return u.id == v return u.id == v
...@@ -392,8 +394,9 @@ export default { ...@@ -392,8 +394,9 @@ export default {
let item = this.newList let item = this.newList
item.map((u) => { item.map((u) => {
u.userIds = this.entity.userIds u.userIds = this.entity.userIds
u.remark = this.entity.remark
}) })
console.log(item) // console.log(item)
this.$refs['formValidate'].validate((valid) => { this.$refs['formValidate'].validate((valid) => {
if(valid){ if(valid){
Api.saveTeamentry(item).then((res) => { Api.saveTeamentry(item).then((res) => {
...@@ -413,7 +416,9 @@ export default { ...@@ -413,7 +416,9 @@ export default {
let item = this.newList let item = this.newList
item.map((u) => { item.map((u) => {
u.userIds = this.peploeId u.userIds = this.peploeId
u.remark = this.pentity.remark
}) })
// console.log(item)
this.$refs['formpepole'].validate((valid) => { this.$refs['formpepole'].validate((valid) => {
if(valid){ if(valid){
Api.saveTeamentry(item).then((res) => { Api.saveTeamentry(item).then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment