Commit bff96a03 by 匡雅琴

素材组创建

1 parent a0ed6ca6
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
}, },
mounted() { mounted() {
this.eventBus.$on('addMaterialGroup', data => { this.eventBus.$on('addMaterialGroup', data => {
data.businessType = data.businessType.toString() // data.businessType = data.businessType.toString()
this.$apis.material.addMaterialGroup(data).then(res => { this.$apis.material.addMaterialGroup(data).then(res => {
if (res) { if (res) {
this.getMaterialList() this.getMaterialList()
......
...@@ -7,12 +7,10 @@ ...@@ -7,12 +7,10 @@
</el-button> --> </el-button> -->
<GLButton :size="size" type="primary" fn="新增营销素材" class="el-icon-plus" @click="addMaterial(1)">创建营销素材</GLButton> <GLButton :size="size" type="primary" fn="新增营销素材" class="el-icon-plus" @click="addMaterial(1)">创建营销素材</GLButton>
</div> </div>
<div class="container"> <span @click="showIntroductionDialog">
<span @click="showIntroductionDialog"> 功能介绍
功能介绍 <i class="el-icon-arrow-right"></i>
<i class="el-icon-arrow-right"></i> </span>
</span>
</div>
<div class="container"> <div class="container">
<div class="search-form"> <div class="search-form">
<glsx-combi-form ref="materialFormRef1" :isEdit="isEdit" :formObj="searchForm" :formData="materialFormData1" :inline="true"></glsx-combi-form> <glsx-combi-form ref="materialFormRef1" :isEdit="isEdit" :formObj="searchForm" :formData="materialFormData1" :inline="true"></glsx-combi-form>
...@@ -75,6 +73,7 @@ ...@@ -75,6 +73,7 @@
</div> </div>
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> <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> --> <!-- <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="编辑" @click="addMaterial(2, scope.scope)">编辑</GLButton>
<!-- <GLButton :size="size" type="text" fn="详情" class="el-icon-plus" @click="addMaterial(1)">详情</GLButton> --> <!-- <GLButton :size="size" type="text" fn="详情" class="el-icon-plus" @click="addMaterial(1)">详情</GLButton> -->
...@@ -319,13 +318,14 @@ export default { ...@@ -319,13 +318,14 @@ export default {
} }
] ]
}, },
tableTotal: 4 tableTotal: 0
} }
}, },
mounted() { mounted() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offTop = document.querySelector('.tabelList').offsetTop 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.findAllDictData('business_type')
this.firstCome() this.firstCome()
this.getListApi() this.getListApi()
...@@ -497,6 +497,7 @@ export default { ...@@ -497,6 +497,7 @@ export default {
.main-container { .main-container {
height: 100%; height: 100%;
.top { .top {
display: inline-flex;
span { span {
margin-left: 16px; margin-left: 16px;
font-size: 16px; font-size: 16px;
......
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
<label>*</label> <label>*</label>
素材类型: 素材类型:
</div> </div>
{{ detailInfo.materialType }} <span v-if="detailInfo.materialType == 1">PDF</span>
<span v-if="detailInfo.materialType == 3">图文</span>
</div> </div>
<div class="materialDetail-desc-item"> <div class="materialDetail-desc-item">
<div class="materialDetail-item-name">动态通知:</div> <div class="materialDetail-item-name">动态通知:</div>
...@@ -194,6 +195,7 @@ export default { ...@@ -194,6 +195,7 @@ export default {
getMaterialdetail() { getMaterialdetail() {
var params = {} var params = {}
params.id = this.routerInfo.id params.id = this.routerInfo.id
params.flag = 0
this.$apis.material.materialDetail(params).then(res => { this.$apis.material.materialDetail(params).then(res => {
console.log(res, 'dhakfh') console.log(res, 'dhakfh')
this.detailInfo = res this.detailInfo = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!