Commit 928446d6 by 王志慧

fix:集团标签修改

1 parent 09695b45
......@@ -48,7 +48,7 @@
<template v-if="(merchantModel == 2 && label.labelGroupType != '自店标签') || merchantModel == 1">
<div class="detail-bg detail-third" :key="ids">
<div class="title">
{{ label.labelGroupType }}
{{ merchantModel == 1 && label.labelGroupType == '企业标签' ? '集团标签' : label.labelGroupType }}
<span v-if="label.labelGroupType == '系统标签'" class="prompt-text">系统标签不支持手动修改</span>
</div>
<div class="detail-label">
......@@ -258,6 +258,9 @@ export default {
isTrue: false
}
},
created() {
this.merchantModel = this.getLocalStorage('dj_scrm_userInfo').merchantModel ? this.getLocalStorage('dj_scrm_userInfo').merchantModel : ''
},
activated() {
this.watchPageBack().then(() => {
console.log(this.id)
......@@ -268,7 +271,6 @@ export default {
})
},
mounted() {
this.merchantModel = this.getLocalStorage('dj_scrm_userInfo').merchantModel ? this.getLocalStorage('dj_scrm_userInfo').merchantModel : ''
this.userAgent = this.isMobile()
this.showLoading()
let { id, customerId, isTrue, sessionId } = this.getQuery()
......@@ -350,7 +352,7 @@ export default {
console.log('this.userInfo.labelInfos', this.userInfo.labelInfos)
let labelArray = [
{
labelGroupType: this.merchantModel == 1 ? '集团标签' : '企业标签',
labelGroupType: '企业标签',
children: [],
isShow: false
},
......
......@@ -128,7 +128,6 @@ export default {
},
// 创建群聊or进入群聊
addGroup() {
console.log(this.addGroupParams, '----------------')
if (this.addGroupParams.chatId == '') {
wxConfig.openEnterpriseChat(this.addGroupParams).then(res => {
console.log(res, 'res')
......@@ -149,7 +148,6 @@ export default {
})
} else {
wxConfig.openExistedChatWithMsg({ chatId: this.addGroupParams.chatId }).then(res => {
console.log(this.addGroupParams.chatId, '55555')
})
}
},
......@@ -176,7 +174,6 @@ export default {
this.show = true
} else {
this.addGroupParams.chatId = item.chatId
console.log(this.addGroupParams.chatId, ' this.addGroupParams.chatId')
wxConfig.openExistedChatWithMsg({ chatId: this.addGroupParams.chatId }).then(res => {})
}
// console.log(this.addGroupParams)
......@@ -184,7 +181,6 @@ export default {
getCustomerInfo(externalUserId) {
//获取客户信息
groupChat.getDetail({ userId: externalUserId }).then(res => {
console.log(res, 'data')
this.hideLoading()
this.flag = true
this.businessCard = res.info
......@@ -243,7 +239,6 @@ export default {
},
initData() {
let { id } = this.getQuery()
console.log(id)
this.showLoading()
if (id) {
this.userId = id
......@@ -256,7 +251,6 @@ export default {
wxConfig
.getCurExternalContact()
.then(userId => {
console.log(userId, '11111')
this.userId = userId
let externalUserId = userId
this.addGroupParams.externalUserIds.push(userId)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!