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 269f82f7
authored
Mar 18, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整
1 parent
aa5ca355
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
9 deletions
src/views/material/addMaterial.vue
src/views/material/components/readPerDetail.vue
src/views/material/index.vue
src/views/material/materialDetail.vue
src/views/material/addMaterial.vue
View file @
269f82f
...
@@ -268,6 +268,7 @@ export default {
...
@@ -268,6 +268,7 @@ export default {
this
.
materialAddForm
.
businessType
=
[]
this
.
materialAddForm
.
businessType
=
[]
}
}
if
(
this
.
materialAddForm
.
materialType
==
3
)
{
if
(
this
.
materialAddForm
.
materialType
==
3
)
{
this
.
materialAddForm
.
materialUrl
=
decodeURIComponent
(
this
.
materialAddForm
.
materialUrl
)
this
.
$refs
.
textBox
.
setEdit
(
this
.
materialAddForm
.
materialUrl
)
this
.
$refs
.
textBox
.
setEdit
(
this
.
materialAddForm
.
materialUrl
)
}
else
if
(
this
.
materialAddForm
.
materialType
==
1
)
{
}
else
if
(
this
.
materialAddForm
.
materialType
==
1
)
{
this
.
pdfUrl
=
this
.
materialAddForm
.
materialUrl
this
.
pdfUrl
=
this
.
materialAddForm
.
materialUrl
...
@@ -396,6 +397,7 @@ export default {
...
@@ -396,6 +397,7 @@ export default {
if
(
params
.
materialType
==
1
)
{
if
(
params
.
materialType
==
1
)
{
params
.
materialUrl
=
this
.
pdfUrl
params
.
materialUrl
=
this
.
pdfUrl
}
else
if
(
params
.
materialType
==
3
)
{
}
else
if
(
params
.
materialType
==
3
)
{
this
.
textBoxContent
=
encodeURIComponent
(
this
.
textBoxContent
)
params
.
materialUrl
=
this
.
textBoxContent
params
.
materialUrl
=
this
.
textBoxContent
}
}
let
material
let
material
...
@@ -435,6 +437,7 @@ export default {
...
@@ -435,6 +437,7 @@ export default {
if
(
params
.
materialType
==
1
)
{
if
(
params
.
materialType
==
1
)
{
params
.
materialUrl
=
this
.
pdfUrl
params
.
materialUrl
=
this
.
pdfUrl
}
else
if
(
params
.
materialType
==
3
)
{
}
else
if
(
params
.
materialType
==
3
)
{
this
.
textBoxContent
=
encodeURIComponent
(
this
.
textBoxContent
)
params
.
materialUrl
=
this
.
textBoxContent
params
.
materialUrl
=
this
.
textBoxContent
}
}
let
material
let
material
...
@@ -801,6 +804,7 @@ export default {
...
@@ -801,6 +804,7 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
display
:
-webkit-box
;
word-wrap
:
break-word
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
}
}
...
...
src/views/material/components/readPerDetail.vue
View file @
269f82f
...
@@ -32,18 +32,18 @@ export default {
...
@@ -32,18 +32,18 @@ export default {
name
:
'customerName'
,
name
:
'customerName'
,
maxlength
:
10
,
maxlength
:
10
,
type
:
'input'
,
type
:
'input'
,
placehoder
:
'请输入内容'
placeho
l
der
:
'请输入内容'
},{
},{
label
:
'客户手机号:'
,
label
:
'客户手机号:'
,
name
:
'customerPhone'
,
name
:
'customerPhone'
,
placehoder
:
'请输入手机号'
,
placeho
l
der
:
'请输入手机号'
,
type
:
'input'
type
:
'input'
},
},
{
{
label
:
'发送人:'
,
label
:
'发送人:'
,
name
:
'staffName'
,
name
:
'staffName'
,
maxlength
:
10
,
maxlength
:
10
,
placehoder
:
'请输入内容'
,
placeho
l
der
:
'请输入内容'
,
type
:
'input'
type
:
'input'
}
}
],
],
...
...
src/views/material/index.vue
View file @
269f82f
...
@@ -313,7 +313,7 @@ export default {
...
@@ -313,7 +313,7 @@ export default {
mounted
()
{
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
offTop
=
document
.
querySelector
(
'.tabelList'
).
offsetTop
let
offTop
=
document
.
querySelector
(
'.tabelList'
).
offsetTop
this
.
boxHeight
=
clientHeight
-
offTop
+
'px'
this
.
boxHeight
=
clientHeight
-
offTop
-
20
+
'px'
this
.
findAllDictData
(
'business_type'
)
this
.
findAllDictData
(
'business_type'
)
this
.
firstCome
()
this
.
firstCome
()
this
.
getListApi
()
this
.
getListApi
()
...
@@ -374,7 +374,7 @@ export default {
...
@@ -374,7 +374,7 @@ export default {
console
.
log
(
scope
)
console
.
log
(
scope
)
var
params
=
{}
var
params
=
{}
params
.
id
=
scope
.
id
params
.
id
=
scope
.
id
if
(
params
.
status
==
0
)
{
if
(
scope
.
status
==
0
)
{
params
.
status
=
-
1
params
.
status
=
-
1
this
.
secondConfirm
(
'提示'
,
'禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?'
,
'material'
,
'materialEdit'
,
params
)
this
.
secondConfirm
(
'提示'
,
'禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?'
,
'material'
,
'materialEdit'
,
params
)
}
else
{
}
else
{
...
@@ -504,6 +504,7 @@ export default {
...
@@ -504,6 +504,7 @@ export default {
.left
{
.left
{
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
overflow
:
auto
;
border-right
:
1px
solid
#e8e8ea
;
border-right
:
1px
solid
#e8e8ea
;
}
}
.right
{
.right
{
...
...
src/views/material/materialDetail.vue
View file @
269f82f
...
@@ -76,7 +76,9 @@
...
@@ -76,7 +76,9 @@
</div>
</div>
<div
class=
"materialDetail-desc-item"
>
<div
class=
"materialDetail-desc-item"
>
<div
class=
"materialDetail-item-name"
>
行为标签:
</div>
<div
class=
"materialDetail-item-name"
>
行为标签:
</div>
<!--
<el-tag
type=
"info"
v-if=
"detailInfo.tagJson.length"
>
{{
detailInfo
.
tagJson
}}
</el-tag>
-->
<span
v-if=
"detailInfo.tagJson.length"
>
<el-tag
type=
"info"
v-for=
"item in detailInfo.tagJson"
:key=
"item"
>
{{
item
.
labelName
}}
</el-tag>
</span>
</div>
</div>
<div
class=
"materialDetail-desc-item"
>
<div
class=
"materialDetail-desc-item"
>
<div
class=
"materialDetail-item-name"
>
分享设置:
</div>
<div
class=
"materialDetail-item-name"
>
分享设置:
</div>
...
@@ -142,12 +144,13 @@
...
@@ -142,12 +144,13 @@
</div>
</div>
</div>
</div>
</div>
</div>
<el-dialog
:visible
.
sync=
"visibleImg"
width=
"
5
0%"
:before-close=
"handleClose"
>
<el-dialog
:visible
.
sync=
"visibleImg"
width=
"
3
0%"
:before-close=
"handleClose"
>
<div
slot=
"title"
class=
"phone-view"
>
<div
slot=
"title"
class=
"phone-view"
>
<img
class=
"img-phone"
src=
"@/assets/phone.png"
alt=
""
/>
<img
class=
"img-phone"
src=
"@/assets/phone.png"
alt=
""
/>
<div
class=
"phone-content"
>
<div
class=
"phone-content"
>
<div>
{{
detailInfo
.
materialName
}}
</div>
<h4
class=
"phone-content-title"
>
{{
detailInfo
.
materialName
}}
</h4>
<div
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
<div
class=
"phone-content-word"
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
<div
class=
"phone-content-word"
>
活动时间:2022年3月17日 8:00-23:00
</div>
<div>
<div>
<img
src=
"@/assets/material/car.png"
alt=
""
/>
<img
src=
"@/assets/material/car.png"
alt=
""
/>
</div>
</div>
...
@@ -194,6 +197,14 @@ export default {
...
@@ -194,6 +197,14 @@ export default {
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'dhakfh'
)
console
.
log
(
res
,
'dhakfh'
)
this
.
detailInfo
=
res
this
.
detailInfo
=
res
if
(
this
.
detailInfo
.
tagJson
)
{
this
.
detailInfo
.
tagJson
=
eval
(
this
.
detailInfo
.
tagJson
)
}
else
{
this
.
detailInfo
.
tagJson
=
[]
}
if
(
this
.
detailInfo
.
materialType
==
3
)
{
this
.
detailInfo
.
materialUrl
=
decodeURIComponent
(
this
.
detailInfo
.
materialUrl
)
}
})
})
},
},
// 获取数据概览
// 获取数据概览
...
@@ -280,12 +291,22 @@ background-color: #fff;
...
@@ -280,12 +291,22 @@ background-color: #fff;
flex
:
1
;
flex
:
1
;
.content-item-title
{
.content-item-title
{
color
:
#333333
;
color
:
#333333
;
max-width
:
210px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
line-height
:
20px
;
line-height
:
20px
;
margin-bottom
:
6px
;
margin-bottom
:
6px
;
}
}
.content-item-desc
{
.content-item-desc
{
color
:
#999999
;
color
:
#999999
;
line-height
:
20px
;
line-height
:
20px
;
max-width
:
210px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
word-wrap
:
break-word
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
}
}
}
}
}
...
@@ -423,6 +444,15 @@ background-color: #fff;
...
@@ -423,6 +444,15 @@ background-color: #fff;
position
:
absolute
;
position
:
absolute
;
top
:
20%
;
top
:
20%
;
left
:
30%
;
left
:
30%
;
&-title
{
width
:
100%
;
height
:
30px
;
border-bottom
:
1px
solid
#ccc
;
color
:
#333
;
}
&
-word
{
color
:
#666
;
}
}
}
}
}
.content-item-image
{
.content-item-image
{
...
@@ -431,4 +461,7 @@ background-color: #fff;
...
@@ -431,4 +461,7 @@ background-color: #fff;
height
:
85px
;
height
:
85px
;
}
}
}
}
.el-tag
{
margin-right
:
4px
;
}
</
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