This commit is contained in:
parent
6391df55ef
commit
f68cdedf87
@ -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
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user