|
|
@@ -10,8 +10,8 @@
|
|
|
:pagination="false"
|
|
|
:locale="{emptyText: '暂无数据'}"
|
|
|
bordered>
|
|
|
- <template #connectflag="{ text }">
|
|
|
- <span :class="[text ? 'success-satus' : 'error-status']">{{ text ? '正常' : '断开' }}</span>
|
|
|
+ <template #handlestatus="{ text }">
|
|
|
+ <span :class="[text === 1 ? 'success-satus' : 'error-status']">{{ text === 1 ? '正常' : '断开' }}</span>
|
|
|
</template>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
@@ -54,9 +54,9 @@ function getAccountList() {
|
|
|
{
|
|
|
title: '连接状态',
|
|
|
align: 'center',
|
|
|
- dataIndex: 'connectflag',
|
|
|
+ dataIndex: 'handlestatus',
|
|
|
width: 340,
|
|
|
- slots: { customRender: 'connectflag' },
|
|
|
+ slots: { customRender: 'handlestatus' },
|
|
|
},
|
|
|
];
|
|
|
const list = ref<ListType[]>([]);
|
|
|
@@ -69,8 +69,6 @@ function getAccountList() {
|
|
|
function getAccountStatusList() {
|
|
|
return GetErmcpOutAccountStatus()
|
|
|
.then((res) => {
|
|
|
- console.log(res);
|
|
|
-
|
|
|
list.value = res.map((e: GetErmcpOutAccountStatusType, index: number) => {
|
|
|
return { ...e, index: index + 1, key: String(index) };
|
|
|
});
|