Commit 3b4e3e04 by 杨明

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

2 parents f83e75a2 9be0ee1e
<template>
<div>222222</div>
</template>
<script>
export default {
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file \ No newline at end of file
...@@ -731,17 +731,6 @@ export default { ...@@ -731,17 +731,6 @@ export default {
} }
}, },
{ {
label: '企微',
prop: 'enterpriseMerchantName',
width: 200
},
{
label: '推送人',
prop: 'staffName',
line: 1,
width: 200
},
{
label: '内容', label: '内容',
prop: '', prop: '',
formatter: cellValue => { formatter: cellValue => {
...@@ -1108,71 +1097,74 @@ export default { ...@@ -1108,71 +1097,74 @@ export default {
group.splice(i, 1) group.splice(i, 1)
}, },
handlebattleOn(data, sign) { handlebattleOn(data, sign) {
this.setectList = [] this.$router.push({
this.setectList.push(data) path:'/balletin/addConfig'
this.wechat = {
staffId: '',
automaticName: ''
}
this.groupCofList = {
xiReport: [],
zhanReport: [],
orderReport: [],
saReport: [],
saPerReport: [],
scheduleReport: []
}
this.groupCofListInput = {
xiReportValue: [],
zhanReportValue: [],
orderReportValue: [],
saReportValue: [],
saPerReportValue: [],
scheduleReportValue: []
}
this.battleVisible = true
// 编辑
if (sign) {
this.wechat.staffId = data.staffId
this.wechat.automaticName = data.staffName
// this.wechat.groupId = data.groupId
// this.wechat.roomName = data.groupName
this.config.merchantId = data.enterpriseMerchantId
this.config.merchantName = data.enterpriseMerchantName
data.groupConfigList.forEach(item => {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType).attr
if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0]
} else if (item.groupName) {
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
}) })
} else { // this.setectList = []
this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) // this.setectList.push(data)
} // this.wechat = {
} // staffId: '',
}) // automaticName: ''
for (let k in this.groupCofListInput) { // }
if (this.groupCofListInput.hasOwnProperty(k) && !this.groupCofListInput[k][0]) { // this.groupCofList = {
this.groupCofListInput[k] = [{ name: '' }] // xiReport: [],
} // zhanReport: [],
} // orderReport: [],
console.log(this.groupCofListInput) // saReport: [],
this.getGroupList(this.wechat.staffId) // saPerReport: [],
} else { // scheduleReport: []
this.groupCofListInput = { // }
xiReportValue: [{ name: '' }], // this.groupCofListInput = {
zhanReportValue: [{ name: '' }], // xiReportValue: [],
orderReportValue: [{ name: '' }], // zhanReportValue: [],
saReportValue: [{ name: '' }], // orderReportValue: [],
saPerReportValue: [{ name: '' }], // saReportValue: [],
scheduleReportValue: [{ name: '' }] // saPerReportValue: [],
} // scheduleReportValue: []
} // }
this.getDepartmentTree() // this.battleVisible = true
// // 编辑
// if (sign) {
// this.wechat.staffId = data.staffId
// this.wechat.automaticName = data.staffName
// // this.wechat.groupId = data.groupId
// // this.wechat.roomName = data.groupName
// this.config.merchantId = data.enterpriseMerchantId
// this.config.merchantName = data.enterpriseMerchantName
// data.groupConfigList.forEach(item => {
// let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType).attr
// if (item.groupId) {
// if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
// this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
// this.idBefEncryption = item.groupId.split('_R:')[0]
// } else if (item.groupName) {
// this.groupCofList[groupHideAttr].push({
// groupId: item.groupId,
// roomName: item.groupName
// })
// } else {
// this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
// }
// }
// })
// for (let k in this.groupCofListInput) {
// if (this.groupCofListInput.hasOwnProperty(k) && !this.groupCofListInput[k][0]) {
// this.groupCofListInput[k] = [{ name: '' }]
// }
// }
// console.log(this.groupCofListInput)
// this.getGroupList(this.wechat.staffId)
// } else {
// this.groupCofListInput = {
// xiReportValue: [{ name: '' }],
// zhanReportValue: [{ name: '' }],
// orderReportValue: [{ name: '' }],
// saReportValue: [{ name: '' }],
// saPerReportValue: [{ name: '' }],
// scheduleReportValue: [{ name: '' }]
// }
// }
// this.getDepartmentTree()
}, },
getGroupList(id, isReset = false) { getGroupList(id, isReset = false) {
this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => { this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => {
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
data() { data() {
return { return {
activeName: 1, activeName: 1,
currentComponent: 'vehicleDamageOrder', currentComponent: 'saasOrder',
tabPaneList: [ tabPaneList: [
{ {
label: '1.1', label: '1.1',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!