处理做市商列表
This commit is contained in:
parent
00972fea53
commit
46f8d918db
|
|
@ -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)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// 返回客户端实例,便于链式调用或外部访问
|
// 返回客户端实例,便于链式调用或外部访问
|
||||||
|
|
|
||||||
|
|
@ -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: '',
|
||||||
|
|
|
||||||
|
|
@ -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: '账户名',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue