update 出售商添加在线状态
All checks were successful
Build image / build (push) Successful in 29s

This commit is contained in:
timerzz 2025-03-28 14:47:43 +08:00
parent f68cdedf87
commit 7cf190dff9
2 changed files with 16 additions and 6 deletions

View File

@ -19,6 +19,9 @@
<template v-else-if="column.key === 'status'">
<a-tag :color="getStatusDict(record.status).color">{{getStatusDict(record.status).title}}</a-tag>
</template>
<template v-else-if="column.key === 'online'">
<a-tag :color="record.online?'success':'red'">{{record.online ? '在线':'离线'}}</a-tag>
</template>
<template v-else-if="column.key === 'ticker'">
<span>{{record.config.ticker}}</span>
</template>
@ -228,13 +231,19 @@ const columns = [
{
title: '抓取时间',
key: 'ticker',
width: 250
width: 150
},
{
title: '状态',
dataIndex: 'status',
key: 'status',
width: 250
width: 150
},
{
title: '在线',
dataIndex: 'online',
key: 'online',
width: 150
},
{
title: '备注',
@ -244,6 +253,7 @@ const columns = [
{
title: '操作',
key: 'opt',
width: 250
}
]

View File

@ -35,15 +35,15 @@ export default defineConfig({
ws: true,
},
'/api/v2/sellers': {
target: 'http://localhost:8081/',
// target: 'https://ht.timerzz.com:20443/',
// target: 'http://localhost:8081/',
target: 'https://ht.timerzz.com:20443/',
changeOrigin: true,
secure: false,
ws: true,
},
'/api/v2/seller': {
target: 'http://localhost:8083/',
// target: 'https://ht.timerzz.com:20443/',
// target: 'http://localhost:8083/',
target: 'https://ht.timerzz.com:20443/',
changeOrigin: true,
secure: false,
ws: true,