Commit 00485e11 by zhangmeng

dev

parent 9eb3f621
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.3cba3ebdf6d8d7ffab7780eca8a2d75d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.3e2a22ee87104fc44e91.js></script><script type=text/javascript src=/marketing/static/js/app.1a171dbef50153358a7a.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.ad83662bfef2914de34707924de3b15e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.3e2a22ee87104fc44e91.js></script><script type=text/javascript src=/marketing/static/js/app.3f0b9a9357cfd99afd14.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -74,7 +74,7 @@ export default {
getSingleInfo() {
axios({
method:'post',
url: baseUrl + 'api-member/load-member-single-info?requestProject=member',
url: baseUrl + '/api-member/load-member-single-info?requestProject=member',
data:JSON.stringify({memberId:this.row.memberId}),
headers: {
'content-type':'application/json;charset=utf-8'
......
......@@ -100,7 +100,17 @@ export default {
this.sceneSettingList();
// }
this.$store.commit('mutations_breadcrumb',[{name:'营销管理',path:''},{name:'卡券营销',path:'/card'},{name:'卡券库',path:'/card/list'},{name:'卡券群发',path:''}])
this.$message({type:'warning',duration:10000,message:'风险提示:大规模投放卡券可能导致模板消息被封'});
this.$store.commit('mutations_layoutTips',`<div class="layout--tips">
<i class="el-icon-info"></i>
风险提示:大规模投放卡券可能导致模板消息被封
</div>
`);
setTimeout(_ => {
this.$store.commit('mutations_layoutTips','');
},10000)
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips','');
},
methods:{
getData() {
......
<template>
<el-dialog title="回复" :visible.sync="show" width="80%" :before-close="close">
<el-dialog title="批次记录" :visible.sync="show" width="80%" :before-close="close">
<div class="pb22 clearfix">
<el-input v-model="listParams.memberInfo" class="w200" placeholder="输入会员昵称/名字/手机号" clearable @change="search"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-select class="dm-select" clearable v-model="listParams.success" placeholder="所有条件" @change="search">
......@@ -7,7 +7,7 @@
</el-select>
<el-button icon="iconfont icon-icon_yunxiazai" class="fr" type="primary" @click="exportBatchSendDetails"> 导出列表</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%" v-loading="loading" element-loading-text="拼命加载中" >
<el-table tooltipEffect="light" :data="tableList" height="400" style="width: 100%" v-loading="loading" element-loading-text="拼命加载中" >
<el-table-column type="index" width="50px" label="序号"></el-table-column>
<el-table-column v-for="(v,i) in tableHeader" :type="v.type" :fixed="v.fixed" :show-overflow-tooltip="v.tooltip" :width="v.width" :min-width="v.minWidth" :align="v.align" :key="i" :prop="v.prop" :label="v.label" :formatter="v.formatter">
<template slot-scope="scope">
......
......@@ -79,7 +79,17 @@ export default {
created() {
this.ecmBatchSendInfos();
this.$store.commit('mutations_breadcrumb',[{name:'营销管理',path:''},{name:'智能营销',path:'/ecm'},{name:this.$route.params.name + ' - 批次记录',path:''}]);
this.$message({type:'warning',duration:5000,message:'历史数据限制:2018年11月15日之前的历史营销计划,没有详细数据'});
this.$store.commit('mutations_layoutTips',`<div class="layout--tips">
<i class="el-icon-info"></i>
历史数据限制:2018年11月15日之前的历史营销计划,没有详细数据
</div>
`);
setTimeout(_ => {
this.$store.commit('mutations_layoutTips','');
},5000)
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips','');
},
methods: {
search() {
......
......@@ -49,7 +49,7 @@ export default {
data () {
return {
dateTime:[Date.now() - 30*24*60*60*1000,Date.now()],
successOptions:[{value:'',label:'所有状态'},{value:0,label:'不满足'},{value:1,label:'满足'}],
successOptions:[{value:'',label:'所有状态'},{value:0,label:'成功'},{value:1,label:'失败'}],
listParams:{
ecmPlanId:this.$route.params.id,
ecmMarketingTypeRelationIds:'',
......@@ -97,10 +97,20 @@ export default {
multipleSelection:[],
}
},
beforeDestroy() {
this.$store.commit('mutations_layoutTips','');
},
created() {
this.ecmCurrentSendInfos();
this.$store.commit('mutations_breadcrumb',[{name:'营销管理',path:''},{name:'智能营销',path:'/ecm'},{name:this.$route.params.name + ' - 实时发送记录',path:''}]);
this.$message({type:'warning',duration:5000,message:'历史数据限制:2018年11月15日之前的历史营销计划,没有详细数据'});
this.$store.commit('mutations_layoutTips',`<div class="layout--tips">
<i class="el-icon-info"></i>
历史数据限制:2018年11月15日之前的历史营销计划,没有详细数据
</div>
`);
setTimeout(_ => {
this.$store.commit('mutations_layoutTips','');
},5000)
},
methods: {
handleSelectionChange(val) {
......
......@@ -148,6 +148,12 @@ export const updateImgName = (params) => requests(PREFIX + 'update-marketing-wec
//素材库--图片--新建图片分组
export const addGroupService = (params) => requests(PREFIX + 'save-marketing-wechat-image-group', params);
//素材库--图片--修改图片分组
export const updateGroupName = (params) => requests( PREFIX + 'update-marketing-wechat-image-group', params);
//素材库--图片--删除图片分组
export const deleteGroupService = (params) => requests( PREFIX + 'delete-marketing-wechat-image-group', params);
// 智能营销--ECM营销引擎-- 新建/修改 --回显营销事件类型详情
export const getMarketingTypeDetails = (params) => requests(PREFIX + 'get-marketing-type-details', params);
......
......@@ -29,7 +29,7 @@
<el-table-column :show-overflow-tooltip="false" :width="100" align="left" prop="couponStock" label="库存"></el-table-column>
<el-table-column :show-overflow-tooltip="true" align="left" prop="subName" label="描述"></el-table-column>
</el-table>
<el-pagination v-show="tableList.length" background class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="total, prev, pager, next" :total="total"></el-pagination>
<el-pagination v-show="tableList.length" class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="prev, pager, next" :total="total"></el-pagination>
<span slot="footer" class="dialog-footer">
<el-button @click="close">关 闭</el-button>
<el-button type="primary" @click="addItem">确 定</el-button>
......
......@@ -9,7 +9,10 @@
</nav>
<article class="fr">
<div class="dm-ilib-header">
<h4>{{listParams.wechatImageGroupId?currentGroup.groupName:'所有图片'}}</h4>
<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>
</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}">{{upLoadDisabled?'上传中...':'上传图片'}}
......@@ -27,7 +30,7 @@
</div>
</label>
</el-checkbox-group>
<el-pagination v-show="imgList.length" background class="dm-pagination imglib-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="total, sizes, prev, pager, next" :total="total"></el-pagination>
<el-pagination v-show="imgList.length" class="dm-pagination imglib-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="prev, pager, next" :total="total"></el-pagination>
</article>
</div>
<span slot="footer" class="dialog-footer">
......@@ -38,7 +41,7 @@
</template>
<script>
import {loadImgList,addGroupService} from '../assets/api.js';
import {loadImgList,addGroupService,updateGroupName,deleteGroupService} from '../assets/api.js';
export default {
name:'lib-img',
props:{
......@@ -151,6 +154,51 @@ export default {
}
this.$emit('sendItem',this.selectedData);
this.close();
},
//删除分组
delGroup() {
this.$confirm('是否删除该分组?', '提示', {
confirmButtonText: '确定',
cancelBUttonText: '取消',
type: 'warning'
}).then(() => {
this.deleteGroupService();
}).catch(() => {
this.$tips({type: 'info',message: '已取消删除'});
});
},
async deleteGroupService() {
try {
let res = await deleteGroupService({wechatImageGroupId:this.listParams.wechatImageGroupId});
this.$tips({type: 'success',message: '删除分组成功!'});
this.listParams.wechatImageGroupId = '';
this.loadImgList();
} catch (err) {
this.$tips({type: 'error',message: '删除分组失败!'});
}
},
//编辑分组
editGroup() {
this.$prompt('', '修改分组名称', {
confirmButtonText: '确定',
cancelBUttonText: '取消',
inputPattern: /\S/,
inputPlaceholder:'请输入新名称',
inputErrorMessage: '名称不能为空',
inputValue:this.currentGroup.groupName,
}).then(({ value }) => {
this.updateGroupName(value);
}).catch(() => {
this.$tips({
type: 'info',
message: '取消修改'
});
});
},
async updateGroupName(val) {
let res = await updateGroupName({wechatImageGroupId:this.listParams.wechatImageGroupId,groupName:val});
this.$tips({type: 'success',message: '修改成功'});
this.loadImgList();
}
}
}
......@@ -178,9 +226,16 @@ export default {
line-height: 50px;
font-size: 16px;
i{
font-size: 20px;
font-size: 16px;
padding-left:10px;
cursor: pointer;
color:#909399;
&.el-icon-edit:hover{
color:#1890ff;
}
&.el-icon-delete:hover{
color:#f5222d;
}
}
}
}
......
......@@ -27,7 +27,7 @@
</template>
</el-table-column>
</el-table>
<el-pagination v-show="smsTempList.length" background class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="total, sizes, prev, pager, next" :total="total"></el-pagination>
<el-pagination v-show="smsTempList.length" class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="prev, pager, next" :total="total"></el-pagination>
<span slot="footer" class="dialog-footer">
<el-button @click="close">关 闭</el-button>
<el-button type="primary" @click="addItem">确 定</el-button>
......
......@@ -36,7 +36,7 @@
</el-table-column>
</el-table>
</el-radio-group>
<el-pagination v-show="textImgList.length" background class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="total, sizes, prev, pager, next" :total="total"></el-pagination>
<el-pagination v-show="textImgList.length" class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="listParams.pageSize" layout="prev, pager, next" :total="total"></el-pagination>
<span slot="footer" class="dialog-footer">
<el-button @click="close">关 闭</el-button>
<el-button type="primary" @click="addItem">确 定</el-button>
......
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