Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aa639011
authored
Mar 30, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
b8d99333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
src/views/battle/index.vue
src/views/battle/index.vue
View file @
aa63901
...
...
@@ -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
)
})
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment