优化短信日志

This commit is contained in:
zjl 2024-08-30 13:13:05 +08:00
parent 670c7596d0
commit 438604c387
4 changed files with 32 additions and 26 deletions

View File

@ -7,7 +7,8 @@ export const columns = [
},
{
label: 'ID',
prop: 'id'
prop: 'id',
width: 80,
},
{
label: '消息标题',

View File

@ -15,30 +15,31 @@ export const columns = [
},
{
label: '日志类型',
prop: 'type',
render(record) {
let typeText = ''
switch (record.row.type) {
case 1:
typeText='登录'
break;
case 2:
typeText='注册'
break;
case 3:
typeText='找回密码'
break;
case 4:
typeText='业务'
break;
case 5:
typeText='其他'
break;
default:
break;
}
return h('span', typeText || '-');
},
prop: 'typeText',
// // 此处作为案例,禁止删除
// render(record) {
// let typeText = ''
// switch (record.row.type) {
// case 1:
// typeText='登录'
// break;
// case 2:
// typeText='注册'
// break;
// case 3:
// typeText='找回密码'
// break;
// case 4:
// typeText='业务'
// break;
// case 5:
// typeText='其他'
// break;
// default:
// break;
// }
// return h('span', typeText || '-');
// },
},
{
label: '模板编号',
@ -87,5 +88,6 @@ export const columns = [
{
label: '创建时间',
prop: 'createTime',
width: 180,
},
];

View File

@ -10,6 +10,7 @@
<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">{{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.receiveMobile}}</el-descriptions-item>
<el-descriptions-item label="接收人类型:">{{getReviceType(formData.receiveType)}}</el-descriptions-item>
@ -98,6 +99,7 @@ const getReviceType =(type)=>{
}
return typeText
}
//
const getTyepText = (type)=>{
let typeText = ''
switch (type) {

View File

@ -39,5 +39,6 @@ export const columns = [
{
label: '创建时间',
prop: 'createTime',
width: 180,
},
];