优化短信日志
This commit is contained in:
parent
670c7596d0
commit
438604c387
@ -7,7 +7,8 @@ export const columns = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id'
|
prop: 'id',
|
||||||
|
width: 80,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '消息标题',
|
label: '消息标题',
|
||||||
|
@ -15,30 +15,31 @@ export const columns = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '日志类型',
|
label: '日志类型',
|
||||||
prop: 'type',
|
prop: 'typeText',
|
||||||
render(record) {
|
// // 此处作为案例,禁止删除
|
||||||
let typeText = ''
|
// render(record) {
|
||||||
switch (record.row.type) {
|
// let typeText = ''
|
||||||
case 1:
|
// switch (record.row.type) {
|
||||||
typeText='登录'
|
// case 1:
|
||||||
break;
|
// typeText='登录'
|
||||||
case 2:
|
// break;
|
||||||
typeText='注册'
|
// case 2:
|
||||||
break;
|
// typeText='注册'
|
||||||
case 3:
|
// break;
|
||||||
typeText='找回密码'
|
// case 3:
|
||||||
break;
|
// typeText='找回密码'
|
||||||
case 4:
|
// break;
|
||||||
typeText='业务'
|
// case 4:
|
||||||
break;
|
// typeText='业务'
|
||||||
case 5:
|
// break;
|
||||||
typeText='其他'
|
// case 5:
|
||||||
break;
|
// typeText='其他'
|
||||||
default:
|
// break;
|
||||||
break;
|
// default:
|
||||||
}
|
// break;
|
||||||
return h('span', typeText || '-');
|
// }
|
||||||
},
|
// return h('span', typeText || '-');
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '模板编号',
|
label: '模板编号',
|
||||||
@ -87,5 +88,6 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
|
width: 180,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<el-descriptions column="2" border>
|
<el-descriptions column="2" border>
|
||||||
<el-descriptions-item label="日志标题:" label-class-name="des-width">{{formData.title}}</el-descriptions-item>
|
<el-descriptions-item label="日志标题:" label-class-name="des-width">{{formData.title}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="日志类型:" label-class-name="des-width">{{getTyepText(formData.type)}}</el-descriptions-item>
|
<el-descriptions-item label="日志类型:" label-class-name="des-width">{{getTyepText(formData.type)}}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="日志类型:" label-class-name="des-width">{{formData.typeText}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="模板编号:">{{formData.number}}</el-descriptions-item>
|
<el-descriptions-item label="模板编号:">{{formData.number}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="接收人手机:">{{formData.receiveMobile}}</el-descriptions-item>
|
<el-descriptions-item label="接收人手机:">{{formData.receiveMobile}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="接收人类型:">{{getReviceType(formData.receiveType)}}</el-descriptions-item>
|
<el-descriptions-item label="接收人类型:">{{getReviceType(formData.receiveType)}}</el-descriptions-item>
|
||||||
@ -98,6 +99,7 @@ const getReviceType =(type)=>{
|
|||||||
}
|
}
|
||||||
return typeText
|
return typeText
|
||||||
}
|
}
|
||||||
|
// 此处作为经典案例,禁止删除
|
||||||
const getTyepText = (type)=>{
|
const getTyepText = (type)=>{
|
||||||
let typeText = ''
|
let typeText = ''
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -39,5 +39,6 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
|
width: 180,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user