Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
2e86f8bc
Commit
2e86f8bc
authored
Apr 15, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 话术列表调整
parent
6e7d76d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
12 deletions
+33
-12
list.vue
src/views/ai/list.vue
+1
-1
manage.vue
src/views/ai/manage.vue
+32
-11
No files found.
src/views/ai/list.vue
View file @
2e86f8bc
...
...
@@ -17,7 +17,7 @@ import manage from './manage.vue';
export
default
{
data
()
{
return
{
activeName
:
'
first
'
activeName
:
'
second
'
};
},
components
:
{
...
...
src/views/ai/manage.vue
View file @
2e86f8bc
...
...
@@ -9,7 +9,13 @@
</div>
<div
class=
"temp-list"
>
<div
class=
"temp-item"
v-for=
"el in tempList"
:key=
"el.aiTemplateId"
>
<div
class=
"temp-title"
>
{{
el
.
name
}}
</div>
<div
class=
"temp-title"
>
<el-tooltip
placement=
"top"
v-if=
"el.overflow"
>
<p
style=
"max-width: 400px"
slot=
"content"
>
{{
el
.
name
}}
</p>
<p
class=
"temp-title-text"
>
{{
el
.
name
}}
</p>
</el-tooltip>
<template
v-else
>
{{
el
.
name
}}
</
template
>
</div>
<div
class=
"temp-info"
>
<p
class=
"temp-info-text"
>
话术ID:{{ el.aiTemplateId }}
</p>
<p
class=
"temp-info-text"
>
更新时间:{{ formatDateTimeByType(el.updateTime) || '--' }}
</p>
...
...
@@ -106,7 +112,16 @@ export default {
getTempList
()
{
tempPageStatistics
(
this
.
search
).
then
(
res
=>
{
const
{
list
,
pageNum
,
total
}
=
res
.
result
||
{};
this
.
tempList
=
list
;
const
textDom
=
document
.
createElement
(
'span'
);
textDom
.
style
.
opacity
=
0
;
textDom
.
style
.
visibility
=
'hidden'
;
document
.
body
.
appendChild
(
textDom
);
this
.
tempList
=
list
.
map
(
el
=>
{
textDom
.
innerHTML
=
el
.
name
;
el
.
overflow
=
textDom
.
offsetWidth
>
230
;
return
el
;
});
document
.
body
.
removeChild
(
textDom
);
this
.
search
.
pageNum
=
pageNum
;
this
.
total
=
total
;
});
...
...
@@ -199,21 +214,27 @@ export default {
margin-right
:
20px
;
margin-bottom
:
10px
;
width
:
276px
;
height
:
150px
;
b
ackground
:
#ebecf0
;
border-radius
:
4px
;
background
:
#f2f3f5
;
b
order-radius
:
8px
;
overflow
:
hidden
;
.temp-title
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
height
:
48px
;
padding
:
0
16px
;
background
:
rgba
(
47
,
84
,
235
,
0.9
);
border-radius
:
4px
4px
0px
0px
;
font-size
:
16px
;
height
:
60px
;
font-size
:
15px
;
font-weight
:
500
;
color
:
#fff
;
line-height
:
22px
;
color
:
#ffffff
;
line-height
:
21px
;
background
:
linear-gradient
(
319deg
,
#5e50ea
0%
,
#2f54eb
100%
);
opacity
:
0.9
;
.temp-title-text
{
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.temp-info
{
padding
:
10px
16px
14px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment