Commit 8c7e7e9b by fengzhaoyu

fix:"连续修改人,报错问题"

parent 8d379565
...@@ -115,6 +115,8 @@ create.Page({ ...@@ -115,6 +115,8 @@ create.Page({
mrReserveStatus: '', mrReserveStatus: '',
}, },
onShow() { onShow() {
console.log(this.$store.data.originUsers)
console.log(this.$store.data.participatorList)
// this.conflictPeople() // this.conflictPeople()
// this.store.data.fileInfos = [] // this.store.data.fileInfos = []
// this.store.data.description = '' // this.store.data.description = ''
...@@ -947,8 +949,8 @@ create.Page({ ...@@ -947,8 +949,8 @@ create.Page({
}, },
// 重置人物 // 重置人物
reSetUsers() { reSetUsers() {
this.$store.data.participatorList = this.$store.data.originUsers this.$store.data.participatorList = [...this.$store.data.originUsers]
this.$store.data.participatorUserId = this.$store.data.originUsersId this.$store.data.participatorUserId = [...this.$store.data.originUsersId]
this.update() this.update()
}, },
// 重置循环 // 重置循环
...@@ -1054,16 +1056,16 @@ create.Page({ ...@@ -1054,16 +1056,16 @@ create.Page({
modifyContent: 'operate_user' modifyContent: 'operate_user'
} }
this.modifySchedule(dataUser, needNotice).then(res => { this.modifySchedule(dataUser, needNotice).then(res => {
this.$store.data.originUsers = this.$store.data.participatorList this.$store.data.originUsers = [...this.$store.data.participatorList]
this.$store.data.originUsersId = this.$store.data.participatorUserId this.$store.data.originUsersId = [...this.$store.data.participatorUserId]
this.$store.data.updateInfo = { this.$store.data.updateInfo = {
updateType: '', updateType: '',
isUpate: false isUpate: false
} }
this.update() this.update()
}).catch(err => { }).catch(err => {
this.$store.data.participatorList = this.$store.data.originUsers this.$store.data.participatorList = [...this.$store.data.originUsers]
this.$store.data.participatorUserId = this.$store.data.originUsersId this.$store.data.participatorUserId = [...this.$store.data.originUsersId]
this.$store.data.updateInfo = { this.$store.data.updateInfo = {
updateType: '', updateType: '',
isUpate: false isUpate: false
......
...@@ -129,7 +129,7 @@ create.Page({ ...@@ -129,7 +129,7 @@ create.Page({
if (!this.data.scheduleItem || !this.data.toPage) { if (!this.data.scheduleItem || !this.data.toPage) {
this.$store.data.participatorList.push(...userList) this.$store.data.participatorList.push(...userList)
this.$store.data.participatorUserId.push(...userId) this.$store.data.participatorUserId.push(...userId)
this.$store.data.participatorList = this.setArrary(this.$store.data.participatorList) this.$store.data.participatorList = this.setArrary([...this.$store.data.participatorList])
this.$store.data.participatorUserId = [...new Set(this.$store.data.participatorUserId)] this.$store.data.participatorUserId = [...new Set(this.$store.data.participatorUserId)]
if (!this.data.toPage) { if (!this.data.toPage) {
this.$store.data.updateInfo.isUpate = true this.$store.data.updateInfo.isUpate = true
......
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