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 9c59008d
authored
May 19, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
23f14ba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
127 additions
and
36 deletions
src/views/ChatLibrary/detail.vue
src/views/ChatLibrary/detail.vue
View file @
9c59008
...
@@ -22,18 +22,67 @@
...
@@ -22,18 +22,67 @@
v-model=
"chatForm.scriptGroup"
v-model=
"chatForm.scriptGroup"
filterable
filterable
placeholder=
"请选择"
placeholder=
"请选择"
:popper-append-to-body=
"false"
>
>
<template
v-if=
"editGroupText.newGroup || editState"
>
<div
class=
"input-box"
>
<el-input
ref=
"editInput"
class=
"input"
v-model=
"editGroupText.newGroup"
maxlength=
"10"
placeholder=
"请输入"
@
input
.
self=
"editGroupText.newGroup = $event.replace(emojiReg, '')"
@
keyup
.
enter
.
native=
"updateChatGroup"
>
<div
slot=
"suffix"
class=
"input-btn"
>
<div
@
click=
"updateChatGroup"
>
确定
</div>
<div
class=
"cancel"
@
click=
"showEditGroupInput('')"
>
取消
</div>
</div>
</el-input>
</div>
</
template
>
<
template
v-else
>
<div
class=
"add-btn"
@
click
.
self=
"editState = true; focusInput()"
>
<i
class=
"el-icon-circle-plus-outline"
></i>
新增一项
</div>
</
template
>
<el-option
<el-option
v-for=
"(item, i) in chatGroup"
v-for=
"(item, i) in chatGroup"
:key=
"i"
:key=
"i"
:label=
"item.value"
:label=
"item.value"
:value=
"item.value"
:value=
"item.value"
></el-option>
>
<div
class=
"option-item"
>
{{ item.value }}
<div
class=
"item-btn"
>
<i
v-if=
"!i.isAdd"
class=
"el-icon-edit"
@
click
.
stop=
"showEditGroupInput(item.value)"
></i>
<i
class=
"el-icon-circle-close"
@
click
.
stop=
"delChatLibrary(item)"
></i>
</div>
</div>
</el-option>
</el-select>
</el-select>
<el-button
<
!-- <
el-button
type="primary"
type="primary"
@click="groupVisible = !groupVisible"
@click="groupVisible = !groupVisible"
>
编辑话术组
</el-button>
>编辑话术组</el-button>
-->
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -66,7 +115,7 @@
...
@@ -66,7 +115,7 @@
>
确定
</el-button>
>
确定
</el-button>
</GLFooter>
</GLFooter>
<GLDialog
<
!-- <
GLDialog
v-if="groupVisible"
v-if="groupVisible"
title="话术组"
title="话术组"
mode="small"
mode="small"
...
@@ -129,7 +178,7 @@
...
@@ -129,7 +178,7 @@
</div>
</div>
</template>
</template>
</div>
</div>
</GLDialog>
</GLDialog>
-->
</div>
</div>
</template>
</template>
...
@@ -331,11 +380,10 @@ export default {
...
@@ -331,11 +380,10 @@ export default {
}
}
}
}
.el-textarea
{
.el-textarea
{
width
:
600
px
;
width
:
592
px
;
}
}
}
}
}
}
.edit-group-box
{
.edit-group-box
{
width
:
474px
;
width
:
474px
;
margin
:
0
auto
;
margin
:
0
auto
;
...
@@ -368,40 +416,83 @@ export default {
...
@@ -368,40 +416,83 @@ export default {
}
}
}
}
}
}
.add-btn
{
}
color
:
#5850ff
;
}
i
{
/
deep
/
.el-scrollbar__view.el-select-dropdown__list
{
font-size
:
20px
;
padding-top
:
0
;
margin-right
:
6px
;
.add-btn
{
}
color
:
#5850ff
;
height
:
40px
;
margin-bottom
:
4px
;
padding
:
0
16px
;
font-size
:
14px
;
display
:
flex
;
align-items
:
center
;
cursor
:
pointer
;
background
:
#fff
;
z-index
:
2
;
position
:
sticky
;
top
:
0
;
&:hover
{
background
:
#f5f7fa
;
}
}
.input-box
{
i
{
position
:
sticky
;
font-size
:
20px
;
top
:
0
;
margin-right
:
6px
;
margin-bottom
:
4px
;
}
padding
:
0
16px
;
}
.input
{
.input-box
{
/deep/.el-input__inner
{
position
:
sticky
;
height
:
32px
;
top
:
0
;
line-height
:
32px
;
margin-bottom
:
4px
;
padding
:
0
16px
;
background
:
#fff
;
z-index
:
2
;
.input
{
.el-input__inner
{
height
:
32px
;
line-height
:
32px
;
}
&
-btn
{
display
:
flex
;
height
:
100%
;
align-items
:
center
;
font-size
:
12px
;
color
:
#5850ff
;
gap
:
0
8px
;
cursor
:
pointer
;
.cancel
{
color
:
#666666
;
}
}
&
-btn
{
div
:hover
{
display
:
flex
;
opacity
:
0.75
;
height
:
100%
;
align-items
:
center
;
font-size
:
12px
;
color
:
#5850ff
;
gap
:
0
8px
;
cursor
:
pointer
;
.cancel
{
color
:
#666666
;
}
div
:hover
{
opacity
:
0.75
;
}
}
}
}
}
}
}
}
}
}
}
/
deep
/
.option-item
{
display
:
flex
;
align-items
:
center
;
&:hover
{
background
:
#f5f7fa
;
.item-btn
{
display
:
flex
;
}
}
.item-btn
{
display
:
none
;
margin-left
:
auto
;
align-items
:
center
;
font-size
:
16px
;
color
:
#9b9b9b
;
gap
:
8px
;
i
{
&:hover
{
color
:
#5850ff
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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