Commit 7bef0e15 authored by kangzhenfei's avatar kangzhenfei

ok

parent ef29cd01
......@@ -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) => {
......
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