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 bff96a03
authored
Mar 21, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
素材组创建
1 parent
a0ed6ca6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
src/views/material/components/materialGroup.vue
src/views/material/index.vue
src/views/material/materialDetail.vue
src/views/material/components/materialGroup.vue
View file @
bff96a0
...
...
@@ -53,7 +53,7 @@ export default {
},
mounted
()
{
this
.
eventBus
.
$on
(
'addMaterialGroup'
,
data
=>
{
data
.
businessType
=
data
.
businessType
.
toString
()
//
data.businessType = data.businessType.toString()
this
.
$apis
.
material
.
addMaterialGroup
(
data
).
then
(
res
=>
{
if
(
res
)
{
this
.
getMaterialList
()
...
...
src/views/material/index.vue
View file @
bff96a0
...
...
@@ -7,12 +7,10 @@
</el-button>
-->
<GLButton
:size=
"size"
type=
"primary"
fn=
"新增营销素材"
class=
"el-icon-plus"
@
click=
"addMaterial(1)"
>
创建营销素材
</GLButton>
</div>
<div
class=
"container"
>
<span
@
click=
"showIntroductionDialog"
>
功能介绍
<i
class=
"el-icon-arrow-right"
></i>
</span>
</div>
<span
@
click=
"showIntroductionDialog"
>
功能介绍
<i
class=
"el-icon-arrow-right"
></i>
</span>
<div
class=
"container"
>
<div
class=
"search-form"
>
<glsx-combi-form
ref=
"materialFormRef1"
:isEdit=
"isEdit"
:formObj=
"searchForm"
:formData=
"materialFormData1"
:inline=
"true"
></glsx-combi-form>
...
...
@@ -75,6 +73,7 @@
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
<GLButton
type=
"text"
fn=
"详情"
@
click=
"handleDetail(scope.scope)"
>
详情
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"addMaterial(2, scope.scope)"
>
编辑
</el-button>
-->
<GLButton
:size=
"size"
type=
"text"
fn=
"编辑"
@
click=
"addMaterial(2, scope.scope)"
>
编辑
</GLButton>
<!--
<GLButton
:size=
"size"
type=
"text"
fn=
"详情"
class=
"el-icon-plus"
@
click=
"addMaterial(1)"
>
详情
</GLButton>
-->
...
...
@@ -319,13 +318,14 @@ export default {
}
]
},
tableTotal
:
4
tableTotal
:
0
}
},
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
offTop
=
document
.
querySelector
(
'.tabelList'
).
offsetTop
this
.
boxHeight
=
clientHeight
-
offTop
-
20
+
'px'
console
.
log
(
clientHeight
,
offTop
);
this
.
boxHeight
=
clientHeight
-
offTop
-
40
+
'px'
this
.
findAllDictData
(
'business_type'
)
this
.
firstCome
()
this
.
getListApi
()
...
...
@@ -497,6 +497,7 @@ export default {
.main-container
{
height
:
100%
;
.top
{
display
:
inline-flex
;
span
{
margin-left
:
16px
;
font-size
:
16px
;
...
...
src/views/material/materialDetail.vue
View file @
bff96a0
...
...
@@ -38,7 +38,8 @@
<label>
*
</label>
素材类型:
</div>
{{
detailInfo
.
materialType
}}
<span
v-if=
"detailInfo.materialType == 1"
>
PDF
</span>
<span
v-if=
"detailInfo.materialType == 3"
>
图文
</span>
</div>
<div
class=
"materialDetail-desc-item"
>
<div
class=
"materialDetail-item-name"
>
动态通知:
</div>
...
...
@@ -194,6 +195,7 @@ export default {
getMaterialdetail
()
{
var
params
=
{}
params
.
id
=
this
.
routerInfo
.
id
params
.
flag
=
0
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'dhakfh'
)
this
.
detailInfo
=
res
...
...
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