Commit c55243bc by 王志慧

commit

1 parent 7af7c269
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="add-container"> <div class="add-container">
<div class="title">{{ this.channelForm.channelName }}编辑</div> <div class="title">{{ this.channelForm.channelName }}编辑</div>
<div class="channel-content gl-form-page"> <div class="channel-content gl-form-page">
<el-form ref="ruleForm" :model="channelForm" label-width="154px" :rules="rules"> <el-form ref="ruleForm" :model="channelForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="频道名称:" prop="channelName"> <el-form-item label="频道名称:" prop="channelName">
<el-input v-model="channelForm.channelName" :disabled="isDisabled" maxlength="4"></el-input> <el-input v-model="channelForm.channelName" :disabled="isDisabled" maxlength="4"></el-input>
</el-form-item> </el-form-item>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</el-form-item> </el-form-item>
</span> </span>
<el-form-item label="频道banner:" prop="channelImg"> <el-form-item label="频道banner:" prop="channelImg" style="margin-top:15px;">
<glsx-preview :picOptions="picOptions" :imageUrlArr="channelForm.channelImgArr" @change="changeChannelImg"></glsx-preview> <glsx-preview :picOptions="picOptions" :imageUrlArr="channelForm.channelImgArr" @change="changeChannelImg"></glsx-preview>
<div class="el-form-item__error" v-if="channelImgFlag">请上传频道banner</div> <div class="el-form-item__error" v-if="channelImgFlag">请上传频道banner</div>
</el-form-item> </el-form-item>
......
...@@ -68,14 +68,16 @@ export default { ...@@ -68,14 +68,16 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '频道名称', label: '频道名称',
prop: 'channelName ', prop: 'channelName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.channelName || '--' return cellValue.channelName || '--'
} }
}, },
{ {
label: '频道宣传语', label: '频道宣传语',
prop: 'promotion ', prop: 'promotion',
width: 300,
line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.promotion || '--' return cellValue.promotion || '--'
} }
......
<template> <template>
<div class="activity-content gl-form-page"> <div class="activity-content gl-form-page">
<el-form ref="ruleForm" :model="activityForm" label-width="154px" :rules="rules"> <el-form ref="ruleForm" :model="activityForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="频道卡片主标题:" prop="topicTitle"> <el-form-item label="频道卡片主标题:" prop="topicTitle">
<el-input v-model="activityForm.topicTitle" maxlength="4"></el-input> <el-input v-model="activityForm.topicTitle" maxlength="4"></el-input>
</el-form-item> </el-form-item>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- 具体内容 --> <!-- 具体内容 -->
<div slot="concreteContent" class="concrete-content"> <div slot="concreteContent" class="concrete-content">
<div class="gl-form-page"> <div class="gl-form-page">
<el-form ref="ruleForm" :model="editForm" :rules="rules"> <el-form ref="ruleForm" :model="editForm" size="small" :rules="rules">
<span v-for="(item, index) in editForm.contentList" :key="index" class="line-item"> <span v-for="(item, index) in editForm.contentList" :key="index" class="line-item">
<div class="delect-box" @click="delectContent(index)"> <div class="delect-box" @click="delectContent(index)">
<img class="icon-dele" src="@/assets/channel/dele.png" /> <img class="icon-dele" src="@/assets/channel/dele.png" />
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<el-radio :label="2">上传图片</el-radio> <el-radio :label="2">上传图片</el-radio>
</el-radio-group> </el-radio-group>
<div class="gl-form-page mediaType-content"> <div class="gl-form-page mediaType-content">
<el-form ref="ruleForm" :model="editForm" :rules="rules"> <el-form ref="ruleForm" :model="editForm" size="small" :rules="rules">
<span v-if="editForm.mediaType == 1"> <span v-if="editForm.mediaType == 1">
<el-form-item label="选择视频:" :prop="'contentList.' + 0 + '.mediaUrl'" :rules="rules.mediaCover"> <el-form-item label="选择视频:" :prop="'contentList.' + 0 + '.mediaUrl'" :rules="rules.mediaCover">
<el-select v-model="editForm.contentList[0].mediaUrl" placeholder="请选择视频" @change="changeVideo(0)"> <el-select v-model="editForm.contentList[0].mediaUrl" placeholder="请选择视频" @change="changeVideo(0)">
...@@ -911,7 +911,7 @@ export default { ...@@ -911,7 +911,7 @@ export default {
line-height: 1; line-height: 1;
padding-top: 4px; padding-top: 4px;
position: absolute; position: absolute;
bottom: -30px; bottom: -26px;
left: 154px; left: 154px;
} }
} }
...@@ -942,7 +942,7 @@ export default { ...@@ -942,7 +942,7 @@ export default {
.publicPraise-box { .publicPraise-box {
margin-top: -7px; margin-top: -7px;
/deep/ .el-form-item__label { /deep/ .el-form-item__label {
color: #fff; color: #f1f1f1;
} }
} }
.dele-publicPraise { .dele-publicPraise {
......
<template> <template>
<div class="membrane-content gl-form-page"> <div class="membrane-content gl-form-page">
<el-form ref="ruleForm" :model="membraneForm" label-width="154px" :rules="rules"> <el-form ref="ruleForm" :model="membraneForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="上传类型:" prop="mediaType"> <el-form-item label="上传类型:" prop="mediaType">
<el-radio-group v-model="membraneForm.mediaType" @input="changeMediaType"> <el-radio-group v-model="membraneForm.mediaType" @input="changeMediaType">
<el-radio :label="1">视频</el-radio> <el-radio :label="1">视频</el-radio>
......
<!-- 选择礼包弹窗 --> <!-- 选择礼包弹窗 -->
<template> <template>
<GLDialog class="muti-gift" bigTitle="选择礼包内容" mode="big" :visible.sync="isSelectGiftVisible" :before-close="handleGiftClose" @onOk="handleGiftConfirm" @onCancel="handleGiftClose" v-loading="loading"> <GLDialog class="muti-gift" bigTitle="选择券" mode="big" :visible.sync="isSelectGiftVisible" :before-close="handleGiftClose" @onOk="handleGiftConfirm" @onCancel="handleGiftClose" v-loading="loading">
<div class="flex-default"> <div class="flex-default">
<div class="gift-table"> <div class="gift-table">
<el-tabs class="gift-tabs" v-model="activeName" @tab-click="handleTabClick"> <el-tabs class="gift-tabs" v-model="activeName" @tab-click="handleTabClick">
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
}, },
{ {
label: '剩余库存', label: '剩余库存',
prop: 'stock' prop: 'residueAmount'
} }
] ]
} }
......
<template> <template>
<div class="content-wrap"> <div class="content-wrap">
<div class="container edit-container" style="min-height: 520px !important"> <div class="container edit-container" style="min-height: 520px !important">
<p class="edit-title" id="basic">新增内容</p> <p class="edit-title" id="basic">{{ contentTitle }}</p>
<component :is="currentComponent" ref="componentRef" :merchantChannelId="merchantChannelId" :topicId="topicId" :channelType="channelType"></component> <component :is="currentComponent" ref="componentRef" :merchantChannelId="merchantChannelId" :topicId="topicId" :channelType="channelType"></component>
</div> </div>
<GLFooter> <GLFooter>
...@@ -26,6 +26,7 @@ export default { ...@@ -26,6 +26,7 @@ export default {
}, },
data() { data() {
return { return {
contentTitle: '',
merchantChannelId: this.$route.query.merchantChannelId ? this.$route.query.merchantChannelId : '', //门店频道id merchantChannelId: this.$route.query.merchantChannelId ? this.$route.query.merchantChannelId : '', //门店频道id
topicId: this.$route.query.topicId ? this.$route.query.topicId : '', //频道主题ID topicId: this.$route.query.topicId ? this.$route.query.topicId : '', //频道主题ID
channelType: this.$route.query.channelType ? this.$route.query.channelType : '', //频道类型 channelType: this.$route.query.channelType ? this.$route.query.channelType : '', //频道类型
...@@ -34,6 +35,8 @@ export default { ...@@ -34,6 +35,8 @@ export default {
} }
}, },
created() { created() {
let { $title } = this.$route.query
this.contentTitle = $title ? $title : '新增内容'
//判断显示模块 //判断显示模块
this.judgeModule() this.judgeModule()
//获取视频 //获取视频
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" v-if="scope.scope.contentType == 1" @click="handleConfig(scope.scope)">{{ scope.scope.status == 0 ? '待配置' : '编辑' }}</el-button> <el-button type="text" v-if="scope.scope.contentType == 1" @click="handleConfig(scope.scope)">{{ scope.scope.status == 0 ? '待配置' : '编辑' }}</el-button>
<template v-else> <template v-else>
<el-button type="text" v-if="scope.scope.status == 1&&scope.scope.topStatus == 0" @click="handleTop(scope.scope)">置顶</el-button> <el-button type="text" v-if="scope.scope.status == 1 && scope.scope.topStatus == 0" @click="handleTop(scope.scope)">置顶</el-button>
<el-button type="text" @click="handleAddContent(scope.scope)">编辑</el-button> <el-button type="text" @click="handleAddContent(scope.scope)">编辑</el-button>
<el-button type="text" v-if="scope.scope.status == 1" @click="handleOut(scope.scope, '下架')">下架</el-button> <el-button type="text" v-if="scope.scope.status == 1" @click="handleOut(scope.scope, '下架')">下架</el-button>
<el-button type="text" v-if="scope.scope.status == 2" @click="handleOut(scope.scope, '上架')">上架</el-button> <el-button type="text" v-if="scope.scope.status == 2" @click="handleOut(scope.scope, '上架')">上架</el-button>
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
searchFormData: [], searchFormData: [],
formData: [ formData: [
{ {
label: '频道卡片主主题', label: '频道卡片主标题',
name: 'topicTitle', name: 'topicTitle',
type: 'input', type: 'input',
filter: '1' filter: '1'
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
label: '宣传文案', label: '宣传文案',
prop: 'promotion', prop: 'promotion',
line: 1, line: 1,
minWidth: 200, width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.contentList[0].promotion return cellValue.contentList[0].promotion
}, },
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
label: '活动名称', label: '活动名称',
prop: 'activityName', prop: 'activityName',
width: 150, width: 150,
line:1, line: 1,
filter: '3,4', filter: '3,4',
formatter: cellValue => { formatter: cellValue => {
return cellValue.contentList[0].activityName return cellValue.contentList[0].activityName
...@@ -280,19 +280,19 @@ export default { ...@@ -280,19 +280,19 @@ export default {
res.forEach(item => { res.forEach(item => {
this.tabPaneList.push({ this.tabPaneList.push({
label: item.channelName, label: item.channelName,
name: item.channelType, name: item.channelType + '',
merchantChannelId: item.id merchantChannelId: item.id
}) })
}) })
this.SET_MERCHANT_ID({ id: this.merchantId }) this.SET_MERCHANT_ID({ id: this.merchantId })
this.SET_CHANNEL_STYLE({ channelStyle: res[0].channelStyle }) this.SET_CHANNEL_STYLE({ channelStyle: res[0].channelStyle })
!this.channelType && this.SET_CHANNEL_TYPE({ channelType: res[0].channelType }) !this.channelType && this.SET_CHANNEL_TYPE({ channelType: res[0].channelType })
this.activeName = res[0].channelType this.activeName = res[0].channelType + ''
this.merchantChannelId = res[0].id this.merchantChannelId = res[0].id
this.tabPaneText = res[0].channelName this.tabPaneText = res[0].channelName
this.isFlag = true this.isFlag = true
if (this.channelType) { if (this.channelType) {
this.activeName = this.channelType this.activeName = this.channelType + ''
this.handleClick() this.handleClick()
} }
}) })
...@@ -300,14 +300,14 @@ export default { ...@@ -300,14 +300,14 @@ export default {
//新增编辑内容 //新增编辑内容
handleAddContent(val) { handleAddContent(val) {
if (val) { if (val) {
this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&topicId=${val.topicId}&channelType=${this.activeName}`) this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&topicId=${val.topicId}&channelType=${this.activeName}&$title=编辑内容`)
} else { } else {
this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&channelType=${this.activeName}`) this.$router.push(`/store/content?merchantChannelId=${this.merchantChannelId}&channelType=${this.activeName}&$title=新增内容`)
} }
}, },
//膜类待配置 //膜类待配置
handleConfig(val) { handleConfig(val) {
this.$router.push(`/store/content?topicId=${val.topicId}&channelType=-1`) this.$router.push(`/store/content?topicId=${val.topicId}&channelType=-1&$title=新增配置`)
}, },
handleClick() { handleClick() {
this.SET_CHANNEL_TYPE({ channelType: this.activeName }) this.SET_CHANNEL_TYPE({ channelType: this.activeName })
......
...@@ -149,11 +149,9 @@ export default { ...@@ -149,11 +149,9 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '门店名称', label: '门店名称',
prop: 'merchantName ', prop: 'merchantName',
// width: '200', width: '250',
formatter: cellValue => { line:1
return cellValue.merchantName || '-'
}
}, },
{ {
label: '频道个数', label: '频道个数',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!