Commit 662ca078 by chenwq

获取推送人

1 parent 13917213
......@@ -509,7 +509,7 @@ export default {
this.hideSelect()
this.wechat.automaticName = data.name
this.wechat.staffId = data.staffId
this.getGroupList(this.wechat.staffId)
this.getGroupList(this.wechat.staffId, true)
},
hideSelect() {
// this.isgroup = true
......@@ -550,7 +550,7 @@ export default {
},
//所属企业
handleMerchatChange(val) {
console.log(val)
// console.log(val)
this.getDepartmentTree()
this.merchantList.forEach(item => {
item.merchantId == val ? (this.merchantName = item.merchantName) : ''
......@@ -574,6 +574,16 @@ export default {
})
return
}
this.wechat = {
staffId: '',
automaticName: ''
}
this.groupCofList = {
xiReport: [],
zhanReport: [],
orderReport: [],
saReport: []
}
this.getDepartmentTree()
this.battleVisible = true
},
......@@ -626,7 +636,7 @@ export default {
params.yqMerchantIdList.push(item.yqMerchantId)
})
Object.keys(this.groupCofList).map(item => {
console.log(this.groupCofList[item])
// console.log(this.groupCofList[item])
let type = this.groupToType.find(k => k.attr == item).type
if (this.groupCofList[item].length) {
this.groupCofList[item].forEach(k => {
......@@ -637,13 +647,6 @@ export default {
actionReportType: type
})
})
} else {
params.groupConfigList.push({
groupId: '',
groupName: '',
groupMerchantId: this.config.merchantId,
actionReportType: type
})
}
})
console.log(params, 'params---')
......@@ -668,6 +671,16 @@ export default {
handlebattleOn(data, sign) {
this.setectList = []
this.setectList.push(data)
this.wechat = {
staffId: '',
automaticName: ''
}
this.groupCofList = {
xiReport: [],
zhanReport: [],
orderReport: [],
saReport: []
}
this.battleVisible = true
// 编辑
if (sign) {
......@@ -688,9 +701,19 @@ export default {
}
this.getDepartmentTree()
},
getGroupList(id) {
getGroupList(id, isReset = false) {
this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => {
// if (res.code == 0) this.groupList = res.data
if (res.code == 0) {
this.groupList = res.data
if (isReset) {
this.groupCofList = {
xiReport: [],
zhanReport: [],
orderReport: [],
saReport: []
}
}
}
})
},
handleSetting() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!