Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 1bbca81a
authored
Jul 29, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huy_dev_v2.7.0' into 'v2.7.0'
Huy dev v2.7.0 See merge request
!283
2 parents
2c45eae6
731b89b9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
22 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/preview.vue
src/views/customerTransform/components/selectMember.vue
src/views/customerTransform/addCustomer.vue
View file @
1bbca81
...
...
@@ -281,9 +281,9 @@ export default {
type
:
'material'
,
funName
:
'material'
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
,
pdfNo
:
1
,
videoNo
:
1
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
// pdfNo: 1
//
videoNo: 1
},
{
name
:
'模板'
,
...
...
@@ -378,7 +378,9 @@ export default {
// 预览回显事件
previewForm
(
val
)
{
console
.
log
(
val
)
this
.
previewVal
=
val
const
value
=
this
.
$common
.
utils
.
deepClone
(
val
)
if
(
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
this
.
previewVal
=
value
},
handleCancel
()
{
if
(
this
.
editStatus
||
this
.
$refs
.
welcome
.
previewList
.
length
>
0
)
{
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
1bbca81
...
...
@@ -75,7 +75,7 @@
<div
class=
"detail-condition-item"
v-if=
"basicInfo.condition.chatName"
>
<span
class=
"name"
>
所在群聊
</span>
<span
v-for=
"(item, index) in basicInfo.condition.chatName.split(',')"
class=
"el-tag-item"
:key=
"index"
>
<el-tag
v-if=
"index
< 2
"
type=
"info"
class=
"hidden-tag
"
>
{{
item
}}
</el-tag>
<el-tag
v-if=
"index
< 2
"
type=
"info"
:class=
"index > 2 ? 'hidden-tag' : ''
"
>
{{
item
}}
</el-tag>
<el-tag
type=
"info"
v-if=
"basicInfo.condition.chatName.split(',').length > 2 && index == 2"
>
<el-popover
placement=
"top"
width=
"300"
trigger=
"hover"
>
<span
slot=
"reference"
>
...(
{{
basicInfo
.
condition
.
chatName
.
split
(
','
).
length
}}
)
</span>
...
...
src/views/customerTransform/components/preview.vue
View file @
1bbca81
...
...
@@ -22,7 +22,12 @@
<el-image
style=
"width: 100px"
:src=
"item.attContent"
fit=
"contain"
></el-image>
</
template
>
<
template
v-else-if=
"item.attType == 3"
>
<video
style=
"width: 100px"
:src=
"item.attContent"
></video>
<div
class=
"video-panel"
:key=
"itm"
>
<video
id=
"video"
width=
"95"
>
<source
:src=
"item.attContent"
type=
"video/mp4"
/>
</video>
<i
class=
"el-icon-video-play"
></i>
</div>
</
template
>
<
template
v-else-if=
"item.attType == 5"
>
<div
class=
"preview-text text preview-applet"
>
...
...
@@ -33,6 +38,14 @@
{{
item
.
attContent
.
page
}}
</div>
</
template
>
<
template
v-else-if=
"item.attType == 6"
>
<div
class=
"preview-pdf"
>
<div
class=
"pdf-title"
>
{{
item
.
attContent
.
fileName
}}
</div>
<div
class=
"preview-link"
>
<img
src=
"@/assets/guestCustom/preview-link.png"
alt=
""
/>
</div>
</div>
</
template
>
</div>
</div>
</div>
...
...
@@ -56,7 +69,7 @@ export default {
val
.
forEach
(
item
=>
{
if
(
item
.
attType
==
1
)
{
const
attContent
=
item
.
attContent
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
...
@@ -68,9 +81,9 @@ export default {
return
`<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
})
item
.
attContent
=
htm
}
else
if
(
item
.
attType
!=
2
)
{
}
else
if
(
item
.
attType
!=
2
&&
item
.
attType
!=
3
)
{
console
.
log
(
item
)
i
tem
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
i
f
(
!
this
.
eventBus
)
item
.
attContent
=
JSON
.
parse
(
utils
.
deepClone
(
item
.
attContent
)
)
console
.
log
(
item
.
attContent
)
}
})
...
...
@@ -85,9 +98,11 @@ export default {
}
},
created
()
{
this
.
eventBus
.
$on
(
'update'
,
val
=>
{
this
.
previewList
=
val
})
if
(
this
.
eventBus
)
{
this
.
eventBus
.
$on
(
'update'
,
val
=>
{
this
.
previewList
=
val
})
}
},
mounted
()
{
const
date
=
new
Date
()
...
...
@@ -151,14 +166,11 @@ export default {
white-space
:
pre-wrap
;
}
.preview-link
{
display
:
inline-flex
;
word-break
:
break-all
;
font-size
:
14px
;
padding
:
8px
8px
8px
11px
;
display
:
flex
;
justify-content
:
flex-end
;
img
{
width
:
34px
;
height
:
34px
;
margin-left
:
10px
;
width
:
30px
;
height
:
30px
;
}
}
.preview-text
::before
{
...
...
@@ -209,6 +221,31 @@ export default {
border-top
:
1px
solid
#edeff3
;
}
}
.preview-pdf
{
width
:
158px
;
height
:
62px
;
background-color
:
#fff
;
padding
:
5px
13px
;
box-sizing
:
border-box
;
.pdf-title
{
font-size
:
12px
;
color
:
#333
;
line-height
:
16px
;
}
}
.video-panel
{
position
:
relative
;
.el-icon-video-play
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
z-index
:
10
;
font-size
:
20px
;
color
:
#fff
;
//
cursor
:
pointer
;
}
}
}
}
}
...
...
src/views/customerTransform/components/selectMember.vue
View file @
1bbca81
...
...
@@ -41,7 +41,7 @@
<div
class=
"member-name"
>
成员名称(
{{
innerTags
.
length
}}
项)
</div>
<div
class=
"input-tag-wrapper"
>
<div
class=
"tag-box"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(
tag
)"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(
innerTags[idx]
)"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
.
staffName
}}
</el-tag>
...
...
@@ -109,7 +109,7 @@ export default {
methods
:
{
selectionTable
(
val
)
{
console
.
log
(
val
)
this
.
innerTags
=
val
this
.
innerTags
=
this
.
$common
.
utils
.
deepClone
(
val
)
// this.$emit('selectTable', val)
},
// 清空搜索条件
...
...
@@ -226,7 +226,14 @@ export default {
}
},
remove
(
item
)
{
this
.
$refs
.
empTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
item
)
// var idx = this.innerTags.findIndex(k => k.id == item.id)
// this.innerTags.splice(idx, 1)
if
(
this
.
tableEmpData
.
map
(
k
=>
k
.
id
).
includes
(
item
.
id
))
{
var
i
=
this
.
tableEmpData
.
findIndex
(
k
=>
k
.
id
==
item
.
id
)
this
.
$refs
.
empTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
this
.
tableEmpData
[
i
])
console
.
log
(
item
,
this
.
tableEmpData
[
i
])
}
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
},
rowClick
(
row
)
{
this
.
$refs
.
empTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
...
...
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