Commit aa639011 by 前端

fixed

1 parent b8d99333
......@@ -132,6 +132,9 @@
</gl-select-menu>
</transition>
</el-form-item>
<el-form-item class="select-wrap" label="群名:">
<el-input v-model="groupName" placeholder="请输入群名" @blur="importGroup"></el-input>
</el-form-item>
</el-form>
</div>
</GLDialog>
......@@ -153,6 +156,7 @@ export default {
},
data() {
return {
groupName: '',
isgroup: true,
isAutomatic: true,
menuIndex: 0,
......@@ -277,6 +281,7 @@ export default {
goodStaffName: '',
roomName: ''
},
idBefEncryption: '',
baseData: {
activityTypeList: [
{ confId: '3', confName: '众筹' },
......@@ -383,6 +388,7 @@ export default {
goodStaffName: '',
roomName: ''
}
this.groupName = ''
this.hideSelect()
},
filterNode(value, data) {
......@@ -428,17 +434,25 @@ export default {
this.hideSelect()
this.wechat.roomName = data.roomName
const { goodStaffId, battleStaffId } = this.wechat
if (!data.staffInfoList) return
if (this.wechat.battleStaffName) {
const staffCloudId = data.staffInfoList.find(i => i.staffId == battleStaffId)?.staffCloudId
this.wechat.battleGroupId = staffCloudId + '_' + data.roomIdOnly
this.wechat.battleGroupId = staffCloudId + '_R:' + data.roomIdOnly
}
if (this.wechat.goodStaffName) {
const staffCloudId = data.staffInfoList.find(i => i.staffId == goodStaffId)?.staffCloudId
this.wechat.goodGroupId = staffCloudId + '_' + data.roomIdOnly
this.wechat.goodGroupId = staffCloudId + '_R:' + data.roomIdOnly
}
// this.wechat.groupId = data.roomChatId
},
importGroup() {
if (this.wechat.roomName) return
if (this.wechat.battleStaffName) {
this.wechat.battleGroupId = this.idBefEncryption + '_R:' + this.groupName
}
if (this.wechat.goodStaffName) {
this.wechat.goodGroupId = this.idBefEncryption + '_R:' + this.groupName
}
},
openMenu(e) {
if (e == this.menuIndex) return (this.menuIndex = 0)
this.menuIndex = e
......@@ -523,6 +537,8 @@ export default {
handlestaffbattleConfirm() {
this.battlestaffVisible = false
this.userList = this.$refs.selectMember.userList
this.idBefEncryption = this.userList[0]?.idBefEncryption
console.log(this.idBefEncryption, this.userList)
},
handlestaffbattleClose() {
this.battlestaffVisible = false
......@@ -541,7 +557,7 @@ export default {
})
return
}
if (this.wechat.battleStaffName !== '' && this.wechat.roomName == '') {
if (this.wechat.battleStaffName !== '' && this.wechat.roomName == '' && !this.groupName) {
this.$message({
message: '请选择关联群',
type: 'error'
......@@ -571,7 +587,7 @@ export default {
goodGroupId,
goodStaffName,
goodStaffId,
autoGroupName: roomName,
autoGroupName: roomName ? roomName : this.groupName,
autoGroupMerchantId: this.$merchantId
}
}
......@@ -641,6 +657,7 @@ export default {
roomName: autoGroupName,
autoGroupMerchantId
}
this.groupName = autoGroupName
this.getGroupList(this.wechat.staffId)
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!