Commit 928446d6 by 王志慧

fix:集团标签修改

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