Commit 2e2bc3d6 by wangzhihui

修复群名_R:问题

1 parent c1916355
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
</div> </div>
<transition name="el-zoom-in-top" v-if="!isAutomatic"> <transition name="el-zoom-in-top" v-if="!isAutomatic">
<gl-select-menu :domEl="automaticEl" @changeStatu="hideSelect" style="width:432px"> <gl-select-menu :domEl="automaticEl" @changeStatu="hideSelect" style="width: 432px">
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" v-model="filterText"></el-input> <el-input placeholder="请输入搜索关键词" v-model="filterText"></el-input>
</el-form-item> </el-form-item>
...@@ -249,9 +249,13 @@ export default { ...@@ -249,9 +249,13 @@ export default {
let groupHideAttr = 'clewWordReport' let groupHideAttr = 'clewWordReport'
if (!groupHideAttr) return if (!groupHideAttr) return
if (item.groupId) { if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) { const separatorIndex = item.groupId.indexOf('_R:')
if (separatorIndex !== -1) {
const cloudId = item.groupId.substring(0, separatorIndex)
const groupNameFromId = item.groupId.substring(separatorIndex + 3) // 3 是 "_R:" 的长度
if (groupNameFromId && groupNameFromId == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = cloudId
} else if (item.groupName) { } else if (item.groupName) {
groupHideAttr && groupHideAttr &&
this.groupCofList[groupHideAttr].push({ this.groupCofList[groupHideAttr].push({
...@@ -259,9 +263,18 @@ export default { ...@@ -259,9 +263,18 @@ export default {
roomName: item.groupName roomName: item.groupName
}) })
} else { } else {
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
} }
} else {
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
} }
}) })
for (let k in this.groupCofListInput) { for (let k in this.groupCofListInput) {
......
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
wordReport: [], wordReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport:[] sceneReport: []
}, },
switchList: { switchList: {
xiReport: [], xiReport: [],
...@@ -425,7 +425,7 @@ export default { ...@@ -425,7 +425,7 @@ export default {
InvoicingReport: [], InvoicingReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport:[] sceneReport: []
} }
this.groupCofListInput = { this.groupCofListInput = {
xiReportValue: [], xiReportValue: [],
...@@ -437,7 +437,7 @@ export default { ...@@ -437,7 +437,7 @@ export default {
wordReportValue: [], wordReportValue: [],
regionalOperationsReportValue: [], regionalOperationsReportValue: [],
extendedRevenueReportValue: [], extendedRevenueReportValue: [],
sceneReportValue:[] sceneReportValue: []
} }
// 编辑 // 编辑
if (sign) { if (sign) {
...@@ -451,9 +451,13 @@ export default { ...@@ -451,9 +451,13 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) return if (!groupHideAttr) return
if (item.groupId) { if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) { const separatorIndex = item.groupId.indexOf('_R:')
if (separatorIndex !== -1) {
const cloudId = item.groupId.substring(0, separatorIndex)
const groupNameFromId = item.groupId.substring(separatorIndex + 3) // 3 是 "_R:" 的长度
if (groupNameFromId && groupNameFromId == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = cloudId
} else if (item.groupName) { } else if (item.groupName) {
groupHideAttr && groupHideAttr &&
this.groupCofList[groupHideAttr].push({ this.groupCofList[groupHideAttr].push({
...@@ -461,9 +465,19 @@ export default { ...@@ -461,9 +465,19 @@ export default {
roomName: item.groupName roomName: item.groupName
}) })
} else { } else {
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
} }
} else {
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
if (item.sendTime) { if (item.sendTime) {
this.pushRadio = 2 this.pushRadio = 2
this.pushTimeValue = item.sendTime this.pushTimeValue = item.sendTime
...@@ -510,7 +524,7 @@ export default { ...@@ -510,7 +524,7 @@ export default {
wordReport: [], wordReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport:[] sceneReport: []
} }
} }
} }
...@@ -536,7 +550,7 @@ export default { ...@@ -536,7 +550,7 @@ export default {
wordReport: [], wordReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport:[] sceneReport: []
} }
}, },
async getDepartmentTree() { async getDepartmentTree() {
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
}, },
groupCofListInput: { groupCofListInput: {
trainingReportValue: [], trainingReportValue: [],
sceneClueValue: [], sceneClueValue: []
}, },
groupToType: [ groupToType: [
{ {
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
{ {
attr: 'sceneClue', attr: 'sceneClue',
type: 27 type: 27
}, }
], ],
buttetinList: [ buttetinList: [
{ {
...@@ -246,7 +246,7 @@ export default { ...@@ -246,7 +246,7 @@ export default {
} }
this.groupCofListInput = { this.groupCofListInput = {
trainingReportValue: [], trainingReportValue: [],
sceneClueValue: [], sceneClueValue: []
} }
this.battleVisible = true this.battleVisible = true
// 编辑 // 编辑
...@@ -260,9 +260,13 @@ export default { ...@@ -260,9 +260,13 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) return if (!groupHideAttr) return
if (item.groupId) { if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) { const separatorIndex = item.groupId.indexOf('_R:')
if (separatorIndex !== -1) {
const cloudId = item.groupId.substring(0, separatorIndex)
const groupNameFromId = item.groupId.substring(separatorIndex + 3) // 3 是 "_R:" 的长度
if (groupNameFromId && groupNameFromId == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = cloudId
} else if (item.groupName) { } else if (item.groupName) {
groupHideAttr && groupHideAttr &&
this.groupCofList[groupHideAttr].push({ this.groupCofList[groupHideAttr].push({
...@@ -270,9 +274,18 @@ export default { ...@@ -270,9 +274,18 @@ export default {
roomName: item.groupName roomName: item.groupName
}) })
} else { } else {
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
} }
} else {
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
} }
}) })
for (let k in this.groupCofListInput) { for (let k in this.groupCofListInput) {
...@@ -294,7 +307,7 @@ export default { ...@@ -294,7 +307,7 @@ export default {
// InvoicingReportValue: [{ name: '' }], // InvoicingReportValue: [{ name: '' }],
// saReportValue: [{ name: '' }], // saReportValue: [{ name: '' }],
trainingReportValue: [{ name: '' }], trainingReportValue: [{ name: '' }],
sceneClueValue: [{ name: '' }], sceneClueValue: [{ name: '' }]
// scheduleReportValue: [{ name: '' }], // scheduleReportValue: [{ name: '' }],
// zhanReportValue: [{ name: '' }], // zhanReportValue: [{ name: '' }],
// saasReportValue: [{ name: '' }] // saasReportValue: [{ name: '' }]
...@@ -421,7 +434,7 @@ export default { ...@@ -421,7 +434,7 @@ export default {
staffName: this.wechat.automaticName, staffName: this.wechat.automaticName,
groupMerchantId: this.config.merchantId, groupMerchantId: this.config.merchantId,
updatedBy: this.$globalState.session.accountName, updatedBy: this.$globalState.session.accountName,
groupConfigList: [], groupConfigList: []
} }
Object.keys(this.groupCofList).map(item => { Object.keys(this.groupCofList).map(item => {
let type = this.groupToType.find(k => k.attr == item).type let type = this.groupToType.find(k => k.attr == item).type
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!