Commit c08fce44 by caoyanzhi

update: 微信营销埋点

parent 262275f4
......@@ -3,9 +3,9 @@
<div class="dm-img-item_top" @mouseover="optShow = true" @mouseout="optShow = false">
<img :src="imgData.qcloudImageUrl" alt="" srcset="" />
<div class="dm-img-item_opt" v-show="optShow" v-if="imgData.canEdit !== false">
<i class="fz14 el-icon-edit cursor" @click.stop.prevent="edit"></i>
<i class="iconfont icon-fenzu cursor" @click.stop.prevent="move"></i>
<i class="fz14 el-icon-delete cursor" @click.stop.prevent="del"></i>
<i v-if="$getButtonLimit($buttonCode.marketingEdigImg)" :limit-code="$buttonCode.marketingEdigImg" class="fz14 el-icon-edit cursor" @click.stop.prevent="edit"></i>
<i v-if="$getButtonLimit($buttonCode.marketingMoveGroup)" :limit-code="$buttonCode.marketingMoveGroup" class="iconfont icon-fenzu cursor" @click.stop.prevent="move"></i>
<i v-if="$getButtonLimit($buttonCode.marketingDelImg)" :limit-code="$buttonCode.marketingDelImg" class="fz14 el-icon-delete cursor" @click.stop.prevent="del"></i>
</div>
</div>
<div class="dm-img-item_center">
......
......@@ -2,7 +2,7 @@
<section class="dm-wrap dm-ilib clearfix">
<nav>
<h4 class="text-left pl10">
<el-button style="font-weight: 500;" size="small" type="text" icon="el-icon-plus" @click.stop="addGroup">新建分组</el-button>
<el-button style="font-weight: 500;" size="small" type="text" icon="el-icon-plus" v-if="$getButtonLimit($buttonCode.marketingAddImgGroup)" :limit-code="$buttonCode.marketingAddImgGroup" @click.stop="addGroup">新建分组</el-button>
</h4>
<ul class="dm-ilib-category" :style="scrollStyle">
<li v-for="(v, i) in groupsList" :key="i" @click="changeCate(v)" :class="{ active: listParams.wechatImageGroupId === v.wechatImageGroupId }">
......@@ -15,12 +15,12 @@
<div class="dm-ilib-header">
<h4>
{{ listParams.wechatImageGroupId ? currentGroup.groupName : '所有图片' }}
<i v-if="listParams.wechatImageGroupId" class="el-icon-edit" @click="editGroup"></i>
<i v-if="listParams.wechatImageGroupId" class="el-icon-delete" @click="delGroup"></i>
<i v-if="$getButtonLimit($buttonCode.marketingEditImgGroup) && listParams.wechatImageGroupId" :limit-code="$buttonCode.marketingEditImgGroup" class="el-icon-edit" @click="editGroup"></i>
<i v-if="$getButtonLimit($buttonCode.marketingDelImgGroup) && listParams.wechatImageGroupId" :limit-code="$buttonCode.marketingDelImgGroup" class="el-icon-delete" @click="delGroup"></i>
</h4>
<div class="dm-ilib-opt_right">
<span class="fz12 gray pr10">大小不超过2M</span>
<label class="el-button el-button--primary el-button--small" :class="{ 'is-disabled': upLoadDisabled }"
<label v-if="$getButtonLimit($buttonCode.marketingUploadImg)" :limit-code="$buttonCode.marketingUploadImg" class="el-button el-button--primary el-button--small" :class="{ 'is-disabled': upLoadDisabled }"
>{{ upLoadDisabled ? '上传中...' : '本地上传' }}
<input type="file" style="display:none;" :disabled="upLoadDisabled" accept="image/gif, image/jpeg,image/png" ref="uploader" v-imglibupload="this" />
</label>
......@@ -29,8 +29,8 @@
<div class="dm-ilib-opt">
<div class="dm-ilib-opt_left">
<el-checkbox style="background:#fff;" :indeterminate="isIndeterminate" v-model="checkAll" label="全选" border @change="handleCheckAllChange"></el-checkbox>
<el-button class="pl20" type="text" @click="moveImgGroupBatch">移动分组</el-button>
<el-button type="text" @click="delBatchImg">删除</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingMoveGroup)" :limit-code="$buttonCode.marketingMoveGroup" class="pl20" type="text" @click="moveImgGroupBatch">移动分组</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingDelImg)" :limit-code="$buttonCode.marketingDelImg" type="text" @click="delBatchImg">删除</el-button>
</div>
</div>
<div v-loading="loading">
......
......@@ -7,8 +7,8 @@
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf && showSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="loadImgTextList" />
</div>
<div>
<el-button type="primary" @click="add">新建图文</el-button>
<el-button v-if="auto" @click="check">检查同步</el-button>
<el-button type="primary" v-if="$getButtonLimit($buttonCode.marketingAddImgText)" :limit-code="$buttonCode.marketingAddImgText" @click="add">新建图文</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingCheckSync) && auto" :limit-code="$buttonCode.marketingCheckSync" @click="check">检查同步</el-button>
</div>
</div>
<el-radio-group class="dm-imgtext-list" v-model="selectedData" :style="scrollStyle">
......@@ -43,11 +43,11 @@
<el-table-column min-width="100" align="left" prop="creatorName" label="创建人" v-if="$store.state.marketing.openFlag"></el-table-column>
<el-table-column label="操作" align="left" v-if="auto">
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.canEdit !== false" @click="editData(scope.row)">编辑</el-button>
<dm-delete v-if="scope.row.canEdit !== false" @confirm="delData(scope.row)" tips="确认删除该图文?">
<el-button type="text">删除</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEditImgText) && scope.row.canEdit !== false" :limi-code="$buttonCode.marketingEditImgText" @click="editData(scope.row)">编辑</el-button>
<dm-delete v-if="$getButtonLimit($buttonCode.marketingDelImgText) && scope.row.canEdit !== false" @confirm="delData(scope.row)" tips="确认删除该图文?">
<el-button type="text" :limit-code="$buttonCode.marketingDelImgText">删除</el-button>
</dm-delete>
<el-button type="text" v-if="scope.row.canEdit !== false" @click="$router.push('/wechat/record/add/' + scope.row.imageTextId)">使用</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingUseImgText) && scope.row.canEdit !== false" :limit-code="$buttonCode.marketingUseImgText" @click="$router.push('/wechat/record/add/' + scope.row.imageTextId)">使用</el-button>
</template>
</el-table-column>
</el-table>
......
......@@ -12,10 +12,12 @@
<el-checkbox class="vertical-middle" v-model="listParams.hideInvalid" :true-label="1" :false-label="0" label="隐藏已失效" border @change="search"></el-checkbox>
<el-checkbox class="vertical-middle ml0" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="search" />
<el-input v-model="listParams.clerkName" clearable class="vertical-middle w200" placeholder="请输入发送人名称" @change="search"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-tooltip v-if="canSend" class="item" effect="dark" content="本月已使用两次群发" placement="top-start">
<button class="el-button fr el-button--primary is-disabled">新建群发</button>
</el-tooltip>
<el-button v-else class="fr" type="primary" @click="$router.push('/wechat/record/add')">新建群发</el-button>
<template v-if="$getButtonLimit($buttonCode.marketingAddWechatSend)">
<el-tooltip v-if="canSend" class="item" effect="dark" content="本月已使用两次群发" placement="top-start">
<button :limit-code="$buttonCode.marketingAddWechatSend" class="el-button fr el-button--primary is-disabled">新建群发</button>
</el-tooltip>
<el-button v-else class="fr" type="primary" :limit-code="$buttonCode.marketingAddWechatSend" @click="$router.push('/wechat/record/add')">新建群发</el-button>
</template>
</div>
<el-table tooltipEffect="light" :data="recordList" style="width: 100%">
<el-table-column min-width="100" align="left" prop="clerkName" label="用户名称" fixed="left"></el-table-column>
......@@ -66,13 +68,13 @@
</template>
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.contentType === 0 && scope.row.sendStatus === 1 && scope.row.couponType === 1" @click="queryData(scope.row)">数据</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="scope.row.canEdit !== false" tips="是否删除该发送记录?">
<el-button type="text">删除</el-button>
<dm-delete @confirm="delData(scope.row)" v-if="$getButtonLimit($buttonCode.marketingDelWechatSend) && scope.row.canEdit !== false" tips="是否删除该发送记录?">
<el-button :limit-code="$buttonCode.marketingDelWechatSend" type="text">删除</el-button>
</dm-delete>
<dm-delete @confirm="invalidData(scope.row)" v-if="scope.row.contentType === 0 && scope.row.sendType !== 2 && scope.row.sendStatus == 1 && scope.row.canEdit !== false" tips="是否禁用该发送记录?">
<el-button type="text">禁用</el-button>
<dm-delete @confirm="invalidData(scope.row)" v-if="$getButtonLimit($buttonCode.marketingDisableWechatSend) && scope.row.contentType === 0 && scope.row.sendType !== 2 && scope.row.sendStatus == 1 && scope.row.canEdit !== false" tips="是否禁用该发送记录?">
<el-button :limit-code="$buttonCode.marketingDisableWechatSend" type="text">禁用</el-button>
</dm-delete>
<el-button type="text" v-if="scope.row.sendStatus === 0 && scope.row.canEdit !== false" @click="$router.push('/wechat/record/edit/' + scope.row.wechatTeletextId)">编辑</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEditWechatSend) && scope.row.sendStatus === 0 && scope.row.canEdit !== false" :limit-code="$buttonCode.marketingEditWechatSend" @click="$router.push('/wechat/record/edit/' + scope.row.wechatTeletextId)">编辑</el-button>
<el-button type="text" v-if="scope.row.sendStatus !== 0" @click="$router.push('/wechat/record/info/' + scope.row.wechatTeletextId)">详情</el-button>
</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