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 0b5eb58e
authored
Mar 18, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整
1 parent
269f82f7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
src/views/material/components/addMaterialGroupDia.vue
src/views/material/components/materialGroup.vue
src/views/material/components/readPerDetail.vue
src/views/material/components/staffSendDetail.vue
src/views/material/index.vue
src/views/material/components/addMaterialGroupDia.vue
View file @
0b5eb58
...
...
@@ -96,7 +96,6 @@ export default {
this
.
$refs
.
materialGroupAddForm
.
validate
(
valid
=>
{
if
(
valid
)
{
// 判断是创建还是编辑
// debugger
if
(
this
.
materialGroupAddForm
.
id
)
{
this
.
eventBus
.
$emit
(
'editMaterialGroup'
,
this
.
materialGroupAddForm
)
this
.
dialogVisible
=
false
...
...
src/views/material/components/materialGroup.vue
View file @
0b5eb58
...
...
@@ -15,7 +15,7 @@
<ul>
<li
@
click=
"handleStick(item)"
>
{{
item
.
orderTime
?
'取消置顶'
:
'置顶'
}}
</li>
<li
@
click=
"handleAddGroup(2,item)"
>
修改
</li>
<li
@
click=
"handleDeleteGroup(item.id)"
>
删除
</li>
<li
@
click=
"handleDeleteGroup(item.id)"
v-if=
"item.isDefault == -1"
>
删除
</li>
</ul>
</div>
<i
slot=
"reference"
class=
"el-icon-more"
></i>
...
...
@@ -53,7 +53,7 @@ export default {
})
this
.
eventBus
.
$on
(
'editMaterialGroup'
,
data
=>
{
data
.
businessType
=
data
.
businessType
.
toString
()
this
.
$apis
.
material
.
add
MaterialGroup
(
data
).
then
(
res
=>
{
this
.
$apis
.
material
.
edit
MaterialGroup
(
data
).
then
(
res
=>
{
if
(
res
)
{
this
.
getMaterialList
()
}
...
...
src/views/material/components/readPerDetail.vue
View file @
0b5eb58
...
...
@@ -6,7 +6,7 @@
<el-button
type=
"primary"
:size=
"size"
@
click=
"handleSearch(scope)"
>
查询
</el-button>
</span>
</glsx-combi-form>
<GLTable
ref=
"readPerDetailRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:
tableData=
"readPerDetailTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal
"
>
<GLTable
ref=
"readPerDetailRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:
pageConf=
"pageConf
"
>
</GLTable>
</div>
</
template
>
...
...
@@ -26,6 +26,7 @@ export default {
materialId
:
this
.
materialId
,
},
getListApi
:
this
.
$apis
.
material
.
readDetailPage
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
readPerDetailFormData
:
[
{
label
:
'名称:'
,
...
...
@@ -69,7 +70,7 @@ export default {
},
{
label
:
'阅读次数'
,
prop
:
'read
Time
'
prop
:
'read
Number
'
},
{
label
:
'首次阅读时间'
,
...
...
src/views/material/components/staffSendDetail.vue
View file @
0b5eb58
...
...
@@ -5,7 +5,7 @@
<el-button
type=
"primary"
:size=
"size"
@
click=
"handleSearch(scope)"
>
查询
</el-button>
</span>
</glsx-combi-form>
<GLTable
ref=
"staffSendDetailRef"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"staffSendTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
></GLTable>
<GLTable
ref=
"staffSendDetailRef"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
></GLTable>
</div>
</
template
>
...
...
@@ -31,6 +31,7 @@ export default {
}
],
getListApi
:
this
.
$apis
.
material
.
sendDetailPage
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
listName
:
'data'
,
tableOption
:
false
,
...
...
src/views/material/index.vue
View file @
0b5eb58
...
...
@@ -29,13 +29,13 @@
</el-col>
<el-col
:span=
"19"
>
<div
class=
"right"
:style=
"
{ height: boxHeight }">
<div
class=
"groupTitle"
>
{{
materialGroupName
?
materialGroupName
:
'默认素材分组'
}}
(共
{{
materialTableData
.
length
}}
条数据)
</div>
<GLTable
ref=
"materialRef"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"materialTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
@
sortChange=
"sortChange"
:isCustomHead=
"true"
:customHeadShowList=
"customHeadShowList"
>
<div
class=
"groupTitle"
>
{{
materialGroupName
?
materialGroupName
:
'默认素材分组'
}}
(共
{{
tableTotal
}}
条数据)
</div>
<GLTable
ref=
"materialRef"
:noDataImg=
"url"
@
refreshTable=
"getListApi"
:layout=
"layout"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"materialTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
@
sortChange=
"sortChange"
:isCustomHead=
"true"
:customHeadShowList=
"customHeadShowList"
>
<!-- 素材内容 -->
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
style=
"text-align: center"
>
<!-- 素材为PDF -->
<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
"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName
.length
< 16
"
>
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
<!--
<img
src=
"@/assets/material/pdf.png"
alt=
""
>
-->
...
...
@@ -45,7 +45,7 @@
<span
v-if=
"scope.scope.materialType == 2"
></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
"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName
.length
< 16
"
>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
<el-popover
...
...
@@ -118,6 +118,8 @@ export default {
status
:
''
,
materialName
:
''
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
materialTableData
:
[],
materialGroupDialog
:
false
,
introductionDialog
:
false
,
...
...
@@ -306,7 +308,6 @@ export default {
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableTotal
:
4
}
},
...
...
@@ -426,10 +427,11 @@ export default {
},
getListApi
()
{
var
params
=
this
.
getParams
()
params
.
pageSize
=
10
,
params
.
pageNum
=
1
params
.
pageSize
=
this
.
$refs
.
materialRef
.
page
.
pageSize
,
params
.
pageNum
=
this
.
$refs
.
materialRef
.
page
.
pageNum
this
.
$apis
.
material
.
materialList
(
params
).
then
(
res
=>
{
this
.
materialTableData
=
res
.
data
this
.
tableTotal
=
res
.
count
})
},
// 点击素材组获取素材组素材
...
...
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