Commit d7a19f60 by 前端

Merge branch 'SAAS+V4.56.3-0918' into 'master'

上线合并

See merge request !86
2 parents f58ea694 2e2bc3d6
......@@ -34,7 +34,7 @@
</div>
</div>
<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-input placeholder="请输入搜索关键词" v-model="filterText"></el-input>
</el-form-item>
......@@ -249,18 +249,31 @@ export default {
let groupHideAttr = 'clewWordReport'
if (!groupHideAttr) return
if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0]
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: 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 })
this.idBefEncryption = cloudId
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
} else {
this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
}
} else {
this.idBefEncryption = item.groupId.split('_R:')[0]
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
}
})
......
......@@ -403,18 +403,31 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) return
if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0]
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: 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 })
this.idBefEncryption = cloudId
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
} else {
this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
}
} else {
this.idBefEncryption = item.groupId.split('_R:')[0]
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
}
})
......@@ -426,6 +439,7 @@ export default {
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
})
console.log(this.groupCofListInput, this.selectGroupName)
this.getGroupList(this.wechat.staffId)
this.getDepartmentTree()
} else {
......
......@@ -151,7 +151,7 @@ export default {
wordReport: [],
regionalOperationsReport: [],
extendedRevenueReport: [],
sceneReport:[]
sceneReport: []
},
switchList: {
xiReport: [],
......@@ -425,7 +425,7 @@ export default {
InvoicingReport: [],
regionalOperationsReport: [],
extendedRevenueReport: [],
sceneReport:[]
sceneReport: []
}
this.groupCofListInput = {
xiReportValue: [],
......@@ -437,7 +437,7 @@ export default {
wordReportValue: [],
regionalOperationsReportValue: [],
extendedRevenueReportValue: [],
sceneReportValue:[]
sceneReportValue: []
}
// 编辑
if (sign) {
......@@ -451,22 +451,36 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) return
if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0]
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: 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 })
this.idBefEncryption = cloudId
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
} else {
this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
}
} else {
this.idBefEncryption = item.groupId.split('_R:')[0]
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
if (item.sendTime) {
this.pushRadio = 2
this.pushTimeValue = item.sendTime
this.pushTimeValue = item.sendTime
}
}
})
......@@ -510,7 +524,7 @@ export default {
wordReport: [],
regionalOperationsReport: [],
extendedRevenueReport: [],
sceneReport:[]
sceneReport: []
}
}
}
......@@ -536,7 +550,7 @@ export default {
wordReport: [],
regionalOperationsReport: [],
extendedRevenueReport: [],
sceneReport:[]
sceneReport: []
}
},
async getDepartmentTree() {
......
......@@ -97,7 +97,7 @@ export default {
isDialogVisible: false,
merchantName: '',
paramsData: this.$route.query,
routeParams: {},
routeParams: {},
dialogComponent: '',
merchantList: [],
automaticData: [],
......@@ -118,11 +118,11 @@ export default {
},
groupCofList: {
trainingReport: [],
sceneClue: []
sceneClue: []
},
groupCofListInput: {
trainingReportValue: [],
sceneClueValue: [],
sceneClueValue: []
},
groupToType: [
{
......@@ -132,7 +132,7 @@ export default {
{
attr: 'sceneClue',
type: 27
},
}
],
buttetinList: [
{
......@@ -140,7 +140,7 @@ export default {
storageList: 'trainingReportValue',
componentName: ''
},
{
label: '.场景线索',
storageList: 'sceneClueValue',
......@@ -165,7 +165,7 @@ export default {
mounted() {
let { data, sign } = this.paramsData
data = JSON.parse(data)
this.routeParams = data
this.routeParams = data
this.merchantName = data.merchantName + data.merchantId
this.getMerchantList(sign)
this.handleStaffOn(data, sign)
......@@ -246,7 +246,7 @@ export default {
}
this.groupCofListInput = {
trainingReportValue: [],
sceneClueValue: [],
sceneClueValue: []
}
this.battleVisible = true
// 编辑
......@@ -260,18 +260,31 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) return
if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0]
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: 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 })
this.idBefEncryption = cloudId
} else if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
} else {
this.idBefEncryption = cloudId
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
}
} else {
this.idBefEncryption = item.groupId.split('_R:')[0]
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
if (item.groupName) {
groupHideAttr &&
this.groupCofList[groupHideAttr].push({
groupId: item.groupId,
roomName: item.groupName
})
}
}
}
})
......@@ -294,7 +307,7 @@ export default {
// InvoicingReportValue: [{ name: '' }],
// saReportValue: [{ name: '' }],
trainingReportValue: [{ name: '' }],
sceneClueValue: [{ name: '' }],
sceneClueValue: [{ name: '' }]
// scheduleReportValue: [{ name: '' }],
// zhanReportValue: [{ name: '' }],
// saasReportValue: [{ name: '' }]
......@@ -308,7 +321,7 @@ export default {
if (isReset) {
this.groupCofList = {
trainingReport: [],
sceneClue: []
sceneClue: []
}
}
}
......@@ -326,7 +339,7 @@ export default {
}
this.groupCofList = {
trainingReport: [],
sceneClue: []
sceneClue: []
}
},
async getDepartmentTree() {
......@@ -414,14 +427,14 @@ export default {
return true
}
var params = {
residentStaffPhone: this.routeParams.residentStaffPhone,
residentStaffPhone: this.routeParams.residentStaffPhone,
enterpriseMerchantId: this.config.merchantId,
enterpriseMerchantName: this.config.merchantName,
staffId: this.wechat.staffId,
staffName: this.wechat.automaticName,
groupMerchantId: this.config.merchantId,
updatedBy: this.$globalState.session.accountName,
groupConfigList: [],
groupConfigList: []
}
Object.keys(this.groupCofList).map(item => {
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!