Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
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 8aaf32e2
authored
Dec 29, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.3.0' into 'v3.3.0'
修复bug See merge request
!7
2 parents
0b65589c
740c4a07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
src/views/material/addMaterial.vue
src/views/material/addMaterial.vue
View file @
8aaf32e
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
placeholder=
"请输入素材名称"
placeholder=
"请输入素材名称"
maxlength=
"30"
></el-input>
maxlength=
"30"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"素材类型:"
prop=
"materialType"
>
<el-form-item
label=
"素材类型:"
prop=
"materialType"
class=
"materialType"
>
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
:disabled=
"routeInfo.addOrEdit != 1"
>
:disabled=
"routeInfo.addOrEdit != 1"
>
<el-radio
:label=
"1"
>
PDF文件
</el-radio>
<el-radio
:label=
"1"
>
PDF文件
</el-radio>
...
@@ -270,6 +270,7 @@ export default {
...
@@ -270,6 +270,7 @@ export default {
channelType
:
1
,
channelType
:
1
,
merchantAccountLevel
:
[
4
]
merchantAccountLevel
:
[
4
]
},
},
searchContentStorage
:
''
,
materialAddForm
:
{
materialAddForm
:
{
groupId
:
''
,
// 素材组id
groupId
:
''
,
// 素材组id
groupName
:
''
,
groupName
:
''
,
...
@@ -349,7 +350,9 @@ export default {
...
@@ -349,7 +350,9 @@ export default {
clearDrop
()
{
clearDrop
()
{
this
.
pageData
=
{
this
.
pageData
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
40
pageSize
:
40
,
channelType
:
1
,
merchantAccountLevel
:
[
4
]
}
}
this
.
searchContentStorage
=
''
this
.
searchContentStorage
=
''
this
.
dataItems
=
[]
this
.
dataItems
=
[]
...
@@ -383,7 +386,9 @@ export default {
...
@@ -383,7 +386,9 @@ export default {
this
.
searchContentStorage
=
searchValue
this
.
searchContentStorage
=
searchValue
;(
this
.
pageData
=
{
;(
this
.
pageData
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
40
pageSize
:
40
,
channelType
:
1
,
merchantAccountLevel
:
[
4
]
}),
}),
(
this
.
dataItems
=
[])
(
this
.
dataItems
=
[])
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
...
@@ -392,10 +397,7 @@ export default {
...
@@ -392,10 +397,7 @@ export default {
}
else
{
}
else
{
this
.
dataItems
=
[]
this
.
dataItems
=
[]
this
.
loadUpData
(
this
.
loadUpData
(
{
this
.
pageData
,
pageNum
:
1
,
pageSize
:
40
},
''
''
)
)
}
}
...
@@ -485,7 +487,7 @@ export default {
...
@@ -485,7 +487,7 @@ export default {
await
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
await
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
this
.
materialAddForm
=
res
this
.
materialAddForm
=
res
this
.
materialAddForm
.
targetMerchantId
=
res
.
merchantId
+
''
||
''
this
.
materialAddForm
.
targetMerchantId
=
res
.
merchantId
+
''
||
''
this
.
getMaterialList
({
merchant
:
res
.
merchantId
})
this
.
getMaterialList
({
merchant
:
res
.
merchantId
})
if
(
res
.
businessType
)
{
if
(
res
.
businessType
)
{
const
businessTypeArr
=
this
.
materialAddForm
.
businessType
.
split
(
','
)
const
businessTypeArr
=
this
.
materialAddForm
.
businessType
.
split
(
','
)
this
.
materialAddForm
.
businessType
=
businessTypeArr
.
map
(
item
=>
parseInt
(
item
))
this
.
materialAddForm
.
businessType
=
businessTypeArr
.
map
(
item
=>
parseInt
(
item
))
...
@@ -778,6 +780,11 @@ export default {
...
@@ -778,6 +780,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.materialType
{
/deep/.el-form-item__content{
max-width
:
85%
;
}
}
.disableUpload
{
.disableUpload
{
cursor
:
not-allowed
;
cursor
:
not-allowed
;
cursor
:
no-drop
;
cursor
:
no-drop
;
...
...
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