3 Commits

Author SHA1 Message Date
lai
5637af9798 取消隐藏分页 2025-09-15 16:20:45 +08:00
lai
acdf580ba5 卡片加高 2025-08-08 10:24:31 +08:00
lai
886fb7a7c0 修改msdData解析方法 2025-08-08 09:51:33 +08:00
5 changed files with 21 additions and 24 deletions

View File

@@ -355,7 +355,7 @@ export default {
callerIdNumber:'Caller Number',
calleeIdNumber:'Callee Number',
startTime:'Start Time',
answeredTime:'Answered Time',
answeredTime:'Answered Time(s)',
callDuration:'Call Duration',
msdData:'MSD Info',
},

View File

@@ -359,7 +359,7 @@ export default {
callerIdNumber:'主叫号码',
calleeIdNumber:'被叫号码',
startTime:'开始时间',
answeredTime:'接听时间',
answeredTime:'接听时间(s)',
callDuration:'通话时长',
msdData:'MSD内容',
},

View File

@@ -567,7 +567,15 @@ function wsMessage(res: Record<string, any>) {
function fnModalVisibleByEdit(record: Record<string, any>) {
modalState.title = t('common.viewText') + t('views.dashboard.cdr.msd');
modalState.openByView = true;
modalState.from = Object.assign(modalState.from, record.cdrJSON.msdData);
let msdDataObj = {};
try {
msdDataObj = JSON.parse(record.cdrJSON.msdData);
} catch (e) {
msdDataObj = {};
}
modalState.from = Object.assign(modalState.from, msdDataObj);
// if (!record || !record.cdrJSON) return;
// const cdrJSON = record.cdrJSON;
// Modal.info({
@@ -855,9 +863,11 @@ onBeforeUnmount(() => {
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'msdData'">
<a-button type="link" @click.prevent="fnModalVisibleByEdit(record)"
:disabled="!record.cdrJSON.msdData"
>
<a-button
type="link"
@click.prevent="fnModalVisibleByEdit(record)"
:disabled="!record.cdrJSON.msdData"
>
<template #icon><InfoCircleOutlined /></template>
</a-button>
</template>
@@ -1019,8 +1029,7 @@ onBeforeUnmount(() => {
:labelWrap="false"
>
<a-row :gutter="[32, 4]">
<a-col :lg="12" :md="12" :xs="24">
<a-col :lg="12" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.messageIdentifier')"
name="messageIdentifier"
@@ -1044,9 +1053,7 @@ onBeforeUnmount(() => {
</a-form-item>
</a-col>
<a-col :lg="12" :md="12" :xs="24">
<a-col :lg="12" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.timestamp')"
name="timestamp"
@@ -1070,9 +1077,6 @@ onBeforeUnmount(() => {
</a-form-item>
</a-col>
<a-divider orientation="left">
{{ t('views.dashboard.cdr.control') }}
</a-divider>
@@ -1122,8 +1126,6 @@ onBeforeUnmount(() => {
</a-form-item>
</a-col>
<a-divider orientation="left">
{{ t('views.dashboard.cdr.recentVehicleLocationN1') }}
</a-divider>
@@ -1188,8 +1190,6 @@ onBeforeUnmount(() => {
</a-form-item>
</a-col>
<a-divider orientation="left">
{{ t('views.dashboard.cdr.vehicleIdentificationNumber') }}
</a-divider>
@@ -1234,10 +1234,7 @@ onBeforeUnmount(() => {
</a-col>
<a-col :lg="12" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.isowmi')"
name="isowmi"
>
<a-form-item :label="t('views.dashboard.cdr.isowmi')" name="isowmi">
<a-input
:disabled="true"
v-model:value="

View File

@@ -134,7 +134,7 @@ export default function useConfigList({
/**指定每页可以显示多少条 */
pageSizeOptions: ['10', '20', '50', '100'],
/**只有一页时是否隐藏分页器 */
hideOnSinglePage: true,
hideOnSinglePage: false,
/**是否可以快速跳转至某页 */
showQuickJumper: true,
/**是否可以改变 pageSize */

View File

@@ -477,7 +477,7 @@ onMounted(() => {
</a-card>
</a-col>
<a-col :lg="collapsible ? 18 : 24" :md="collapsible ? 18 : 24" :xs="24">
<a-card size="small" :bordered="false" :body-style="{ maxHeight: '600px', 'overflow-y': 'auto' }"
<a-card size="small" :bordered="false" :body-style="{ maxHeight: '700px', 'overflow-y': 'auto' }"
:loading="treeState.selectLoading">
<template #title>
<a-button type="text" size="small" @click.prevent="changeCollapsible()">