Commit aa639011 by 前端

fixed

1 parent b8d99333
...@@ -132,6 +132,9 @@ ...@@ -132,6 +132,9 @@
</gl-select-menu> </gl-select-menu>
</transition> </transition>
</el-form-item> </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> </el-form>
</div> </div>
</GLDialog> </GLDialog>
...@@ -153,6 +156,7 @@ export default { ...@@ -153,6 +156,7 @@ export default {
}, },
data() { data() {
return { return {
groupName: '',
isgroup: true, isgroup: true,
isAutomatic: true, isAutomatic: true,
menuIndex: 0, menuIndex: 0,
...@@ -277,6 +281,7 @@ export default { ...@@ -277,6 +281,7 @@ export default {
goodStaffName: '', goodStaffName: '',
roomName: '' roomName: ''
}, },
idBefEncryption: '',
baseData: { baseData: {
activityTypeList: [ activityTypeList: [
{ confId: '3', confName: '众筹' }, { confId: '3', confName: '众筹' },
...@@ -383,6 +388,7 @@ export default { ...@@ -383,6 +388,7 @@ export default {
goodStaffName: '', goodStaffName: '',
roomName: '' roomName: ''
} }
this.groupName = ''
this.hideSelect() this.hideSelect()
}, },
filterNode(value, data) { filterNode(value, data) {
...@@ -428,17 +434,25 @@ export default { ...@@ -428,17 +434,25 @@ export default {
this.hideSelect() this.hideSelect()
this.wechat.roomName = data.roomName this.wechat.roomName = data.roomName
const { goodStaffId, battleStaffId } = this.wechat const { goodStaffId, battleStaffId } = this.wechat
if (!data.staffInfoList) return
if (this.wechat.battleStaffName) { if (this.wechat.battleStaffName) {
const staffCloudId = data.staffInfoList.find(i => i.staffId == battleStaffId)?.staffCloudId 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) { if (this.wechat.goodStaffName) {
const staffCloudId = data.staffInfoList.find(i => i.staffId == goodStaffId)?.staffCloudId 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 // 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) { openMenu(e) {
if (e == this.menuIndex) return (this.menuIndex = 0) if (e == this.menuIndex) return (this.menuIndex = 0)
this.menuIndex = e this.menuIndex = e
...@@ -523,6 +537,8 @@ export default { ...@@ -523,6 +537,8 @@ export default {
handlestaffbattleConfirm() { handlestaffbattleConfirm() {
this.battlestaffVisible = false this.battlestaffVisible = false
this.userList = this.$refs.selectMember.userList this.userList = this.$refs.selectMember.userList
this.idBefEncryption = this.userList[0]?.idBefEncryption
console.log(this.idBefEncryption, this.userList)
}, },
handlestaffbattleClose() { handlestaffbattleClose() {
this.battlestaffVisible = false this.battlestaffVisible = false
...@@ -541,7 +557,7 @@ export default { ...@@ -541,7 +557,7 @@ export default {
}) })
return return
} }
if (this.wechat.battleStaffName !== '' && this.wechat.roomName == '') { if (this.wechat.battleStaffName !== '' && this.wechat.roomName == '' && !this.groupName) {
this.$message({ this.$message({
message: '请选择关联群', message: '请选择关联群',
type: 'error' type: 'error'
...@@ -571,7 +587,7 @@ export default { ...@@ -571,7 +587,7 @@ export default {
goodGroupId, goodGroupId,
goodStaffName, goodStaffName,
goodStaffId, goodStaffId,
autoGroupName: roomName, autoGroupName: roomName ? roomName : this.groupName,
autoGroupMerchantId: this.$merchantId autoGroupMerchantId: this.$merchantId
} }
} }
...@@ -641,6 +657,7 @@ export default { ...@@ -641,6 +657,7 @@ export default {
roomName: autoGroupName, roomName: autoGroupName,
autoGroupMerchantId autoGroupMerchantId
} }
this.groupName = autoGroupName
this.getGroupList(this.wechat.staffId) 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!