Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
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 b00886d2
authored
May 23, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
8d7516fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
src/views/ChatLibrary/detail.vue
src/views/ChatLibrary/detail.vue
View file @
b00886d
...
...
@@ -220,6 +220,7 @@ export default {
const
{
editGroupText
,
addState
,
$message
}
=
this
try
{
if
(
!
editGroupText
.
newGroup
)
throw
'请输入话术组!'
if
(
addState
)
{
this
.
chatGroup
.
map
(
e
=>
{
if
(
e
.
value
==
editGroupText
.
newGroup
)
throw
'该话术组已存在!'
...
...
@@ -233,11 +234,19 @@ export default {
type
:
'success'
})
}
else
{
const
{
data
,
message
}
=
await
this
.
$apis
.
chatLibrary
.
updateChatGroup
(
editGroupText
)
$message
({
message
:
data
?
'修改成功'
:
message
,
type
:
data
?
'success'
:
'error'
})
const
{
isAdd
}
=
this
.
chatGroup
.
find
(
e
=>
e
.
value
==
editGroupText
.
oldGroup
)
if
(
isAdd
)
{
$message
({
message
:
'修改成功'
,
type
:
'success'
})
}
else
{
const
{
data
,
message
}
=
await
this
.
$apis
.
chatLibrary
.
updateChatGroup
(
editGroupText
)
$message
({
message
:
data
?
'修改成功'
:
message
,
type
:
data
?
'success'
:
'error'
})
}
this
.
chatGroup
.
find
(
e
=>
{
if
(
e
.
value
==
editGroupText
.
oldGroup
)
{
e
.
value
=
editGroupText
.
newGroup
...
...
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