update 添加状态
All checks were successful
Build image / build (push) Successful in 31s

This commit is contained in:
timerzz 2025-03-27 18:05:45 +08:00
parent 6391df55ef
commit f68cdedf87
2 changed files with 18 additions and 4 deletions

View File

@ -22,6 +22,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 === 'opt'">
<a-button type="link" :disabled="['provider_status_normal', 'provider_status_error'].indexOf(getStatusDict(record.status).key) < 0" @click="onClickPull(record)">拉取</a-button>
<a-button type="link" :disabled="['provider_status_normal', 'provider_status_error'].indexOf(getStatusDict(record.status).key) < 0" @click="onClickUpdate(record.id)">编辑</a-button>
@ -53,6 +56,9 @@
<a-form-item label="抓取定时" name="config.ticker">
<a-time-picker valueFormat="HH:mm" v-model:value="addModal.data.config.ticker" format="HH:mm" :allowClear="false" />
</a-form-item>
<a-form-item label="停止抓取" name="config.exchangeRate">
<a-switch v-model:checked="addModal.data.config.notCrawl" />
</a-form-item>
<a-form-item label="汇率" name="config.exchangeRate">
<a-input-number v-model:value="addModal.data.config.exchangeRate"></a-input-number>
</a-form-item>
@ -164,6 +170,7 @@ const addModal = reactive({
ticker: '03:00',
exchangeRate: 7.2,
freight: 0,
notCrawl: false,
},
calculateProcess: []
},
@ -239,13 +246,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: '备注',
@ -255,6 +268,7 @@ const columns = [
{
title: '操作',
key: 'opt',
width: 250
}
]

View File

@ -49,8 +49,8 @@ export default defineConfig({
ws: true,
},
'/api/v2/providers': {
target: 'http://localhost:8080/',
// target: 'https://ht.timerzz.com:20443/',
// target: 'http://localhost:8080/',
target: 'https://ht.timerzz.com:20443/',
changeOrigin: true,
secure: false,
ws: true,