This commit is contained in:
lai
2024-02-04 15:30:46 +08:00
3 changed files with 18 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS"
VITE_APP_CODE = "CN EMS" VITE_APP_CODE = "CN EMS"
# 应用版本 # 应用版本
VITE_APP_VERSION = "2.240201.5" VITE_APP_VERSION = "2.240205.5"
# 接口基础URL地址-不带/后缀 # 接口基础URL地址-不带/后缀
VITE_API_BASE_URL = "/omc-api" VITE_API_BASE_URL = "/omc-api"

View File

@@ -66,7 +66,7 @@ onMounted(() => {
> >
<div class="card-cdr-item"> <div class="card-cdr-item">
<div> <div>
{{ t('views.dashboard.overview.userActivity.type') }}: {{ t('views.dashboard.overview.userActivity.type') }}:&nbsp;
<span> <span>
<DictTag <DictTag
:options="dict.cdrCallType" :options="dict.cdrCallType"
@@ -76,7 +76,7 @@ onMounted(() => {
</div> </div>
<div></div> <div></div>
<div> <div>
{{ t('views.dashboard.overview.userActivity.time') }}: {{ t('views.dashboard.overview.userActivity.time') }}:&nbsp;
<span :title="parseDateToStr(item.data.releaseTime * 1000)"> <span :title="parseDateToStr(item.data.releaseTime * 1000)">
{{ parseDateToStr(item.data.releaseTime * 1000) }} {{ parseDateToStr(item.data.releaseTime * 1000) }}
</span> </span>
@@ -96,12 +96,12 @@ onMounted(() => {
</span> </span>
</div> </div>
<div> <div>
{{ t('views.dashboard.overview.userActivity.duration') }}: {{ t('views.dashboard.overview.userActivity.duration') }}:&nbsp;
<span>{{ parseDuration(item.data.callDuration) }}</span> <span>{{ parseDuration(item.data.callDuration) }}</span>
</div> </div>
</div> </div>
<div> <div>
{{ t('views.dashboard.overview.userActivity.result') }}: {{ t('views.dashboard.overview.userActivity.result') }}:&nbsp;
<span> <span>
<DictTag :options="dict.cdrSipCode" :value="item.data.cause" /> <DictTag :options="dict.cdrSipCode" :value="item.data.cause" />
</span> </span>
@@ -115,7 +115,7 @@ onMounted(() => {
> >
<div class="card-ue-item"> <div class="card-ue-item">
<div> <div>
{{ t('views.dashboard.overview.userActivity.type') }}: {{ t('views.dashboard.overview.userActivity.type') }}:&nbsp;
<span> <span>
<DictTag :options="dict.ueEventType" :value="item.type" /> <DictTag :options="dict.ueEventType" :value="item.type" />
</span> </span>
@@ -152,7 +152,7 @@ onMounted(() => {
</div> </div>
</div> </div>
<div v-if="item.type === 'auth-result'"> <div v-if="item.type === 'auth-result'">
{{ t('views.dashboard.overview.userActivity.result') }}: {{ t('views.dashboard.overview.userActivity.result') }}:&nbsp;
<span> <span>
<DictTag :options="dict.ueAauthCode" :value="item.data.authCode" /> <DictTag :options="dict.ueAauthCode" :value="item.data.authCode" />
</span> </span>
@@ -162,7 +162,7 @@ onMounted(() => {
<span>{{ t('views.dashboard.overview.userActivity.resultOK') }}</span> <span>{{ t('views.dashboard.overview.userActivity.resultOK') }}</span>
</div> </div>
<div class="card-ue-w33" v-if="item.type === 'cm-state'"> <div class="card-ue-w33" v-if="item.type === 'cm-state'">
{{ t('views.dashboard.overview.userActivity.result') }}: {{ t('views.dashboard.overview.userActivity.result') }}:&nbsp;
<span> <span>
<DictTag :options="dict.ueEventCmState" :value="item.data.status" /> <DictTag :options="dict.ueEventCmState" :value="item.data.status" />
</span> </span>
@@ -227,7 +227,7 @@ onMounted(() => {
"fwdType": "CFB" // CFU,CFB, CFNR, CFNL "fwdType": "CFB" // CFU,CFB, CFNR, CFNL
"fwdParty":"7999", "fwdParty":"7999",
"cause": 200 // 200, 403, 408, 500 .... } "cause": 200 // 200, 403, 408, 500 .... }
https://telnyx.com/resources/sip-response-codes-need-know-2-minutes
主叫callerParty 主叫callerParty
被叫calledParty 被叫calledParty
时长callDuration 时长callDuration
@@ -316,11 +316,11 @@ onMounted(() => {
} }
& .active { & .active {
color: #fff; color: #faad14;
border: 1px #fff solid; border: 1px #faad14 solid;
animation: backInRight 0.3s alternate; animation: backInRight 0.3s alternate;
& span { & span {
color: #fff; color: #faad14;
} }
} }

View File

@@ -83,7 +83,10 @@ function fnGetState() {
}); });
} }
stateTimeout.value = setTimeout(() => fnGetState(), 5_000); stateTimeout.value = setTimeout(() => {
fnGetSkim(); // 获取概览信息
fnGetState();
}, 5_000);
} }
/**获取概览信息 */ /**获取概览信息 */
@@ -138,8 +141,8 @@ function loadData() {
cdrEventSend(); cdrEventSend();
ueEventSend(); ueEventSend();
upfTFSend(0); upfTFSend(0);
upfTFSend(7); // upfTFSend(7);
upfTFSend(30); // upfTFSend(30);
stateInterval.value = setInterval(() => { stateInterval.value = setInterval(() => {
upfTFActive.value = upfTFActive.value >= 2 ? 0 : upfTFActive.value + 1; upfTFActive.value = upfTFActive.value >= 2 ? 0 : upfTFActive.value + 1;
@@ -150,7 +153,6 @@ function loadData() {
} else if (upfTFActive.value === 2) { } else if (upfTFActive.value === 2) {
upfTFSend(0); upfTFSend(0);
} }
fnGetSkim(); // 获取概览信息
}, 10_000); }, 10_000);
} }