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 c57ac995
authored
Mar 17, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
5539d9c9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
236 additions
and
87 deletions
src/api/modules/material.js
src/views/material/addMaterial.vue
src/views/material/components/addMaterialGroupDia.vue
src/views/material/components/staffSendDetail.vue
src/views/material/components/textBox.vue
src/views/material/index.vue
src/views/material/materialDetail.vue
src/api/modules/material.js
View file @
c57ac99
...
...
@@ -66,7 +66,8 @@ const materialDelete = params => {
url
:
'rop-scrm-marketing/router'
,
method
:
'post'
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
}
...
...
src/views/material/addMaterial.vue
View file @
c57ac99
...
...
@@ -20,7 +20,7 @@
<el-form-item
label=
"素材类型:"
prop=
"materialType"
>
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
>
<el-radio
:label=
"1"
>
PDF文件
</el-radio>
<
el-radio
:label=
"2"
>
自定义链接
</el-radio
>
<
!--
<el-radio
:label=
"2"
>
自定义链接
</el-radio>
--
>
<el-radio
:label=
"3"
>
图文
</el-radio>
</el-radio-group>
<!-- 选择PDF -->
...
...
@@ -29,18 +29,19 @@
<input
type=
"file"
style=
"opacity: 0"
accept=
".pdf"
@
change=
"e => handlePdfChange(e)"
/>
<el-button
icon=
"el-icon-plus"
:size=
"size"
>
选择文件
</el-button>
</div>
<div
v-if=
"materialAddForm.materialUrl"
>
{{
materialAddForm
.
materialUrl
}}
</div>
</div>
<!-- 选择自定义链接 -->
<div
v-show=
"materialAddForm.materialType == 2"
>
<
!--
<
div
v-show=
"materialAddForm.materialType == 2"
>
<el-form
:model=
"linkForm"
:rules=
"linkRules"
ref=
"linkForm"
label-width=
"100px"
>
<el-form-item
label=
"链接地址"
prop=
"link"
>
<el-input
v-model=
"linkForm.link"
placeholder=
"请填写跳转链接"
maxlength=
"150"
show-word-limit
></el-input>
</el-form-item>
</el-form>
</div>
</div>
-->
<!-- 选择图文 -->
<div
v-show=
"materialAddForm.materialType == 3"
>
<textBox
@
change=
"writeChange"
></textBox>
<textBox
@
change=
"writeChange"
ref=
"textBox"
></textBox>
</div>
<div
class=
"space"
></div>
</el-form-item>
...
...
@@ -59,7 +60,7 @@
</span>
</span>
<el-checkbox-group
v-model=
"materialAddForm.businessType"
>
<el-checkbox
v-for=
"value in businessTypes"
:key=
"value.
id"
:label=
"value.dictLabel"
>
</el-checkbox>
<el-checkbox
v-for=
"value in businessTypes"
:key=
"value.
dictValue"
:label=
"value.dictValue"
>
{{
value
.
dictLabel
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
prop=
"isNotifySender"
>
...
...
@@ -89,16 +90,16 @@
<span
class=
"track-tips track-info"
>
(最多支持3个标签)
</span>
<!-- 选择标签展示 -->
<div>
<span
v-show=
"tagging.length != 0"
>
<span
v-for=
"(tag, idx) in tagging"
:key=
"idx"
>
<el-tag
class=
"tag-show"
v-for=
"(tagItem, idx1) in tag.labelList"
:key=
"idx1"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx1, idx)"
>
{{
tagItem
.
name
}}
</el-tag>
</span>
</span>
<el-button
:size=
"size"
@
click=
"openLabel"
>
<i
class=
"el-icon-plus"
></i>
选择标签
</el-button>
</div>
<div
v-show=
"tagging.length != 0"
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<span
v-for=
"(tag, idx) in tagging"
:key=
"idx"
>
<el-tag
v-for=
"(tagItem, idx1) in tag.labelList"
:key=
"idx1"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx1, idx)"
>
{{
tagItem
.
name
}}
</el-tag>
</span>
</div>
<div
class=
"space"
></div>
</el-form-item>
</div>
...
...
@@ -130,9 +131,9 @@
</el-form-item>
<el-form-item
label=
"封面:"
>
<div
class=
"img-div"
>
<div
class=
"put-img"
>
<
!--
<img
:src=
"titleUrl"
@
click=
"deleteImg"
class=
"img-css"
/>
--
>
<div
class=
"mask"
>
<div
class=
"put-img"
v-show=
"materialAddForm.titleUrl"
>
<
img
:src=
"materialAddForm.titleUrl"
alt=
""
/
>
<div
class=
"mask"
v-if=
"materialAddForm.titleUrl"
>
<h3>
<img
src=
"@/assets/material/view.png"
alt=
""
/>
<img
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg"
/>
...
...
@@ -156,7 +157,7 @@
<div
class=
"content-title"
>
{{
materialAddForm
.
materialTitle
}}
</div>
<div
class=
"content-word"
>
{{
materialAddForm
.
description
}}
</div>
</div>
<div
class=
"content-show-img"
>
<div
class=
"content-show-img"
v-show=
"materialAddForm.titleUrl"
>
<img
:src=
"materialAddForm.titleUrl"
alt=
""
/>
</div>
</div>
...
...
@@ -194,8 +195,6 @@ export default {
dialogVisible
:
false
,
tagging
:
[],
urlSrc
:
''
,
uploadPdfAction
:
''
,
uploadImgAction
:
''
,
materialAddForm
:
{
groupId
:
''
,
groupName
:
''
,
...
...
@@ -210,11 +209,6 @@ export default {
titleUrl
:
''
},
groupCounter
:
[],
// 素材类型--链接
linkForm
:
{
link
:
''
},
fileList
:
[],
// 分享设置显示
descVisible
:
false
,
// 手机显示
...
...
@@ -224,7 +218,7 @@ export default {
selectMaterialGroup
:
[{
required
:
true
,
message
:
'请选择素材组'
,
trigger
:
'change'
}],
materialName
:
[
{
required
:
true
,
message
:
'请输入素材名称'
,
trigger
:
'change'
},
{
max
:
5
,
message
:
'素材名称长度不能超过30'
,
trigger
:
'blur'
}
{
max
:
30
,
message
:
'素材名称长度不能超过30'
,
trigger
:
'blur'
}
],
materialType
:
[{
required
:
true
,
message
:
'请选择素材类型'
,
trigger
:
'change'
}],
businessType
:
[{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}]
...
...
@@ -257,17 +251,39 @@ export default {
var
params
=
{}
params
.
id
=
this
.
routeInfo
.
id
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
// console.log(res,'1212121212');
console
.
log
(
res
,
'1212121212'
)
this
.
materialAddForm
=
res
if
(
res
.
businessType
)
{
this
.
materialAddForm
.
businessType
=
this
.
materialGroupAddForm
.
businessType
.
split
(
','
)
if
(
this
.
materialAddForm
.
businessType
)
{
const
businessTypeArr
=
this
.
materialAddForm
.
businessType
.
split
(
','
)
this
.
materialAddForm
.
businessType
=
businessTypeArr
.
map
(
item
=>
parseInt
(
item
))
}
else
{
this
.
materialGroupAddForm
.
businessType
=
[]
this
.
materialAddForm
.
businessType
=
[]
}
this
.
$refs
.
textBox
.
setEdit
(
this
.
materialAddForm
.
materialUrl
)
if
(
this
.
materialAddForm
.
tagJson
)
{
this
.
taggingList
=
eval
(
this
.
materialAddForm
.
tagJson
)
this
.
tagging
=
this
.
taggingList
.
map
(
item
=>
{
return
{
labelGroup
:
{
id
:
item
.
groupId
,
name
:
item
.
groupName
},
labelList
:
[
{
id
:
item
.
labelId
,
name
:
item
.
labelName
}
],
labelType
:
item
.
groupType
}
})
}
if
(
res
.
isNotifySender
==
0
)
{
this
.
material
Group
AddForm
.
isNotifySender
=
true
this
.
materialAddForm
.
isNotifySender
=
true
}
else
{
this
.
material
Group
AddForm
.
isNotifySender
=
false
this
.
materialAddForm
.
isNotifySender
=
false
}
})
},
...
...
@@ -331,7 +347,7 @@ export default {
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
// console.log(res)
this
.
materialAddForm
.
materialUrl
=
res
.
data
this
.
materialAddForm
.
materialUrl
=
res
}
})
}
...
...
@@ -354,7 +370,7 @@ export default {
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
// console.log(res)
this
.
materialAddForm
.
titleUrl
=
res
.
data
this
.
materialAddForm
.
titleUrl
=
res
}
})
}
...
...
@@ -393,11 +409,18 @@ export default {
var
params
=
this
.
getParams
()
params
.
status
=
0
params
.
isNotifySender
=
-
1
params
.
tagJson
=
JSON
.
stringify
(
this
.
taggingList
)
if
(
this
.
materialAddForm
.
isNotifySender
)
{
params
.
isNotifySender
=
0
}
let
material
if
(
params
.
id
)
{
material
=
'materialEdit'
}
else
{
material
=
'materialInsert'
}
console
.
log
(
params
,
'paramsw2wwww'
)
this
.
$apis
.
material
.
materialInsert
(
params
).
then
(
res
=>
{
this
.
$apis
.
material
[
material
]
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
({
message
:
'创建成功'
,
...
...
@@ -478,13 +501,56 @@ export default {
},
// 删除上传图片
deleteImg
()
{
this
.
materialAddForm
.
imag
eUrl
=
''
this
.
materialAddForm
.
titl
eUrl
=
''
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.input-tag-wrapper
{
max-height
:
75px
;
overflow
:
auto
;
position
:
relative
;
font-size
:
14px
;
background-color
:
#fff
;
background-image
:
none
;
border-radius
:
4px
;
border
:
1px
solid
#dcdfe6
;
box-sizing
:
border-box
;
color
:
#666
;
display
:
inline-block
;
outline
:
none
;
padding
:
5px
5px
0px
5px
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450px
;
display
:
flex
;
align-items
:
center
;
margin-top
:
6px
;
font-size
:
14px
;
i
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
}
.el-tag
{
margin-right
:
4px
;
height
:
26px
;
line-height
:
24px
;
margin-bottom
:
5px
;
//
background
:
#fff
!important
;
}
.tag-input
{
background
:
transparent
;
border
:
none
!important
;
font-size
:
14px
;
height
:
32px
;
outline
:
none
;
padding-left
:
0
;
width
:
100px
;
}
.creat-material
,
.track
,
.share
,
...
...
@@ -573,6 +639,11 @@ export default {
.view-phone
{
float
:
left
;
margin-right
:
8px
;
.task
{
width
:
104px
;
height
:
104px
;
border-radius
:
10px
;
}
}
.put-img
{
width
:
104px
;
...
...
@@ -580,12 +651,9 @@ export default {
border-radius
:
10px
;
display
:
inline-block
;
position
:
relative
;
.img-css
{
height
:
100%
;
width
:
100%
;
border-radius
:
10px
;
display
:
inline-block
;
cursor
:
pointer
;
img
{
width
:
104px
;
height
:
104px
;
}
.mask
{
position
:
absolute
;
...
...
@@ -601,6 +669,10 @@ export default {
text-align
:
center
;
margin-top
:
30%
;
margin-left
:
2px
;
img
{
width
:
16px
;
height
:
16px
;
}
:last-child
{
padding-left
:
12px
;
}
...
...
@@ -655,7 +727,7 @@ export default {
}
.view-phone
{
margin-top
:
75px
;
color
:
#5850ff
color
:
#5850ff
;
}
.avatar
{
width
:
178px
;
...
...
@@ -688,15 +760,21 @@ export default {
&-img
{
width
:
30px
;
height
:
30px
;
background-color
:
#5850ff
;
img
{
width
:
30px
;
height
:
30px
;
}
}
.content-title
{
width
:
100px
;
max-width
:
100px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
font-size
:
10px
;
margin-bottom
:
4px
;
}
.content-word
{
width
:
100px
;
max-
width
:
100px
;
font-size
:
8px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
src/views/material/components/addMaterialGroupDia.vue
View file @
c57ac99
...
...
@@ -6,7 +6,7 @@
<el-input
v-model=
"materialGroupAddForm.materialGroupName"
maxlength=
"8"
show-word-limit
:size=
"size"
placeholder=
"客户跟进"
style=
"width: 567px"
></el-input>
</el-form-item>
<el-form-item
label=
"业务类型:"
prop=
"businessType"
>
<el-checkbox-group
class=
"checkbox-group"
v-model=
"materialGroupAddForm.businessType"
>
<el-checkbox-group
class=
"checkbox-group"
:max=
"3"
v-model=
"materialGroupAddForm.businessType"
>
<el-checkbox
v-for=
"item in businessTypes"
:key=
"item.id"
:label=
"item.dictLabel"
></el-checkbox>
</el-checkbox-group>
</el-form-item>
...
...
src/views/material/components/staffSendDetail.vue
View file @
c57ac99
...
...
@@ -18,7 +18,7 @@ export default {
return
{
url
,
searchForm
:
{
materialId
:
this
.
materialI
d
,
materialId
:
this
.
$route
.
query
.
i
d
,
employeeName
:
''
},
staffSendFormData
:
[
...
...
@@ -70,7 +70,7 @@ export default {
handleReset
()
{
this
.
searchForm
=
{
staffName
:
''
,
materialId
:
this
.
materialId
materialId
:
this
.
$route
.
query
.
id
,
}
this
.
handleSearch
()
}
...
...
src/views/material/components/textBox.vue
View file @
c57ac99
...
...
@@ -10,8 +10,9 @@ export default {
name
:
'textBox'
,
data
()
{
return
{
content
:
''
,
editorOption
:
{},
editor
:
''
,
content
:
''
,
editorOption
:
{}
}
},
mounted
()
{
...
...
@@ -19,21 +20,26 @@ export default {
},
methods
:
{
getEdit
()
{
var
editor
=
new
E
(
'#div-demo'
)
editor
.
config
.
uploadImgShowBase64
=
true
editor
.
config
.
showMenuTooltips
=
true
editor
.
config
.
menuTooltipPosition
=
'down'
editor
.
config
.
height
=
400
editor
.
config
.
width
=
500
editor
.
config
.
uploadVideoServer
=
'/api/upload-video'
editor
.
config
.
excludeMenus
=
[
'code'
]
editor
.
config
.
onchange
=
(
html
)
=>
{
this
.
editor
=
new
E
(
'#div-demo'
)
this
.
editor
.
config
.
uploadImgShowBase64
=
true
this
.
editor
.
config
.
showMenuTooltips
=
true
this
.
editor
.
config
.
menuTooltipPosition
=
'down'
this
.
editor
.
config
.
height
=
400
this
.
editor
.
config
.
width
=
500
this
.
editor
.
config
.
uploadVideoServer
=
'/api/upload-video'
this
.
editor
.
config
.
excludeMenus
=
[
'code'
]
this
.
editor
.
config
.
onchange
=
html
=>
{
// console.log(html);
this
.
content
=
html
// 绑定当前逐渐地值
this
.
$emit
(
'change'
,
this
.
content
)
// 将内容同步到父组件中
}
editor
.
config
.
onchangeTimeout
=
5000
;
editor
.
create
()
this
.
editor
.
config
.
onchangeTimeout
=
5000
this
.
editor
.
create
()
},
setEdit
(
html
)
{
this
.
$nextTick
(()
=>
{
this
.
editor
.
txt
.
html
(
html
)
})
}
}
}
...
...
@@ -43,11 +49,16 @@ export default {
#div-demo
{
margin
:
16px
300px
0
0
;
}
.el-form
.editor
{
margin-top
:
20px
;
.el-form
.editor
{
margin-top
:
20px
;
}
.myQuillEditor
{
background-color
:
#fff
;
height
:
200px
;
}
</
style
>
<
style
>
.w-e-text-container
{
z-index
:
1
!important
;
}
</
style
>
\ No newline at end of file
src/views/material/index.vue
View file @
c57ac99
...
...
@@ -15,7 +15,7 @@
<glsx-combi-form
ref=
"materialFormRef1"
:isEdit=
"isEdit"
:formObj=
"searchForm"
:formData=
"materialFormData1"
:inline=
"true"
></glsx-combi-form>
<glsx-combi-form
ref=
"materialFormRef2"
:isEdit=
"isEdit"
:formObj=
"searchForm"
:formData=
"materialFormData2"
:inline=
"true"
>
<span
slot=
"footer"
slot-scope=
"scope"
class=
"select-pro"
>
<el-button
type=
"primary"
:size=
"size"
@
click=
"
handleSearch(scope)
"
>
查询
</el-button>
<el-button
type=
"primary"
:size=
"size"
@
click=
"
getListApi
"
>
查询
</el-button>
<el-button
type=
"default"
:size=
"size"
@
click=
"handleReset(scope)"
>
重置
</el-button>
</span>
</glsx-combi-form>
...
...
@@ -30,19 +30,23 @@
<el-col
:span=
"19"
>
<div
class=
"right"
:style=
"
{ height: boxHeight }">
<div
class=
"groupTitle"
>
{{
materialGroupName
?
materialGroupName
:
'新车素材组'
}}
(共
{{
materialTableData
.
length
}}
条数据)
</div>
<GLTable
ref=
"materialRef"
:
getListApi=
"getListApi"
:
noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"materialTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
@
sortChange=
"sortChange"
:isCustomHead=
"true"
:customHeadShowList=
"customHeadShowList"
>
<GLTable
ref=
"materialRef"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"materialTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
@
sortChange=
"sortChange"
:isCustomHead=
"true"
:customHeadShowList=
"customHeadShowList"
>
<!-- 素材内容 -->
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
>
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
style=
"text-align: center"
>
<!-- 素材为PDF -->
<span
v-if=
"scope.scope.materialType == 1"
>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
<span
v-if=
"scope.scope.materialType == 1"
class=
"material-content"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName
< 16
"
>
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
<img
src=
"@/assets/material/pdf.png"
alt=
""
>
</span>
<!-- 素材为自定义链接 -->
<span
v-if=
"scope.scope.materialType == 2"
></span>
<!-- 图文 -->
<span
v-if=
"scope.scope.materialType == 3"
>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
<span
v-if=
"scope.scope.materialType == 3"
class=
"material-content"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName
< 16
"
>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
<img
src=
"@/assets/material/car.png"
alt=
""
>
</span>
</div>
...
...
@@ -111,7 +115,6 @@ export default {
introductionDialog
:
false
,
boxHeight
:
''
,
businessTypes
:
[],
getListApi
:
this
.
$apis
.
material
.
materialList
,
materialGroupName
:
''
,
materialFormData1
:
[
{
...
...
@@ -305,7 +308,8 @@ export default {
this
.
boxHeight
=
clientHeight
-
offTop
+
'px'
this
.
findAllDictData
(
'business_type'
)
this
.
firstCome
()
this
.
getListApi
()
console
.
log
(
this
.
$refs
.
materialRef
,
'12312'
);
},
methods
:
{
// 判断是否第一次进入
...
...
@@ -316,9 +320,9 @@ export default {
}
},
// 搜索
handleSearch
()
{
this
.
$refs
.
materialRef
.
refreshTable
()
},
//
handleSearch() {
//
this.$refs.materialRef.refreshTable()
//
},
// 重置
handleReset
()
{
this
.
searchForm
=
{
...
...
@@ -327,7 +331,7 @@ export default {
status
:
''
,
materialName
:
''
}
this
.
handleSearch
()
this
.
getListApi
()
},
// 获取所有业务类型
findAllDictData
(
dictType
)
{
...
...
@@ -404,6 +408,18 @@ export default {
this
.
materialTableData
=
this
.
materialTableData
.
sort
((
a
,
b
)
=>
a
[
fieldName
]
-
b
[
fieldName
])
}
},
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
},
getListApi
()
{
var
params
=
this
.
getParams
()
params
.
pageSize
=
10
,
params
.
pageNum
=
1
this
.
$apis
.
material
.
materialList
(
params
).
then
(
res
=>
{
this
.
materialTableData
=
res
.
data
})
},
// 点击素材组获取素材组素材
getList
(
params
,
item
)
{
console
.
log
(
item
,
'7758'
)
...
...
@@ -412,7 +428,7 @@ export default {
this
.
$apis
.
material
.
materialList
(
params
).
then
(
res
=>
{
this
.
materialTableData
=
res
.
data
})
this
.
handleSearch
()
//
this.handleSearch()
},
// 功能介绍弹框
showIntroductionDialog
()
{
...
...
@@ -436,7 +452,7 @@ export default {
})
if
(
res
.
code
==
'0'
)
{
fn
&&
fn
()
this
.
handleSearch
()
this
.
getListApi
()
}
})
}
...
...
@@ -492,4 +508,19 @@ export default {
.btn-more
{
margin-left
:
10px
;
}
.material-content
{
display
:
flex
;
justify-content
:
space-between
;
.hide-content
{
display
:
inline-block
;
max-width
:
200px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
}
img
{
width
:
36px
;
height
:
36px
;
}
}
</
style
>
>
\ No newline at end of file
src/views/material/materialDetail.vue
View file @
c57ac99
...
...
@@ -53,8 +53,8 @@
<div
class=
"content-item-desc"
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
</div>
<div
class=
"content-item-image"
>
<img
src=
"@/assets/material/car.png"
alt=
""
v-if=
"detailInfo.materialType == 3"
>
<img
src=
"@/assets/material/pdf.png"
alt=
""
v-if=
"detailInfo.materialType == 1"
>
<img
src=
"@/assets/material/car.png"
alt=
""
v-if=
"detailInfo.materialType == 3"
/
>
<img
src=
"@/assets/material/pdf.png"
alt=
""
v-if=
"detailInfo.materialType == 1"
/
>
</div>
</div>
</div>
...
...
@@ -139,7 +139,16 @@
</div>
</div>
<el-dialog
:visible
.
sync=
"visibleImg"
width=
"50%"
:before-close=
"handleClose"
>
<div
slot=
"title"
style=
"height: 18px"
></div>
<div
slot=
"title"
class=
"phone-view"
>
<img
class=
"img-phone"
src=
"@/assets/phone.png"
alt=
""
/>
<div
class=
"phone-content"
>
<div>
{{
detailInfo
.
materialName
}}
</div>
<div
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
<div>
<img
src=
"@/assets/material/car.png"
alt=
""
/>
</div>
</div>
</div>
</el-dialog>
<GLFooter>
<el-button
@
click=
"goback"
type=
"primary"
>
返回
</el-button>
...
...
@@ -161,7 +170,7 @@ export default {
return
{
activeName
:
'staffSendDetail'
,
detailVisible
:
true
,
visibleImg
:
tru
e
,
visibleImg
:
fals
e
,
selectTime
:
[],
routerInfo
:
''
,
detailInfo
:
{},
...
...
@@ -179,7 +188,7 @@ export default {
var
params
=
{}
params
.
id
=
this
.
routerInfo
.
id
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'dhakfh'
)
;
console
.
log
(
res
,
'dhakfh'
)
this
.
detailInfo
=
res
})
},
...
...
@@ -204,9 +213,7 @@ export default {
this
.
overviewInfo
=
res
})
},
handleClick
()
{
},
handleClick
()
{},
detailShowVisible
()
{
this
.
detailVisible
=
!
this
.
detailVisible
},
...
...
@@ -220,7 +227,11 @@ export default {
<
style
lang=
"scss"
scoped
>
.materialDetail
,
.summarization-containner
{
background-color
:
#fff
;
background-color
:
#fff
;
&:nth-child(2)
{
margin-bottom
:
80px
;
}
}
.matrial-detail-unfold
{
cursor
:
pointer
;
...
...
@@ -346,12 +357,13 @@ export default {
color
:
#333333
;
line-height
:
21px
;
}
h
4
{
h
2
{
height
:
26px
;
font-size
:
26px
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
31px
;
line-height
:
30px
;
margin
:
10px
0px
;
}
&
-num
{
font-size
:
16px
;
...
...
@@ -393,4 +405,20 @@ export default {
color
:
#999999
;
line-height
:
20px
;
}
.phone-view
{
height
:
600px
;
position
:
relative
;
.img-phone
{
height
:
80%
;
width
:
40%
;
position
:
absolute
;
top
:
10%
;
left
:
25%
;
}
.phone-content
{
position
:
absolute
;
top
:
20%
;
left
:
30%
;
}
}
</
style
>
\ 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