Commit bff96a03 by 匡雅琴

素材组创建

1 parent a0ed6ca6
......@@ -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()
......
......@@ -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;
......
......@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!