Commit abbf15c6 by fengzhaoyu

fix:修改人地点 出现弹窗问题

parent db2d80ca
...@@ -129,7 +129,7 @@ create.Page({ ...@@ -129,7 +129,7 @@ create.Page({
if (this.$store.data.updateInfo.isUpate) { if (this.$store.data.updateInfo.isUpate) {
switch (this.$store.data.updateInfo.updateType) { switch (this.$store.data.updateInfo.updateType) {
case 'operate_user': case 'operate_user':
if (this.$store.data.participatorList !== this.$store.data.originUsers) { if (JSON.stringify(this.$store.data.participatorList) !== JSON.stringify(this.$store.data.originUsers)) {
if (this.data.repeatable === 1) { if (this.data.repeatable === 1) {
this.setData({ this.setData({
'conSelectPopupData.selectType': 'common', 'conSelectPopupData.selectType': 'common',
...@@ -216,10 +216,10 @@ create.Page({ ...@@ -216,10 +216,10 @@ create.Page({
let repeatListMap = new Map() let repeatListMap = new Map()
for (let value of res.data.data.userList) { for (let value of res.data.data.userList) {
if (value.participator) { if (value.participator) {
participatorList.push(value.participator) participatorList.push({ userId: value.participator.userId, username: value.participator.username, headUrl: value.participator.headUrl, platform: value.participator.platform })
participatorUserId.push(value.participator.userId) participatorUserId.push(value.participator.userId)
originUsersId.push(value.participator.userId) originUsersId.push(value.participator.userId)
originUsers.push(value.participator) originUsers.push({ userId: value.participator.userId, username: value.participator.username, headUrl: value.participator.headUrl, platform: value.participator.platform })
} }
} }
for (let item of this.data.comListData.repeatList) { for (let item of this.data.comListData.repeatList) {
...@@ -871,9 +871,17 @@ create.Page({ ...@@ -871,9 +871,17 @@ create.Page({
break break
case 'modify_location': case 'modify_location':
this.reSetLocation() this.reSetLocation()
this.$store.data.updateInfo = {
isUpate: false,
updateType: ''
}
break break
case 'operate_user': case 'operate_user':
this.reSetUsers() this.reSetUsers()
this.$store.data.updateInfo = {
isUpate: false,
updateType: ''
}
break break
case 'repeat': case 'repeat':
this.reSetRepeat() this.reSetRepeat()
...@@ -984,7 +992,7 @@ create.Page({ ...@@ -984,7 +992,7 @@ create.Page({
}) })
break break
case 'operate_user': case 'operate_user':
if (this.$store.data.originUsers != this.$store.data.participatorList) { if (JSON.stringify(this.$store.data.originUsers) != JSON.stringify(this.$store.data.participatorList)) {
let addUserList = this.arrayPoor(this.$store.data.originUsers, this.$store.data.participatorList).addUserList let addUserList = this.arrayPoor(this.$store.data.originUsers, this.$store.data.participatorList).addUserList
let deleteUserList = this.arrayPoor(this.$store.data.originUsers, this.$store.data.participatorList).deleteUserList let deleteUserList = this.arrayPoor(this.$store.data.originUsers, this.$store.data.participatorList).deleteUserList
let dataUser = { let dataUser = {
......
...@@ -174,7 +174,7 @@ create.Page({ ...@@ -174,7 +174,7 @@ create.Page({
}, },
// 编辑时候的保存 // 编辑时候的保存
editSave() { editSave() {
if (this.$store.data.originUsers != this.store.data.contactPeople) { if (JSON.stringify(this.$store.data.originUsers) != JSON.stringify(this.store.data.contactPeople)) {
this.$store.data.updateInfo.isUpate = true this.$store.data.updateInfo.isUpate = true
this.$store.data.updateInfo.updateType = 'operate_user' this.$store.data.updateInfo.updateType = 'operate_user'
this.$store.data.participatorList = this.store.data.contactPeople this.$store.data.participatorList = this.store.data.contactPeople
......
...@@ -8,6 +8,5 @@ export function getFlatTree(treeData) { ...@@ -8,6 +8,5 @@ export function getFlatTree(treeData) {
flatTreeMap.set(value.id, value) flatTreeMap.set(value.id, value)
} }
} }
console.log(flatTreeMap)
return flatTreeMap return flatTreeMap
} }
\ No newline at end of file
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