Commit ff40b2ea by 李伟康

Merge branch 'v3.6.0' of http://192.168.3.233:8090/saas/scrm-micro-battles into v3.6.0

2 parents d0e9a730 b567a47e
......@@ -373,7 +373,7 @@ export default {
this.$set(this.searchFormData[1], 'optionList', this.$common.utils.deepClone(activityNameList))
},
clearData() {
this.setectList = []
// this.setectList = []
this.config.merchantId = this.merchantId
this.config.staffType = '2'
this.wechat = {
......@@ -400,7 +400,7 @@ export default {
this.hideSelect()
},
setSendName(name, staffId, isClear, i) {
console.log(staffId, this.wechat.battleStaffId)
console.log(staffId, this.wechat.battleStaffId, i)
if (this.menuIndex == 1 || i == 1) {
if (staffId == this.wechat.battleStaffId && staffId) return
Object.assign(this.wechat, { battleStaffName: name, battleStaffId: staffId })
......@@ -409,8 +409,10 @@ export default {
if (staffId == this.wechat.goodStaffId && staffId) return
Object.assign(this.wechat, { goodStaffName: name, goodStaffId: staffId })
}
console.log(this.wechat)
if (isClear && !this.wechat.battleStaffName && !this.wechat.goodStaffName) {
this.wechat.roomName = ''
this.groupList = []
return
}
if (isClear && (this.wechat.battleStaffName || this.wechat.goodStaffName)) return
......@@ -505,6 +507,7 @@ export default {
})
return
}
this.getDepartmentTree()
this.userList = []
// this.editStatus = false
this.battleVisible = true
......@@ -600,7 +603,8 @@ export default {
this.userList = []
this.wechat = {
battleStaffName: '',
roomName: ''
roomName: '',
goodStaffName: ''
}
this.setectEditList.push(data)
this.battleVisible = true
......@@ -641,7 +645,7 @@ export default {
getGroupList(id) {
const { battleStaffId, goodStaffId } = this.wechat
const msgStaffIdList = [battleStaffId, goodStaffId]
this.$apis.battle.getGroupList({ msgStaffIdList }).then(res => {
this.$apis.battle.getGroupList({ msgStaffIdList, unionRoom: true }).then(res => {
if (res.code == 0) {
this.groupList = res.data
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!