Commit 91f78d26 by caoyanzhi

update: 微信图文升级

parent cbcc7c2e
......@@ -59,6 +59,9 @@
<el-table-column label="操作" align="left" v-if="auto" min-width="120px">
<!-- 发布中不能进行编辑、删除、使用等任何操作 -->
<template slot-scope="scope">
<template v-if="scope.row.publishStatus == 1 || isPublish">
<el-button type="text" @click="$router.push('/wechat/check-imgtext/' + scope.row.imageTextId + '?type=' + getWxscType)">查看</el-button>
</template>
<template v-if="scope.row.publishStatus != 1">
<!-- 老图文才有转为草稿 -->
<!-- 转为草稿就是编辑 -->
......@@ -74,7 +77,6 @@
<el-button type="text">删除</el-button>
</dm-delete>
</template>
<template v-else>--</template>
</template>
</el-table-column>
</el-table>
......
......@@ -79,6 +79,15 @@ export default {
}
},
{
path: 'check-imgtext/:id',
name: '查看图文',
component: () => import(/* webpackChunkName: "wechat" */ '../../views/wechat/editor.vue'),
meta: {
type: 'edit',
path: '/wechat/temp/check-imgtext'
}
},
{
path: 'temp',
name: '素材库',
component: () => import(/* webpackChunkName: "wechat" */ '../../views/wechat/temp.vue'),
......
......@@ -108,7 +108,7 @@
</el-dialog>
<preview :show.sync="previewShow" :imgTextList="imgTextList" :firstImgText="firstImgText"></preview>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<el-button type="primary" @click="submit" :loading="subLoading">保 存</el-button>
<el-button type="primary" v-if="$route.path == '/wechat/temp/imgtext'" @click="submit" :loading="subLoading">保 存</el-button>
<el-button @click="previewShow = true">预 览</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
......@@ -221,7 +221,7 @@ export default {
},
created() {
this.getMarketingUserInfo();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理' }, { name: '微信营销', path: '' }, { name: '素材库', path: '/wechat/temp' }, { name: '图文编辑', path: '' }]);
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理' }, { name: '微信营销', path: '' }, { name: '素材库', path: '/wechat/temp' }]);
//监听获取图片 封面图或者正文图片
// eslint-disable-next-line
$bus.$on('img-temp-choose', val => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment