style: SMSC-CDR结果带result,cause

This commit is contained in:
TsMask
2024-09-27 10:05:45 +08:00
parent 977286d6b3
commit adfce5d2f7

View File

@@ -167,12 +167,12 @@ let tableColumns: ColumnsType = [
dataIndex: 'cdrJSON',
key: 'cause',
align: 'left',
width: 120,
width: 200,
},
{
title: t('views.dashboard.cdr.time'),
dataIndex: 'cdrJSON',
align: 'center',
align: 'left',
width: 150,
customRender(opt) {
const cdrJSON = opt.value;
@@ -673,6 +673,7 @@ onBeforeUnmount(() => {
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'cause'">
<span v-if="record.cdrJSON.result === 0">
{{ t('views.dashboard.cdr.resultFail') }},
<DictTag
:options="dict.cdrCauseCode"
:value="record.cdrJSON.cause"
@@ -734,6 +735,7 @@ onBeforeUnmount(() => {
<div>
<span>{{ t('views.dashboard.cdr.result') }}: </span>
<span v-if="record.cdrJSON.result === 0">
{{ t('views.dashboard.cdr.resultFail') }},
<DictTag
:options="dict.cdrCauseCode"
:value="record.cdrJSON.cause"