Преглед изворни кода

更改目标登录账号当前对冲账号在线状态

huangbin пре 4 година
родитељ
комит
c677764c0b

+ 7 - 19
src/goServiceAPI/ermcp/interface.ts

@@ -1,21 +1,9 @@
 export interface GetErmcpOutAccountStatus {
-    accountcurrecnygroup: string;
-    accountcurrency: string;
-    accountid: number;
-    appid: string;
-    authcode: string;
-    brokerid: string;
-    channeladdress: string;
-    channelid: number;
-    connectflag: number;
-    exchangeratecurrencygroup: string;
-    fcid: number;
-    fcname: string;
-    hedgeaccountcode: string;
-    hedgeaccountpwd: string;
-    hedgeaccounttype: number;
-    limit: number;
-    marketid: number;
-    status: number;
-    userproductinfo: string;
+    accountid: number;//资金账号[外部母账户]
+    fcname: string;//期货公司名称
+    handlestatus: number;//处理状态 - 1:登陆Mhp成功 2:登陆Mhp失败 3:登出Mhp
+    marketid: number;//市场ID
+    status: number;//状态 - 1:待开市 2:开市 4:手工休市 5:闭市 10:日终处理开始 11:日终处理成功 12:日终处理失败
+    tradedate: string;//交易日(yyyyMMdd)
+    updatetime: string;//更新时间
 }

+ 4 - 6
src/views/account/accountStatus.vue

@@ -10,8 +10,8 @@
              :pagination="false"
              :locale="{emptyText: '暂无数据'}"
              bordered>
-      <template #connectflag="{ text }">
-        <span :class="[text ? 'success-satus' : 'error-status']">{{ text ? '正常' : '断开' }}</span>
+      <template #handlestatus="{ text }">
+        <span :class="[text === 1 ? 'success-satus' : 'error-status']">{{ text === 1 ? '正常' : '断开' }}</span>
       </template>
     </a-table>
   </div>
@@ -54,9 +54,9 @@ function getAccountList() {
         {
             title: '连接状态',
             align: 'center',
-            dataIndex: 'connectflag',
+            dataIndex: 'handlestatus',
             width: 340,
-            slots: { customRender: 'connectflag' },
+            slots: { customRender: 'handlestatus' },
         },
     ];
     const list = ref<ListType[]>([]);
@@ -69,8 +69,6 @@ function getAccountList() {
     function getAccountStatusList() {
         return GetErmcpOutAccountStatus()
             .then((res) => {
-                console.log(res);
-
                 list.value = res.map((e: GetErmcpOutAccountStatusType, index: number) => {
                     return { ...e, index: index + 1, key: String(index) };
                 });

+ 9 - 38
swagger-to-ts/swagger.ts

@@ -1,41 +1,12 @@
 interface HttpRespone {code: number;msg: string;page: number;pagesize: number;total: number;}export interface Enum// 已签约信息
 message BankAccountSign {
- accountcurrecnygroup: :string;
-//,
-  accountcurrency: :string;
-//,
-  accountid: number;
-//,
-  appid: :string;
-//,
-  authcode: :string;
-//,
-  brokerid: :string;
-//,
-  channeladdress: :string;
-//,
-  channelid: number;
-//,
-  connectflag: number;
-//,
-  exchangeratecurrencygroup: :string;
-//,
-  fcid: number;
-//,
-  fcname: :string;
-//,
-  hedgeaccountcode: :string;
-//,
-  hedgeaccountpwd: :string;
-//,
-  hedgeaccounttype: number;
-//,
-  limit:number;
-//: number;
-//,
-  marketid: number;
-//,
-  status: number;
-//,
-  userproductinfo: :string;//}
+accountid	:number;//资金账号[外部母账户]
+fcname	:string;//期货公司名称
+handlestatus	:number;//处理状态 - 1:登陆Mhp成功 2:登陆Mhp失败 3:登出Mhp
+marketid	:number;//市场ID
+status	:number;//状态 - 1:待开市 2:开市 4:手工休市 5:闭市 1number;
+//:日终处理开始 11:日终处理成功 12:日终处理失败
+tradedate	:string;//交易日(yyyyMMdd)
+updatetime	:string;//更新时间
+}
 export interface QueryMarketGoodsRespone extends HttpRespone{data: Enum[];}

+ 20 - 19
swagger-to-ts/swagger.txt

@@ -1,22 +1,23 @@
 // 已签约信息
 message BankAccountSign {
- "accountcurrecnygroup": "string",
-  "accountcurrency": "string",
-  "accountid": 0,
-  "appid": "string",
-  "authcode": "string",
-  "brokerid": "string",
-  "channeladdress": "string",
-  "channelid": 0,
-  "connectflag": 0,
-  "exchangeratecurrencygroup": "string",
-  "fcid": 0,
-  "fcname": "string",
-  "hedgeaccountcode": "string",
-  "hedgeaccountpwd": "string",
-  "hedgeaccounttype": 0,
-  "limitnumber": 0,
-  "marketid": 0,
-  "status": 0,
-  "userproductinfo": "string"
+accountid*	integer
+资金账号[外部母账户]
+
+fcname	string
+期货公司名称
+
+handlestatus	integer
+处理状态 - 1:登陆Mhp成功 2:登陆Mhp失败 3:登出Mhp
+
+marketid	integer
+市场ID
+
+status	integer
+状态 - 1:待开市 2:开市 4:手工休市 5:闭市 10:日终处理开始 11:日终处理成功 12:日终处理失败
+
+tradedate	string
+交易日(yyyyMMdd)
+
+updatetime	string
+更新时间
 }