Commit 9be0ee1e by 王志慧

commit

1 parent 5cda1645
<template>
<div>222222</div>
</template>
<script>
export default {
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
......@@ -731,17 +731,6 @@ export default {
}
},
{
label: '企微',
prop: 'enterpriseMerchantName',
width: 200
},
{
label: '推送人',
prop: 'staffName',
line: 1,
width: 200
},
{
label: '内容',
prop: '',
formatter: cellValue => {
......@@ -1108,71 +1097,74 @@ export default {
group.splice(i, 1)
},
handlebattleOn(data, sign) {
this.setectList = []
this.setectList.push(data)
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
this.$router.push({
path:'/balletin/addConfig'
})
} 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()
// this.setectList = []
// this.setectList.push(data)
// 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.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) {
this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => {
......
......@@ -17,7 +17,7 @@ export default {
data() {
return {
activeName: 1,
currentComponent: 'vehicleDamageOrder',
currentComponent: 'saasOrder',
tabPaneList: [
{
label: '1.1',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!