修改msdData解析方法
This commit is contained in:
@@ -567,7 +567,15 @@ function wsMessage(res: Record<string, any>) {
|
|||||||
function fnModalVisibleByEdit(record: Record<string, any>) {
|
function fnModalVisibleByEdit(record: Record<string, any>) {
|
||||||
modalState.title = t('common.viewText') + t('views.dashboard.cdr.msd');
|
modalState.title = t('common.viewText') + t('views.dashboard.cdr.msd');
|
||||||
modalState.openByView = true;
|
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;
|
// if (!record || !record.cdrJSON) return;
|
||||||
// const cdrJSON = record.cdrJSON;
|
// const cdrJSON = record.cdrJSON;
|
||||||
// Modal.info({
|
// Modal.info({
|
||||||
@@ -855,7 +863,9 @@ onBeforeUnmount(() => {
|
|||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'msdData'">
|
<template v-if="column.key === 'msdData'">
|
||||||
<a-button type="link" @click.prevent="fnModalVisibleByEdit(record)"
|
<a-button
|
||||||
|
type="link"
|
||||||
|
@click.prevent="fnModalVisibleByEdit(record)"
|
||||||
:disabled="!record.cdrJSON.msdData"
|
:disabled="!record.cdrJSON.msdData"
|
||||||
>
|
>
|
||||||
<template #icon><InfoCircleOutlined /></template>
|
<template #icon><InfoCircleOutlined /></template>
|
||||||
@@ -1019,7 +1029,6 @@ onBeforeUnmount(() => {
|
|||||||
:labelWrap="false"
|
:labelWrap="false"
|
||||||
>
|
>
|
||||||
<a-row :gutter="[32, 4]">
|
<a-row :gutter="[32, 4]">
|
||||||
|
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.dashboard.cdr.messageIdentifier')"
|
:label="t('views.dashboard.cdr.messageIdentifier')"
|
||||||
@@ -1044,8 +1053,6 @@ onBeforeUnmount(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.dashboard.cdr.timestamp')"
|
:label="t('views.dashboard.cdr.timestamp')"
|
||||||
@@ -1070,9 +1077,6 @@ onBeforeUnmount(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a-divider orientation="left">
|
<a-divider orientation="left">
|
||||||
{{ t('views.dashboard.cdr.control') }}
|
{{ t('views.dashboard.cdr.control') }}
|
||||||
</a-divider>
|
</a-divider>
|
||||||
@@ -1122,8 +1126,6 @@ onBeforeUnmount(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a-divider orientation="left">
|
<a-divider orientation="left">
|
||||||
{{ t('views.dashboard.cdr.recentVehicleLocationN1') }}
|
{{ t('views.dashboard.cdr.recentVehicleLocationN1') }}
|
||||||
</a-divider>
|
</a-divider>
|
||||||
@@ -1188,8 +1190,6 @@ onBeforeUnmount(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a-divider orientation="left">
|
<a-divider orientation="left">
|
||||||
{{ t('views.dashboard.cdr.vehicleIdentificationNumber') }}
|
{{ t('views.dashboard.cdr.vehicleIdentificationNumber') }}
|
||||||
</a-divider>
|
</a-divider>
|
||||||
@@ -1234,10 +1234,7 @@ onBeforeUnmount(() => {
|
|||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item :label="t('views.dashboard.cdr.isowmi')" name="isowmi">
|
||||||
:label="t('views.dashboard.cdr.isowmi')"
|
|
||||||
name="isowmi"
|
|
||||||
>
|
|
||||||
<a-input
|
<a-input
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
v-model:value="
|
v-model:value="
|
||||||
|
|||||||
Reference in New Issue
Block a user