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 1d302eea
authored
Apr 05, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
编辑修改
1 parent
8bb3b7da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
src/views/material/addMaterial.vue
src/views/material/components/textBox.vue
src/views/material/addMaterial.vue
View file @
1d302ee
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-input
v-model=
"materialAddForm.materialName"
:size=
"size"
placeholder=
"请输入素材名称"
maxlength=
"30"
></el-input>
<el-input
v-model=
"materialAddForm.materialName"
:size=
"size"
placeholder=
"请输入素材名称"
maxlength=
"30"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"素材类型:"
prop=
"materialType"
>
<el-form-item
label=
"素材类型:"
prop=
"materialType"
>
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
:disabled=
"routeInfo.addOrEdit == 2"
>
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
:disabled=
"routeInfo.addOrEdit == 2
&& routeInfo.status != 1
"
>
<el-radio
:label=
"1"
>
PDF文件
</el-radio>
<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
:label=
"3"
>
图文
</el-radio>
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
<!-- 选择PDF -->
<!-- 选择PDF -->
<div
v-show=
"materialAddForm.materialType == 1"
>
<div
v-show=
"materialAddForm.materialType == 1"
>
<div
class=
"pdf-show"
>
<div
class=
"pdf-show"
>
<input
type=
"file"
style=
"opacity: 0"
accept=
".pdf"
@
change=
"e => handlePdfChange(e)"
/>
<input
type=
"file"
style=
"opacity: 0"
accept=
".pdf"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
@
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 && routeInfo.status != 1"
>
选择文件
</el-button>
</div>
</div>
<div
v-if=
"pdfUrl"
>
{{
pdfUrl
}}
</div>
<div
v-if=
"pdfUrl"
>
{{
pdfUrl
}}
</div>
</div>
</div>
...
@@ -244,8 +244,9 @@ export default {
...
@@ -244,8 +244,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
console
.
log
(
this
.
routeInfo
)
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
// this.routeInfo.addOrEdit != 1 ? this.forbidEdit(
) : ''
this
.
routeInfo
.
addOrEdit
!=
1
?
(
this
.
routeInfo
.
status
!=
1
?
this
.
forbidEdit
()
:
''
)
:
''
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
materialInsert
()
this
.
materialInsert
()
this
.
getMaterialList
()
this
.
getMaterialList
()
...
...
src/views/material/components/textBox.vue
View file @
1d302ee
...
@@ -68,7 +68,8 @@ export default {
...
@@ -68,7 +68,8 @@ export default {
})
})
},
},
forbidEdit
()
{
forbidEdit
()
{
this
.
editor
.
$textElem
.
attr
(
'contenteditable'
,
false
)
// this.editor.$textElem.attr('contenteditable', false)
this
.
editor
.
disable
()
}
}
}
}
}
}
...
...
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