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 d4b16319
authored
May 11, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
dfff8d8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
src/views/ChatLibrary/detail.vue
src/views/ChatLibrary/detail.vue
View file @
d4b1631
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
v-model="chatForm.scriptContent"
v-model="chatForm.scriptContent"
maxlength="300"
maxlength="300"
show-word-limit
show-word-limit
@input="chatForm.scriptContent = $event.replace(emojiReg, '')"
>
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -81,6 +82,8 @@
...
@@ -81,6 +82,8 @@
v-model=
"editGroupText.newGroup"
v-model=
"editGroupText.newGroup"
maxlength=
"10"
maxlength=
"10"
placeholder=
"请输入"
placeholder=
"请输入"
@
input=
"editGroupText.newGroup = $event.replace(emojiReg, '')"
ref=
"editInput"
>
>
<div
<div
slot=
"suffix"
slot=
"suffix"
...
@@ -98,7 +101,7 @@
...
@@ -98,7 +101,7 @@
<
template
v-else
>
<
template
v-else
>
<div
<div
class=
"add-btn item"
class=
"add-btn item"
@
click
.
self=
"editState = true"
@
click
.
self=
"editState = true
; focusInput()
"
>
>
<i
class=
"el-icon-circle-plus-outline"
></i>
<i
class=
"el-icon-circle-plus-outline"
></i>
新增一项
新增一项
...
@@ -130,10 +133,12 @@
...
@@ -130,10 +133,12 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
const
emojiReg
=
/
([^\u
0020-
\u
007E
\u
00A0-
\u
00BE
\u
2E80-
\u
A4CF
\u
F900-
\u
FAFF
\u
FE30-
\u
FE4F
\u
FF00-
\u
FFEF
\u
0080-
\u
009F
\u
2000-
\u
201f
\u
2026
\u
2022
\u
20ac
])
/g
export
default
{
export
default
{
name
:
'detail'
,
name
:
'detail'
,
data
()
{
data
()
{
return
{
return
{
emojiReg
,
groupVisible
:
false
,
groupVisible
:
false
,
editState
:
false
,
editState
:
false
,
title
:
''
,
title
:
''
,
...
@@ -206,12 +211,19 @@ export default {
...
@@ -206,12 +211,19 @@ export default {
}
}
this
.
loading
=
false
this
.
loading
=
false
},
},
/**编辑聚焦 */
focusInput
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
editInput
.
focus
()
})
},
/**新增话术组 */
/**新增话术组 */
showEditGroupInput
(
value
)
{
showEditGroupInput
(
value
)
{
this
.
editGroupText
=
{
this
.
editGroupText
=
{
oldGroup
:
value
,
oldGroup
:
value
,
newGroup
:
value
newGroup
:
value
}
}
if
(
value
)
this
.
focusInput
()
this
.
editState
=
false
this
.
editState
=
false
},
},
/**关闭弹框 */
/**关闭弹框 */
...
...
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