Commit 13171bc3 by liuchenxi

update: 增加字段啊

parent c0937291
......@@ -2,7 +2,7 @@
<div class="marketing-message mt5">
<div class="search">
<el-date-picker value-format="yyyy-MM-dd" class="w256" :pickerOptions="pickerOptions" v-model="time" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="change"></el-date-picker>
<el-select class="ml10 w160" v-model="search.sysType" placeholder="所有模板类型" clearable @change="change">
<el-select class="ml10 w160" v-model="search.smsType" placeholder="所有模板类型" clearable @change="change">
<el-option v-for="item in sysTypeList" :key="item.id" :value="item.value" :label="item.label" />
</el-select>
</div>
......@@ -60,7 +60,7 @@ export default {
search: {
beginTime: '',
endTime: '',
sysType: null
smsType: null
},
sysTypeList: [
{ label: '普通短信', value: 0 },
......
......@@ -127,13 +127,13 @@ export default {
{
label: "提交时间",
prop: "createDate",
minWidth: 120,
minWidth: 80,
formatter(row) {
return `${dateformat(new Date(row.createDate), 'yyyy-MM-dd hh:mm:ss')}`;
}
},
{ label: "计划名称", prop: "ecmName", minWidth: 120 },
{ label: "营销方式", prop: "marketingType", minWidth: 120, formatter(row) {
{ label: "营销方式", prop: "marketingType", minWidth: 60, formatter(row) {
const type = row.marketingType;
switch(type) {
case 'integral':
......@@ -155,13 +155,15 @@ export default {
case 'card':
return '卡券';
}
} }
}
},
{ label: '营销内容', prop: "eventTitle", minWidth: 180 }
];
this.cardTableData.tableHeader = [
{
label: "投放时间",
prop: "createDate",
minWidth: 120,
minWidth: 80,
formatter(row) {
return `${dateformat(new Date(row.createDate), 'yyyy-MM-dd hh:mm:ss')}`;
}
......@@ -169,14 +171,14 @@ export default {
{
label: "领取时间",
prop: "receiveTime",
minWidth: 120,
minWidth: 80,
formatter(row) {
return `${dateformat(new Date(row.receiveTime), 'yyyy-MM-dd hh:mm:ss')}`;
}
},
{ label: "卡券名称", prop: "cardName", minWidth: 120, },
{ label: "卡券代码", prop: "cardCode", minWidth: 120, },
{ label: "卡券类型", prop: "cardType", minWidth: 120, formatter(row) {
{ label: "卡券名称", prop: "cardName", minWidth: 100, },
{ label: "卡券代码", prop: "cardCode", minWidth: 100, },
{ label: "卡券类型", prop: "cardType", minWidth: 60, formatter(row) {
const type = row.cardType;
switch(type) {
case 1:
......@@ -189,33 +191,33 @@ export default {
}
},
{ label: "投放途径", prop: "receiveCode", minWidth: 120, },
{ label: "来源明细", prop: "", minWidth: 120, }
{ label: "来源明细", prop: "receiveTypeExcel", minWidth: 120, }
];
this.messageTableData.tableHeader = [
{
label: "发送时间",
prop: "createDate",
minWidth: 120,
minWidth: 80,
formatter(row) {
return `${dateformat(new Date(row.createDate), 'yyyy-MM-dd hh:mm:ss')}`;
}
},
{ label: "模板类型", prop: "smsType", minWidth: 120, formatter(row) {
{ label: "模板类型", prop: "smsType", minWidth: 50, formatter(row) {
return row.smsType == 1 ? '营销短信' : '普通短信'
} },
{ label: "模板名称", prop: "smsTitle", minWidth: 120, },
{ label: "模板内容", prop: "smsContent", minWidth: 120 }
{ label: "模板名称", prop: "smsTitle", minWidth: 60, },
{ label: "模板内容", prop: "smsContent", minWidth: 220 }
];
this.wechatTableData.tableHeader = [
{
label: "提交时间",
prop: "createDate",
minWidth: 120,
minWidth: 80,
formatter(row) {
return `${dateformat(row.createDate, 'yyyy-MM-dd hh-mm-ss')}`;
}
},
{ label: "素材类型", prop: "contentType",minWidth: 120, formatter(row) {
{ label: "素材类型", prop: "contentType",minWidth: 60, formatter(row) {
const type = row.contentType;
switch(type) {
case 0:
......@@ -227,7 +229,7 @@ export default {
}
}
},
{ label: "素材标题/文本内容", prop: "title",minWidth: 120,formatter(row) {
{ label: "素材标题/文本内容", prop: "title",minWidth: 220,formatter(row) {
return row.title;
}
}
......
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