1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| <template>
| <a-card
| class="general-card"
| :title="$t('monitor.studioStatus.title.studioStatus')"
| >
| <template #extra>
| <a-tag color="green">{{ $t('monitor.studioStatus.smooth') }}</a-tag>
| </template>
| <a-descriptions layout="horizontal" :data="dataStatus" :column="2">
| <template #label="{ label }">
| <span
| v-if="['mainstream', 'hotStandby', 'coldStandby'].includes(label)"
| >
| <a-typography-text style="padding-right: 8px">
| {{ $t(`monitor.studioStatus.${label}`) }}
| </a-typography-text>
| {{ $t('monitor.studioStatus.bitRate') }}
| </span>
| <span v-else>{{ label }}</span>
| </template>
| </a-descriptions>
| <a-typography-title style="margin-bottom: 16px" :heading="6">
| {{ $t('monitor.studioStatus.title.pictureInfo') }}
| </a-typography-title>
| <a-descriptions layout="horizontal" :data="dataPicture" :column="2" />
| </a-card>
| </template>
|
| <script lang="ts" setup>
| import { computed } from 'vue';
| import { useI18n } from 'vue-i18n';
|
| const { t } = useI18n();
| const dataStatus = computed(() => [
| {
| label: 'mainstream',
| value: '6 Mbps',
| },
| {
| label: t('monitor.studioStatus.frameRate'),
| value: '60',
| },
| {
| label: 'hotStandby',
| value: '6 Mbps',
| },
| {
| label: t('monitor.studioStatus.frameRate'),
| value: '60',
| },
| {
| label: 'coldStandby',
| value: '6 Mbps',
| },
| {
| label: t('monitor.studioStatus.frameRate'),
| value: '60',
| },
| ]);
| const dataPicture = computed(() => [
| {
| label: t('monitor.studioStatus.line'),
| value: '热备',
| },
| {
| label: 'CDN',
| value: 'KS',
| },
| {
| label: t('monitor.studioStatus.play'),
| value: 'FLV',
| },
| {
| label: t('monitor.studioStatus.pictureQuality'),
| value: '原画',
| },
| ]);
| </script>
|
| <style scoped lang="less">
| :deep(.arco-descriptions-item-label) {
| padding-right: 6px;
| }
| </style>
|
|