Commit 0aa88561 by liang ce
parents efc1f325 fbec5915
...@@ -44,9 +44,9 @@ create.Page({ ...@@ -44,9 +44,9 @@ create.Page({
this.store.data.conflictPeople = [] this.store.data.conflictPeople = []
this.store.data.participatorList = [] this.store.data.participatorList = []
this.store.data.locationName = '' this.store.data.locationName = ''
// <<<<<<< HEAD // <<<<<<< HEAD
// this.store.data.participatorUserId = [] // this.store.data.participatorUserId = []
// this.update() // this.update()
this.store.data.participatorUserId = [getApp().globalData.userid] this.store.data.participatorUserId = [getApp().globalData.userid]
this.update() this.update()
...@@ -348,6 +348,9 @@ create.Page({ ...@@ -348,6 +348,9 @@ create.Page({
meetingRoomId: this.store.data.roomId, meetingRoomId: this.store.data.roomId,
remark: this.store.data.remark remark: this.store.data.remark
} }
console.log(111111)
console.log(JSON.stringify(this.store.data.roomId))
console.log(22222)
this.resetStore() this.resetStore()
modifySchedule(data).then(res => { modifySchedule(data).then(res => {
dd.navigateBack({ dd.navigateBack({
......
...@@ -64,6 +64,8 @@ create.Page({ ...@@ -64,6 +64,8 @@ create.Page({
requiredUsers: require, //必选用户(不可取消选中状态) requiredUsers: require, //必选用户(不可取消选中状态)
responseUserOnly: true, //返回人,或者返回人和部门 responseUserOnly: true, //返回人,或者返回人和部门
success: function (res) { success: function (res) {
_that.store.data.participatorList.push({ userId: getApp().globalData.userid, username: getApp().globalData.name, headUrl: getApp().globalData.avatar })
_that.store.data.participatorUserId.push(getApp().globalData.userid)
if (!_that.data.scheduleItem || _that.data.organizer === getApp().globalData.userid) { if (!_that.data.scheduleItem || _that.data.organizer === getApp().globalData.userid) {
_that.store.data.participatorList = [] _that.store.data.participatorList = []
_that.store.data.participatorUserId = [] _that.store.data.participatorUserId = []
...@@ -71,19 +73,17 @@ create.Page({ ...@@ -71,19 +73,17 @@ create.Page({
_that.store.data.participatorList.push({ userId: item.userId, username: item.name, headUrl: item.avatar }) _that.store.data.participatorList.push({ userId: item.userId, username: item.name, headUrl: item.avatar })
_that.store.data.participatorUserId.push(item.userId) _that.store.data.participatorUserId.push(item.userId)
}) })
_that.store.data.participatorList.push({ userId: getApp().globalData.userid, username: getApp().globalData.name, headUrl: getApp().globalData.avatar })
_that.store.data.participatorUserId.push(getApp().globalData.userid)
} else { } else {
_that.store.data.participatorList = [] _that.store.data.participatorList = []
_that.store.data.participatorUserId = [] _that.store.data.participatorUserId = []
res.users.forEach((item, index) => {
_that.store.data.participatorList.push({ userId: item.userId, username: item.name, headUrl: item.avatar })
_that.store.data.participatorUserId.push(item.userId)
})
_that.data.requireUsersInfo.forEach((item, index) => { _that.data.requireUsersInfo.forEach((item, index) => {
_that.store.data.participatorList.push({ userId: item.userId, username: item.username, headUrl: item.headUrl }) _that.store.data.participatorList.push({ userId: item.userId, username: item.username, headUrl: item.headUrl })
_that.store.data.participatorUserId.push(item.userId) _that.store.data.participatorUserId.push(item.userId)
}) })
res.users.forEach((item, index) => {
_that.store.data.participatorList.push({ userId: item.userId, username: item.name, headUrl: item.avatar })
_that.store.data.participatorUserId.push(item.userId)
})
} }
_that.store.data.participatorList = _that.setArrary(_that.store.data.participatorList) _that.store.data.participatorList = _that.setArrary(_that.store.data.participatorList)
_that.store.data.participatorUserId = [...new Set(_that.store.data.participatorUserId)] _that.store.data.participatorUserId = [...new Set(_that.store.data.participatorUserId)]
......
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