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 3e35f70f
authored
Apr 05, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kuangyq_fix_v2.0.0' into 'v2.0.0'
跟进专员 See merge request
!86
2 parents
2ec7f7f7
d4837947
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
src/views/material/addMaterial.vue
src/views/material/components/textBox.vue
src/views/material/index.vue
src/views/material/addMaterial.vue
View file @
3e35f70
...
...
@@ -28,7 +28,7 @@
<div
v-show=
"materialAddForm.materialType == 1"
>
<div
class=
"pdf-show"
>
<input
type=
"file"
style=
"opacity: 0"
accept=
".pdf"
@
change=
"e => handlePdfChange(e)"
/>
<el-button
icon=
"el-icon-plus"
:size=
"size"
>
选择文件
</el-button>
<el-button
icon=
"el-icon-plus"
:size=
"size"
:disabled=
"routeInfo.addOrEdit == 2"
>
选择文件
</el-button>
</div>
<div
v-if=
"pdfUrl"
>
{{
pdfUrl
}}
</div>
</div>
...
...
@@ -42,7 +42,7 @@
</div>
-->
<!-- 选择图文 -->
<div
v-show=
"materialAddForm.materialType == 3"
>
<textBox
@
change=
"writeChange"
ref=
"textBox"
></textBox>
<textBox
@
change=
"writeChange"
ref=
"textBox"
@
forbid=
"forbidEdit"
></textBox>
</div>
<div
class=
"space"
></div>
</el-form-item>
...
...
@@ -245,6 +245,7 @@ export default {
mounted
()
{
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
forbidEdit
()
:
''
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
materialInsert
()
this
.
getMaterialList
()
...
...
@@ -359,7 +360,10 @@ export default {
// })
// },
getListEntBusinessType
()
{
this
.
$apis
.
material
.
getListEntBusinessType
({}).
then
(
res
=>
{
var
params
=
{}
// flag 0-跟进专员调用 1-素材调用
params
.
flag
=
1
this
.
$apis
.
material
.
getListEntBusinessType
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
businessTypes
=
res
}
...
...
@@ -513,6 +517,10 @@ export default {
writeChange
(
val
)
{
this
.
textBoxContent
=
val
},
// 禁用富文本
forbidEdit
()
{
this
.
$refs
.
textBox
.
forbidEdit
()
},
// 打开标签
openLabel
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
...
...
src/views/material/components/textBox.vue
View file @
3e35f70
...
...
@@ -66,6 +66,9 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
editor
.
txt
.
html
(
html
)
})
},
forbidEdit
()
{
this
.
editor
.
$textElem
.
attr
(
'contenteditable'
,
false
)
}
}
}
...
...
src/views/material/index.vue
View file @
3e35f70
...
...
@@ -405,7 +405,10 @@ export default {
// })
// },
getListEntBusinessType
()
{
this
.
$apis
.
material
.
getListEntBusinessType
({}).
then
(
res
=>
{
var
params
=
{}
// flag 0-跟进专员调用 1-素材调用
params
.
flag
=
1
this
.
$apis
.
material
.
getListEntBusinessType
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
businessTypes
=
res
let
idx
=
this
.
materialFormData
.
findIndex
(
item
=>
item
.
name
==
'businessType'
)
...
...
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