Commit 213b6d61 by caoyanzhi

update: 微信图文升级

parent 6b6e6d8c
......@@ -12,11 +12,11 @@
<el-button v-if="auto" @click="check">检查同步</el-button>
</div>
</div>
<el-radio-group class="dm-imgtext-list" v-model="selectedData" :style="scrollStyle">
<el-radio-group class="dm-imgtext-list" v-model="selectedData.imageTextId" :style="scrollStyle">
<el-table tooltipEffect="light" :data="textImgList" style="width: 100%" @row-click="rowClick">
<el-table-column label="" align="center" v-if="radioShow">
<template slot-scope="scope">
<div class="label-hidden"><el-radio :disabled="disabled" :label="scope.row"></el-radio></div>
<div class="label-hidden"><el-radio :disabled="disabled" :label="scope.row.imageTextId"></el-radio></div>
</template>
</el-table-column>
<el-table-column label="图文信息" align="left" min-width="200px">
......@@ -177,7 +177,7 @@ export default {
watch: {
activeId(val) {
this.textImgList.map(v => {
if (this.activeId === v.imageTextWechatId) {
if (this.activeId === v.imageTextId) {
this.selectedData = v;
}
});
......@@ -235,7 +235,7 @@ export default {
this.textImgList.map(v => {
v.createTimeStr = v.createTime;
// v.updateTimeStr = v.updateTime;
if (this.activeId === v.imageTextWechatId) {
if (this.activeId === v.imageTextId) {
this.selectedData = v;
}
});
......
......@@ -426,7 +426,7 @@ export default {
let res = await saveUpdateWechatImageText({ wechatTeletext: JSON.stringify(params) });
if (res.errorCode === 0) {
this.$tips({ type: 'success', message: type ? '编辑图文成功' : '新建图文成功' });
this.$router.push('/wechat/temp/imgtext');
this.$router.go(-1);
} else {
this.$tips({ type: 'error', message: res.message || type ? '编辑图文失败' : '新建图文失败' });
}
......
......@@ -59,7 +59,7 @@
</el-radio-group>
<div class="pt20">
<div v-show="info.contentType === 0" style="padding:15px; border:1px solid #DCDFE6;border-radius:2px;">
<dm-img-text :isGroupSend="true" :disabled="isInfo" :showSelf="false" :showSelfFlag="showSelfFlag" @get-data="getImgTextData" :radioShow="true" :auto="false" :imageTextId="info.imageTextId" :activeId="info.imageTextWechatId"></dm-img-text>
<dm-img-text :isGroupSend="true" :disabled="isInfo" :showSelf="false" :showSelfFlag="showSelfFlag" @get-data="getImgTextData" :radioShow="true" :auto="false" :imageTextId="info.imageTextId" :activeId="info.imageTextId"></dm-img-text>
</div>
<dm-img-box :isGroupSend="true" :selfSwitch="false" v-show="info.contentType === 2" :mediaId="info.mediaId" @get-data="getImgData"></dm-img-box>
<div v-show="info.contentType === 1">
......
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