Files
DinQuant/frontend/dist/js/11.e5204d5e.js
T

1 line
16 KiB
JavaScript
Raw Normal View History

2026-04-06 23:19:41 +08:00
"use strict";(self["webpackChunkvue_antd_pro"]=self["webpackChunkvue_antd_pro"]||[]).push([[11],{40011:function(e,t,a){a.d(t,{A:function(){return m}});var r=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.$t("profile.exchange.addTitle"),visible:e.visible,"wrap-class-name":e.modalWrapClass,confirmLoading:e.savingExchange,okText:e.$t("common.save"),cancelText:e.$t("common.cancel"),maskClosable:!1,width:"520px"},on:{ok:e.handleSaveExchange,cancel:e.handleCancel}},[t("a-form",{staticClass:"exchange-account-form",attrs:{form:e.exchangeForm,layout:"vertical"}},[t("a-form-item",{attrs:{label:e.$t("profile.exchange.selectExchange")}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["exchange_id",{rules:[{required:!0,message:e.$t("profile.exchange.selectExchange")}]}],expression:"['exchange_id', { rules: [{ required: true, message: $t('profile.exchange.selectExchange') }] }]"}],attrs:{placeholder:e.$t("profile.exchange.selectExchange"),"dropdown-class-name":e.isDarkTheme?"profile-exchange-select-dropdown-dark":"","get-popup-container":e.getExchangeSelectPopupContainer},on:{change:e.handleExchangeTypeChange}},[t("a-select-opt-group",{attrs:{label:e.$t("profile.exchange.typeCrypto")}},e._l(e.cryptoExchangeList,function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" ")])}),1),t("a-select-opt-group",{attrs:{label:e.$t("profile.exchange.typeIBKR")}},[t("a-select-option",{attrs:{value:"ibkr"}},[e._v("Interactive Brokers (IBKR)")])],1),t("a-select-opt-group",{attrs:{label:e.$t("profile.exchange.typeMT5")}},[t("a-select-option",{attrs:{value:"mt5"}},[e._v("MetaTrader 5")])],1)],1)],1),t("a-form-item",{attrs:{label:e.$t("profile.exchange.accountName")}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name"],expression:"['name']"}],attrs:{placeholder:e.$t("profile.exchange.accountNamePlaceholder")}})],1),"crypto"===e.addExchangeType?t("a-form-item",{attrs:{label:e.$t("profile.exchange.whitelistIpLabel")}},[t("div",{staticClass:"egress-ip-block"},[e.egressIpLoading?t("a-spin",{attrs:{size:"small"}}):[t("div",{staticClass:"egress-ip-line"},[t("span",{staticClass:"egress-ip-kind"},[e._v(e._s(e.$t("profile.exchange.whitelistIpv4")))]),t("code",{staticClass:"egress-ip-value"},[e._v(e._s(e.egressServerIpv4||"—"))]),t("a-button",{staticClass:"egress-ip-action",attrs:{type:"link",size:"small",disabled:!e.egressServerIpv4},on:{click:function(t){return e.copyEgressIp("v4")}}},[e._v(" "+e._s(e.$t("profile.exchange.whitelistIpCopy"))+" ")])],1),t("div",{staticClass:"egress-ip-line"},[t("span",{staticClass:"egress-ip-kind"},[e._v(e._s(e.$t("profile.exchange.whitelistIpv6")))]),t("code",{staticClass:"egress-ip-value"},[e._v(e._s(e.egressServerIpv6||"—"))]),t("a-button",{staticClass:"egress-ip-action",attrs:{type:"link",size:"small",disabled:!e.egressServerIpv6},on:{click:function(t){return e.copyEgressIp("v6")}}},[e._v(" "+e._s(e.$t("profile.exchange.whitelistIpCopy"))+" ")])],1),t("div",{staticClass:"egress-ip-row egress-ip-refresh-row"},[t("a-button",{staticClass:"egress-ip-action",attrs:{type:"link",size:"small"},on:{click:e.fetchEgressIp}},[e._v(" "+e._s(e.$t("profile.exchange.whitelistIpRefresh"))+" ")])],1)]],2),t("div",{staticClass:"field-hint egress-ip-hint"},[e._v(e._s(e.$t("profile.exchange.whitelistIpHint")))])]):e._e(),"crypto"===e.addExchangeType?[e.selectedExchangeApiDocUrl?t("div",{staticClass:"exchange-api-doc-callout"},[t("div",{staticClass:"exchange-api-doc-callout__content"},[t("div",{staticClass:"exchange-api-doc-callout__icon"},[t("a-icon",{attrs:{type:"link"}})],1),t("div",{staticClass:"exchange-api-doc-callout__text"},[t("div",{staticClass:"exchange-api-doc-callout__title"},[e._v(" "+e._s(e.selectedCryptoExchangeName)+" "+e._s(e.$t("profile.exchange.apiDocTitleSuffix"))+" ")]),t("div",{staticClass:"exchange-api-doc-callout__hint"},[e._v(" "+e._s(e.$t("profile.exchange.apiDocHint"))+" ")])])]),t("a-button",{staticClass:"exchange-api-doc-callout__action",attrs:{type:"link",size:"small"},on:{click:e.openSelectedExchange