Commit ccdb4ada by caoyanzhi

update: 模板消息-按钮权限

parent 524bfd97
......@@ -10,7 +10,7 @@
</div>
<div class="msg-tips__right fr">
<span class="fz13 gray pr10" v-if="getTemflag && dateStr">最近一次获取时间:{{ dateStr }}</span>
<el-button type="primary" v-if="getTemflag" @click="syncWechatMessageTemplate">立即获取</el-button>
<el-button type="primary" v-if="$getButtonLimit($buttonCode.marketingGetMsgTemp) && getTemflag" :limit-code="$buttonCode.marketingGetMsgTemp" @click="syncWechatMessageTemplate">立即获取</el-button>
<span class="msg-tips__right--load" v-if="!getTemflag"><i class="el-icon-loading"></i>正在获取...</span>
</div>
</div>
......@@ -29,9 +29,9 @@
</el-table-column>
<el-table-column label="操作" align="left" width="140px" fixed="right">
<template slot-scope="scope">
<el-button v-if="scope.row.bindStatusDesc !== '未绑定' && scope.row.status == 1" type="text" @click="$router.push('/msg/edit/' + scope.row.templateId)">编辑</el-button>
<dm-delete v-if="scope.row.bindStatusDesc !== '未绑定'" @confirm="handleDel(scope.row)" tips="将同步删除公众号后台对应模板,一旦删除无法恢复。您确认吗?">
<el-button type="text">删除</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingEditMsgTemp) && scope.row.bindStatusDesc !== '未绑定' && scope.row.status == 1" :limit-code="$buttonCode.marketingEditMsgTemp" type="text" @click="$router.push('/msg/edit/' + scope.row.templateId)">编辑</el-button>
<dm-delete v-if="$getButtonLimit($buttonCode.marketingDelMsgTemp) && scope.row.bindStatusDesc !== '未绑定'" @confirm="handleDel(scope.row)" tips="将同步删除公众号后台对应模板,一旦删除无法恢复。您确认吗?">
<el-button type="text" :limit-code="$buttonCode.marketingDelMsgTemp">删除</el-button>
</dm-delete>
</template>
</el-table-column>
......
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