处理做市商列表

This commit is contained in:
2026-05-27 14:53:47 +08:00
parent 00972fea53
commit 46f8d918db
3 changed files with 23 additions and 23 deletions

View File

@ -99,7 +99,10 @@ class MQTTClient {
* *
* *
*/ */
this.client.on('reconnect', () => { this.client.on('reconnect',async () => {
const foreignDeviceNo = sessionStorage.getItem('foreign_device_no') || ''
const mqttKey = await initMqttKeyApi({ device_no: foreignDeviceNo })
console.log("initMqttKey result:", mqttKey)
console.log('🔄 MQTT 正在重连...') console.log('🔄 MQTT 正在重连...')
}) })
@ -107,13 +110,10 @@ class MQTTClient {
* *
* *
*/ */
this.client.on('close', async () => { this.client.on('close', () => {
console.log('🔌 MQTT 连接关闭') console.log('🔌 MQTT 连接关闭')
this.isConnected = false this.isConnected = false
const foreignDeviceNo = sessionStorage.getItem('foreign_device_no') || ''
const mqttKey = await initMqttKeyApi({ device_no: foreignDeviceNo })
console.log("initMqttKey result:", mqttKey)
}) })
// 返回客户端实例,便于链式调用或外部访问 // 返回客户端实例,便于链式调用或外部访问

View File

@ -165,7 +165,7 @@ const handleSearch = () => {
const handleReset = () => { const handleReset = () => {
searchForm.value = { searchForm.value = {
accountName: '', accountName: '',
orderId: '', orderId: '2',
tradeType: '', tradeType: '',
dateRange: [initTime.start, initTime.end], dateRange: [initTime.start, initTime.end],
subAccountName: '', subAccountName: '',

View File

@ -3,22 +3,22 @@
*/ */
export const search = [ export const search = [
// 订单类型 // 订单类型
{ // {
label: '订单', // label: '订单',
prop: 'orderId', // prop: 'orderId',
type: 'select' as const, // type: 'select' as const,
options: [ // options: [
{ // {
label: '持仓订单', // label: '持仓订单',
value: '1' // value: '1'
}, // },
{ // {
label: '交易订单', // label: '交易订单',
value: '2' // value: '2'
}, // },
], // ],
width: '140px' // width: '140px'
}, // },
// 账户名 // 账户名
{ {
label: '账户名', label: '账户名',