Commit dfc1d69c by 杨明

fixed

1 parent acdc0d07
...@@ -373,7 +373,7 @@ export default { ...@@ -373,7 +373,7 @@ export default {
this.$set(this.searchFormData[1], 'optionList', this.$common.utils.deepClone(activityNameList)) this.$set(this.searchFormData[1], 'optionList', this.$common.utils.deepClone(activityNameList))
}, },
clearData() { clearData() {
this.setectList = [] // this.setectList = []
this.config.merchantId = this.merchantId this.config.merchantId = this.merchantId
this.config.staffType = '2' this.config.staffType = '2'
this.wechat = { this.wechat = {
...@@ -400,7 +400,7 @@ export default { ...@@ -400,7 +400,7 @@ export default {
this.hideSelect() this.hideSelect()
}, },
setSendName(name, staffId, isClear, i) { 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 (this.menuIndex == 1 || i == 1) {
if (staffId == this.wechat.battleStaffId && staffId) return if (staffId == this.wechat.battleStaffId && staffId) return
Object.assign(this.wechat, { battleStaffName: name, battleStaffId: staffId }) Object.assign(this.wechat, { battleStaffName: name, battleStaffId: staffId })
...@@ -409,8 +409,10 @@ export default { ...@@ -409,8 +409,10 @@ export default {
if (staffId == this.wechat.goodStaffId && staffId) return if (staffId == this.wechat.goodStaffId && staffId) return
Object.assign(this.wechat, { goodStaffName: name, goodStaffId: staffId }) Object.assign(this.wechat, { goodStaffName: name, goodStaffId: staffId })
} }
console.log(this.wechat)
if (isClear && !this.wechat.battleStaffName && !this.wechat.goodStaffName) { if (isClear && !this.wechat.battleStaffName && !this.wechat.goodStaffName) {
this.wechat.roomName = '' this.wechat.roomName = ''
this.groupList = []
return return
} }
if (isClear && (this.wechat.battleStaffName || this.wechat.goodStaffName)) return if (isClear && (this.wechat.battleStaffName || this.wechat.goodStaffName)) return
...@@ -600,7 +602,8 @@ export default { ...@@ -600,7 +602,8 @@ export default {
this.userList = [] this.userList = []
this.wechat = { this.wechat = {
battleStaffName: '', battleStaffName: '',
roomName: '' roomName: '',
goodStaffName: ''
} }
this.setectEditList.push(data) this.setectEditList.push(data)
this.battleVisible = true this.battleVisible = true
...@@ -641,7 +644,7 @@ export default { ...@@ -641,7 +644,7 @@ export default {
getGroupList(id) { getGroupList(id) {
const { battleStaffId, goodStaffId } = this.wechat const { battleStaffId, goodStaffId } = this.wechat
const msgStaffIdList = [battleStaffId, goodStaffId] const msgStaffIdList = [battleStaffId, goodStaffId]
this.$apis.battle.getGroupList({ msgStaffIdList }).then(res => { this.$apis.battle.getGroupList({ msgStaffIdList, unionRoom: true }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.groupList = res.data 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!