diff --git a/STRATEGY.CN.md b/STRATEGY.CN.md index 31f8e60..361f33b 100644 --- a/STRATEGY.CN.md +++ b/STRATEGY.CN.md @@ -286,9 +286,10 @@ Position.Symbol = "ETHUSDT" // 交易对 Position.EntryPrice = 2500.2 // 持仓价格 Position.MarkPrice = 2400.2 // 当前的标记价格 Position.Amount = 1.2 // 当前的持仓数量,做空是负数 -Position.UnRealizedProfit = 32.2 // 当前收益 usdt, 亏损是负数 +Position.UnrealizedProfit = 32.2 // 当前收益 usdt, 亏损是负数 Position.Leverage = 3 // 杠杆 -Position.PositionSide = "LONG" // 合约方向 +Position.Side = "LONG" // 合约方向 +Position.Mock = false // 是否是 mock 的数据 ``` ##### 基本趋势涨跌幅 diff --git a/STRATEGY.md b/STRATEGY.md index abee2ac..cd8b39c 100644 --- a/STRATEGY.md +++ b/STRATEGY.md @@ -284,14 +284,15 @@ NowSymbolHigh = 2840.3 > string -> float: float(Position.xxx) ``` -ORI = 10.2 -Position.EntryPrice = "2500.2" -Position.MarkPrice = "2400.2" -Position.PositionAmt = "100.2" -Position.UnRealizedProfit = "32.2" -Position.Leverage = "3" -Position.PositionSide = "LONG" -Position.MarginType = "CROSS" +ORI = 10.2 // profit % +Position.Symbol = "ETHUSDT" +Position.EntryPrice = 2500.2 +Position.MarkPrice = 2400.2 +Position.Amount = 1.2 +Position.UnrealizedProfit = 32.2 +Position.Leverage = 3 +Position.Side = "LONG" +Position.Mock = false // is mock data ``` ##### basic trend(change percent) diff --git a/static/css/chunk-113c185c.0729eea3.css b/static/css/chunk-4ffb66b7.0729eea3.css similarity index 100% rename from static/css/chunk-113c185c.0729eea3.css rename to static/css/chunk-4ffb66b7.0729eea3.css diff --git a/static/css/chunk-6d50eed1.329dbe9f.css b/static/css/chunk-7367776c.329dbe9f.css similarity index 100% rename from static/css/chunk-6d50eed1.329dbe9f.css rename to static/css/chunk-7367776c.329dbe9f.css diff --git a/static/css/chunk-bde78124.329dbe9f.css b/static/css/chunk-7e00b3b1.329dbe9f.css similarity index 100% rename from static/css/chunk-bde78124.329dbe9f.css rename to static/css/chunk-7e00b3b1.329dbe9f.css diff --git a/static/index.html b/static/index.html index 6a984b8..b759d33 100644 --- a/static/index.html +++ b/static/index.html @@ -1 +1 @@ -币安量化交易
\ No newline at end of file +币安量化交易
\ No newline at end of file diff --git a/static/js/app.bb9a8db8.js b/static/js/app.e370f6fe.js similarity index 99% rename from static/js/app.bb9a8db8.js rename to static/js/app.e370f6fe.js index 9e64ae8..c1e45d6 100644 --- a/static/js/app.bb9a8db8.js +++ b/static/js/app.e370f6fe.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0781":function(e,t,n){"use strict";n.r(t);var i=n("24ab"),a=n.n(i),o=n("83d6"),s=n.n(o),r=s.a.showSettings,c=s.a.tagsView,l=s.a.fixedHeader,u=s.a.sidebarLogo,d=s.a.supportPinyinSearch,h={theme:a.a.theme,showSettings:r,tagsView:c,fixedHeader:l,sidebarLogo:u,supportPinyinSearch:d},p={CHANGE_SETTING:function(e,t){var n=t.key,i=t.value;e.hasOwnProperty(n)&&(e[n]=i)}},m={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:h,mutations:p,actions:m}},"096e":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"0f9a":function(e,t,n){"use strict";n.r(t);var i=n("dd36"),a=n("fee1"),o=(n("452e"),n("90c8"),n("bd1a"),n("b775"));function s(e){return Object(o["a"])({url:"/login",method:"post",data:e})}function r(){return Object(o["a"])({url:"/vue-element-admin/user/logout",method:"post"})}var c=n("5f87"),l=n("a18c"),u={token:Object(c["a"])(),name:"",avatar:"",introduction:"",roles:[]},d={SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t}},h={login:function(e,t){var n=e.commit,i=t.username,a=t.password;return new Promise((function(e,t){s({username:i.trim(),password:a}).then((function(t){var i=t.data;console.log("data",i),n("SET_TOKEN",i.token),Object(c["d"])(i.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit;e.state;return new Promise((function(e,n){var i={roles:["admin"],name:"admin",avatar:"",introduction:"admin"},a=i.roles,o=i.name,s=i.avatar,r=i.introduction;(!a||a.length<=0)&&n("getInfo: roles must be a non-null array!"),t("SET_ROLES",a),t("SET_NAME",o),t("SET_AVATAR",s),t("SET_INTRODUCTION",r),e(i)}))},logout:function(e){var t=e.commit,n=e.state,i=e.dispatch;return new Promise((function(e,a){r(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(c["b"])(),Object(l["d"])(),i("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){a(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(c["b"])(),e()}))},changeRoles:function(e,t){return Object(a["a"])(Object(i["a"])().mark((function n(){var a,o,s,r,u,d;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.commit,o=e.dispatch,s=t+"-token",a("SET_TOKEN",s),Object(c["d"])(s),n.next=6,o("getInfo");case 6:return r=n.sent,u=r.roles,Object(l["d"])(),n.next=11,o("permission/generateRoutes",u,{root:!0});case 11:d=n.sent,l["c"].addRoutes(d),o("tagsView/delAllViews",null,{root:!0});case 14:case"end":return n.stop()}}),n)})))()}};t["default"]={namespaced:!0,state:u,mutations:d,actions:h}},1131:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{staticClass:"international",attrs:{trigger:"click"},on:{command:e.handleSetLanguage}},[n("div",[n("svg-icon",{attrs:{"class-name":"international-icon","icon-class":"language"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{disabled:"zh"===e.language,command:"zh"}},[e._v(" 中文 ")]),n("el-dropdown-item",{attrs:{disabled:"en"===e.language,command:"en"}},[e._v(" English ")])],1)],1)},a=[],o={computed:{language:function(){return this.$store.getters.language}},methods:{handleSetLanguage:function(e){this.$i18n.locale=e,this.$store.dispatch("app/setLanguage",e),this.$message({message:"Switch Language Success",type:"success"})}}},s=o,r=n("9bf6"),c=Object(r["a"])(s,i,a,!1,null,null,null);t["a"]=c.exports},"12a5":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},1430:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},1779:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"17df":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"18f0":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2580:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"273d":function(e,t,n){"use strict";n("9214")},2992:function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"2abb":function(e,t,n){"use strict";n("afea")},"2b29":function(e,t,n){"use strict";n("a9b3")},"2f11":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},3046:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"30c3":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"31c2":function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",(function(){return s}));var i=n("8204"),a=(n("e168"),n("d987"),n("90c8"),n("6de1"),n("f2e9"),n("a18c"));function o(e,t){return!0}function s(e,t){var n=[];return e.forEach((function(e){var a=Object(i["a"])({},e);o(t,a)&&(a.children&&(a.children=s(a.children,t)),n.push(a))})),n}var r={routes:[],addRoutes:[]},c={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=a["b"].concat(t)}},l={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var i;i=t.includes("admin")?a["a"]||[]:s(a["a"],t),n("SET_ROUTES",i),e(i)}))}};t["default"]={namespaced:!0,state:r,mutations:c,actions:l}},3289:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"3a82":function(e,t,n){"use strict";n("d3f7")},"3dde":function(e,t,n){"use strict";n("d313")},4360:function(e,t,n){"use strict";n("8b03"),n("90c8"),n("8d8a"),n("9d08"),n("3399");var i=n("ba49"),a=n("8327"),o=(n("452e"),{sidebar:function(e){return e.app.sidebar},language:function(e){return e.app.language},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}),s=o;i["default"].use(a["a"]);var r=n("c653"),c=r.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),i=r(t);return e[n]=i.default,e}),{}),l=new a["a"].Store({modules:c,getters:s});t["a"]=l},"470f":function(e,t,n){},"47f1":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"47ff":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"4d06":function(e,t,n){},"4d49":function(e,t,n){"use strict";n.r(t);n("485c");var i={logs:[]},a={ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},o={addErrorLog:function(e,t){var n=e.commit;n("ADD_ERROR_LOG",t)},clearErrorLog:function(e){var t=e.commit;t("CLEAR_ERROR_LOG")}};t["default"]={namespaced:!0,state:i,mutations:a,actions:o}},"4df5":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(r);t["default"]=r},"51ff":function(e,t,n){var i={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id="51ff"},"56d6":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"56d7":function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"parseTime",(function(){return R["c"]})),n.d(i,"formatTime",(function(){return R["b"]})),n.d(i,"timeAgo",(function(){return N})),n.d(i,"numberFormatter",(function(){return F})),n.d(i,"toThousandFilter",(function(){return $})),n.d(i,"uppercaseFirst",(function(){return U}));n("d299"),n("099a"),n("0b67"),n("5f41"),n("3dd5"),n("5227"),n("90c8"),n("f2e9");var a=n("ba49"),o=(n("d6a9"),n("067c")),s=n.n(o),r=(n("24ab"),n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),c=[],l={name:"App"},u=l,d=n("9bf6"),h=Object(d["a"])(u,r,c,!1,null,null,null),p=h.exports,m=n("4360"),f=n("a18c"),g=n("9923"),v=(n("4cc3"),n("3399"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),b=[],w=n("61f7"),y={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(w["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},x=y,T=(n("2b29"),Object(d["a"])(x,v,b,!1,null,"f9f7fefc",null)),C=T.exports;a["default"].component("svg-icon",C);var k=n("51ff"),S=function(e){return e.keys().map(e)};S(k);var A=n("dd36"),E=n("8204"),V=n("fee1"),O=n("e44a"),z=n.n(O),L=(n("50e8"),n("5f87")),M=(n("e168"),n("83d6")),P=n.n(M),H=P.a.title||"Vue Element Admin";function B(e){var t=g["a"].te("route.".concat(e));if(t){var n=g["a"].t("route.".concat(e));return"".concat(n," - ").concat(H)}return"".concat(H)}z.a.configure({showSpinner:!1});var D=["/login","/auth-redirect"];f["c"].beforeEach(function(){var e=Object(V["a"])(Object(A["a"])().mark((function e(t,n,i){var a,s,r,c,l;return Object(A["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(z.a.start(),document.title=B(t.meta.title),a=Object(L["a"])(),!a){e.next=35;break}if("/login"!==t.path){e.next=9;break}i({path:"/"}),z.a.done(),e.next=33;break;case 9:if(s=m["a"].getters.roles&&m["a"].getters.roles.length>0,!s){e.next=14;break}i(),e.next=33;break;case 14:return e.prev=14,e.next=17,m["a"].dispatch("user/getInfo");case 17:return r=e.sent,c=r.roles,e.next=21,m["a"].dispatch("permission/generateRoutes",c);case 21:l=e.sent,f["c"].addRoutes(l),i(Object(E["a"])(Object(E["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,m["a"].dispatch("user/resetToken");case 30:o["Message"].error(e.t0||"Has Error"),i("/login?redirect=".concat(t.path)),z.a.done();case 33:e.next=36;break;case 35:-1!==D.indexOf(t.path)?i():(i("/login?redirect=".concat(t.path)),z.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,n,i){return e.apply(this,arguments)}}()),f["c"].afterEach((function(){z.a.done()}));n("d987"),n("6de1");var I=P.a.errorLog;function _(){var e="production";return Object(w["c"])(I)?e===I:!!Object(w["a"])(I)&&I.includes(e)}_()&&(a["default"].config.errorHandler=function(e,t,n,i){a["default"].nextTick((function(){m["a"].dispatch("errorLog/addErrorLog",{err:e,vm:t,info:n,url:window.location.href}),console.error(e,n)}))});n("7019"),n("374d"),n("37fe"),n("8d8a"),n("fa87"),n("9d08");var R=n("ed08");function j(e,t){return 1===e?e+t:e+t+"s"}function N(e){var t=Date.now()/1e3-Number(e);return t<3600?j(~~(t/60)," minute"):t<86400?j(~~(t/3600)," hour"):j(~~(t/86400)," day")}function F(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=n[i].value)return(e/n[i].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return e.toString()}function $(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}a["default"].use(s.a,{size:"mini",i18n:function(e,t){return g["a"].t(e,t)}}),Object.keys(i).forEach((function(e){a["default"].filter(e,i[e])})),a["default"].config.productionTip=!1,new a["default"]({el:"#app",router:f["c"],store:m["a"],i18n:g["a"],render:function(e){return e(p)}})},"579d":function(e,t,n){},"5c39":function(e,t,n){"use strict";n("8a8b")},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));n("40a4"),n("5227");function i(){return localStorage.getItem("_token")}function a(e){localStorage.setItem("_token",e)}function o(){localStorage.setItem("_token","")}function s(e){localStorage.setItem("_config",JSON.stringify(e))}},"603e":function(e,t,n){},"61f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));n("90c8"),n("8d8a"),n("e17a"),n("fa87"),n("bd1a");function i(e){return/^(https?:|mailto:|tel:)/.test(e)}function a(e){return"string"===typeof e||e instanceof String}function o(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}},6599:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},6683:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},6769:function(e,t,n){"use strict";n("b377")},"708a":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},7509:function(e,t,n){"use strict";n.r(t);var i=n("b8c8"),a=n("424c"),o=n("48dd"),s=(n("3dd5"),n("d987"),n("7019"),n("485c"),n("452e"),n("90c8"),n("6de1"),n("3399"),{visitedViews:[],cachedViews:[]}),r={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,i=Object(o["a"])(e.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var s=Object(a["a"])(n.value,2),r=s[0],c=s[1];if(c.path===t.path){e.visitedViews.splice(r,1);break}}}catch(l){i.e(l)}finally{i.f()}},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,i=Object(o["a"])(e.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===t.path){a=Object.assign(a,t);break}}}catch(s){i.e(s)}finally{i.f()}}},c={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,a=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(i["a"])(a.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(i["a"])(a.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,a=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(i["a"])(a.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(i["a"])(a.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,a=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(i["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(i["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:s,mutations:r,actions:c}},"754d":function(e,t,n){"use strict";n("579d")},"80b2":function(e,t,n){"use strict";n("2992")},"80da":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});s.a.add(r);t["default"]=r},"83d6":function(e,t){e.exports={title:"币安量化交易",showSettings:!1,tagsView:!0,fixedHeader:!0,sidebarLogo:!0,supportPinyinSearch:!1,errorLog:"production"}},8644:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8a8b":function(e,t,n){},"8aa6":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8dd0":function(e,t,n){"use strict";n("aacc")},"8e8d":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8fb7":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"90fb":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9214:function(e,t,n){},"93cd":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9921:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9923:function(e,t,n){"use strict";n.d(t,"b",(function(){return x}));var i=n("8204"),a=(n("5227"),n("ba49")),o=n("b99d"),s=n("4314"),r=n.n(s),c=n("4c1e"),l=n.n(c),u=n("4420"),d=n.n(u),h=n("3eb7"),p=n.n(h),m=n("f0f8"),f=n.n(m),g={route:{dashboard:"Dashboard",documentation:"Documentation",guide:"Guide",permission:"Permission",pagePermission:"Page Permission",rolePermission:"Role Permission",directivePermission:"Directive Permission",icons:"Icons",components:"Components",tinymce:"Tinymce",markdown:"Markdown",jsonEditor:"JSON Editor",dndList:"Dnd List",splitPane:"SplitPane",avatarUpload:"Avatar Upload",dropzone:"Dropzone",sticky:"Sticky",countTo:"Count To",componentMixin:"Mixin",backToTop:"Back To Top",dragDialog:"Drag Dialog",dragSelect:"Drag Select",dragKanban:"Drag Kanban",charts:"Charts",keyboardChart:"Keyboard Chart",lineChart:"Line Chart",mixChart:"Mix Chart",example:"Example",nested:"Nested Routes",menu1:"Menu 1","menu1-1":"Menu 1-1","menu1-2":"Menu 1-2","menu1-2-1":"Menu 1-2-1","menu1-2-2":"Menu 1-2-2","menu1-3":"Menu 1-3",menu2:"Menu 2",Table:"Table",dynamicTable:"Dynamic Table",dragTable:"Drag Table",inlineEditTable:"Inline Edit",complexTable:"Complex Table",tab:"Tab",form:"Form",createArticle:"Create Article",editArticle:"Edit Article",articleList:"Article List",errorPages:"Error Pages",page401:"401",page404:"404",errorLog:"Error Log",excel:"Excel",exportExcel:"Export Excel",selectExcel:"Export Selected",mergeHeader:"Merge Header",uploadExcel:"Upload Excel",zip:"Zip",pdf:"PDF",exportZip:"Export Zip",theme:"Theme",clipboardDemo:"Clipboard",i18n:"I18n",externalLink:"External Link",profile:"Profile",futuresAccount:"Futures Account",futuresTrade:"Futures Trade",futuresTradeOrder:"Futures Trade Order",newCoinRush:"New Coin Rush",newSpotRush:"New Spot Rush",newFuturesRush:"New futures Rush",coinNotice:"Coin Notice",spotNotice:"Spot Notice",futuresNotice:"Futures Notice",marketListen:"Market Listen",spotListen:"Spot Listen",futuresListen:"Futures Listen",fundingRate:"Funding Rate",fundingRateEat:"Arbitrage",systemConfig:"System Config",strategyTemplate:"Strategy Template",testStrategyResult:"Test Strategy Result",spotsTrade:"Spots Trade",deliveryTrade:"Delivery Trade"},navbar:{dashboard:"Dashboard",github:"Github",logOut:"Log Out",profile:"Profile",theme:"Theme",size:"Global Size"},login:{title:"Login Form",logIn:"Login",username:"Username",password:"Password",any:"any",thirdparty:"Or connect with",thirdpartyTips:"Can not be simulated on local, so please combine you own business simulation! ! !"},documentation:{documentation:"Documentation",github:"Github Repository"},permission:{addRole:"New Role",editPermission:"Edit",roles:"Your roles",switchRoles:"Switch roles",tips:"In some cases, using v-permission will have no effect. For example: Element-UI el-tab or el-table-column and other scenes that dynamically render dom. You can only do this with v-if.",delete:"Delete",confirm:"Confirm",cancel:"Cancel"},guide:{description:"The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ",button:"Show Guide"},components:{documentation:"Documentation",tinymceTips:"Rich text is a core feature of the management backend, but at the same time it is a place with lots of pits. In the process of selecting rich texts, I also took a lot of detours. The common rich texts on the market have been basically used, and I finally chose Tinymce. See the more detailed rich text comparison and introduction.",dropzoneTips:"Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.",stickyTips:"when the page is scrolled to the preset position will be sticky on the top.",backToTopTips1:"When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner",backToTopTips2:"You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally",imageUploadTips:"Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version."},table:{dynamicTips1:"Fixed header, sorted by header order",dynamicTips2:"Not fixed header, sorted by click order",dragTips1:"The default order",dragTips2:"The after dragging order",title:"Title",importance:"Imp",type:"Type",remark:"Remark",search:"Search",add:"Add",export:"Export",save:"Save",reviewer:"reviewer",id:"ID",date:"Date",author:"Author",readings:"Readings",status:"Status",actions:"Actions",edit:"Edit",publish:"Publish",draft:"Draft",delete:"Delete",deleteAll:"Delete All",cancel:"Cancel",confirm:"Confirm",refresh:"Refresh",restartService:"restart service",stopService:"stop service",enableAllCoins:"enable all coins",disableAllCoins:"disable all coins",editBatch:"edit batch",totalCount:"total count",all:"all",open:"open",close:"close",test:"test",editSuccess:"edit success",editFail:"edit fail",deleteSuccess:"delete success",deleteFail:"delete fail",deleteConfirm:"confirm delete",actionSuccess:"action success",actionFail:"action fail",confirmRestartService:"confirm restart service ?",confirmStopService:"confirm stop futures service ?",confirmDeleteAll:"confirm delete all ?",confirmSave:"confirm save ?",startTime:"start time",endTime:"end time",today:"today",yesterday:"yesterday",lastWeek:"last week",refreshInterval:"refresh interval",startBot:"start bot",end:"end bot"},example:{warning:"Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details"},errorLog:{tips:"Please click the bug icon in the upper right corner",description:"Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.",documentation:"Document introduction"},excel:{export:"Export",selectedExport:"Export Selected Items",placeholder:"Please enter the file name (default excel-list)"},zip:{export:"Export",placeholder:"Please enter the file name (default file)"},pdf:{tips:"Here we use window.print() to implement the feature of downloading PDF."},theme:{change:"Change Theme",documentation:"Theme documentation",tips:"Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details."},tagsView:{refresh:"Refresh",close:"Close",closeOthers:"Close Others",closeAll:"Close All"},settings:{title:"Page style setting",theme:"Theme Color",tagsView:"Open Tags-View",fixedHeader:"Fixed Header",sidebarLogo:"binance trade bot"},showPage:{open:"open",close:"close",allowLong:"allow long",allowShort:"allow short",strategyTrade:"strategy trade",strategyCoin:"strategy coin",positionMaxCount:"position max count",excludeSymbols:"excluded automatic trading coins",orderType:"Order Type",marketOrderType:"MARKET",limitOrderType:"LIMIT: (Based on the depth of the price, the average price is taken as the average for placing orders, and it may not be possible to buy)",testPusher:"test pusher",testStrategy:"test strategy",testStrategyNoticeLimitMin:"test strategy notice limit min",externalLinks:"external links",websocket:"websocket",autoUpdatePrice:"auto update price",futuresPositionConvertEnable:"futures position convert enable"},trade:{name:"name",coin:"coin",coinType:"coin type",nowPrice:"now price",klineInterval:"kline interval",marginType:"margin type",usdt:"USDT",leverage:"leverage",profitRate:"profit%",lossRate:"loss%",enable:"enable",ISOLATED:"ISOLATED",CROSSED:"CROSSED",nowProfit:"now profit",time:"time",profit:"profit",amount:"amount",tradeType:"trade type",positionSide:"position side",short:"short",long:"long",close_long:"close(long)",close_short:"close(short)",buy:"buy",sell:"sell",spot:"spot",futures:"futures",stepSize:"step size",tickSize:"tick size",spotNoticeTips:"tips: if the amount and usdt are filled in simultaneously, the amount shall prevail",futuresNoticeTips:"tips: when profit price or loss price is 0, it will not be automatically closed",noticePrice:"notice price",hasNotice:"has notice",autoTrade:"auto trade",yes:"yes",no:"no",open:"open",close:"close",profitPrice:"profit price",lossPrice:"loss price",changePercent:"change(%)",noticeLimitMin:"notice limit(min)",lastNotice:"last notice",up:"up",down:"down",kcChannels:"kc channels",listenType:"listen type",klineBase:"kline base",keltnerChannels:"kc chart",fundingRateListenTips:"tips: The futures fund rate changes every 30 seconds, and the historical rate query API is limited to a maximum of 500 queries within 5 minutes",fundRate:"fund rate(%)",price:"price",close_price:"close price",now_price:"now price",nowFundRate:"now fund rate(%)",history:"history",fundRateHistory:"fund rate history",fundRateEatTips:"!!! This is an experimental feature and cannot guarantee stable operation. The profit or loss will be borne by the user !!!",is_closed:"is closed",assets:"assets",account:"account",position:"position",openOrder:"openOrder",technology:"technology",strategy:"strategy",strategyType:"strategy type",custom:"custom",startTime:"start time",endTime:"end time",strategyTemplate:"strategy template",period:"period",pin:"pin",notYet:"not yet"},assets:{asset:"asset",walletBalance:"Wallet Balance",unrealizedProfit:"Unrealized Profit",marginBalance:"Margin Balance",maintMargin:"Maint Margin",initialMargin:"Initial Margin",positionInitialMargin:"Position Initial Margin",openOrderInitialMargin:"Open Order Initial Margin",crossWalletBalance:"Cross Wallet Balance",crossUnPnl:"Cross Un Pnl",availableBalance:"Available Balance",maxWithdrawAmount:"Max Withdraw Amount",updateTime:"Update Time"},position:{symbol:"Symbol",initialMargin:"Initial Margin",maintMargin:"Maint Margin",unrealizedProfit:"Unrealized Profit",positionInitialMargin:"Position Initial Margin",openOrderInitialMargin:"Open Order Initial Margin",leverage:"Leverage",isolated:"Isolated",crossed:"Crossed",entryPrice:"Entry Price",maxNotional:"Max Notional",positionSide:"Position Side",positionAmt:"Position Amt",notional:"Notional",isolatedWallet:"Isolated Wallet",isolatedMargin:"Isolated Margin",isAutoAddMargin:"Is Auto Add Margin",liquidationPrice:"Liquidation Price",markPrice:"Mark Price",nowProfit:"Now Profit(%)",updateTime:"Update Time"},positionSide:{BOTH:"both",LONG:"long",SHORT:"short"},side:{BUY:"buy",SELL:"sell"},order:{symbol:"Symbol",orderId:"Order Id",clientOrderId:"Client Order Id",price:"Price",origQty:"Orig Qty",executedQty:"Executed Qty",cumQuote:"Cum Quote",avgPrice:"Avg Price",status:"Status",timeInForce:"Time In Force",type:"Type",side:"Side",stopPrice:"Stop Price",closePosition:"Close Position",positionSide:"Position Side",workingType:"Working Type",priceProtect:"Price Protect",priceMatch:"Price Match",selfTradePreventionMode:"Self Trade Prevention Mode",updateTime:"Update Time",time:"Time",reduceOnly:"Reduce Only",origType:"Orig Type",activatePrice:"Activate Price",priceRate:"Price Rate",goodTillDate:"Good Till Date",orderList:"Order List",orderHistory:"Order History",orderDetail:"Order Detail",cancelOrder:"Cancel Order",cancelAll:"Cancel All Orders",cancelSuccess:"Cancel Success",cancelFail:"Cancel Fail",cancelConfirm:"Confirm Cancel",cancelAllConfirm:"Confirm Cancel All",cancelAllSuccess:"Cancel All Success",cancelAllFail:"Cancel All Fail",cancelAllOrders:"Cancel All Orders",cancelAllOrdersSuccess:"Cancel All Orders Success",cancelAllOrdersFail:"Cancel All Orders Fail"},strategy:{name:"name",code:"code",type:"type",enable:"enable",fullScreen:"full screen"},strategyType:{global:"global",custom:"custom",line1:"line1",line2:"line2",line3:"line3",line4:"line4",line5:"line5",line6:"line6",line7:"line7"},technology:{name:"name",klineInterval:"kline interval",period:"period",std_dev_multiplier:"std dev multiplier",multiplier:"multiplier",enable:"enable"}},v={route:{dashboard:"首页",documentation:"文档",guide:"引导页",permission:"权限测试页",rolePermission:"角色权限",pagePermission:"页面权限",directivePermission:"指令权限",icons:"图标",components:"组件",tinymce:"富文本编辑器",markdown:"Markdown",jsonEditor:"JSON 编辑器",dndList:"列表拖拽",splitPane:"Splitpane",avatarUpload:"头像上传",dropzone:"Dropzone",sticky:"Sticky",countTo:"Count To",componentMixin:"小组件",backToTop:"返回顶部",dragDialog:"拖拽 Dialog",dragSelect:"拖拽 Select",dragKanban:"可拖拽看板",charts:"图表",keyboardChart:"键盘图表",lineChart:"折线图",mixChart:"混合图表",example:"综合实例",nested:"路由嵌套",menu1:"菜单1","menu1-1":"菜单 1-1","menu1-2":"菜单 1-2","menu1-2-1":"菜单 1-2-1","menu1-2-2":"菜单 1-2-2","menu1-3":"菜单 1-3",menu2:"菜单 2",Table:"Table",dynamicTable:"动态 Table",dragTable:"拖拽 Table",inlineEditTable:"Table 内编辑",complexTable:"综合 Table",tab:"Tab",form:"表单",createArticle:"创建文章",editArticle:"编辑文章",articleList:"文章列表",errorPages:"错误页面",page401:"401",page404:"404",errorLog:"错误日志",excel:"Excel",exportExcel:"导出 Excel",selectExcel:"导出 已选择项",mergeHeader:"导出 多级表头",uploadExcel:"上传 Excel",zip:"Zip",pdf:"PDF",exportZip:"Export Zip",theme:"换肤",clipboardDemo:"Clipboard",i18n:"国际化",externalLink:"外链",profile:"个人中心",futuresAccount:"合约账户",futuresTrade:"合约交易",futuresTradeOrder:"合约订单",newCoinRush:"新币抢购",newSpotRush:"币币抢购",newFuturesRush:"合约抢购",coinNotice:"币种通知",spotNotice:"现货通知",futuresNotice:"合约通知",marketListen:"行情监听",spotListen:"现货监听",futuresListen:"合约监听",fundingRate:"资金费率",fundingRateEat:"资金费率套利",systemConfig:"系统设置",strategyTemplate:"策略模板",testStrategyResult:"测试策略结果",spotsTrade:"现货交易",deliveryTrade:"币本位交易"},navbar:{dashboard:"首页",github:"项目地址",logOut:"退出登录",profile:"个人中心",theme:"换肤",size:"布局大小"},login:{title:"系统登录",logIn:"登录",username:"账号",password:"密码",any:"随便填",thirdparty:"第三方登录",thirdpartyTips:"本地不能模拟,请结合自己业务进行模拟!!!"},documentation:{documentation:"文档",github:"Github 地址"},permission:{addRole:"新增角色",editPermission:"编辑权限",roles:"你的权限",switchRoles:"切换权限",tips:"在某些情况下,不适合使用 v-permission。例如:Element-UI 的 el-tab 或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。",delete:"删除",confirm:"确定",cancel:"取消"},guide:{description:"引导页对于一些第一次进入项目的人很有用,你可以简单介绍下项目的功能。本 Demo 是基于",button:"打开引导"},components:{documentation:"文档",tinymceTips:"富文本是管理后台一个核心的功能,但同时又是一个有很多坑的地方。在选择富文本的过程中我也走了不少的弯路,市面上常见的富文本都基本用过了,最终权衡了一下选择了Tinymce。更详细的富文本比较和介绍见",dropzoneTips:"由于我司业务有特殊需求,而且要传七牛 所以没用第三方,选择了自己封装。代码非常的简单,具体代码你可以在这里看到 @/components/Dropzone",stickyTips:"当页面滚动到预设的位置会吸附在顶部",backToTopTips1:"页面滚动到指定位置会在右下角出现返回顶部按钮",backToTopTips2:"可自定义按钮的样式、show/hide、出现的高度、返回的位置 如需文字提示,可在外部使用Element的el-tooltip元素",imageUploadTips:"由于我在使用时它只有vue@1版本,而且和mockjs不兼容,所以自己改造了一下,如果大家要使用的话,优先还是使用官方版本。"},table:{dynamicTips1:"固定表头, 按照表头顺序排序",dynamicTips2:"不固定表头, 按照点击顺序排序",dragTips1:"默认顺序",dragTips2:"拖拽后顺序",title:"标题",importance:"重要性",type:"类型",remark:"点评",search:"搜索",add:"添加",export:"导出",save:"保存",reviewer:"审核人",id:"序号",date:"时间",author:"作者",readings:"阅读数",status:"状态",actions:"操作",edit:"编辑",publish:"发布",draft:"草稿",delete:"删除",deleteAll:"删除所有",cancel:"取 消",confirm:"确 定",refresh:"刷新",restartService:"重启服务",stopService:"停止服务",enableAllCoins:"启用所有币种",disableAllCoins:"停用所有币种",editBatch:"批量修改",totalCount:"总数",all:"全部",open:"开启",close:"关闭",test:"测试",editSuccess:"修改成功",editFail:"修改失败",deleteSuccess:"删除成功",deleteFail:"删除失败",deleteConfirm:"确认删除",actionSuccess:"操作成功",actionFail:"操作失败",confirmRestartService:"确认重启服务?",confirmStopService:"确认停止合约服务?",confirmDeleteAll:"确认删除所有?",confirmSave:"确认要进行保存吗?",startTime:"开始时间",endTime:"结束时间",today:"今天",yesterday:"昨天",lastWeek:"最近一周",refreshInterval:"刷新间隔",startBot:"机器人开启",end:"机器人结束"},example:{warning:"创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见"},errorLog:{tips:"请点击右上角bug小图标",description:"现在的管理后台基本都是spa的形式了,它增强了用户体验,但同时也会增加页面出问题的可能性,可能一个小小的疏忽就导致整个页面的死锁。好在 Vue 官网提供了一个方法来捕获处理异常,你可以在其中进行错误处理或者异常上报。",documentation:"文档介绍"},excel:{export:"导出",selectedExport:"导出已选择项",placeholder:"请输入文件名(默认excel-list)"},zip:{export:"导出",placeholder:"请输入文件名(默认file)"},pdf:{tips:"这里使用 window.print() 来实现下载pdf的功能"},theme:{change:"换肤",documentation:"换肤文档",tips:"Tips: 它区别于 navbar 上的 theme-pick, 是两种不同的换肤方法,各自有不同的应用场景,具体请参考文档。"},tagsView:{refresh:"刷新",close:"关闭",closeOthers:"关闭其它",closeAll:"关闭所有"},settings:{title:"系统布局配置",theme:"主题色",tagsView:"开启 Tags-View",fixedHeader:"固定 Header",sidebarLogo:"币安自动化交易"},showPage:{open:"开启",close:"关闭",allowLong:"允许做多",allowShort:"允许做空",strategyTrade:"交易策略",strategyCoin:"选币策略",positionMaxCount:"最大持仓数量",excludeSymbols:"排除自动交易的币",orderType:"自动下单类型",marketOrderType:"市价",limitOrderType:"限价(根据价格深度取平均价挂单,有可能无法买入)",testPusher:"测试推送",testStrategy:"测试策略",testStrategyNoticeLimitMin:"测试策略通知限制(min)",externalLinks:"外部链接",websocket:"websocket",autoUpdatePrice:"自动更新币价",futuresPositionConvertEnable:"仓位收益正负转换通知"},trade:{name:"名称",coin:"币种",coinType:"币种类型",nowPrice:"当前价格",klineInterval:"K线类型",marginType:"模式",usdt:"USDT",leverage:"杠杆",profitRate:"止盈%",lossRate:"止损%",enable:"启用",ISOLATED:"逐仓",CROSSED:"全仓",nowProfit:"当前盈亏",time:"时间",profit:"盈利",amount:"数量",tradeType:"交易类型",positionSide:"持仓方向",short:"做空",long:"做多",close_long:"平仓(多)",close_short:"平仓(空)",buy:"买入",sell:"卖出",spot:"现货",futures:"合约",stepSize:"数量精度",tickSize:"价格精度",spotNoticeTips:"tips: 如果交易金额和交易数量同时填写,以交易数量为准",futuresNoticeTips:"tips: 止盈价格或止损价格为 0 时代表不自动平仓",noticePrice:"通知价格",hasNotice:"已通知",autoTrade:"自动交易",yes:"是",no:"否",open:"开仓",close:"平仓",profitPrice:"止盈价格",lossPrice:"止损价格",changePercent:"涨跌幅(%)",noticeLimitMin:"通知间隔(min)",lastNotice:"最后通知",up:"上涨",down:"下跌",listenType:"监听类型",klineBase:"k线变化",keltnerChannels:"kc通道",fundingRateListenTips:"tips: 合约资金费率变化 30 秒更新一次, 历史费率查询 api 限制 5min 中内最多查询 500 次",fundRate:"资金费率(%)",price:"价格",close_price:"平仓价格",now_price:"当前价格",nowFundRate:"当前费率(%)",history:"历史",fundRateHistory:"资金费率历史",fundRateEatTips:"!!! 这是一个实验性功能,尚未完善,不保证能够稳定运行,盈亏自负 !!!",is_closed:"已平",assets:"资产",account:"账户信息",position:"仓位",openOrder:"当前委托",technology:"技术指标",strategy:"策略",open_strategy:"开仓策略",close_strategy:"平仓策略",strategyType:"策略类型",custom:"自定义",startTime:"开始时间",endTime:"结束时间",strategyTemplate:"策略模板",period:"周期",pin:"置顶",notYet:"暂未开放"},assets:{asset:"资产",walletBalance:"余额",unrealizedProfit:"未实现盈亏",marginBalance:"保证金余额",maintMargin:"维持保证金",initialMargin:"起始保证金",positionInitialMargin:"持仓所需起始保证金",openOrderInitialMargin:"当前挂单所需起始保证金",crossWalletBalance:"全仓账户余额",crossUnPnl:"全仓持仓未实现盈亏",availableBalance:"可用余额",maxWithdrawAmount:"最大可转出余额",updateTime:"更新时间"},position:{symbol:"交易对",initialMargin:"当前所需起始保证金",maintMargin:"维持保证金",unrealizedProfit:"持仓未实现盈亏",positionInitialMargin:"持仓所需起始保证金",openOrderInitialMargin:"当前挂单所需起始保证金",leverage:"杠杆",isolated:"逐仓",crossed:"全仓",entryPrice:"开仓价格",maxNotional:"最大持仓数量",positionSide:"持仓方向",positionAmt:"持仓数量",notional:"当前持仓usdt",isolatedWallet:"逐仓账户余额",isolatedMargin:"逐仓账户保证金",isAutoAddMargin:"自动追加保证金",liquidationPrice:"强平价格",markPrice:"标记价格",nowProfit:"收益率(%)",updateTime:"更新时间"},positionSide:{BOTH:"双向",LONG:"做多",SHORT:"做空"},side:{BUY:"买入",SELL:"卖出"},order:{symbol:"交易对",orderId:"订单号",clientOrderId:"用户订单号",price:"委托价格",origQty:"委托数量",executedQty:"成交数量",cumQuote:"成交金额",avgPrice:"成交均价",status:"状态",timeInForce:"有效方法",type:"订单类型",side:"买卖方向",stopPrice:"触发价",closePosition:"条件全平仓",positionSide:"持仓方向",workingType:"条件价格触发类型",priceProtect:"条件单触发保护",priceMatch:"盘口价格下单模式",selfTradePreventionMode:"订单自成交保护模式",updateTime:"更新时间",time:"订单时间",reduceOnly:"仅减仓",origType:"触发前订单类型",activatePrice:"跟踪止损激活价格",priceRate:"跟踪止损回调比例",goodTillDate:"GTD自动取消时间",orderList:"当前委托",orderHistory:"历史委托",orderDetail:"订单详情",cancelOrder:"取消订单",cancelAll:"取消所有订单",cancelSuccess:"取消成功",cancelFail:"取消失败",cancelConfirm:"确认取消",cancelAllConfirm:"确认取消所有",cancelAllSuccess:"全部取消成功",cancelAllFail:"全部取消失败",cancelAllOrders:"取消所有订单",cancelAllOrdersSuccess:"取消所有订单成功",cancelAllOrdersFail:"取消所有订单失败"},strategy:{name:"名称",code:"代码",type:"类型",enable:"启用",fullScreen:"全屏"},strategyType:{global:"全局",custom:"自定义",line1:"line1",line2:"line2",line3:"line3",line4:"line4",line5:"line5",line6:"line6",line7:"line7"},technology:{name:"名称",klineInterval:"K线类型",period:"周期",std_dev_multiplier:"带宽",multiplier:"多元",enable:"启用"}},b={route:{dashboard:"Panel de control",documentation:"Documentación",guide:"Guía",permission:"Permisos",rolePermission:"Permisos de rol",pagePermission:"Permisos de la página",directivePermission:"Permisos de la directiva",icons:"Iconos",components:"Componentes",tinymce:"Tinymce",markdown:"Markdown",jsonEditor:"Editor JSON",dndList:"Lista Dnd",splitPane:"Panel dividido",avatarUpload:"Subir avatar",dropzone:"Subir ficheros",sticky:"Sticky",countTo:"CountTo",componentMixin:"Mixin",backToTop:"Ir arriba",dragDialog:"Drag Dialog",dragSelect:"Drag Select",dragKanban:"Drag Kanban",charts:"Gráficos",keyboardChart:"Keyboard Chart",lineChart:"Gráfico de líneas",mixChart:"Mix Chart",example:"Ejemplo",nested:"Rutas anidadass",menu1:"Menu 1","menu1-1":"Menu 1-1","menu1-2":"Menu 1-2","menu1-2-1":"Menu 1-2-1","menu1-2-2":"Menu 1-2-2","menu1-3":"Menu 1-3",menu2:"Menu 2",Table:"Tabla",dynamicTable:"Tabla dinámica",dragTable:"Arrastrar tabla",inlineEditTable:"Editor",complexTable:"Complex Table",tab:"Pestaña",form:"Formulario",createArticle:"Crear artículo",editArticle:"Editar artículo",articleList:"Listado de artículos",errorPages:"Páginas de error",page401:"401",page404:"404",errorLog:"Registro de errores",excel:"Excel",exportExcel:"Exportar a Excel",selectExcel:"Export seleccionado",mergeHeader:"Merge Header",uploadExcel:"Subir Excel",zip:"Zip",pdf:"PDF",exportZip:"Exportar a Zip",theme:"Tema",clipboardDemo:"Clipboard",i18n:"I18n",externalLink:"Enlace externo",profile:"Profile"},navbar:{logOut:"Salir",dashboard:"Panel de control",github:"Github",theme:"Tema",size:"Tamaño global",profile:"Profile"},login:{title:"Formulario de acceso",logIn:"Acceso",username:"Usuario",password:"Contraseña",any:"nada",thirdparty:"Conectar con",thirdpartyTips:"No se puede simular en local, así que combine su propia simulación de negocios. ! !"},documentation:{documentation:"Documentación",github:"Repositorio Github"},permission:{addRole:"Nuevo rol",editPermission:"Permiso de edición",roles:"Tus permisos",switchRoles:"Cambiar permisos",tips:"In some cases it is not suitable to use v-permission, such as element Tab component or el-table-column and other asynchronous rendering dom cases which can only be achieved by manually setting the v-if.",delete:"Borrar",confirm:"Confirmar",cancel:"Cancelar"},guide:{description:"The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ",button:"Ver guía"},components:{documentation:"Documentación",tinymceTips:"Rich text editor is a core part of management system, but at the same time is a place with lots of problems. In the process of selecting rich texts, I also walked a lot of detours. The common rich text editors in the market are basically used, and the finally chose Tinymce. See documentation for more detailed rich text editor comparisons and introductions.",dropzoneTips:"Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.",stickyTips:"when the page is scrolled to the preset position will be sticky on the top.",backToTopTips1:"When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner",backToTopTips2:"You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally",imageUploadTips:"Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version."},table:{dynamicTips1:"Fixed header, sorted by header order",dynamicTips2:"Not fixed header, sorted by click order",dragTips1:"Orden por defecto",dragTips2:"The after dragging order",title:"Título",importance:"Importancia",type:"Tipo",remark:"Remark",search:"Buscar",add:"Añadir",export:"Exportar",reviewer:"reviewer",id:"ID",date:"Fecha",author:"Autor",readings:"Lector",status:"Estado",actions:"Acciones",edit:"Editar",publish:"Publicar",draft:"Draft",delete:"Eliminar",cancel:"Cancelar",confirm:"Confirmar"},example:{warning:"Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details"},errorLog:{tips:"Please click the bug icon in the upper right corner",description:"Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.",documentation:"Documento de introducción"},excel:{export:"Exportar",selectedExport:"Exportar seleccionados",placeholder:"Por favor escribe un nombre de fichero"},zip:{export:"Exportar",placeholder:"Por favor escribe un nombre de fichero"},pdf:{tips:"Here we use window.print() to implement the feature of downloading pdf."},theme:{change:"Cambiar tema",documentation:"Documentación del tema",tips:"Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details."},tagsView:{refresh:"Actualizar",close:"Cerrar",closeOthers:"Cerrar otros",closeAll:"Cerrar todos"},settings:{title:"Page style setting",theme:"Theme Color",tagsView:"Open Tags-View",fixedHeader:"Fixed Header",sidebarLogo:"Sidebar Logo"}},w={route:{dashboard:"トップ",documentation:"ドキュメント",guide:"ガイド",permission:"権限",rolePermission:"権限ロール",pagePermission:"ページ権限",directivePermission:"ディレクティブ権限",icons:"アイコン",components:"コンポーネント",tinymce:"TinyMCE",markdown:"Markdown",jsonEditor:"JSON Editor",dndList:"Drag-And-Drop",splitPane:"パネル",avatarUpload:"アバターアップロード",dropzone:"Dropzone",sticky:"Sticky",countTo:"Count To",componentMixin:"コンポーネントMixin",backToTop:"BackToTop",dragDialog:"Drag Dialog",dragSelect:"Drag Select",dragKanban:"Drag 看板",charts:"チャート",keyboardChart:"Keyboardチャート",lineChart:"Lineチャート",mixChart:"Mixチャート",example:"Example",nested:"Nested Routes",menu1:"メニュー1","menu1-1":"メニュー 1-1","menu1-2":"メニュー 1-2","menu1-2-1":"メニュー 1-2-1","menu1-2-2":"メニュー 1-2-2","menu1-3":"メニュー 1-3",menu2:"メニュー 2",Table:"Table",dynamicTable:"可変 Table",dragTable:"Drag Table",inlineEditTable:"Inline Edit Table",complexTable:"Complex Table",tab:"Tab",form:"フォーム",createArticle:"投稿作成",editArticle:"投稿編集",articleList:"投稿リスト",errorPages:"エラーページ",page401:"401",page404:"404",errorLog:"エラーログ",excel:"Excel",exportExcel:"一括エクスポート",selectExcel:"複数選択エクスポート",mergeHeader:"ヘッダーマージ",uploadExcel:"アップロード",zip:"Zip",pdf:"PDF",exportZip:"Export Zip",theme:"テーマ変更",clipboardDemo:"Clipboard",i18n:"多言語",externalLink:"外部リンク",profile:"プロフィール"},navbar:{dashboard:"トップ",github:"GitHub",logOut:"ログアウト",profile:"プロフィール",theme:"テーマ変更",size:"画面サイズ"},login:{title:"ユーザログイン",logIn:"ログイン",username:"ユーザ名",password:"パスワード",any:"password",thirdparty:"外部IDでログイン",thirdpartyTips:"ローカル環境ではログインできません。実装が必要です。"},documentation:{documentation:"ドキュメント",github:"Github Link"},permission:{addRole:"ロール追加",editPermission:"ロール変更",roles:"ロール",switchRoles:"ロール切替",tips:"v-permissionは使えない時があります。例えば: Element-UI の el-tab、 el-table-column 及び他の dom。v-ifを使う必要があります。",delete:"削除",confirm:"確認",cancel:"キャンセル"},guide:{description:"ガイドは各機能の説明です。",button:"ガイドを見る"},components:{documentation:"ドキュメント",tinymceTips:"tinymceは管理画面に重要な機能ですが、その同時に落とし穴がありあす。tinymceを使う道のりが大変でした。Tinymceを使う時に各自のプロジェクト状況で判断が必要です。ドキュメントはこちら",dropzoneTips:"Third partyのパッケージを使わず、独自の実装しています。詳細は @/components/Dropzone",stickyTips:"ページの指定位置へスクロールした場合、表示されます。",backToTopTips1:"トップへスクロールが表示されます。",backToTopTips2:"ボタンのスタイルはカスタマイズできます。例えば、show/hide、height、position。 またはElementのel-tooltipを使って、ツールチップを実装できます。",imageUploadTips:"mockjsは使えないため、カスタマイズしています。公式の最新バージョンを使ってください。"},table:{dynamicTips1:"先頭は固定、最後に追加",dynamicTips2:"戦後に追加せず、指定列に追加",dragTips1:"デフォルト順番",dragTips2:"Drag後の順番",title:"タイトル",importance:"重要",type:"タイプ",remark:"評価",search:"検索",add:"追加",export:"エクスポート",reviewer:"レビュアー",id:"番号",date:"日時",author:"作成者",readings:"閲覧数",status:"ステータス",actions:"操作",edit:"編集",publish:"公開",draft:"下書き",delete:"キャンセル",cancel:"キャンセル",confirm:"確認"},example:{warning:"新規作成と編集画面は keep-alive を使えないです。keep-alive の include はrouteのキャッシュは使えないです。そのため、component name を使ってキャッシュさせるようにします。このようなキャッシュ機能を作りたい場合,localStorageを使う手があります。もしくは keep-alive の includeを使って、全ページキャッシュする方法はあります。"},errorLog:{tips:"右上のbugアイコンをクリックしてください。",description:"管理画面はspaを使う場合が多い、ユーザ体現向上はできますが、想定外エラーが発生する場合があります。Vueはそのエラーハンドリング機能を提供し、エラーレポートができます。",documentation:"ドキュメント"},excel:{export:"エクスポート",selectedExport:"エクスポート対象を選択してください。",placeholder:"ファイル名を入力してください。"},zip:{export:"エクスポート",placeholder:"ファイル名を入力してください。"},pdf:{tips:"window.print() を使ってPDFダウンロードしています。"},theme:{change:"テーマ切替",documentation:"ドキュメント",tips:"Tips: テーマの切り替え方法はnavbarのtheme-pickと異なります、使い方はドキュメントを確認してください。"},tagsView:{refresh:"更新",close:"閉じる",closeOthers:"その他閉じる",closeAll:"すべて閉じる"},settings:{title:"システムテーマ",theme:"テーマ色",tagsView:"Tags-View 開く",fixedHeader:"Fixed Header",sidebarLogo:"Sidebar Logo"}};a["default"].use(o["a"]);var y={en:Object(i["a"])(Object(i["a"])({},g),l.a),zh:Object(i["a"])(Object(i["a"])({},v),d.a),es:Object(i["a"])(Object(i["a"])({},b),p.a),ja:Object(i["a"])(Object(i["a"])({},w),f.a)};function x(){var e=r.a.get("language");if(e)return e;for(var t=(navigator.language||navigator.browserLanguage).toLowerCase(),n=Object.keys(y),i=0,a=n;i-1)return o}return"en"}var T=new o["a"]({locale:x(),messages:y});t["a"]=T},"9bbf":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"9d91":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},a14a:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return Rt})),n.d(t,"a",(function(){return jt})),n.d(t,"d",(function(){return $t}));var i=n("b8c8"),a=(n("e168"),n("90c8"),n("3363"),n("3399"),n("ba49")),o=n("1a55"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar"),e.needTagsView?n("tags-view"):e._e()],1),n("app-main"),e.showSettings?n("right-panel",[n("settings")],1):e._e()],1)],1)},r=[],c=n("8204"),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[n("div",{staticClass:"rightPanel-background"}),n("div",{staticClass:"rightPanel"},[n("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[n("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),n("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},u=[],d=(n("374d"),n("ed08")),h={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),e?Object(d["a"])(document.body,"showRightPanel"):Object(d["d"])(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){var e=this.$refs.rightPanel;e.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){var t=e.target.closest(".rightPanel");t||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},p=h,m=(n("3a82"),n("e4d6"),n("9bf6")),f=Object(m["a"])(p,l,u,!1,null,"7ce91d5a",null),g=f.exports,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[n("router-view",{key:e.key})],1)],1)],1)},b=[],w={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},y=w,x=(n("3dde"),n("bf48"),Object(m["a"])(y,v,b,!1,null,"92459f82",null)),T=x.exports,C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),n("div",{staticClass:"right-menu"},["mobile"!==e.device?[n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),n("error-log",{staticClass:"errLog-container right-menu-item hover-effect"}),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}}),n("lang-select",{staticClass:"right-menu-item hover-effect"})]:e._e(),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80"}}),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/"}},[n("el-dropdown-item",[e._v(" "+e._s(e.$t("navbar.dashboard"))+" ")])],1),n("a",{attrs:{target:"_blank",href:"https://github.com/sorry510/go_binance_futures"}},[n("el-dropdown-item",[e._v(" "+e._s(e.$t("navbar.github"))+" ")])],1),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",{staticStyle:{display:"block"}},[e._v(e._s(e.$t("navbar.logOut")))])])],1)],1)],2)],1)},k=[],S=n("dd36"),A=n("fee1"),E=n("8327"),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(" "+e._s(e.generateTitle(t.meta.title))+" ")]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(e.generateTitle(t.meta.title)))])])})),1)],1)},O=[];n("3dd5"),n("452e"),n("8a0d"),n("bd1a");function z(e){var t=this.$te("route."+e);if(t){var n=this.$t("route."+e);return n}return e}var L,M,P=n("6699"),H=n.n(P),B={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{generateTitle:z,getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=H.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},D=B,I=(n("d8f9"),Object(m["a"])(D,V,O,!1,null,"f952d274",null)),_=I.exports,R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},j=[],N={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},F=N,$=(n("8dd0"),Object(m["a"])(F,R,j,!1,null,"49e15297",null)),U=$.exports,q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.errorLogs.length>0?n("div",[n("el-badge",{staticStyle:{"line-height":"25px","margin-top":"-5px"},attrs:{"is-dot":!0},nativeOn:{click:function(t){e.dialogTableVisible=!0}}},[n("el-button",{staticStyle:{padding:"8px 10px"},attrs:{size:"small",type:"danger"}},[n("svg-icon",{attrs:{"icon-class":"bug"}})],1)],1),n("el-dialog",{attrs:{visible:e.dialogTableVisible,width:"80%","append-to-body":""},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("span",{staticStyle:{"padding-right":"10px"}},[e._v("Error Log")]),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-delete"},on:{click:e.clearAll}},[e._v("Clear All")])],1),n("el-table",{attrs:{data:e.errorLogs,border:""}},[n("el-table-column",{attrs:{label:"Message"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[n("div",[n("span",{staticClass:"message-title"},[e._v("Msg:")]),n("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(i.err.message)+" ")])],1),n("br"),n("div",[n("span",{staticClass:"message-title",staticStyle:{"padding-right":"10px"}},[e._v("Info: ")]),n("el-tag",{attrs:{type:"warning"}},[e._v(" "+e._s(i.vm.$vnode.tag)+" error in "+e._s(i.info)+" ")])],1),n("br"),n("div",[n("span",{staticClass:"message-title",staticStyle:{"padding-right":"16px"}},[e._v("Url: ")]),n("el-tag",{attrs:{type:"success"}},[e._v(" "+e._s(i.url)+" ")])],1)]}}],null,!1,3134886942)}),n("el-table-column",{attrs:{label:"Stack"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.err.stack)+" ")]}}],null,!1,2525805560)})],1)],1)],1):e._e()},W=[],G={name:"ErrorLog",data:function(){return{dialogTableVisible:!1}},computed:{errorLogs:function(){return this.$store.getters.errorLogs}},methods:{clearAll:function(){this.dialogTableVisible=!1,this.$store.dispatch("errorLog/clearErrorLog")}}},Y=G,Q=(n("6769"),Object(m["a"])(Y,q,W,!1,null,"be34583a",null)),K=Q.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},J=[],X=n("c934"),ee=n.n(X),te={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!ee.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;ee.a.toggle()},change:function(){this.isFullscreen=ee.a.isFullscreen},init:function(){ee.a.enabled&&ee.a.on("change",this.change)},destroy:function(){ee.a.enabled&&ee.a.off("change",this.change)}}},ne=te,ie=(n("2abb"),Object(m["a"])(ne,Z,J,!1,null,"1d75d652",null)),ae=ie.exports,oe=n("1131"),se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search",class:{show:e.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,(function(e){return n("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})})),1)],1)},re=[],ce=n("48dd"),le=(n("e224"),n("8d8a"),n("1a71"),n("f2e9"),n("af64")),ue=n.n(le),de=n("cad9"),he=n.n(de),pe=n("9923"),me={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes},lang:function(){return this.$store.getters.language},supportPinyinSearch:function(){return this.$store.state.settings.supportPinyinSearch}},watch:{lang:function(){this.searchPool=this.generateRoutes(this.routes)},routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){"zh"===this.lang&&this.supportPinyinSearch&&this.addPinyinField(e),this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{addPinyinField:function(e){return Object(A["a"])(Object(S["a"])().mark((function t(){var i,a;return Object(S["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.e("chunk-65d81035").then(n.t.bind(null,"f08b",7));case 2:if(i=t.sent,a=i.default,!Array.isArray(e)){t.next=7;break}return e.forEach((function(e){var t=e.title;Array.isArray(t)&&t.forEach((function(t){t=a(t,{style:a.STYLE_NORMAL}).join(""),e.pinyinTitle=t}))})),t.abrupt("return",e);case 7:case"end":return t.stop()}}),t)})))()},click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new ue.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"pinyinTitle",weight:.3},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[],s=Object(ce["a"])(e);try{for(s.s();!(t=s.n()).done;){var r=t.value;if(!r.hidden){var c={path:he.a.resolve(n,r.path),title:Object(i["a"])(a)};if(r.meta&&r.meta.title){var l=pe["a"].t("route.".concat(r.meta.title));c.title=[].concat(Object(i["a"])(c.title),[l]),"noRedirect"!==r.redirect&&o.push(c)}if(r.children){var u=this.generateRoutes(r.children,c.path,c.title);u.length>=1&&(o=[].concat(Object(i["a"])(o),Object(i["a"])(u)))}}}}catch(d){s.e(d)}finally{s.f()}return o},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},fe=me,ge=(n("d146"),Object(m["a"])(fe,se,re,!1,null,"db94b0e8",null)),ve=ge.exports,be=n("5f87"),we={components:{Breadcrumb:_,Hamburger:U,ErrorLog:K,Screenfull:ae,LangSelect:oe["a"],Search:ve},computed:Object(c["a"])({},Object(E["b"])(["sidebar","avatar","device"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(A["a"])(Object(S["a"])().mark((function t(){return Object(S["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(be["b"])(),e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 2:case"end":return t.stop()}}),t)})))()}}},ye=we,xe=(n("273d"),Object(m["a"])(ye,C,k,!1,null,"a1e5cda0",null)),Te=xe.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[e._v(e._s(e.$t("settings.title")))]),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.theme")))]),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.tagsView")))]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.fixedHeader")))]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.sidebarLogo")))]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1),e.isShowJob?n("a",{staticClass:"job-link",attrs:{href:"https://panjiachen.github.io/vue-element-admin-site/zh/job/",target:"_blank"}},[n("el-alert",{attrs:{title:"部门目前非常缺人!有兴趣的可以点击了解详情。坐标: 字节跳动",type:"success",closable:!1}})],1):e._e(),"zh"===e.lang?n("div",{staticClass:"drawer-item"},[n("span",[e._v("菜单支持拼音搜索")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.supportPinyinSearch,callback:function(t){e.supportPinyinSearch=t},expression:"supportPinyinSearch"}})],1):e._e()])])},ke=[],Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},Ae=[],Ee=(n("7019"),n("37fe"),n("fe02"),n("1b55"),n("e17a"),n("fa87"),n("9d08"),n("0515").version),Ve="#409EFF",Oe={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(A["a"])(Object(S["a"])().mark((function n(){var i,a,o,s,r,c,l,u;return Object(S["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.chalk?t.theme:Ve,"string"===typeof e){n.next=3;break}return n.abrupt("return");case 3:if(a=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(i.replace("#","")),console.log(a,o),s=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),r=function(e,n){return function(){var i=t.getThemeCluster(Ve.replace("#","")),o=t.updateStyle(t[e],i,a),s=document.getElementById(n);s||(s=document.createElement("style"),s.setAttribute("id",n),document.head.appendChild(s)),s.innerText=o}},t.chalk){n.next=12;break}return c="https://unpkg.com/element-ui@".concat(Ee,"/lib/theme-chalk/index.css"),n.next=12,t.getCSSString(c,"chalk");case 12:l=r("chalk","chalk-style"),l(),u=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(i,"i").test(t)&&!/Chalk Variables/.test(t)})),u.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,o,a))})),t.$emit("change",e),s.close();case 18:case"end":return n.stop()}}),n)})))()}},methods:{updateStyle:function(e,t,n){var i=e;return t.forEach((function(e,t){i=i.replace(new RegExp(e,"ig"),n[t])})),i},getCSSString:function(e,t){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[t]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",e),a.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return 0===t?[n,i,a].join(","):(n+=Math.round(t*(255-n)),i+=Math.round(t*(255-i)),a+=Math.round(t*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),i=Math.round((1-t)*i),a=Math.round((1-t)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[e],a=0;a<=9;a++)i.push(t(e,Number((a/10).toFixed(2))));return i.push(n(e,.1)),i}}},ze=Oe,Le=(n("f26d"),Object(m["a"])(ze,Se,Ae,!1,null,null,null)),Me=Le.exports,Pe={components:{ThemePicker:Me},data:function(){return{}},computed:{isShowJob:function(){return"zh"===this.$store.getters.language},fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}},supportPinyinSearch:{get:function(){return this.$store.state.settings.supportPinyinSearch},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"supportPinyinSearch",value:e})}},lang:function(){return this.$store.getters.language}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},He=Pe,Be=(n("5c39"),Object(m["a"])(He,Ce,ke,!1,null,"47d538e2",null)),De=Be.exports,Ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},_e=[],Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.$t(e.title))+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.$t(e.title))+" ")])])],1)],1)},je=[],Ne={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"settings.sidebarLogo",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNCAYAAADjCemwAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAHdElNRQfoChQCKAodBHj8AAANQklEQVR42t2caWxc1RXHf/e+N953x3b2YCdxYhxIwlbWFhRaNrWAoEoodGNpBTRULR+QCpSqhQpQqaAplaCo0NICKqBSKrGjQiElNCEkZHX2nXiJt9gee+a9d/vhXtszdmaz3xuTHCnK2DPjmfd/Z/ufe84RZEnCK6YOPrSBGmAucArQCMwGpgOTgCIgB5CAB0SAo0AbcADYAWwGNgDbgRbAAchffigr1yKyBFQeMAc4F7gAWGhAKgGsMfxpxwB5AFgPfAD81wDaHzSAIkCwBDANuBi4EjgbqDYa5Ld4RuM+Bv4JvGMAVUGAJwIASwL1wDLgWmCeMclsiQNsA14GXgC2Ap6f4AmfzbAO+D5wAzAraPNPIQrYB/wN+BOw0y+zFT6BVQJcB9wBNEwwWMcCrwlYATwHdI4XPOGD3zoduAe4zES9L6pEgTeBXwGrx+PvxDgAyzNmeI8xxeNF9gEPAM8C4bEAJ8YI2CQD1i1AAcefhIGnjNa1ZmquIkOwAGqBR0waITl+xQNeBe4EdmUCnMgQsAbgD8CFnDjyPnArsCVd4ESGgP0ROI8TT1YaV5MWcOmaV53RsCwApsBz9T+lsgXaeeb6asdtnkbLqoAngauCx8tDlM5CzlqCam9Cde5EhdvBc7IF3j+AHwKtybRNpJFWPAQsz0rC6jlYJ19HaMlvwQmjej7H+3w1zqoHUb2tIITRRM98ewFC+qzm/A64CxhIBJxM4ce+Y2w9Oxm+tJE1izUQoUJE+RxE1SnDIAFW/dXYZyxHzrgAUTQFZMhvLn4L8O0ROMSJnQSws4CfAfnZYjsitxRRtSD+t60bUP0d+nLsfKyGpcgZX4ZoH6r3MM7GZ3HXPennFykA7gbWAWvCK6aOCgyJdLvUvHGWrzdRKe2flGcsYYQ/K56OKD0pDkiv+VPwoqAUomgyonyOfipUgCirQ1ghUK7fd/Akc/0lKc0zRsu+Zbikbw5e1l6Mff59WPVXISrqIVQYD6JSiEmNiLzy4bcNdKHaNmrfpTxkxTxEQVUMm+zDa143Cn+f5HKDwygzPVadazbwI8A/ZyEtrLrLsBqWguegwkdQnTvxWj7DO7wWdWQLqvfwsD8bBK17P6prn763QiFqFsX5MNVzCNWx0wQI3yXH4PDWIGMYBVpM1eJG4GT/tEwh8soRkxqHnL0orEEU1iCnnQteFNXXhureN8I0QbVtQoWPaE0MFSKrF8YH2/YmVLjN7wgaK43o+uC9sb5tpKbNN3UxXymeKKtFlsxMoIUhRNEUHQlHPlV1CvaZP8Fr3QBuBFE+Nx7U5k/BHQBhEaBcjy5kbo3TtBibXZZuVpyR5Jaiwm3aadvpB2MxqRF7UiO4A6hILyKvbLQ/81ywAgWt1uDyi0Fti9W06cA1vn+ksPD2f0jklaWI8jpkzWnI2kuQ1aemb1ZWLiI/d9TflXWXgdOP17YJomGQgYF3jSklHQAQMVr2PUPIgzkEMRESQJTMIPTVx7RPG6/0d+IeWIm7+Tm8AyuNufru4xyT9D4Tm3LkAt8gyFMjIbUmSAvVvQ9v779TBpC0JK8Ma84V5Fz6BKELH0SUzzZ5oK9iG3xyYwPBHPS5ZHZESMirSPy8O4Cz7kmdm1WfiiivRxTWgExyT3OKsE5ehqhagPOfe/EOrfJb485GdwVsHPwW5wCTs0WXyCnSPi3RK3qbcTf8BdW9T3PQoqnIyYu1L5x+fnxAGBVxFxC66CEib92Oat3oJ3CTDU4bJbot4IKskXKldIpRPjvxS9q36fxL2jpydu7E3fJ3om8vJ/r6zXj73ktqgqKiHvuMH0OoAB/pgjA42RLdKrAwa6apPGTFfET+pMSZXct6cPpH+EMb3Aje/g+Jvn0H7o5/JQ+4M7+ik2F//dtCoFoaO52RTX+m6ZCd0J9pPqkSUjLV14Kz+jFUT5KydE6xpmX+8tIZQL0EFiRi84H4s1BhSn+mOrYn55PCQnXtQXXsSFHkqfabl5YAC6ThmXb2/NlURFkyf7Yd1duSwoEr/Xwq+uRG/L4CCzh50Dyz588q6xEFSfxZ81qI9qags/osYai2lujjju4PImebI9E9ZFn0Z4sTl6jNBYriafo1ytX1Ns81j/XPorAa+7Tbde6WCLCBTlTbpiDKRtNs9GlTFv3ZwqSg2qcvx5p3Laq9Ca9tM6pzF6qvVdMjOx9ZMRc5+wrklDOSf9rna/Dam4KgVFU2UJzV/CyJP9OEJQ9RVqvLSXWXau1zI1rThAVWbkrtUf0dOJ89DZGeIMpGRTbZao9SHrJyflJ/lpBy2Xnpf0x/B86qh/H2vx9UnS3HJltNLEIiqhcl9WdqoBMRKtTalOk9CR9Bfb4aZ8Of8fZ/QFAHB5gM02NsHdb+5mc9h4i++1Ow85BVpyJrFiEqGxCFk9Oqk6mW9UQ/+jXqyFa/z0JHxW4b3aefnxV/liRFUO1NeIf+B04Yb/dbYOcjiqchJ5+BrLsEOe1cRG5p4ts/6yJCeRU4K3+Jd/CjIM8NIhLoyY4/m5ciP1uvI6S0tS9yI6iOnbibnyf65m1EX7sJb9cb+gw0AZ+WNYsILXkEOeXMIPKzQTkqMZ2AwfuzJPmZO6BJ+ki+OYKoR96+A2fNingyP/KjSmuxz7oT8sqC8mutEjg48XyzBdW+LXkqIS2I9OB8sgJ32yvJPfW0s5FTz4nrAfFRDkr0aEwA7tKcnHtufDvBsUDr2I7qbU7th4SAaB9u00vJqZaVi5xyelCHyDts9HCW60sEVS5y5kVYdZfiNa/Fa90MkU6shqVJKY+un4XTc95CovpaUNFenZ4kellBtcnTfDVRB9hkAxuBbqB83GZo52MtuAFr9hVYC25A9XdCtE8DlggQNzJcP0tHMZRC5FciQimayr1oED6tG3NGsB3YP27QzCHI0LGcsBD5lZBfmfxtfS2o9iZNk5QwJiUSAoZl6/POUFGKCsfBYerln+wHdkigGT3+N+482Zp7ZVzXT1qBNacYe/GtWPO/iaicDzklpktosMLhDPlHkVeKfeqNWA3LUtTRBvShiv/Bcz3QbBs7/QA9fSLGqmWieKZutstUckuxTvkuVuMNqP52VPc+VOdu/X9fq04vrBxEyXTklLOQNYtS0izVtVf3f/gbCBTwIeAOVmw/Ag4DU8aWhwlUfwfRD+9DVi/WFKjCnFWmyyOlhSio0v1nk08f8V0zu3h399vpRePM5LDBaajMvR1YBVw9xuwVoj14u9/F2/OupkAF1YiKucjqRciaxYjKeYZH2pn/7UzUoWsPbtOLOt3xF7SPDU5DoA2gR16+zpjPC8QwsXYj2ry69uDteUeDWD6HnK89rrsgg5JoH87ax02i7CtgDnpieQBAxjThvkNMD5Yf1GmIRzphnQLEnowrhbv1JdwNz+C1rEcNdI2TRh/FWf0o7pYXg7gdTQafUa1WB9AjzAuCqHLISY06BRn8VfSoBuzwGsgtw25Yin3+z2NSBDO5ksqco314Letw1z2Fu+cdUA4BNAu8bPBhyDzzlx8abOx7AT074G9jn7R01IvNmboP6F4NJAx0mlTDismzDuCsehhyihElM3WQyCkBK6T7dvs7UJ278ZrXoprXowY6jUn6Dtgeg0vC9tGt6FbJe/wl7EWIqnjC7rVtHp4PsAqQkxfHv6t1sybmbmS4TUvY+rHytEZ5jg6uUgZZP3tupNsa+qQY3/Y0sMnXAmTxdERZ7YhK66fgmvmAwppR/bReyzrtB+UgUEr/7A4MzRUgLBN8Auvd2YxeGhA3un2s27ML+L2p6PpXgIztR4scxWvZqK9VeYiKuYjC6phY1W/qa0ykRIHHMVsWjqlpI7TtOeA1f6Kohde6Cefj3+DuegPVvRevYzuqa7f+eCF1o0pMEqx6D+s+DTGhSxdeN65q1JiPnYTNPwAsQo+8jAM0gerYjrPmUbDytEaFimL8WR6ysiFeOdubUH0tQfqpVLLXXP8x86BRJYAHXj/KPZcXAxwC+oAljHd6ZXDEUHkw0AXhtrhsX/UcRHXtRkV6EFYIb9cb5nBkQjQtbALhq8fSsqQcJWbe80H0kpLgrsBzjdblau7phLUmZn8nikIvPbkL6E8075nuZPETY+elmQcOEBOlZa8AP2Csk8UjgKs1ofdCTlx5D7gJ2OXX4P9u4Db0VoETUVaa69uVFsFJ9YIY1LegpzbePwE1LO31Emlr2gjgbjS27x3nYHno7Qg3ZQJYxhW+mDmqKuBe4GayNuPuq/Sh58DuB9oyXdI0nq1W+eitAncDM48jwPYasP6aLK3wHbQY4ARwpkkGL+GLvT8tYqjR/cAnZHt/2jHMtRQ9gbscvQPyi7apbwt6ScnzhiJOzKa+BODNNoHiemOyE70Tcq8xw6fJcN1X4KCNAE+iZ+GXoSdy65mY7aMvoiuu2/gibh9N4u+mM7zn9ktkZ8/tK+hDkIMcD3tuk5ht7Ebl803JaTq6HX8sWuga33TibFROAaBtNG4u+uSr0QA6zeR/xaYUZTG8u7sH3bF5kNG7u5vJ8u7u/wO9IBRN+xsn6wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNC0xMC0yMFQwMjo0MDoxMCswMDowMP1JmCQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjQtMTAtMjBUMDI6NDA6MTArMDA6MDCMFCCYAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI0LTEwLTIwVDAyOjQwOjEwKzAwOjAw2wEBRwAAAABJRU5ErkJggg=="}}},Fe=Ne,$e=(n("e78a"),Object(m["a"])(Fe,Re,je,!1,null,"23278b1c",null)),Ue=$e.exports,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.generateTitle(e.item.meta.title)}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.generateTitle(e.onlyOneChild.meta.title)}})],1)],1):e._e()]],2)},We=[],Ge=n("61f7"),Ye=(n("d987"),n("6de1"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,o=[];return i&&(i.includes("el-icon")?o.push(e("i",{class:[i,"sub-el-icon"]})):o.push(e("svg-icon",{attrs:{"icon-class":i}}))),a&&o.push(e("span",{slot:"title"},[a])),o}}),Qe=Ye,Ke=(n("f87e"),Object(m["a"])(Qe,L,M,!1,null,"18eeea00",null)),Ze=Ke.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Xe=[],et={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(Ge["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},tt=et,nt=Object(m["a"])(tt,Je,Xe,!1,null,null,null),it=nt.exports,at={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},ot={name:"SidebarItem",components:{Item:Ze,AppLink:it},mixins:[at],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(c["a"])(Object(c["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(Ge["b"])(e)?e:Object(Ge["b"])(this.basePath)?this.basePath:he.a.resolve(this.basePath,e)},generateTitle:z}},st=ot,rt=Object(m["a"])(st,qe,We,!1,null,null,null),ct=rt.exports,lt=n("cf1e"),ut=n.n(lt),dt={components:{SidebarItem:ct,Logo:Ue},computed:Object(c["a"])(Object(c["a"])({},Object(E["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ut.a},isCollapse:function(){return!this.sidebar.opened}})},ht=dt,pt=Object(m["a"])(ht,Ie,_e,!1,null,null,null),mt=pt.exports,ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v(" "+e._s(e.generateTitle(t.title))+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v(e._s(e.$t("tagsView.refresh")))]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v(e._s(e.$t("tagsView.close")))]),n("li",{on:{click:e.closeOthersTags}},[e._v(e._s(e.$t("tagsView.closeOthers")))]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v(e._s(e.$t("tagsView.closeAll")))])])],1)},gt=[],vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},bt=[],wt=(n("3066"),4),yt={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,i=this.scrollWrapper,a=this.$parent.$refs.tag,o=null,s=null;if(a.length>0&&(o=a[0],s=a[a.length-1]),o===e)i.scrollLeft=0;else if(s===e)i.scrollLeft=i.scrollWidth-n;else{var r=a.findIndex((function(t){return t===e})),c=a[r-1],l=a[r+1],u=l.$el.offsetLeft+l.$el.offsetWidth+wt,d=c.$el.offsetLeft-wt;u>i.scrollLeft+n?i.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",a=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var o=he.a.resolve(n,e.path);a.push({fullPath:o,path:o,name:e.name,meta:Object(c["a"])({},e.meta)})}if(e.children){var s=t.filterAffixTags(e.children,e.path);s.length>=1&&(a=[].concat(Object(i["a"])(a),Object(i["a"])(s)))}})),a},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(ce["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,i=Object(ce["a"])(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){i.e(o)}finally{i.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var n=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+n})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(n){var i=n.visitedViews;t.isActive(e)&&t.toLastView(i,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var i=n.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(i,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,o=a-n,s=t.clientX-i+15;this.left=s>o?o:s,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},St=kt,At=(n("80b2"),n("e057"),Object(m["a"])(St,ft,gt,!1,null,"6ffcf3f8",null)),Et=At.exports,Vt=n("4360"),Ot=document,zt=Ot.body,Lt=992,Mt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Vt["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Vt["a"].dispatch("app/toggleDevice","mobile"),Vt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=zt.getBoundingClientRect();return e.width-1'});s.a.add(r);t["default"]=r},aacc:function(e,t,n){},ab00:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ad1c:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ae1b:function(e,t,n){},afea:function(e,t,n){},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b377:function(e,t,n){},b3b5:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(r);t["default"]=r},b775:function(e,t,n){"use strict";n("90c8");var i=n("940b"),a=n.n(i),o=n("067c"),s=n("4360"),r=n("5f87"),c=a.a.create({baseURL:"",timeout:3e4});c.interceptors.request.use((function(e){return s["a"].getters.token&&(e.headers["Authorization"]=Object(r["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),c.interceptors.response.use((function(e){var t=e.data;if(200===t.code)return t;Object(o["Notification"])({title:"Notification Error",message:t.msg||t.message||"Error",type:"error",position:"top-right"})}),(function(e){var t,n=null===(t=e.response)||void 0===t?void 0:t.status;if(401!==n)return console.log("err"+e),Promise.reject(e);o["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){s["a"].dispatch("user/resetToken").then((function(){location.reload()}))}))})),t["a"]=c},bae9:function(e,t,n){},bc35:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},bd35:function(e,t,n){},bf48:function(e,t,n){"use strict";n("ca8d")},c653:function(e,t,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id="c653"},c829:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ca8d:function(e,t,n){},cbb7:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});s.a.add(r);t["default"]=r},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},d146:function(e,t,n){"use strict";n("ae1b")},d313:function(e,t,n){},d3f7:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(r);t["default"]=r},d8f9:function(e,t,n){"use strict";n("bd35")},d9cd:function(e,t,n){"use strict";n.r(t);var i=n("4314"),a=n.n(i),o=n("9923"),s={sidebar:{opened:!a.a.get("sidebarStatus")||!!+a.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",language:Object(o["b"])(),size:a.a.get("size")||"medium"},r={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?a.a.set("sidebarStatus",1):a.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){a.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_LANGUAGE:function(e,t){e.language=t,a.a.set("language",t)},SET_SIZE:function(e,t){e.size=t,a.a.set("size",t)}},c={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setLanguage:function(e,t){var n=e.commit;n("SET_LANGUAGE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:s,mutations:r,actions:c}},dbc7:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},dcf8:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},de06:function(e,t,n){"use strict";n("4d06")},e057:function(e,t,n){"use strict";n("a3a7")},e4d6:function(e,t,n){"use strict";n("470f")},e534:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},e78a:function(e,t,n){"use strict";n("f661")},e7c8:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},eb1b:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ed08:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return c}));var i=n("6497");n("1652"),n("e224"),n("4cc3"),n("7019"),n("5227"),n("90c8"),n("fe02"),n("8d8a"),n("1b55"),n("e17a"),n("fa87"),n("4a51"),n("3363"),n("5f23"),n("04b0"),n("9d08"),n("f2e9"),n("3399");function a(e,t){if(0===arguments.length||!e)return null;var n,a=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var o={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},s=a.replace(/{([ymdhisa])+}/g,(function(e,t){var n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return s}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),i=Date.now(),o=(i-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?a(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function s(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function r(e,t){s(e,t)||(e.className+=" "+t)}function c(e,t){if(s(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}},f26d:function(e,t,n){"use strict";n("603e")},f661:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});s.a.add(r);t["default"]=r},f87e:function(e,t,n){"use strict";n("bae9")},f9a1:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(r);t["default"]=r}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0781":function(e,t,n){"use strict";n.r(t);var i=n("24ab"),a=n.n(i),o=n("83d6"),s=n.n(o),r=s.a.showSettings,c=s.a.tagsView,l=s.a.fixedHeader,u=s.a.sidebarLogo,d=s.a.supportPinyinSearch,h={theme:a.a.theme,showSettings:r,tagsView:c,fixedHeader:l,sidebarLogo:u,supportPinyinSearch:d},p={CHANGE_SETTING:function(e,t){var n=t.key,i=t.value;e.hasOwnProperty(n)&&(e[n]=i)}},m={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:h,mutations:p,actions:m}},"096e":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"0f9a":function(e,t,n){"use strict";n.r(t);var i=n("dd36"),a=n("fee1"),o=(n("452e"),n("90c8"),n("bd1a"),n("b775"));function s(e){return Object(o["a"])({url:"/login",method:"post",data:e})}function r(){return Object(o["a"])({url:"/vue-element-admin/user/logout",method:"post"})}var c=n("5f87"),l=n("a18c"),u={token:Object(c["a"])(),name:"",avatar:"",introduction:"",roles:[]},d={SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t}},h={login:function(e,t){var n=e.commit,i=t.username,a=t.password;return new Promise((function(e,t){s({username:i.trim(),password:a}).then((function(t){var i=t.data;console.log("data",i),n("SET_TOKEN",i.token),Object(c["d"])(i.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit;e.state;return new Promise((function(e,n){var i={roles:["admin"],name:"admin",avatar:"",introduction:"admin"},a=i.roles,o=i.name,s=i.avatar,r=i.introduction;(!a||a.length<=0)&&n("getInfo: roles must be a non-null array!"),t("SET_ROLES",a),t("SET_NAME",o),t("SET_AVATAR",s),t("SET_INTRODUCTION",r),e(i)}))},logout:function(e){var t=e.commit,n=e.state,i=e.dispatch;return new Promise((function(e,a){r(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(c["b"])(),Object(l["d"])(),i("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){a(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(c["b"])(),e()}))},changeRoles:function(e,t){return Object(a["a"])(Object(i["a"])().mark((function n(){var a,o,s,r,u,d;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.commit,o=e.dispatch,s=t+"-token",a("SET_TOKEN",s),Object(c["d"])(s),n.next=6,o("getInfo");case 6:return r=n.sent,u=r.roles,Object(l["d"])(),n.next=11,o("permission/generateRoutes",u,{root:!0});case 11:d=n.sent,l["c"].addRoutes(d),o("tagsView/delAllViews",null,{root:!0});case 14:case"end":return n.stop()}}),n)})))()}};t["default"]={namespaced:!0,state:u,mutations:d,actions:h}},1131:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{staticClass:"international",attrs:{trigger:"click"},on:{command:e.handleSetLanguage}},[n("div",[n("svg-icon",{attrs:{"class-name":"international-icon","icon-class":"language"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{disabled:"zh"===e.language,command:"zh"}},[e._v(" 中文 ")]),n("el-dropdown-item",{attrs:{disabled:"en"===e.language,command:"en"}},[e._v(" English ")])],1)],1)},a=[],o={computed:{language:function(){return this.$store.getters.language}},methods:{handleSetLanguage:function(e){this.$i18n.locale=e,this.$store.dispatch("app/setLanguage",e),this.$message({message:"Switch Language Success",type:"success"})}}},s=o,r=n("9bf6"),c=Object(r["a"])(s,i,a,!1,null,null,null);t["a"]=c.exports},"12a5":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},1430:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},1779:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"17df":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"18f0":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2580:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"273d":function(e,t,n){"use strict";n("9214")},2992:function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"2abb":function(e,t,n){"use strict";n("afea")},"2b29":function(e,t,n){"use strict";n("a9b3")},"2f11":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},3046:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"30c3":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"31c2":function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",(function(){return s}));var i=n("8204"),a=(n("e168"),n("d987"),n("90c8"),n("6de1"),n("f2e9"),n("a18c"));function o(e,t){return!0}function s(e,t){var n=[];return e.forEach((function(e){var a=Object(i["a"])({},e);o(t,a)&&(a.children&&(a.children=s(a.children,t)),n.push(a))})),n}var r={routes:[],addRoutes:[]},c={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=a["b"].concat(t)}},l={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var i;i=t.includes("admin")?a["a"]||[]:s(a["a"],t),n("SET_ROUTES",i),e(i)}))}};t["default"]={namespaced:!0,state:r,mutations:c,actions:l}},3289:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"3a82":function(e,t,n){"use strict";n("d3f7")},"3dde":function(e,t,n){"use strict";n("d313")},4360:function(e,t,n){"use strict";n("8b03"),n("90c8"),n("8d8a"),n("9d08"),n("3399");var i=n("ba49"),a=n("8327"),o=(n("452e"),{sidebar:function(e){return e.app.sidebar},language:function(e){return e.app.language},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}),s=o;i["default"].use(a["a"]);var r=n("c653"),c=r.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),i=r(t);return e[n]=i.default,e}),{}),l=new a["a"].Store({modules:c,getters:s});t["a"]=l},"470f":function(e,t,n){},"47f1":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"47ff":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"4d06":function(e,t,n){},"4d49":function(e,t,n){"use strict";n.r(t);n("485c");var i={logs:[]},a={ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},o={addErrorLog:function(e,t){var n=e.commit;n("ADD_ERROR_LOG",t)},clearErrorLog:function(e){var t=e.commit;t("CLEAR_ERROR_LOG")}};t["default"]={namespaced:!0,state:i,mutations:a,actions:o}},"4df5":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(r);t["default"]=r},"51ff":function(e,t,n){var i={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id="51ff"},"56d6":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"56d7":function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"parseTime",(function(){return R["c"]})),n.d(i,"formatTime",(function(){return R["b"]})),n.d(i,"timeAgo",(function(){return N})),n.d(i,"numberFormatter",(function(){return F})),n.d(i,"toThousandFilter",(function(){return $})),n.d(i,"uppercaseFirst",(function(){return U}));n("d299"),n("099a"),n("0b67"),n("5f41"),n("3dd5"),n("5227"),n("90c8"),n("f2e9");var a=n("ba49"),o=(n("d6a9"),n("067c")),s=n.n(o),r=(n("24ab"),n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),c=[],l={name:"App"},u=l,d=n("9bf6"),h=Object(d["a"])(u,r,c,!1,null,null,null),p=h.exports,m=n("4360"),f=n("a18c"),g=n("9923"),v=(n("4cc3"),n("3399"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),b=[],w=n("61f7"),y={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(w["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},x=y,T=(n("2b29"),Object(d["a"])(x,v,b,!1,null,"f9f7fefc",null)),C=T.exports;a["default"].component("svg-icon",C);var k=n("51ff"),S=function(e){return e.keys().map(e)};S(k);var A=n("dd36"),E=n("8204"),V=n("fee1"),O=n("e44a"),z=n.n(O),L=(n("50e8"),n("5f87")),M=(n("e168"),n("83d6")),P=n.n(M),H=P.a.title||"Vue Element Admin";function B(e){var t=g["a"].te("route.".concat(e));if(t){var n=g["a"].t("route.".concat(e));return"".concat(n," - ").concat(H)}return"".concat(H)}z.a.configure({showSpinner:!1});var D=["/login","/auth-redirect"];f["c"].beforeEach(function(){var e=Object(V["a"])(Object(A["a"])().mark((function e(t,n,i){var a,s,r,c,l;return Object(A["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(z.a.start(),document.title=B(t.meta.title),a=Object(L["a"])(),!a){e.next=35;break}if("/login"!==t.path){e.next=9;break}i({path:"/"}),z.a.done(),e.next=33;break;case 9:if(s=m["a"].getters.roles&&m["a"].getters.roles.length>0,!s){e.next=14;break}i(),e.next=33;break;case 14:return e.prev=14,e.next=17,m["a"].dispatch("user/getInfo");case 17:return r=e.sent,c=r.roles,e.next=21,m["a"].dispatch("permission/generateRoutes",c);case 21:l=e.sent,f["c"].addRoutes(l),i(Object(E["a"])(Object(E["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,m["a"].dispatch("user/resetToken");case 30:o["Message"].error(e.t0||"Has Error"),i("/login?redirect=".concat(t.path)),z.a.done();case 33:e.next=36;break;case 35:-1!==D.indexOf(t.path)?i():(i("/login?redirect=".concat(t.path)),z.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,n,i){return e.apply(this,arguments)}}()),f["c"].afterEach((function(){z.a.done()}));n("d987"),n("6de1");var I=P.a.errorLog;function _(){var e="production";return Object(w["c"])(I)?e===I:!!Object(w["a"])(I)&&I.includes(e)}_()&&(a["default"].config.errorHandler=function(e,t,n,i){a["default"].nextTick((function(){m["a"].dispatch("errorLog/addErrorLog",{err:e,vm:t,info:n,url:window.location.href}),console.error(e,n)}))});n("7019"),n("374d"),n("37fe"),n("8d8a"),n("fa87"),n("9d08");var R=n("ed08");function j(e,t){return 1===e?e+t:e+t+"s"}function N(e){var t=Date.now()/1e3-Number(e);return t<3600?j(~~(t/60)," minute"):t<86400?j(~~(t/3600)," hour"):j(~~(t/86400)," day")}function F(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=n[i].value)return(e/n[i].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return e.toString()}function $(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}a["default"].use(s.a,{size:"mini",i18n:function(e,t){return g["a"].t(e,t)}}),Object.keys(i).forEach((function(e){a["default"].filter(e,i[e])})),a["default"].config.productionTip=!1,new a["default"]({el:"#app",router:f["c"],store:m["a"],i18n:g["a"],render:function(e){return e(p)}})},"579d":function(e,t,n){},"5c39":function(e,t,n){"use strict";n("8a8b")},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));n("40a4"),n("5227");function i(){return localStorage.getItem("_token")}function a(e){localStorage.setItem("_token",e)}function o(){localStorage.setItem("_token","")}function s(e){localStorage.setItem("_config",JSON.stringify(e))}},"603e":function(e,t,n){},"61f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));n("90c8"),n("8d8a"),n("e17a"),n("fa87"),n("bd1a");function i(e){return/^(https?:|mailto:|tel:)/.test(e)}function a(e){return"string"===typeof e||e instanceof String}function o(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}},6599:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},6683:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},6769:function(e,t,n){"use strict";n("b377")},"708a":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},7509:function(e,t,n){"use strict";n.r(t);var i=n("b8c8"),a=n("424c"),o=n("48dd"),s=(n("3dd5"),n("d987"),n("7019"),n("485c"),n("452e"),n("90c8"),n("6de1"),n("3399"),{visitedViews:[],cachedViews:[]}),r={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,i=Object(o["a"])(e.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var s=Object(a["a"])(n.value,2),r=s[0],c=s[1];if(c.path===t.path){e.visitedViews.splice(r,1);break}}}catch(l){i.e(l)}finally{i.f()}},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,i=Object(o["a"])(e.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===t.path){a=Object.assign(a,t);break}}}catch(s){i.e(s)}finally{i.f()}}},c={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,a=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(i["a"])(a.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(i["a"])(a.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,a=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(i["a"])(a.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,a=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(i["a"])(a.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,a=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(i["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(i["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:s,mutations:r,actions:c}},"754d":function(e,t,n){"use strict";n("579d")},"80b2":function(e,t,n){"use strict";n("2992")},"80da":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});s.a.add(r);t["default"]=r},"83d6":function(e,t){e.exports={title:"币安量化交易",showSettings:!1,tagsView:!0,fixedHeader:!0,sidebarLogo:!0,supportPinyinSearch:!1,errorLog:"production"}},8644:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8a8b":function(e,t,n){},"8aa6":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8dd0":function(e,t,n){"use strict";n("aacc")},"8e8d":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8fb7":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"90fb":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9214:function(e,t,n){},"93cd":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9921:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9923:function(e,t,n){"use strict";n.d(t,"b",(function(){return x}));var i=n("8204"),a=(n("5227"),n("ba49")),o=n("b99d"),s=n("4314"),r=n.n(s),c=n("4c1e"),l=n.n(c),u=n("4420"),d=n.n(u),h=n("3eb7"),p=n.n(h),m=n("f0f8"),f=n.n(m),g={route:{dashboard:"Dashboard",documentation:"Documentation",guide:"Guide",permission:"Permission",pagePermission:"Page Permission",rolePermission:"Role Permission",directivePermission:"Directive Permission",icons:"Icons",components:"Components",tinymce:"Tinymce",markdown:"Markdown",jsonEditor:"JSON Editor",dndList:"Dnd List",splitPane:"SplitPane",avatarUpload:"Avatar Upload",dropzone:"Dropzone",sticky:"Sticky",countTo:"Count To",componentMixin:"Mixin",backToTop:"Back To Top",dragDialog:"Drag Dialog",dragSelect:"Drag Select",dragKanban:"Drag Kanban",charts:"Charts",keyboardChart:"Keyboard Chart",lineChart:"Line Chart",mixChart:"Mix Chart",example:"Example",nested:"Nested Routes",menu1:"Menu 1","menu1-1":"Menu 1-1","menu1-2":"Menu 1-2","menu1-2-1":"Menu 1-2-1","menu1-2-2":"Menu 1-2-2","menu1-3":"Menu 1-3",menu2:"Menu 2",Table:"Table",dynamicTable:"Dynamic Table",dragTable:"Drag Table",inlineEditTable:"Inline Edit",complexTable:"Complex Table",tab:"Tab",form:"Form",createArticle:"Create Article",editArticle:"Edit Article",articleList:"Article List",errorPages:"Error Pages",page401:"401",page404:"404",errorLog:"Error Log",excel:"Excel",exportExcel:"Export Excel",selectExcel:"Export Selected",mergeHeader:"Merge Header",uploadExcel:"Upload Excel",zip:"Zip",pdf:"PDF",exportZip:"Export Zip",theme:"Theme",clipboardDemo:"Clipboard",i18n:"I18n",externalLink:"External Link",profile:"Profile",futuresAccount:"Futures Account",futuresTrade:"Futures Trade",futuresTradeOrder:"Futures Trade Order",newCoinRush:"New Coin Rush",newSpotRush:"New Spot Rush",newFuturesRush:"New futures Rush",coinNotice:"Coin Notice",spotNotice:"Spot Notice",futuresNotice:"Futures Notice",marketListen:"Market Listen",spotListen:"Spot Listen",futuresListen:"Futures Listen",fundingRate:"Funding Rate",fundingRateEat:"Arbitrage",systemConfig:"System Config",strategyTemplate:"Strategy Template",testStrategyResult:"Test Strategy Result",spotsTrade:"Spots Trade",deliveryTrade:"Delivery Trade"},navbar:{dashboard:"Dashboard",github:"Github",logOut:"Log Out",profile:"Profile",theme:"Theme",size:"Global Size"},login:{title:"Login Form",logIn:"Login",username:"Username",password:"Password",any:"any",thirdparty:"Or connect with",thirdpartyTips:"Can not be simulated on local, so please combine you own business simulation! ! !"},documentation:{documentation:"Documentation",github:"Github Repository"},permission:{addRole:"New Role",editPermission:"Edit",roles:"Your roles",switchRoles:"Switch roles",tips:"In some cases, using v-permission will have no effect. For example: Element-UI el-tab or el-table-column and other scenes that dynamically render dom. You can only do this with v-if.",delete:"Delete",confirm:"Confirm",cancel:"Cancel"},guide:{description:"The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ",button:"Show Guide"},components:{documentation:"Documentation",tinymceTips:"Rich text is a core feature of the management backend, but at the same time it is a place with lots of pits. In the process of selecting rich texts, I also took a lot of detours. The common rich texts on the market have been basically used, and I finally chose Tinymce. See the more detailed rich text comparison and introduction.",dropzoneTips:"Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.",stickyTips:"when the page is scrolled to the preset position will be sticky on the top.",backToTopTips1:"When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner",backToTopTips2:"You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally",imageUploadTips:"Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version."},table:{dynamicTips1:"Fixed header, sorted by header order",dynamicTips2:"Not fixed header, sorted by click order",dragTips1:"The default order",dragTips2:"The after dragging order",title:"Title",importance:"Imp",type:"Type",remark:"Remark",search:"Search",add:"Add",export:"Export",save:"Save",reviewer:"reviewer",id:"ID",date:"Date",author:"Author",readings:"Readings",status:"Status",actions:"Actions",edit:"Edit",publish:"Publish",draft:"Draft",delete:"Delete",deleteAll:"Delete All",cancel:"Cancel",confirm:"Confirm",refresh:"Refresh",restartService:"restart service",stopService:"stop service",enableAllCoins:"enable all coins",disableAllCoins:"disable all coins",editBatch:"edit batch",totalCount:"total count",all:"all",open:"open",close:"close",test:"test",editSuccess:"edit success",editFail:"edit fail",deleteSuccess:"delete success",deleteFail:"delete fail",deleteConfirm:"confirm delete",actionSuccess:"action success",actionFail:"action fail",confirmRestartService:"confirm restart service ?",confirmStopService:"confirm stop futures service ?",confirmDeleteAll:"confirm delete all ?",confirmSave:"confirm save ?",startTime:"start time",endTime:"end time",today:"today",yesterday:"yesterday",lastWeek:"last week",refreshInterval:"refresh interval",startBot:"start bot",end:"end bot"},example:{warning:"Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details"},errorLog:{tips:"Please click the bug icon in the upper right corner",description:"Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.",documentation:"Document introduction"},excel:{export:"Export",selectedExport:"Export Selected Items",placeholder:"Please enter the file name (default excel-list)"},zip:{export:"Export",placeholder:"Please enter the file name (default file)"},pdf:{tips:"Here we use window.print() to implement the feature of downloading PDF."},theme:{change:"Change Theme",documentation:"Theme documentation",tips:"Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details."},tagsView:{refresh:"Refresh",close:"Close",closeOthers:"Close Others",closeAll:"Close All"},settings:{title:"Page style setting",theme:"Theme Color",tagsView:"Open Tags-View",fixedHeader:"Fixed Header",sidebarLogo:"binance trade bot"},showPage:{open:"open",close:"close",allowLong:"allow long",allowShort:"allow short",strategyTrade:"strategy trade",strategyCoin:"strategy coin",positionMaxCount:"position max count",excludeSymbols:"excluded automatic trading coins",orderType:"Order Type",marketOrderType:"MARKET",limitOrderType:"LIMIT: (Based on the depth of the price, the average price is taken as the average for placing orders, and it may not be possible to buy)",testPusher:"test pusher",testStrategy:"test strategy",testStrategyNoticeLimitMin:"test strategy notice limit min",externalLinks:"external links",websocket:"websocket",autoUpdatePrice:"auto update price",futuresPositionConvertEnable:"futures position convert enable"},trade:{name:"name",coin:"coin",coinType:"coin type",nowPrice:"now price",klineInterval:"kline interval",marginType:"margin type",usdt:"USDT",leverage:"leverage",profitRate:"profit%",lossRate:"loss%",enable:"enable",ISOLATED:"ISOLATED",CROSSED:"CROSSED",nowProfit:"now profit",time:"time",profit:"profit",amount:"amount",tradeType:"trade type",positionSide:"position side",short:"short",long:"long",close_long:"close(long)",close_short:"close(short)",buy:"buy",sell:"sell",spot:"spot",futures:"futures",stepSize:"step size",tickSize:"tick size",spotNoticeTips:"tips: if the amount and usdt are filled in simultaneously, the amount shall prevail",futuresNoticeTips:"tips: when profit price or loss price is 0, it will not be automatically closed",noticePrice:"notice price",hasNotice:"has notice",autoTrade:"auto trade",yes:"yes",no:"no",open:"open",close:"close",profitPrice:"profit price",lossPrice:"loss price",changePercent:"change(%)",noticeLimitMin:"notice limit(min)",lastNotice:"last notice",up:"up",down:"down",kcChannels:"kc channels",listenType:"listen type",klineBase:"kline base",keltnerChannels:"kc chart",fundingRateListenTips:"tips: The futures fund rate changes every 30 seconds, and the historical rate query API is limited to a maximum of 500 queries within 5 minutes",fundRate:"fund rate(%)",price:"price",close_price:"close price",now_price:"now price",nowFundRate:"now fund rate(%)",history:"history",fundRateHistory:"fund rate history",fundRateEatTips:"!!! This is an experimental feature and cannot guarantee stable operation. The profit or loss will be borne by the user !!!",is_closed:"is closed",assets:"assets",account:"account",position:"position",openOrder:"openOrder",technology:"technology",strategy:"strategy",strategyType:"strategy type",custom:"custom",startTime:"start time",endTime:"end time",strategyTemplate:"strategy template",period:"period",pin:"pin",notYet:"not yet"},assets:{asset:"asset",walletBalance:"Wallet Balance",unrealizedProfit:"Unrealized Profit",marginBalance:"Margin Balance",maintMargin:"Maint Margin",initialMargin:"Initial Margin",positionInitialMargin:"Position Initial Margin",openOrderInitialMargin:"Open Order Initial Margin",crossWalletBalance:"Cross Wallet Balance",crossUnPnl:"Cross Un Pnl",availableBalance:"Available Balance",maxWithdrawAmount:"Max Withdraw Amount",updateTime:"Update Time"},position:{symbol:"Symbol",initialMargin:"Initial Margin",maintMargin:"Maint Margin",unrealizedProfit:"Unrealized Profit",positionInitialMargin:"Position Initial Margin",openOrderInitialMargin:"Open Order Initial Margin",leverage:"Leverage",isolated:"Isolated",crossed:"Crossed",entryPrice:"Entry Price",maxNotional:"Max Notional",positionSide:"Position Side",positionAmt:"Position Amt",notional:"Notional",isolatedWallet:"Isolated Wallet",isolatedMargin:"Isolated Margin",isAutoAddMargin:"Is Auto Add Margin",liquidationPrice:"Liquidation Price",markPrice:"Mark Price",nowProfit:"Now Profit(%)",updateTime:"Update Time"},positionSide:{BOTH:"both",LONG:"long",SHORT:"short"},side:{BUY:"buy",SELL:"sell"},order:{symbol:"Symbol",orderId:"Order Id",clientOrderId:"Client Order Id",price:"Price",origQty:"Orig Qty",executedQty:"Executed Qty",cumQuote:"Cum Quote",avgPrice:"Avg Price",status:"Status",timeInForce:"Time In Force",type:"Type",side:"Side",stopPrice:"Stop Price",closePosition:"Close Position",positionSide:"Position Side",workingType:"Working Type",priceProtect:"Price Protect",priceMatch:"Price Match",selfTradePreventionMode:"Self Trade Prevention Mode",updateTime:"Update Time",time:"Time",reduceOnly:"Reduce Only",origType:"Orig Type",activatePrice:"Activate Price",priceRate:"Price Rate",goodTillDate:"Good Till Date",orderList:"Order List",orderHistory:"Order History",orderDetail:"Order Detail",cancelOrder:"Cancel Order",cancelAll:"Cancel All Orders",cancelSuccess:"Cancel Success",cancelFail:"Cancel Fail",cancelConfirm:"Confirm Cancel",cancelAllConfirm:"Confirm Cancel All",cancelAllSuccess:"Cancel All Success",cancelAllFail:"Cancel All Fail",cancelAllOrders:"Cancel All Orders",cancelAllOrdersSuccess:"Cancel All Orders Success",cancelAllOrdersFail:"Cancel All Orders Fail"},strategy:{name:"name",code:"code",type:"type",enable:"enable",fullScreen:"full screen"},strategyType:{global:"global",custom:"custom",line1:"line1",line2:"line2",line3:"line3",line4:"line4",line5:"line5",line6:"line6",line7:"line7"},technology:{name:"name",klineInterval:"kline interval",period:"period",std_dev_multiplier:"std dev multiplier",multiplier:"multiplier",enable:"enable"}},v={route:{dashboard:"首页",documentation:"文档",guide:"引导页",permission:"权限测试页",rolePermission:"角色权限",pagePermission:"页面权限",directivePermission:"指令权限",icons:"图标",components:"组件",tinymce:"富文本编辑器",markdown:"Markdown",jsonEditor:"JSON 编辑器",dndList:"列表拖拽",splitPane:"Splitpane",avatarUpload:"头像上传",dropzone:"Dropzone",sticky:"Sticky",countTo:"Count To",componentMixin:"小组件",backToTop:"返回顶部",dragDialog:"拖拽 Dialog",dragSelect:"拖拽 Select",dragKanban:"可拖拽看板",charts:"图表",keyboardChart:"键盘图表",lineChart:"折线图",mixChart:"混合图表",example:"综合实例",nested:"路由嵌套",menu1:"菜单1","menu1-1":"菜单 1-1","menu1-2":"菜单 1-2","menu1-2-1":"菜单 1-2-1","menu1-2-2":"菜单 1-2-2","menu1-3":"菜单 1-3",menu2:"菜单 2",Table:"Table",dynamicTable:"动态 Table",dragTable:"拖拽 Table",inlineEditTable:"Table 内编辑",complexTable:"综合 Table",tab:"Tab",form:"表单",createArticle:"创建文章",editArticle:"编辑文章",articleList:"文章列表",errorPages:"错误页面",page401:"401",page404:"404",errorLog:"错误日志",excel:"Excel",exportExcel:"导出 Excel",selectExcel:"导出 已选择项",mergeHeader:"导出 多级表头",uploadExcel:"上传 Excel",zip:"Zip",pdf:"PDF",exportZip:"Export Zip",theme:"换肤",clipboardDemo:"Clipboard",i18n:"国际化",externalLink:"外链",profile:"个人中心",futuresAccount:"合约账户",futuresTrade:"合约交易",futuresTradeOrder:"合约订单",newCoinRush:"新币抢购",newSpotRush:"币币抢购",newFuturesRush:"合约抢购",coinNotice:"币种通知",spotNotice:"现货通知",futuresNotice:"合约通知",marketListen:"行情监听",spotListen:"现货监听",futuresListen:"合约监听",fundingRate:"资金费率",fundingRateEat:"资金费率套利",systemConfig:"系统设置",strategyTemplate:"策略模板",testStrategyResult:"测试策略结果",spotsTrade:"现货交易",deliveryTrade:"币本位交易"},navbar:{dashboard:"首页",github:"项目地址",logOut:"退出登录",profile:"个人中心",theme:"换肤",size:"布局大小"},login:{title:"系统登录",logIn:"登录",username:"账号",password:"密码",any:"随便填",thirdparty:"第三方登录",thirdpartyTips:"本地不能模拟,请结合自己业务进行模拟!!!"},documentation:{documentation:"文档",github:"Github 地址"},permission:{addRole:"新增角色",editPermission:"编辑权限",roles:"你的权限",switchRoles:"切换权限",tips:"在某些情况下,不适合使用 v-permission。例如:Element-UI 的 el-tab 或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。",delete:"删除",confirm:"确定",cancel:"取消"},guide:{description:"引导页对于一些第一次进入项目的人很有用,你可以简单介绍下项目的功能。本 Demo 是基于",button:"打开引导"},components:{documentation:"文档",tinymceTips:"富文本是管理后台一个核心的功能,但同时又是一个有很多坑的地方。在选择富文本的过程中我也走了不少的弯路,市面上常见的富文本都基本用过了,最终权衡了一下选择了Tinymce。更详细的富文本比较和介绍见",dropzoneTips:"由于我司业务有特殊需求,而且要传七牛 所以没用第三方,选择了自己封装。代码非常的简单,具体代码你可以在这里看到 @/components/Dropzone",stickyTips:"当页面滚动到预设的位置会吸附在顶部",backToTopTips1:"页面滚动到指定位置会在右下角出现返回顶部按钮",backToTopTips2:"可自定义按钮的样式、show/hide、出现的高度、返回的位置 如需文字提示,可在外部使用Element的el-tooltip元素",imageUploadTips:"由于我在使用时它只有vue@1版本,而且和mockjs不兼容,所以自己改造了一下,如果大家要使用的话,优先还是使用官方版本。"},table:{dynamicTips1:"固定表头, 按照表头顺序排序",dynamicTips2:"不固定表头, 按照点击顺序排序",dragTips1:"默认顺序",dragTips2:"拖拽后顺序",title:"标题",importance:"重要性",type:"类型",remark:"点评",search:"搜索",add:"添加",export:"导出",save:"保存",reviewer:"审核人",id:"序号",date:"时间",author:"作者",readings:"阅读数",status:"状态",actions:"操作",edit:"编辑",publish:"发布",draft:"草稿",delete:"删除",deleteAll:"删除所有",cancel:"取 消",confirm:"确 定",refresh:"刷新",restartService:"重启服务",stopService:"停止服务",enableAllCoins:"启用所有币种",disableAllCoins:"停用所有币种",editBatch:"批量修改",totalCount:"总数",all:"全部",open:"开启",close:"关闭",test:"测试",editSuccess:"修改成功",editFail:"修改失败",deleteSuccess:"删除成功",deleteFail:"删除失败",deleteConfirm:"确认删除",actionSuccess:"操作成功",actionFail:"操作失败",confirmRestartService:"确认重启服务?",confirmStopService:"确认停止合约服务?",confirmDeleteAll:"确认删除所有?",confirmSave:"确认要进行保存吗?",startTime:"开始时间",endTime:"结束时间",today:"今天",yesterday:"昨天",lastWeek:"最近一周",refreshInterval:"刷新间隔",startBot:"机器人开启",end:"机器人结束"},example:{warning:"创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见"},errorLog:{tips:"请点击右上角bug小图标",description:"现在的管理后台基本都是spa的形式了,它增强了用户体验,但同时也会增加页面出问题的可能性,可能一个小小的疏忽就导致整个页面的死锁。好在 Vue 官网提供了一个方法来捕获处理异常,你可以在其中进行错误处理或者异常上报。",documentation:"文档介绍"},excel:{export:"导出",selectedExport:"导出已选择项",placeholder:"请输入文件名(默认excel-list)"},zip:{export:"导出",placeholder:"请输入文件名(默认file)"},pdf:{tips:"这里使用 window.print() 来实现下载pdf的功能"},theme:{change:"换肤",documentation:"换肤文档",tips:"Tips: 它区别于 navbar 上的 theme-pick, 是两种不同的换肤方法,各自有不同的应用场景,具体请参考文档。"},tagsView:{refresh:"刷新",close:"关闭",closeOthers:"关闭其它",closeAll:"关闭所有"},settings:{title:"系统布局配置",theme:"主题色",tagsView:"开启 Tags-View",fixedHeader:"固定 Header",sidebarLogo:"币安自动化交易"},showPage:{open:"开启",close:"关闭",allowLong:"允许做多",allowShort:"允许做空",strategyTrade:"交易策略",strategyCoin:"选币策略",positionMaxCount:"最大持仓数量",excludeSymbols:"排除自动交易的币",orderType:"自动下单类型",marketOrderType:"市价",limitOrderType:"限价(根据价格深度取平均价挂单,有可能无法买入)",testPusher:"测试推送",testStrategy:"测试策略",testStrategyNoticeLimitMin:"测试策略通知限制(min)",externalLinks:"外部链接",websocket:"websocket",autoUpdatePrice:"自动更新币价",futuresPositionConvertEnable:"仓位收益正负转换通知"},trade:{name:"名称",coin:"币种",coinType:"币种类型",nowPrice:"当前价格",klineInterval:"K线类型",marginType:"模式",usdt:"USDT",leverage:"杠杆",profitRate:"止盈%",lossRate:"止损%",enable:"启用",ISOLATED:"逐仓",CROSSED:"全仓",nowProfit:"当前盈亏",time:"时间",profit:"盈利",amount:"数量",tradeType:"交易类型",positionSide:"持仓方向",short:"做空",long:"做多",close_long:"平仓(多)",close_short:"平仓(空)",buy:"买入",sell:"卖出",spot:"现货",futures:"合约",stepSize:"数量精度",tickSize:"价格精度",spotNoticeTips:"tips: 如果交易金额和交易数量同时填写,以交易数量为准",futuresNoticeTips:"tips: 止盈价格或止损价格为 0 时代表不自动平仓",noticePrice:"通知价格",hasNotice:"已通知",autoTrade:"自动交易",yes:"是",no:"否",open:"开仓",close:"平仓",profitPrice:"止盈价格",lossPrice:"止损价格",changePercent:"涨跌幅(%)",noticeLimitMin:"通知间隔(min)",lastNotice:"最后通知",up:"上涨",down:"下跌",listenType:"监听类型",klineBase:"k线变化",keltnerChannels:"kc通道",fundingRateListenTips:"tips: 合约资金费率变化 30 秒更新一次, 历史费率查询 api 限制 5min 中内最多查询 500 次",fundRate:"资金费率(%)",price:"价格",close_price:"平仓价格",now_price:"当前价格",nowFundRate:"当前费率(%)",history:"历史",fundRateHistory:"资金费率历史",fundRateEatTips:"!!! 这是一个实验性功能,尚未完善,不保证能够稳定运行,盈亏自负 !!!",is_closed:"已平",assets:"资产",account:"账户信息",position:"仓位",openOrder:"当前委托",technology:"技术指标",strategy:"策略",open_strategy:"开仓策略",close_strategy:"平仓策略",strategyType:"策略类型",custom:"自定义",startTime:"开始时间",endTime:"结束时间",strategyTemplate:"策略模板",period:"周期",pin:"置顶",notYet:"暂未开放"},assets:{asset:"资产",walletBalance:"余额",unrealizedProfit:"未实现盈亏",marginBalance:"保证金余额",maintMargin:"维持保证金",initialMargin:"起始保证金",positionInitialMargin:"持仓所需起始保证金",openOrderInitialMargin:"当前挂单所需起始保证金",crossWalletBalance:"全仓账户余额",crossUnPnl:"全仓持仓未实现盈亏",availableBalance:"可用余额",maxWithdrawAmount:"最大可转出余额",updateTime:"更新时间"},position:{symbol:"交易对",initialMargin:"当前所需起始保证金",maintMargin:"维持保证金",unrealizedProfit:"持仓未实现盈亏",positionInitialMargin:"持仓所需起始保证金",openOrderInitialMargin:"当前挂单所需起始保证金",leverage:"杠杆",isolated:"逐仓",crossed:"全仓",entryPrice:"开仓价格",maxNotional:"最大持仓数量",positionSide:"持仓方向",positionAmt:"持仓数量",notional:"当前持仓usdt",isolatedWallet:"逐仓账户余额",isolatedMargin:"逐仓账户保证金",isAutoAddMargin:"自动追加保证金",liquidationPrice:"强平价格",markPrice:"标记价格",nowProfit:"收益率(%)",updateTime:"更新时间"},positionSide:{BOTH:"双向",LONG:"做多",SHORT:"做空"},side:{BUY:"买入",SELL:"卖出"},order:{symbol:"交易对",orderId:"订单号",clientOrderId:"用户订单号",price:"委托价格",origQty:"委托数量",executedQty:"成交数量",cumQuote:"成交金额",avgPrice:"成交均价",status:"状态",timeInForce:"有效方法",type:"订单类型",side:"买卖方向",stopPrice:"触发价",closePosition:"条件全平仓",positionSide:"持仓方向",workingType:"条件价格触发类型",priceProtect:"条件单触发保护",priceMatch:"盘口价格下单模式",selfTradePreventionMode:"订单自成交保护模式",updateTime:"更新时间",time:"订单时间",reduceOnly:"仅减仓",origType:"触发前订单类型",activatePrice:"跟踪止损激活价格",priceRate:"跟踪止损回调比例",goodTillDate:"GTD自动取消时间",orderList:"当前委托",orderHistory:"历史委托",orderDetail:"订单详情",cancelOrder:"取消订单",cancelAll:"取消所有订单",cancelSuccess:"取消成功",cancelFail:"取消失败",cancelConfirm:"确认取消",cancelAllConfirm:"确认取消所有",cancelAllSuccess:"全部取消成功",cancelAllFail:"全部取消失败",cancelAllOrders:"取消所有订单",cancelAllOrdersSuccess:"取消所有订单成功",cancelAllOrdersFail:"取消所有订单失败"},strategy:{name:"名称",code:"代码",type:"类型",enable:"启用",fullScreen:"全屏"},strategyType:{global:"全局",custom:"自定义",line1:"line1",line2:"line2",line3:"line3",line4:"line4",line5:"line5",line6:"line6",line7:"line7"},technology:{name:"名称",klineInterval:"K线类型",period:"周期",std_dev_multiplier:"带宽",multiplier:"多元",enable:"启用"}},b={route:{dashboard:"Panel de control",documentation:"Documentación",guide:"Guía",permission:"Permisos",rolePermission:"Permisos de rol",pagePermission:"Permisos de la página",directivePermission:"Permisos de la directiva",icons:"Iconos",components:"Componentes",tinymce:"Tinymce",markdown:"Markdown",jsonEditor:"Editor JSON",dndList:"Lista Dnd",splitPane:"Panel dividido",avatarUpload:"Subir avatar",dropzone:"Subir ficheros",sticky:"Sticky",countTo:"CountTo",componentMixin:"Mixin",backToTop:"Ir arriba",dragDialog:"Drag Dialog",dragSelect:"Drag Select",dragKanban:"Drag Kanban",charts:"Gráficos",keyboardChart:"Keyboard Chart",lineChart:"Gráfico de líneas",mixChart:"Mix Chart",example:"Ejemplo",nested:"Rutas anidadass",menu1:"Menu 1","menu1-1":"Menu 1-1","menu1-2":"Menu 1-2","menu1-2-1":"Menu 1-2-1","menu1-2-2":"Menu 1-2-2","menu1-3":"Menu 1-3",menu2:"Menu 2",Table:"Tabla",dynamicTable:"Tabla dinámica",dragTable:"Arrastrar tabla",inlineEditTable:"Editor",complexTable:"Complex Table",tab:"Pestaña",form:"Formulario",createArticle:"Crear artículo",editArticle:"Editar artículo",articleList:"Listado de artículos",errorPages:"Páginas de error",page401:"401",page404:"404",errorLog:"Registro de errores",excel:"Excel",exportExcel:"Exportar a Excel",selectExcel:"Export seleccionado",mergeHeader:"Merge Header",uploadExcel:"Subir Excel",zip:"Zip",pdf:"PDF",exportZip:"Exportar a Zip",theme:"Tema",clipboardDemo:"Clipboard",i18n:"I18n",externalLink:"Enlace externo",profile:"Profile"},navbar:{logOut:"Salir",dashboard:"Panel de control",github:"Github",theme:"Tema",size:"Tamaño global",profile:"Profile"},login:{title:"Formulario de acceso",logIn:"Acceso",username:"Usuario",password:"Contraseña",any:"nada",thirdparty:"Conectar con",thirdpartyTips:"No se puede simular en local, así que combine su propia simulación de negocios. ! !"},documentation:{documentation:"Documentación",github:"Repositorio Github"},permission:{addRole:"Nuevo rol",editPermission:"Permiso de edición",roles:"Tus permisos",switchRoles:"Cambiar permisos",tips:"In some cases it is not suitable to use v-permission, such as element Tab component or el-table-column and other asynchronous rendering dom cases which can only be achieved by manually setting the v-if.",delete:"Borrar",confirm:"Confirmar",cancel:"Cancelar"},guide:{description:"The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ",button:"Ver guía"},components:{documentation:"Documentación",tinymceTips:"Rich text editor is a core part of management system, but at the same time is a place with lots of problems. In the process of selecting rich texts, I also walked a lot of detours. The common rich text editors in the market are basically used, and the finally chose Tinymce. See documentation for more detailed rich text editor comparisons and introductions.",dropzoneTips:"Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.",stickyTips:"when the page is scrolled to the preset position will be sticky on the top.",backToTopTips1:"When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner",backToTopTips2:"You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally",imageUploadTips:"Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version."},table:{dynamicTips1:"Fixed header, sorted by header order",dynamicTips2:"Not fixed header, sorted by click order",dragTips1:"Orden por defecto",dragTips2:"The after dragging order",title:"Título",importance:"Importancia",type:"Tipo",remark:"Remark",search:"Buscar",add:"Añadir",export:"Exportar",reviewer:"reviewer",id:"ID",date:"Fecha",author:"Autor",readings:"Lector",status:"Estado",actions:"Acciones",edit:"Editar",publish:"Publicar",draft:"Draft",delete:"Eliminar",cancel:"Cancelar",confirm:"Confirmar"},example:{warning:"Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details"},errorLog:{tips:"Please click the bug icon in the upper right corner",description:"Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.",documentation:"Documento de introducción"},excel:{export:"Exportar",selectedExport:"Exportar seleccionados",placeholder:"Por favor escribe un nombre de fichero"},zip:{export:"Exportar",placeholder:"Por favor escribe un nombre de fichero"},pdf:{tips:"Here we use window.print() to implement the feature of downloading pdf."},theme:{change:"Cambiar tema",documentation:"Documentación del tema",tips:"Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details."},tagsView:{refresh:"Actualizar",close:"Cerrar",closeOthers:"Cerrar otros",closeAll:"Cerrar todos"},settings:{title:"Page style setting",theme:"Theme Color",tagsView:"Open Tags-View",fixedHeader:"Fixed Header",sidebarLogo:"Sidebar Logo"}},w={route:{dashboard:"トップ",documentation:"ドキュメント",guide:"ガイド",permission:"権限",rolePermission:"権限ロール",pagePermission:"ページ権限",directivePermission:"ディレクティブ権限",icons:"アイコン",components:"コンポーネント",tinymce:"TinyMCE",markdown:"Markdown",jsonEditor:"JSON Editor",dndList:"Drag-And-Drop",splitPane:"パネル",avatarUpload:"アバターアップロード",dropzone:"Dropzone",sticky:"Sticky",countTo:"Count To",componentMixin:"コンポーネントMixin",backToTop:"BackToTop",dragDialog:"Drag Dialog",dragSelect:"Drag Select",dragKanban:"Drag 看板",charts:"チャート",keyboardChart:"Keyboardチャート",lineChart:"Lineチャート",mixChart:"Mixチャート",example:"Example",nested:"Nested Routes",menu1:"メニュー1","menu1-1":"メニュー 1-1","menu1-2":"メニュー 1-2","menu1-2-1":"メニュー 1-2-1","menu1-2-2":"メニュー 1-2-2","menu1-3":"メニュー 1-3",menu2:"メニュー 2",Table:"Table",dynamicTable:"可変 Table",dragTable:"Drag Table",inlineEditTable:"Inline Edit Table",complexTable:"Complex Table",tab:"Tab",form:"フォーム",createArticle:"投稿作成",editArticle:"投稿編集",articleList:"投稿リスト",errorPages:"エラーページ",page401:"401",page404:"404",errorLog:"エラーログ",excel:"Excel",exportExcel:"一括エクスポート",selectExcel:"複数選択エクスポート",mergeHeader:"ヘッダーマージ",uploadExcel:"アップロード",zip:"Zip",pdf:"PDF",exportZip:"Export Zip",theme:"テーマ変更",clipboardDemo:"Clipboard",i18n:"多言語",externalLink:"外部リンク",profile:"プロフィール"},navbar:{dashboard:"トップ",github:"GitHub",logOut:"ログアウト",profile:"プロフィール",theme:"テーマ変更",size:"画面サイズ"},login:{title:"ユーザログイン",logIn:"ログイン",username:"ユーザ名",password:"パスワード",any:"password",thirdparty:"外部IDでログイン",thirdpartyTips:"ローカル環境ではログインできません。実装が必要です。"},documentation:{documentation:"ドキュメント",github:"Github Link"},permission:{addRole:"ロール追加",editPermission:"ロール変更",roles:"ロール",switchRoles:"ロール切替",tips:"v-permissionは使えない時があります。例えば: Element-UI の el-tab、 el-table-column 及び他の dom。v-ifを使う必要があります。",delete:"削除",confirm:"確認",cancel:"キャンセル"},guide:{description:"ガイドは各機能の説明です。",button:"ガイドを見る"},components:{documentation:"ドキュメント",tinymceTips:"tinymceは管理画面に重要な機能ですが、その同時に落とし穴がありあす。tinymceを使う道のりが大変でした。Tinymceを使う時に各自のプロジェクト状況で判断が必要です。ドキュメントはこちら",dropzoneTips:"Third partyのパッケージを使わず、独自の実装しています。詳細は @/components/Dropzone",stickyTips:"ページの指定位置へスクロールした場合、表示されます。",backToTopTips1:"トップへスクロールが表示されます。",backToTopTips2:"ボタンのスタイルはカスタマイズできます。例えば、show/hide、height、position。 またはElementのel-tooltipを使って、ツールチップを実装できます。",imageUploadTips:"mockjsは使えないため、カスタマイズしています。公式の最新バージョンを使ってください。"},table:{dynamicTips1:"先頭は固定、最後に追加",dynamicTips2:"戦後に追加せず、指定列に追加",dragTips1:"デフォルト順番",dragTips2:"Drag後の順番",title:"タイトル",importance:"重要",type:"タイプ",remark:"評価",search:"検索",add:"追加",export:"エクスポート",reviewer:"レビュアー",id:"番号",date:"日時",author:"作成者",readings:"閲覧数",status:"ステータス",actions:"操作",edit:"編集",publish:"公開",draft:"下書き",delete:"キャンセル",cancel:"キャンセル",confirm:"確認"},example:{warning:"新規作成と編集画面は keep-alive を使えないです。keep-alive の include はrouteのキャッシュは使えないです。そのため、component name を使ってキャッシュさせるようにします。このようなキャッシュ機能を作りたい場合,localStorageを使う手があります。もしくは keep-alive の includeを使って、全ページキャッシュする方法はあります。"},errorLog:{tips:"右上のbugアイコンをクリックしてください。",description:"管理画面はspaを使う場合が多い、ユーザ体現向上はできますが、想定外エラーが発生する場合があります。Vueはそのエラーハンドリング機能を提供し、エラーレポートができます。",documentation:"ドキュメント"},excel:{export:"エクスポート",selectedExport:"エクスポート対象を選択してください。",placeholder:"ファイル名を入力してください。"},zip:{export:"エクスポート",placeholder:"ファイル名を入力してください。"},pdf:{tips:"window.print() を使ってPDFダウンロードしています。"},theme:{change:"テーマ切替",documentation:"ドキュメント",tips:"Tips: テーマの切り替え方法はnavbarのtheme-pickと異なります、使い方はドキュメントを確認してください。"},tagsView:{refresh:"更新",close:"閉じる",closeOthers:"その他閉じる",closeAll:"すべて閉じる"},settings:{title:"システムテーマ",theme:"テーマ色",tagsView:"Tags-View 開く",fixedHeader:"Fixed Header",sidebarLogo:"Sidebar Logo"}};a["default"].use(o["a"]);var y={en:Object(i["a"])(Object(i["a"])({},g),l.a),zh:Object(i["a"])(Object(i["a"])({},v),d.a),es:Object(i["a"])(Object(i["a"])({},b),p.a),ja:Object(i["a"])(Object(i["a"])({},w),f.a)};function x(){var e=r.a.get("language");if(e)return e;for(var t=(navigator.language||navigator.browserLanguage).toLowerCase(),n=Object.keys(y),i=0,a=n;i-1)return o}return"en"}var T=new o["a"]({locale:x(),messages:y});t["a"]=T},"9bbf":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"9d91":function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},a14a:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return Rt})),n.d(t,"a",(function(){return jt})),n.d(t,"d",(function(){return $t}));var i=n("b8c8"),a=(n("e168"),n("90c8"),n("3363"),n("3399"),n("ba49")),o=n("1a55"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar"),e.needTagsView?n("tags-view"):e._e()],1),n("app-main"),e.showSettings?n("right-panel",[n("settings")],1):e._e()],1)],1)},r=[],c=n("8204"),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[n("div",{staticClass:"rightPanel-background"}),n("div",{staticClass:"rightPanel"},[n("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[n("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),n("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},u=[],d=(n("374d"),n("ed08")),h={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),e?Object(d["a"])(document.body,"showRightPanel"):Object(d["d"])(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){var e=this.$refs.rightPanel;e.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){var t=e.target.closest(".rightPanel");t||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},p=h,m=(n("3a82"),n("e4d6"),n("9bf6")),f=Object(m["a"])(p,l,u,!1,null,"7ce91d5a",null),g=f.exports,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[n("router-view",{key:e.key})],1)],1)],1)},b=[],w={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},y=w,x=(n("3dde"),n("bf48"),Object(m["a"])(y,v,b,!1,null,"92459f82",null)),T=x.exports,C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),n("div",{staticClass:"right-menu"},["mobile"!==e.device?[n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),n("error-log",{staticClass:"errLog-container right-menu-item hover-effect"}),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}}),n("lang-select",{staticClass:"right-menu-item hover-effect"})]:e._e(),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80"}}),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/"}},[n("el-dropdown-item",[e._v(" "+e._s(e.$t("navbar.dashboard"))+" ")])],1),n("a",{attrs:{target:"_blank",href:"https://github.com/sorry510/go_binance_futures"}},[n("el-dropdown-item",[e._v(" "+e._s(e.$t("navbar.github"))+" ")])],1),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",{staticStyle:{display:"block"}},[e._v(e._s(e.$t("navbar.logOut")))])])],1)],1)],2)],1)},k=[],S=n("dd36"),A=n("fee1"),E=n("8327"),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(" "+e._s(e.generateTitle(t.meta.title))+" ")]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(e.generateTitle(t.meta.title)))])])})),1)],1)},O=[];n("3dd5"),n("452e"),n("8a0d"),n("bd1a");function z(e){var t=this.$te("route."+e);if(t){var n=this.$t("route."+e);return n}return e}var L,M,P=n("6699"),H=n.n(P),B={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{generateTitle:z,getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=H.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},D=B,I=(n("d8f9"),Object(m["a"])(D,V,O,!1,null,"f952d274",null)),_=I.exports,R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},j=[],N={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},F=N,$=(n("8dd0"),Object(m["a"])(F,R,j,!1,null,"49e15297",null)),U=$.exports,q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.errorLogs.length>0?n("div",[n("el-badge",{staticStyle:{"line-height":"25px","margin-top":"-5px"},attrs:{"is-dot":!0},nativeOn:{click:function(t){e.dialogTableVisible=!0}}},[n("el-button",{staticStyle:{padding:"8px 10px"},attrs:{size:"small",type:"danger"}},[n("svg-icon",{attrs:{"icon-class":"bug"}})],1)],1),n("el-dialog",{attrs:{visible:e.dialogTableVisible,width:"80%","append-to-body":""},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("span",{staticStyle:{"padding-right":"10px"}},[e._v("Error Log")]),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-delete"},on:{click:e.clearAll}},[e._v("Clear All")])],1),n("el-table",{attrs:{data:e.errorLogs,border:""}},[n("el-table-column",{attrs:{label:"Message"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[n("div",[n("span",{staticClass:"message-title"},[e._v("Msg:")]),n("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(i.err.message)+" ")])],1),n("br"),n("div",[n("span",{staticClass:"message-title",staticStyle:{"padding-right":"10px"}},[e._v("Info: ")]),n("el-tag",{attrs:{type:"warning"}},[e._v(" "+e._s(i.vm.$vnode.tag)+" error in "+e._s(i.info)+" ")])],1),n("br"),n("div",[n("span",{staticClass:"message-title",staticStyle:{"padding-right":"16px"}},[e._v("Url: ")]),n("el-tag",{attrs:{type:"success"}},[e._v(" "+e._s(i.url)+" ")])],1)]}}],null,!1,3134886942)}),n("el-table-column",{attrs:{label:"Stack"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.err.stack)+" ")]}}],null,!1,2525805560)})],1)],1)],1):e._e()},W=[],G={name:"ErrorLog",data:function(){return{dialogTableVisible:!1}},computed:{errorLogs:function(){return this.$store.getters.errorLogs}},methods:{clearAll:function(){this.dialogTableVisible=!1,this.$store.dispatch("errorLog/clearErrorLog")}}},Y=G,Q=(n("6769"),Object(m["a"])(Y,q,W,!1,null,"be34583a",null)),K=Q.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},J=[],X=n("c934"),ee=n.n(X),te={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!ee.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;ee.a.toggle()},change:function(){this.isFullscreen=ee.a.isFullscreen},init:function(){ee.a.enabled&&ee.a.on("change",this.change)},destroy:function(){ee.a.enabled&&ee.a.off("change",this.change)}}},ne=te,ie=(n("2abb"),Object(m["a"])(ne,Z,J,!1,null,"1d75d652",null)),ae=ie.exports,oe=n("1131"),se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search",class:{show:e.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,(function(e){return n("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})})),1)],1)},re=[],ce=n("48dd"),le=(n("e224"),n("8d8a"),n("1a71"),n("f2e9"),n("af64")),ue=n.n(le),de=n("cad9"),he=n.n(de),pe=n("9923"),me={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes},lang:function(){return this.$store.getters.language},supportPinyinSearch:function(){return this.$store.state.settings.supportPinyinSearch}},watch:{lang:function(){this.searchPool=this.generateRoutes(this.routes)},routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){"zh"===this.lang&&this.supportPinyinSearch&&this.addPinyinField(e),this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{addPinyinField:function(e){return Object(A["a"])(Object(S["a"])().mark((function t(){var i,a;return Object(S["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.e("chunk-65d81035").then(n.t.bind(null,"f08b",7));case 2:if(i=t.sent,a=i.default,!Array.isArray(e)){t.next=7;break}return e.forEach((function(e){var t=e.title;Array.isArray(t)&&t.forEach((function(t){t=a(t,{style:a.STYLE_NORMAL}).join(""),e.pinyinTitle=t}))})),t.abrupt("return",e);case 7:case"end":return t.stop()}}),t)})))()},click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new ue.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"pinyinTitle",weight:.3},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[],s=Object(ce["a"])(e);try{for(s.s();!(t=s.n()).done;){var r=t.value;if(!r.hidden){var c={path:he.a.resolve(n,r.path),title:Object(i["a"])(a)};if(r.meta&&r.meta.title){var l=pe["a"].t("route.".concat(r.meta.title));c.title=[].concat(Object(i["a"])(c.title),[l]),"noRedirect"!==r.redirect&&o.push(c)}if(r.children){var u=this.generateRoutes(r.children,c.path,c.title);u.length>=1&&(o=[].concat(Object(i["a"])(o),Object(i["a"])(u)))}}}}catch(d){s.e(d)}finally{s.f()}return o},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},fe=me,ge=(n("d146"),Object(m["a"])(fe,se,re,!1,null,"db94b0e8",null)),ve=ge.exports,be=n("5f87"),we={components:{Breadcrumb:_,Hamburger:U,ErrorLog:K,Screenfull:ae,LangSelect:oe["a"],Search:ve},computed:Object(c["a"])({},Object(E["b"])(["sidebar","avatar","device"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(A["a"])(Object(S["a"])().mark((function t(){return Object(S["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(be["b"])(),e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 2:case"end":return t.stop()}}),t)})))()}}},ye=we,xe=(n("273d"),Object(m["a"])(ye,C,k,!1,null,"a1e5cda0",null)),Te=xe.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[e._v(e._s(e.$t("settings.title")))]),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.theme")))]),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.tagsView")))]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.fixedHeader")))]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v(e._s(e.$t("settings.sidebarLogo")))]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1),e.isShowJob?n("a",{staticClass:"job-link",attrs:{href:"https://panjiachen.github.io/vue-element-admin-site/zh/job/",target:"_blank"}},[n("el-alert",{attrs:{title:"部门目前非常缺人!有兴趣的可以点击了解详情。坐标: 字节跳动",type:"success",closable:!1}})],1):e._e(),"zh"===e.lang?n("div",{staticClass:"drawer-item"},[n("span",[e._v("菜单支持拼音搜索")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.supportPinyinSearch,callback:function(t){e.supportPinyinSearch=t},expression:"supportPinyinSearch"}})],1):e._e()])])},ke=[],Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},Ae=[],Ee=(n("7019"),n("37fe"),n("fe02"),n("1b55"),n("e17a"),n("fa87"),n("9d08"),n("0515").version),Ve="#409EFF",Oe={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(A["a"])(Object(S["a"])().mark((function n(){var i,a,o,s,r,c,l,u;return Object(S["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.chalk?t.theme:Ve,"string"===typeof e){n.next=3;break}return n.abrupt("return");case 3:if(a=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(i.replace("#","")),console.log(a,o),s=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),r=function(e,n){return function(){var i=t.getThemeCluster(Ve.replace("#","")),o=t.updateStyle(t[e],i,a),s=document.getElementById(n);s||(s=document.createElement("style"),s.setAttribute("id",n),document.head.appendChild(s)),s.innerText=o}},t.chalk){n.next=12;break}return c="https://unpkg.com/element-ui@".concat(Ee,"/lib/theme-chalk/index.css"),n.next=12,t.getCSSString(c,"chalk");case 12:l=r("chalk","chalk-style"),l(),u=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(i,"i").test(t)&&!/Chalk Variables/.test(t)})),u.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,o,a))})),t.$emit("change",e),s.close();case 18:case"end":return n.stop()}}),n)})))()}},methods:{updateStyle:function(e,t,n){var i=e;return t.forEach((function(e,t){i=i.replace(new RegExp(e,"ig"),n[t])})),i},getCSSString:function(e,t){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[t]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",e),a.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return 0===t?[n,i,a].join(","):(n+=Math.round(t*(255-n)),i+=Math.round(t*(255-i)),a+=Math.round(t*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),i=Math.round((1-t)*i),a=Math.round((1-t)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[e],a=0;a<=9;a++)i.push(t(e,Number((a/10).toFixed(2))));return i.push(n(e,.1)),i}}},ze=Oe,Le=(n("f26d"),Object(m["a"])(ze,Se,Ae,!1,null,null,null)),Me=Le.exports,Pe={components:{ThemePicker:Me},data:function(){return{}},computed:{isShowJob:function(){return"zh"===this.$store.getters.language},fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}},supportPinyinSearch:{get:function(){return this.$store.state.settings.supportPinyinSearch},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"supportPinyinSearch",value:e})}},lang:function(){return this.$store.getters.language}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},He=Pe,Be=(n("5c39"),Object(m["a"])(He,Ce,ke,!1,null,"47d538e2",null)),De=Be.exports,Ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},_e=[],Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.$t(e.title))+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.$t(e.title))+" ")])])],1)],1)},je=[],Ne={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"settings.sidebarLogo",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNCAYAAADjCemwAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAHdElNRQfoChQCKAodBHj8AAANQklEQVR42t2caWxc1RXHf/e+N953x3b2YCdxYhxIwlbWFhRaNrWAoEoodGNpBTRULR+QCpSqhQpQqaAplaCo0NICKqBSKrGjQiElNCEkZHX2nXiJt9gee+a9d/vhXtszdmaz3xuTHCnK2DPjmfd/Z/ufe84RZEnCK6YOPrSBGmAucArQCMwGpgOTgCIgB5CAB0SAo0AbcADYAWwGNgDbgRbAAchffigr1yKyBFQeMAc4F7gAWGhAKgGsMfxpxwB5AFgPfAD81wDaHzSAIkCwBDANuBi4EjgbqDYa5Ld4RuM+Bv4JvGMAVUGAJwIASwL1wDLgWmCeMclsiQNsA14GXgC2Ap6f4AmfzbAO+D5wAzAraPNPIQrYB/wN+BOw0y+zFT6BVQJcB9wBNEwwWMcCrwlYATwHdI4XPOGD3zoduAe4zES9L6pEgTeBXwGrx+PvxDgAyzNmeI8xxeNF9gEPAM8C4bEAJ8YI2CQD1i1AAcefhIGnjNa1ZmquIkOwAGqBR0waITl+xQNeBe4EdmUCnMgQsAbgD8CFnDjyPnArsCVd4ESGgP0ROI8TT1YaV5MWcOmaV53RsCwApsBz9T+lsgXaeeb6asdtnkbLqoAngauCx8tDlM5CzlqCam9Cde5EhdvBc7IF3j+AHwKtybRNpJFWPAQsz0rC6jlYJ19HaMlvwQmjej7H+3w1zqoHUb2tIITRRM98ewFC+qzm/A64CxhIBJxM4ce+Y2w9Oxm+tJE1izUQoUJE+RxE1SnDIAFW/dXYZyxHzrgAUTQFZMhvLn4L8O0ROMSJnQSws4CfAfnZYjsitxRRtSD+t60bUP0d+nLsfKyGpcgZX4ZoH6r3MM7GZ3HXPennFykA7gbWAWvCK6aOCgyJdLvUvHGWrzdRKe2flGcsYYQ/K56OKD0pDkiv+VPwoqAUomgyonyOfipUgCirQ1ghUK7fd/Akc/0lKc0zRsu+Zbikbw5e1l6Mff59WPVXISrqIVQYD6JSiEmNiLzy4bcNdKHaNmrfpTxkxTxEQVUMm+zDa143Cn+f5HKDwygzPVadazbwI8A/ZyEtrLrLsBqWguegwkdQnTvxWj7DO7wWdWQLqvfwsD8bBK17P6prn763QiFqFsX5MNVzCNWx0wQI3yXH4PDWIGMYBVpM1eJG4GT/tEwh8soRkxqHnL0orEEU1iCnnQteFNXXhureN8I0QbVtQoWPaE0MFSKrF8YH2/YmVLjN7wgaK43o+uC9sb5tpKbNN3UxXymeKKtFlsxMoIUhRNEUHQlHPlV1CvaZP8Fr3QBuBFE+Nx7U5k/BHQBhEaBcjy5kbo3TtBibXZZuVpyR5Jaiwm3aadvpB2MxqRF7UiO4A6hILyKvbLQ/81ywAgWt1uDyi0Fti9W06cA1vn+ksPD2f0jklaWI8jpkzWnI2kuQ1aemb1ZWLiI/d9TflXWXgdOP17YJomGQgYF3jSklHQAQMVr2PUPIgzkEMRESQJTMIPTVx7RPG6/0d+IeWIm7+Tm8AyuNufru4xyT9D4Tm3LkAt8gyFMjIbUmSAvVvQ9v779TBpC0JK8Ma84V5Fz6BKELH0SUzzZ5oK9iG3xyYwPBHPS5ZHZESMirSPy8O4Cz7kmdm1WfiiivRxTWgExyT3OKsE5ehqhagPOfe/EOrfJb485GdwVsHPwW5wCTs0WXyCnSPi3RK3qbcTf8BdW9T3PQoqnIyYu1L5x+fnxAGBVxFxC66CEib92Oat3oJ3CTDU4bJbot4IKskXKldIpRPjvxS9q36fxL2jpydu7E3fJ3om8vJ/r6zXj73ktqgqKiHvuMH0OoAB/pgjA42RLdKrAwa6apPGTFfET+pMSZXct6cPpH+EMb3Aje/g+Jvn0H7o5/JQ+4M7+ik2F//dtCoFoaO52RTX+m6ZCd0J9pPqkSUjLV14Kz+jFUT5KydE6xpmX+8tIZQL0EFiRi84H4s1BhSn+mOrYn55PCQnXtQXXsSFHkqfabl5YAC6ThmXb2/NlURFkyf7Yd1duSwoEr/Xwq+uRG/L4CCzh50Dyz588q6xEFSfxZ81qI9qags/osYai2lujjju4PImebI9E9ZFn0Z4sTl6jNBYriafo1ytX1Ns81j/XPorAa+7Tbde6WCLCBTlTbpiDKRtNs9GlTFv3ZwqSg2qcvx5p3Laq9Ca9tM6pzF6qvVdMjOx9ZMRc5+wrklDOSf9rna/Dam4KgVFU2UJzV/CyJP9OEJQ9RVqvLSXWXau1zI1rThAVWbkrtUf0dOJ89DZGeIMpGRTbZao9SHrJyflJ/lpBy2Xnpf0x/B86qh/H2vx9UnS3HJltNLEIiqhcl9WdqoBMRKtTalOk9CR9Bfb4aZ8Of8fZ/QFAHB5gM02NsHdb+5mc9h4i++1Ow85BVpyJrFiEqGxCFk9Oqk6mW9UQ/+jXqyFa/z0JHxW4b3aefnxV/liRFUO1NeIf+B04Yb/dbYOcjiqchJ5+BrLsEOe1cRG5p4ts/6yJCeRU4K3+Jd/CjIM8NIhLoyY4/m5ciP1uvI6S0tS9yI6iOnbibnyf65m1EX7sJb9cb+gw0AZ+WNYsILXkEOeXMIPKzQTkqMZ2AwfuzJPmZO6BJ+ki+OYKoR96+A2fNingyP/KjSmuxz7oT8sqC8mutEjg48XyzBdW+LXkqIS2I9OB8sgJ32yvJPfW0s5FTz4nrAfFRDkr0aEwA7tKcnHtufDvBsUDr2I7qbU7th4SAaB9u00vJqZaVi5xyelCHyDts9HCW60sEVS5y5kVYdZfiNa/Fa90MkU6shqVJKY+un4XTc95CovpaUNFenZ4kellBtcnTfDVRB9hkAxuBbqB83GZo52MtuAFr9hVYC25A9XdCtE8DlggQNzJcP0tHMZRC5FciQimayr1oED6tG3NGsB3YP27QzCHI0LGcsBD5lZBfmfxtfS2o9iZNk5QwJiUSAoZl6/POUFGKCsfBYerln+wHdkigGT3+N+482Zp7ZVzXT1qBNacYe/GtWPO/iaicDzklpktosMLhDPlHkVeKfeqNWA3LUtTRBvShiv/Bcz3QbBs7/QA9fSLGqmWieKZutstUckuxTvkuVuMNqP52VPc+VOdu/X9fq04vrBxEyXTklLOQNYtS0izVtVf3f/gbCBTwIeAOVmw/Ag4DU8aWhwlUfwfRD+9DVi/WFKjCnFWmyyOlhSio0v1nk08f8V0zu3h399vpRePM5LDBaajMvR1YBVw9xuwVoj14u9/F2/OupkAF1YiKucjqRciaxYjKeYZH2pn/7UzUoWsPbtOLOt3xF7SPDU5DoA2gR16+zpjPC8QwsXYj2ry69uDteUeDWD6HnK89rrsgg5JoH87ax02i7CtgDnpieQBAxjThvkNMD5Yf1GmIRzphnQLEnowrhbv1JdwNz+C1rEcNdI2TRh/FWf0o7pYXg7gdTQafUa1WB9AjzAuCqHLISY06BRn8VfSoBuzwGsgtw25Yin3+z2NSBDO5ksqco314Letw1z2Fu+cdUA4BNAu8bPBhyDzzlx8abOx7AT074G9jn7R01IvNmboP6F4NJAx0mlTDismzDuCsehhyihElM3WQyCkBK6T7dvs7UJ278ZrXoprXowY6jUn6Dtgeg0vC9tGt6FbJe/wl7EWIqnjC7rVtHp4PsAqQkxfHv6t1sybmbmS4TUvY+rHytEZ5jg6uUgZZP3tupNsa+qQY3/Y0sMnXAmTxdERZ7YhK66fgmvmAwppR/bReyzrtB+UgUEr/7A4MzRUgLBN8Auvd2YxeGhA3un2s27ML+L2p6PpXgIztR4scxWvZqK9VeYiKuYjC6phY1W/qa0ykRIHHMVsWjqlpI7TtOeA1f6Kohde6Cefj3+DuegPVvRevYzuqa7f+eCF1o0pMEqx6D+s+DTGhSxdeN65q1JiPnYTNPwAsQo+8jAM0gerYjrPmUbDytEaFimL8WR6ysiFeOdubUH0tQfqpVLLXXP8x86BRJYAHXj/KPZcXAxwC+oAljHd6ZXDEUHkw0AXhtrhsX/UcRHXtRkV6EFYIb9cb5nBkQjQtbALhq8fSsqQcJWbe80H0kpLgrsBzjdblau7phLUmZn8nikIvPbkL6E8075nuZPETY+elmQcOEBOlZa8AP2Csk8UjgKs1ofdCTlx5D7gJ2OXX4P9u4Db0VoETUVaa69uVFsFJ9YIY1LegpzbePwE1LO31Emlr2gjgbjS27x3nYHno7Qg3ZQJYxhW+mDmqKuBe4GayNuPuq/Sh58DuB9oyXdI0nq1W+eitAncDM48jwPYasP6aLK3wHbQY4ARwpkkGL+GLvT8tYqjR/cAnZHt/2jHMtRQ9gbscvQPyi7apbwt6ScnzhiJOzKa+BODNNoHiemOyE70Tcq8xw6fJcN1X4KCNAE+iZ+GXoSdy65mY7aMvoiuu2/gibh9N4u+mM7zn9ktkZ8/tK+hDkIMcD3tuk5ht7Ebl803JaTq6HX8sWuga33TibFROAaBtNG4u+uSr0QA6zeR/xaYUZTG8u7sH3bF5kNG7u5vJ8u7u/wO9IBRN+xsn6wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNC0xMC0yMFQwMjo0MDoxMCswMDowMP1JmCQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjQtMTAtMjBUMDI6NDA6MTArMDA6MDCMFCCYAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI0LTEwLTIwVDAyOjQwOjEwKzAwOjAw2wEBRwAAAABJRU5ErkJggg=="}}},Fe=Ne,$e=(n("e78a"),Object(m["a"])(Fe,Re,je,!1,null,"23278b1c",null)),Ue=$e.exports,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.generateTitle(e.item.meta.title)}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.generateTitle(e.onlyOneChild.meta.title)}})],1)],1):e._e()]],2)},We=[],Ge=n("61f7"),Ye=(n("d987"),n("6de1"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,o=[];return i&&(i.includes("el-icon")?o.push(e("i",{class:[i,"sub-el-icon"]})):o.push(e("svg-icon",{attrs:{"icon-class":i}}))),a&&o.push(e("span",{slot:"title"},[a])),o}}),Qe=Ye,Ke=(n("f87e"),Object(m["a"])(Qe,L,M,!1,null,"18eeea00",null)),Ze=Ke.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Xe=[],et={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(Ge["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},tt=et,nt=Object(m["a"])(tt,Je,Xe,!1,null,null,null),it=nt.exports,at={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},ot={name:"SidebarItem",components:{Item:Ze,AppLink:it},mixins:[at],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(c["a"])(Object(c["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(Ge["b"])(e)?e:Object(Ge["b"])(this.basePath)?this.basePath:he.a.resolve(this.basePath,e)},generateTitle:z}},st=ot,rt=Object(m["a"])(st,qe,We,!1,null,null,null),ct=rt.exports,lt=n("cf1e"),ut=n.n(lt),dt={components:{SidebarItem:ct,Logo:Ue},computed:Object(c["a"])(Object(c["a"])({},Object(E["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ut.a},isCollapse:function(){return!this.sidebar.opened}})},ht=dt,pt=Object(m["a"])(ht,Ie,_e,!1,null,null,null),mt=pt.exports,ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v(" "+e._s(e.generateTitle(t.title))+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v(e._s(e.$t("tagsView.refresh")))]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v(e._s(e.$t("tagsView.close")))]),n("li",{on:{click:e.closeOthersTags}},[e._v(e._s(e.$t("tagsView.closeOthers")))]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v(e._s(e.$t("tagsView.closeAll")))])])],1)},gt=[],vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},bt=[],wt=(n("3066"),4),yt={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,i=this.scrollWrapper,a=this.$parent.$refs.tag,o=null,s=null;if(a.length>0&&(o=a[0],s=a[a.length-1]),o===e)i.scrollLeft=0;else if(s===e)i.scrollLeft=i.scrollWidth-n;else{var r=a.findIndex((function(t){return t===e})),c=a[r-1],l=a[r+1],u=l.$el.offsetLeft+l.$el.offsetWidth+wt,d=c.$el.offsetLeft-wt;u>i.scrollLeft+n?i.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",a=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var o=he.a.resolve(n,e.path);a.push({fullPath:o,path:o,name:e.name,meta:Object(c["a"])({},e.meta)})}if(e.children){var s=t.filterAffixTags(e.children,e.path);s.length>=1&&(a=[].concat(Object(i["a"])(a),Object(i["a"])(s)))}})),a},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(ce["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,i=Object(ce["a"])(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){i.e(o)}finally{i.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var n=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+n})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(n){var i=n.visitedViews;t.isActive(e)&&t.toLastView(i,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var i=n.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(i,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,o=a-n,s=t.clientX-i+15;this.left=s>o?o:s,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},St=kt,At=(n("80b2"),n("e057"),Object(m["a"])(St,ft,gt,!1,null,"6ffcf3f8",null)),Et=At.exports,Vt=n("4360"),Ot=document,zt=Ot.body,Lt=992,Mt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Vt["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Vt["a"].dispatch("app/toggleDevice","mobile"),Vt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=zt.getBoundingClientRect();return e.width-1'});s.a.add(r);t["default"]=r},aacc:function(e,t,n){},ab00:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ad1c:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ae1b:function(e,t,n){},afea:function(e,t,n){},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b377:function(e,t,n){},b3b5:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(r);t["default"]=r},b775:function(e,t,n){"use strict";n("90c8");var i=n("940b"),a=n.n(i),o=n("067c"),s=n("4360"),r=n("5f87"),c=a.a.create({baseURL:"",timeout:3e4});c.interceptors.request.use((function(e){return s["a"].getters.token&&(e.headers["Authorization"]=Object(r["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),c.interceptors.response.use((function(e){var t=e.data;if(200===t.code)return t;Object(o["Notification"])({title:"Notification Error",message:t.msg||t.message||"Error",type:"error",position:"top-right"})}),(function(e){var t,n=null===(t=e.response)||void 0===t?void 0:t.status;if(401!==n)return console.log("err"+e),Promise.reject(e);o["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){s["a"].dispatch("user/resetToken").then((function(){location.reload()}))}))})),t["a"]=c},bae9:function(e,t,n){},bc35:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},bd35:function(e,t,n){},bf48:function(e,t,n){"use strict";n("ca8d")},c653:function(e,t,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id="c653"},c829:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ca8d:function(e,t,n){},cbb7:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});s.a.add(r);t["default"]=r},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},d146:function(e,t,n){"use strict";n("ae1b")},d313:function(e,t,n){},d3f7:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(r);t["default"]=r},d8f9:function(e,t,n){"use strict";n("bd35")},d9cd:function(e,t,n){"use strict";n.r(t);var i=n("4314"),a=n.n(i),o=n("9923"),s={sidebar:{opened:!a.a.get("sidebarStatus")||!!+a.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",language:Object(o["b"])(),size:a.a.get("size")||"medium"},r={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?a.a.set("sidebarStatus",1):a.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){a.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_LANGUAGE:function(e,t){e.language=t,a.a.set("language",t)},SET_SIZE:function(e,t){e.size=t,a.a.set("size",t)}},c={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setLanguage:function(e,t){var n=e.commit;n("SET_LANGUAGE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:s,mutations:r,actions:c}},dbc7:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},dcf8:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},de06:function(e,t,n){"use strict";n("4d06")},e057:function(e,t,n){"use strict";n("a3a7")},e4d6:function(e,t,n){"use strict";n("470f")},e534:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},e78a:function(e,t,n){"use strict";n("f661")},e7c8:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},eb1b:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},ed08:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return c}));var i=n("6497");n("1652"),n("e224"),n("4cc3"),n("7019"),n("5227"),n("90c8"),n("fe02"),n("8d8a"),n("1b55"),n("e17a"),n("fa87"),n("4a51"),n("3363"),n("5f23"),n("04b0"),n("9d08"),n("f2e9"),n("3399");function a(e,t){if(0===arguments.length||!e)return null;var n,a=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var o={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},s=a.replace(/{([ymdhisa])+}/g,(function(e,t){var n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return s}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),i=Date.now(),o=(i-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?a(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function s(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function r(e,t){s(e,t)||(e.className+=" "+t)}function c(e,t){if(s(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}},f26d:function(e,t,n){"use strict";n("603e")},f661:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});s.a.add(r);t["default"]=r},f87e:function(e,t,n){"use strict";n("bae9")},f9a1:function(e,t,n){"use strict";n.r(t);var i=n("7682"),a=n.n(i),o=n("f675"),s=n.n(o),r=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(r);t["default"]=r}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/static/js/chunk-113c185c.3c7653c8.js b/static/js/chunk-113c185c.3c7653c8.js deleted file mode 100644 index 89369de..0000000 --- a/static/js/chunk-113c185c.3c7653c8.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-113c185c"],{"07fe":function(e,t,n){},1:function(e,t){},7506:function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s}));var a=n("b775");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/strategy-templates",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"put",data:t})}function i(e){return Object(a["a"])({url:"/strategy-templates",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"delete"})}function s(e,t){return Object(a["a"])({url:"/strategy-templates/test/".concat(e),method:"post",data:t})}},"79b2":function(e,t,n){"use strict";n("07fe")},"97c4":function(e,t,n){(function(e){e(n("c5ba"))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,a=e.length;ni.ch&&(r.end=i.ch,r.string=r.string.slice(0,i.ch-r.start)):r={start:i.ch,end:i.ch,string:"",state:r.state,type:"."==r.string?"property":null};var c=r;while("property"==c.type){if(c=l(n,t(i.line,c.start)),"."!=c.string)return;if(c=l(n,t(i.line,c.start)),!u)var u=[];u.push(c)}return{list:b(r,u,a,o),from:t(i.line,r.start),to:t(i.line,r.end)}}}}function o(e,t){return l(e,d,(function(e,t){return e.getTokenAt(t)}),t)}function i(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function r(e,t){return l(e,p,i,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",r);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function f(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var a in e)t(a)}function b(e,t,l,o){var i=[],r=e.string,d=o&&o.globalScope||window;function p(e){0!=e.lastIndexOf(r,0)||a(i,e)||i.push(e)}function b(e){"string"==typeof e?n(s,p):e instanceof Array?n(c,p):e instanceof Function&&n(u,p),f(e,p)}if(t&&t.length){var g,m=t.pop();m.type&&0===m.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[m.string]),o&&!1===o.useGlobalScope||(g=g||d[m.string])):"string"==m.type?g="":"atom"==m.type?g=1:"function"==m.type&&(null==d.jQuery||"$"!=m.string&&"jQuery"!=m.string||"function"!=typeof d.jQuery?null!=d._&&"_"==m.string&&"function"==typeof d._&&(g=d._()):g=d.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&b(g)}else{for(var h=e.state.localVars;h;h=h.next)p(h.name);for(h=e.state.globalVars;h;h=h.next)p(h.name);o&&!1===o.useGlobalScope||b(d),n(l,p)}return i}}))},a6a9:function(e,t,n){"use strict";var a=n("38e0"),l=n("33e4").find,o=n("6466"),i=n("effa"),r="find",s=!0,c=i(r);r in[]&&Array(1)[r]((function(){s=!1})),a({target:"Array",proto:!0,forced:s||!c},{find:function(e){return l(this,e,arguments.length>1?arguments[1]:void 0)}}),o(r)},d04b:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.openDialog()}}},[e._v(" "+e._s(e.$t("table.add"))+" ")]),n("el-button",{attrs:{type:"primary",size:"mini",loading:e.listLoading},on:{click:function(t){return e.fetchData()}}},[e._v(" "+e._s(e.$t("table.refresh"))+" ")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("trade.name"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"80","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{model:e.info,"label-position":"left","label-width":"100px"}},[n("el-form-item",{attrs:{label:e.$t("trade.name"),prop:"name"}},[n("el-input",{model:{value:e.info.name,callback:function(t){e.$set(e.info,"name",t)},expression:"info.name"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.addData(e.info)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTechnologyTitle,visible:e.dialogTechnologyVisible},on:{"update:visible":function(t){e.dialogTechnologyVisible=t}}},[n("el-tabs",{attrs:{value:"ma"}},[n("el-tab-pane",{attrs:{label:"ma",name:"ma"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addMa}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ma,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delMa(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"ema",name:"ema"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addEma}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ema,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delEma(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"rsi",name:"rsi"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addRsi}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.rsi,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delRsi(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"kc",name:"kc"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addKc}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.kc,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.multiplier,callback:function(n){e.$set(t.row,"multiplier",n)},expression:"scope.row.multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delKc(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"boll",name:"boll"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBoll}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.boll,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.std_dev_multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.std_dev_multiplier,callback:function(n){e.$set(t.row,"std_dev_multiplier",n)},expression:"scope.row.std_dev_multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delBoll(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"atr",name:"atr"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addAtr}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.atr,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delAtr(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTechnologyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmTechnology()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogStrategyTitle,visible:e.dialogStrategyVisible,width:"75%"},on:{"update:visible":function(t){e.dialogStrategyVisible=t}}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addStrategy}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.strategy,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("strategy.name"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.code"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{type:"textarea",rows:6,size:"small"},model:{value:t.row.code,callback:function(n){e.$set(t.row,"code",n)},expression:"scope.row.code"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.fullScreen"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(n){return e.fullCodeScreenChange(t.row,t.$index)}},model:{value:t.row.fullScreen,callback:function(n){e.$set(t.row,"fullScreen",n)},expression:"scope.row.fullScreen"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.type"),align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.type,callback:function(n){e.$set(t.row,"type",n)},expression:"scope.row.type"}},[n("el-option",{attrs:{label:e.$t("trade.long"),value:"long"}}),n("el-option",{attrs:{label:e.$t("trade.short"),value:"short"}}),n("el-option",{attrs:{label:e.$t("trade.close_long"),value:"close_long"}}),n("el-option",{attrs:{label:e.$t("trade.close_short"),value:"close_short"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delStrategy(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogStrategyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmStrategy()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogCodeTitle,visible:e.dialogCodeVisible,fullscreen:""},on:{"update:visible":function(t){e.dialogCodeVisible=t},closed:e.codeScreenClose}},[n("div",{staticClass:"code-full",staticStyle:{width:"100%"}},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-link",{attrs:{href:"https://expr-lang.org/docs/language-definition",type:"success",target:"_blank"}},[e._v("code rule")])],1),n("el-button",{attrs:{type:"primary"},on:{click:e.testStrategyRule}},[e._v(e._s(e.$t("table.test"))+" ")])],1),n("codemirror",{ref:"cmEditor",attrs:{value:e.code,options:e.cmOptions},on:{ready:e.onCmReady,focus:e.onCmFocus,input:e.onCmCodeChange}})],1)])],1)},l=[],o=n("8204"),i=n("b8c8"),r=n("dd36"),s=n("fee1"),c=(n("e168"),n("3dd5"),n("a6a9"),n("4cc3"),n("452e"),n("40a4"),n("374d"),n("5227"),n("90c8"),n("4a51"),n("3363"),n("8a0d"),n("f2e9"),n("3399"),n("7506")),u=n("1888"),d=n("ed08"),p=n("c5ba"),f=n.n(p),b=n("1ca5"),g=(n("7392"),n("cedf"),n("1657"),n("d8c5"),n("8f95"),n("31af"),n("e83b"),n("8961"),n("45d2"),n("7f27"),n("669a"),n("be82"),n("d770"),n("30fe"),n("3a45"),n("4a07"),n("a7ed"),n("cb97"),n("0c7b"),n("065a"),n("5ca6"),n("2399"),n("67ed"),n("6367"),n("5734"),n("97c4"),n("df07"),{ma:[],ema:[],rsi:[],kc:[],boll:[],atr:[]}),m={components:{codemirror:b["codemirror"]},data:function(){return{klineInterval:["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w","1M"],list:[],listLoading:!1,dialogFormVisible:!1,dialogLoading:!1,dialogTitle:"add template",info:{},rowKey:function(e){return e.id},expandKeys:[],dialogTechnologyTitle:"",dialogTechnologyVisible:!1,technologySymbolId:0,technology:JSON.parse(JSON.stringify(g)),dialogStrategyTitle:"",dialogStrategyVisible:!1,strategySymbolId:0,strategy:[],code:"",cmOptions:{tabSize:2,mode:"text/x-go",theme:"monokai",lineNumbers:!0,line:!0,foldGutter:!0,lineWrapping:!0,autoFormatJson:!0,jsonIndentation:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],extraKeys:{Tab:"autocomplete"},hintOptions:{completeSingle:!1,hint:this.customHint}},dialogCodeTitle:"",dialogCodeVisible:!1,strategyIndex:void 0}},created:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchData();case 2:case"end":return t.stop()}}),t)})))()},methods:{customHint:function(e){var t=e.getCursor(),n=e.getTokenAt(t),a=n.start,l=n.end,o=n.string,i=this.getHints(o),r={list:i.map((function(e){return{text:e}})),from:f.a.Pos(t.line,a),to:f.a.Pos(t.line,l)};return r},getHints:function(e){var t=this,n=["type","float","int","string","let","trim","upper","lower","split","replace","repeat","indexOf","hasPrefix","now()","max","min","abs","ceil","floor","round","all","any","one","none","map","filter","find","findIndex","findLast","groupBy","count","concat","join","reduce","sum","mean","median","first","last","take","reverse","sort","sortBy","keys","values","len","Kdj","IsDesc","IsAsc","SystemStartTime","NowPrice","NowTime","NowSymbolPercentChange","NowSymbolClose","NowSymbolOpen","NowSymbolLow","NowSymbolHigh","BasicTrend","ROI","Position","Position.EntryPrice","Position.MarkPrice","Position.PositionAmt","Position.UnRealizedProfit","Position.MarginType","Position.Leverage","Position.PositionSide"];if(void 0!==this.strategySymbolId){var a=this.list.find((function(e){return e.id===t.strategySymbolId}));if(a){var l={};try{l=JSON.parse(a.technology)}catch(f){l={}}var o=new Set;Object.keys(l).forEach((function(e){l[e].forEach((function(t){if(t.enable)switch(n.push(t.name),t.kline_interval&&o.add(t.kline_interval),e){case"ma":case"ema":case"rsi":case"atr":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Data")),n.push("".concat(t.name,".Data[]"));break;case"kc":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Multiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break;case"boll":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".StdDevMultiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break}}))})),o.forEach((function(e){n.push("kline_".concat(e)),n.push("kline_".concat(e,".High")),n.push("kline_".concat(e,".High[]")),n.push("kline_".concat(e,".Low")),n.push("kline_".concat(e,".Low[]")),n.push("kline_".concat(e,".Close")),n.push("kline_".concat(e,".Close[]")),n.push("kline_".concat(e,".Open")),n.push("kline_".concat(e,".Open[]")),n.push("kline_".concat(e,".Amount")),n.push("kline_".concat(e,".Amount[]")),n.push("kline_".concat(e,".Qps")),n.push("kline_".concat(e,".Qps[]"))}))}}for(var i=0,r=["BTCUSDT","ETHUSDT","SOLUSDT","BNBUSDT"];i1&&void 0!==arguments[1]?arguments[1]:null,n={MKRUSDT:1,CRVUSDT:3,XTZUSDT:3};return n[t]?Object(u["a"])(e,n[t]):e>500?Object(u["a"])(e,1):e>10?Object(u["a"])(e,2):e>1?Object(u["a"])(e,3):e>.1?Object(u["a"])(e,4):e>.01?Object(u["a"])(e,5):Object(u["a"])(e,6)},confirmTechnology:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,Object.keys(e.technology).forEach((function(t){e.technology[t].forEach((function(e){e.period&&(e.period=Number(e.period)),e.multiplier&&(e.multiplier=Number(e.multiplier)),e.std_dev_multiplier&&(e.std_dev_multiplier=Number(e.std_dev_multiplier))}))})),t.next=4,Object(c["c"])(e.technologySymbolId,{technology:JSON.stringify(e.technology)});case 4:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=7,e.fetchData();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},confirmStrategy:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(c["c"])(e.strategySymbolId,{strategy:JSON.stringify(e.strategy)});case 3:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=6,e.fetchData();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},addMa:function(){this.technology.ma=[].concat(Object(i["a"])(this.technology.ma),[{name:"",kline_interval:"",period:14,enable:!1}])},delMa:function(e){this.technology.ma=this.technology.ma.filter((function(t,n){return n!==e.$index}))},addEma:function(){this.technology.ema=[].concat(Object(i["a"])(this.technology.ema),[{name:"",kline_interval:"",period:14,enable:!1}])},delEma:function(e){this.technology.ema=this.technology.ema.filter((function(t,n){return n!==e.$index}))},addRsi:function(){this.technology.rsi=[].concat(Object(i["a"])(this.technology.rsi),[{name:"",kline_interval:"",period:14,enable:!1}])},delRsi:function(e){this.technology.rsi=this.technology.rsi.filter((function(t,n){return n!==e.$index}))},addKc:function(){this.technology.kc=[].concat(Object(i["a"])(this.technology.kc),[{name:"",kline_interval:"",period:50,multiplier:2.75,enable:!1}])},delKc:function(e){this.technology.kc=this.technology.kc.filter((function(t,n){return n!==e.$index}))},addBoll:function(){this.technology.boll=[].concat(Object(i["a"])(this.technology.boll),[{name:"",kline_interval:"",period:21,std_dev_multiplier:2,enable:!1}])},delBoll:function(e){this.technology.boll=this.technology.boll.filter((function(t,n){return n!==e.$index}))},addAtr:function(){this.technology.atr=[].concat(Object(i["a"])(this.technology.atr),[{name:"",kline_interval:"",period:14,enable:!1}])},delAtr:function(e){this.technology.atr=this.technology.atr.filter((function(t,n){return n!==e.$index}))},addStrategy:function(){this.strategy=[].concat(Object(i["a"])(this.strategy),[{name:"",type:"",code:"",fullScreen:!1,enable:!1}])},delStrategy:function(e){this.strategy=this.strategy.filter((function(t,n){return n!==e.$index}))}}},h=m,y=(n("79b2"),n("9bf6")),v=Object(y["a"])(h,a,l,!1,null,null,null);t["default"]=v.exports},df07:function(e,t,n){(function(e){e(n("c5ba"))})((function(e){"use strict";var t=/[\w$]+/,n=500;e.registerHelper("hint","anyword",(function(a,l){var o=l&&l.word||t,i=l&&l.range||n,r=a.getCursor(),s=a.getLine(r.line),c=r.ch,u=c;while(u&&o.test(s.charAt(u-1)))--u;for(var d=u!=c&&s.slice(u,c),p=l&&l.list||[],f={},b=new RegExp(o.source,"g"),g=-1;g<=1;g+=2)for(var m=r.line,h=Math.min(Math.max(m+g*i,a.firstLine()),a.lastLine())+g;m!=h;m+=g){var y,v=a.getLine(m);while(y=b.exec(v))m==r.line&&y[0]===d||d&&0!=y[0].lastIndexOf(d,0)||Object.prototype.hasOwnProperty.call(f,y[0])||(f[y[0]]=!0,p.push(y[0]))}return{list:p,from:e.Pos(r.line,u),to:e.Pos(r.line,c)}}))}))}}]); \ No newline at end of file diff --git a/static/js/chunk-4ffb66b7.7922bdc8.js b/static/js/chunk-4ffb66b7.7922bdc8.js new file mode 100644 index 0000000..8357097 --- /dev/null +++ b/static/js/chunk-4ffb66b7.7922bdc8.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ffb66b7"],{1:function(e,t){},7506:function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s}));var a=n("b775");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/strategy-templates",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"put",data:t})}function i(e){return Object(a["a"])({url:"/strategy-templates",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"delete"})}function s(e,t){return Object(a["a"])({url:"/strategy-templates/test/".concat(e),method:"post",data:t})}},"85f6":function(e,t,n){"use strict";n("bcba")},"97c4":function(e,t,n){(function(e){e(n("c5ba"))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,a=e.length;ni.ch&&(r.end=i.ch,r.string=r.string.slice(0,i.ch-r.start)):r={start:i.ch,end:i.ch,string:"",state:r.state,type:"."==r.string?"property":null};var c=r;while("property"==c.type){if(c=l(n,t(i.line,c.start)),"."!=c.string)return;if(c=l(n,t(i.line,c.start)),!u)var u=[];u.push(c)}return{list:b(r,u,a,o),from:t(i.line,r.start),to:t(i.line,r.end)}}}}function o(e,t){return l(e,d,(function(e,t){return e.getTokenAt(t)}),t)}function i(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function r(e,t){return l(e,p,i,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",r);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function f(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var a in e)t(a)}function b(e,t,l,o){var i=[],r=e.string,d=o&&o.globalScope||window;function p(e){0!=e.lastIndexOf(r,0)||a(i,e)||i.push(e)}function b(e){"string"==typeof e?n(s,p):e instanceof Array?n(c,p):e instanceof Function&&n(u,p),f(e,p)}if(t&&t.length){var g,m=t.pop();m.type&&0===m.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[m.string]),o&&!1===o.useGlobalScope||(g=g||d[m.string])):"string"==m.type?g="":"atom"==m.type?g=1:"function"==m.type&&(null==d.jQuery||"$"!=m.string&&"jQuery"!=m.string||"function"!=typeof d.jQuery?null!=d._&&"_"==m.string&&"function"==typeof d._&&(g=d._()):g=d.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&b(g)}else{for(var h=e.state.localVars;h;h=h.next)p(h.name);for(h=e.state.globalVars;h;h=h.next)p(h.name);o&&!1===o.useGlobalScope||b(d),n(l,p)}return i}}))},a6a9:function(e,t,n){"use strict";var a=n("38e0"),l=n("33e4").find,o=n("6466"),i=n("effa"),r="find",s=!0,c=i(r);r in[]&&Array(1)[r]((function(){s=!1})),a({target:"Array",proto:!0,forced:s||!c},{find:function(e){return l(this,e,arguments.length>1?arguments[1]:void 0)}}),o(r)},bcba:function(e,t,n){},d04b:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.openDialog()}}},[e._v(" "+e._s(e.$t("table.add"))+" ")]),n("el-button",{attrs:{type:"primary",size:"mini",loading:e.listLoading},on:{click:function(t){return e.fetchData()}}},[e._v(" "+e._s(e.$t("table.refresh"))+" ")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("trade.name"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"80","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{model:e.info,"label-position":"left","label-width":"100px"}},[n("el-form-item",{attrs:{label:e.$t("trade.name"),prop:"name"}},[n("el-input",{model:{value:e.info.name,callback:function(t){e.$set(e.info,"name",t)},expression:"info.name"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.addData(e.info)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTechnologyTitle,visible:e.dialogTechnologyVisible},on:{"update:visible":function(t){e.dialogTechnologyVisible=t}}},[n("el-tabs",{attrs:{value:"ma"}},[n("el-tab-pane",{attrs:{label:"ma",name:"ma"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addMa}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ma,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delMa(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"ema",name:"ema"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addEma}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ema,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delEma(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"rsi",name:"rsi"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addRsi}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.rsi,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delRsi(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"kc",name:"kc"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addKc}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.kc,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.multiplier,callback:function(n){e.$set(t.row,"multiplier",n)},expression:"scope.row.multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delKc(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"boll",name:"boll"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBoll}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.boll,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.std_dev_multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.std_dev_multiplier,callback:function(n){e.$set(t.row,"std_dev_multiplier",n)},expression:"scope.row.std_dev_multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delBoll(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"atr",name:"atr"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addAtr}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.atr,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delAtr(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTechnologyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmTechnology()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogStrategyTitle,visible:e.dialogStrategyVisible,width:"75%"},on:{"update:visible":function(t){e.dialogStrategyVisible=t}}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addStrategy}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.strategy,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("strategy.name"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.code"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{type:"textarea",rows:6,size:"small"},model:{value:t.row.code,callback:function(n){e.$set(t.row,"code",n)},expression:"scope.row.code"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.fullScreen"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(n){return e.fullCodeScreenChange(t.row,t.$index)}},model:{value:t.row.fullScreen,callback:function(n){e.$set(t.row,"fullScreen",n)},expression:"scope.row.fullScreen"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.type"),align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"small"},model:{value:t.row.type,callback:function(n){e.$set(t.row,"type",n)},expression:"scope.row.type"}},[n("el-option",{attrs:{label:e.$t("trade.long"),value:"long"}}),n("el-option",{attrs:{label:e.$t("trade.short"),value:"short"}}),n("el-option",{attrs:{label:e.$t("trade.close_long"),value:"close_long"}}),n("el-option",{attrs:{label:e.$t("trade.close_short"),value:"close_short"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delStrategy(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogStrategyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmStrategy()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogCodeTitle,visible:e.dialogCodeVisible,fullscreen:""},on:{"update:visible":function(t){e.dialogCodeVisible=t},closed:e.codeScreenClose}},[n("div",{staticClass:"code-full",staticStyle:{width:"100%"}},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-link",{attrs:{href:"https://expr-lang.org/docs/language-definition",type:"success",target:"_blank"}},[e._v("code rule")])],1),n("el-button",{attrs:{type:"primary"},on:{click:e.testStrategyRule}},[e._v(e._s(e.$t("table.test"))+" ")])],1),n("codemirror",{ref:"cmEditor",attrs:{value:e.code,options:e.cmOptions},on:{ready:e.onCmReady,focus:e.onCmFocus,input:e.onCmCodeChange}})],1)])],1)},l=[],o=n("8204"),i=n("b8c8"),r=n("dd36"),s=n("fee1"),c=(n("e168"),n("3dd5"),n("a6a9"),n("4cc3"),n("452e"),n("40a4"),n("374d"),n("5227"),n("90c8"),n("4a51"),n("3363"),n("8a0d"),n("f2e9"),n("3399"),n("7506")),u=n("1888"),d=n("ed08"),p=n("c5ba"),f=n.n(p),b=n("1ca5"),g=(n("7392"),n("cedf"),n("1657"),n("d8c5"),n("8f95"),n("31af"),n("e83b"),n("8961"),n("45d2"),n("7f27"),n("669a"),n("be82"),n("d770"),n("30fe"),n("3a45"),n("4a07"),n("a7ed"),n("cb97"),n("0c7b"),n("065a"),n("5ca6"),n("2399"),n("67ed"),n("6367"),n("5734"),n("97c4"),n("df07"),{ma:[],ema:[],rsi:[],kc:[],boll:[],atr:[]}),m={components:{codemirror:b["codemirror"]},data:function(){return{klineInterval:["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w","1M"],list:[],listLoading:!1,dialogFormVisible:!1,dialogLoading:!1,dialogTitle:"add template",info:{},rowKey:function(e){return e.id},expandKeys:[],dialogTechnologyTitle:"",dialogTechnologyVisible:!1,technologySymbolId:0,technology:JSON.parse(JSON.stringify(g)),dialogStrategyTitle:"",dialogStrategyVisible:!1,strategySymbolId:0,strategy:[],code:"",cmOptions:{tabSize:2,mode:"text/x-go",theme:"monokai",lineNumbers:!0,line:!0,foldGutter:!0,lineWrapping:!0,autoFormatJson:!0,jsonIndentation:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],extraKeys:{Tab:"autocomplete"},hintOptions:{completeSingle:!1,hint:this.customHint}},dialogCodeTitle:"",dialogCodeVisible:!1,strategyIndex:void 0}},created:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchData();case 2:case"end":return t.stop()}}),t)})))()},methods:{customHint:function(e){var t=e.getCursor(),n=e.getTokenAt(t),a=n.start,l=n.end,o=n.string,i=this.getHints(o),r={list:i.map((function(e){return{text:e}})),from:f.a.Pos(t.line,a),to:f.a.Pos(t.line,l)};return r},getHints:function(e){var t=this,n=["type","float","int","string","let","trim","upper","lower","split","replace","repeat","indexOf","hasPrefix","now()","max","min","abs","ceil","floor","round","all","any","one","none","map","filter","find","findIndex","findLast","groupBy","count","concat","join","reduce","sum","mean","median","first","last","take","reverse","sort","sortBy","keys","values","len","Kdj","IsDesc","IsAsc","SystemStartTime","NowPrice","NowTime","NowSymbolPercentChange","NowSymbolClose","NowSymbolOpen","NowSymbolLow","NowSymbolHigh","BasicTrend","ROI","Position","Position.EntryPrice","Position.MarkPrice","Position.Amount","Position.UnrealizedProfit","Position.Leverage","Position.Side","Position.Mock"];if(void 0!==this.strategySymbolId){var a=this.list.find((function(e){return e.id===t.strategySymbolId}));if(a){var l={};try{l=JSON.parse(a.technology)}catch(f){l={}}var o=new Set;Object.keys(l).forEach((function(e){l[e].forEach((function(t){if(t.enable)switch(n.push(t.name),t.kline_interval&&o.add(t.kline_interval),e){case"ma":case"ema":case"rsi":case"atr":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Data")),n.push("".concat(t.name,".Data[]"));break;case"kc":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Multiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break;case"boll":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".StdDevMultiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break}}))})),o.forEach((function(e){n.push("kline_".concat(e)),n.push("kline_".concat(e,".High")),n.push("kline_".concat(e,".High[]")),n.push("kline_".concat(e,".Low")),n.push("kline_".concat(e,".Low[]")),n.push("kline_".concat(e,".Close")),n.push("kline_".concat(e,".Close[]")),n.push("kline_".concat(e,".Open")),n.push("kline_".concat(e,".Open[]")),n.push("kline_".concat(e,".Amount")),n.push("kline_".concat(e,".Amount[]")),n.push("kline_".concat(e,".Qps")),n.push("kline_".concat(e,".Qps[]"))}))}}for(var i=0,r=["BTCUSDT","ETHUSDT","SOLUSDT","BNBUSDT"];i1&&void 0!==arguments[1]?arguments[1]:null,n={MKRUSDT:1,CRVUSDT:3,XTZUSDT:3};return n[t]?Object(u["a"])(e,n[t]):e>500?Object(u["a"])(e,1):e>10?Object(u["a"])(e,2):e>1?Object(u["a"])(e,3):e>.1?Object(u["a"])(e,4):e>.01?Object(u["a"])(e,5):Object(u["a"])(e,6)},confirmTechnology:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,Object.keys(e.technology).forEach((function(t){e.technology[t].forEach((function(e){e.period&&(e.period=Number(e.period)),e.multiplier&&(e.multiplier=Number(e.multiplier)),e.std_dev_multiplier&&(e.std_dev_multiplier=Number(e.std_dev_multiplier))}))})),t.next=4,Object(c["c"])(e.technologySymbolId,{technology:JSON.stringify(e.technology)});case 4:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=7,e.fetchData();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},confirmStrategy:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(c["c"])(e.strategySymbolId,{strategy:JSON.stringify(e.strategy)});case 3:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=6,e.fetchData();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},addMa:function(){this.technology.ma=[].concat(Object(i["a"])(this.technology.ma),[{name:"",kline_interval:"",period:14,enable:!1}])},delMa:function(e){this.technology.ma=this.technology.ma.filter((function(t,n){return n!==e.$index}))},addEma:function(){this.technology.ema=[].concat(Object(i["a"])(this.technology.ema),[{name:"",kline_interval:"",period:14,enable:!1}])},delEma:function(e){this.technology.ema=this.technology.ema.filter((function(t,n){return n!==e.$index}))},addRsi:function(){this.technology.rsi=[].concat(Object(i["a"])(this.technology.rsi),[{name:"",kline_interval:"",period:14,enable:!1}])},delRsi:function(e){this.technology.rsi=this.technology.rsi.filter((function(t,n){return n!==e.$index}))},addKc:function(){this.technology.kc=[].concat(Object(i["a"])(this.technology.kc),[{name:"",kline_interval:"",period:50,multiplier:2.75,enable:!1}])},delKc:function(e){this.technology.kc=this.technology.kc.filter((function(t,n){return n!==e.$index}))},addBoll:function(){this.technology.boll=[].concat(Object(i["a"])(this.technology.boll),[{name:"",kline_interval:"",period:21,std_dev_multiplier:2,enable:!1}])},delBoll:function(e){this.technology.boll=this.technology.boll.filter((function(t,n){return n!==e.$index}))},addAtr:function(){this.technology.atr=[].concat(Object(i["a"])(this.technology.atr),[{name:"",kline_interval:"",period:14,enable:!1}])},delAtr:function(e){this.technology.atr=this.technology.atr.filter((function(t,n){return n!==e.$index}))},addStrategy:function(){this.strategy=[].concat(Object(i["a"])(this.strategy),[{name:"",type:"",code:"",fullScreen:!1,enable:!1}])},delStrategy:function(e){this.strategy=this.strategy.filter((function(t,n){return n!==e.$index}))}}},h=m,y=(n("85f6"),n("9bf6")),v=Object(y["a"])(h,a,l,!1,null,null,null);t["default"]=v.exports},df07:function(e,t,n){(function(e){e(n("c5ba"))})((function(e){"use strict";var t=/[\w$]+/,n=500;e.registerHelper("hint","anyword",(function(a,l){var o=l&&l.word||t,i=l&&l.range||n,r=a.getCursor(),s=a.getLine(r.line),c=r.ch,u=c;while(u&&o.test(s.charAt(u-1)))--u;for(var d=u!=c&&s.slice(u,c),p=l&&l.list||[],f={},b=new RegExp(o.source,"g"),g=-1;g<=1;g+=2)for(var m=r.line,h=Math.min(Math.max(m+g*i,a.firstLine()),a.lastLine())+g;m!=h;m+=g){var y,v=a.getLine(m);while(y=b.exec(v))m==r.line&&y[0]===d||d&&0!=y[0].lastIndexOf(d,0)||Object.prototype.hasOwnProperty.call(f,y[0])||(f[y[0]]=!0,p.push(y[0]))}return{list:p,from:e.Pos(r.line,u),to:e.Pos(r.line,c)}}))}))}}]); \ No newline at end of file diff --git a/static/js/chunk-5f0eac28.3806add2.js b/static/js/chunk-5f0eac28.0c3e8aee.js similarity index 78% rename from static/js/chunk-5f0eac28.3806add2.js rename to static/js/chunk-5f0eac28.0c3e8aee.js index 30a0862..f3d277b 100644 --- a/static/js/chunk-5f0eac28.3806add2.js +++ b/static/js/chunk-5f0eac28.0c3e8aee.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f0eac28"],{1:function(t,e){},"16dd":function(t,e,n){"use strict";var r=n("38e0"),o=n("9648"),a=n("39d3"),s=n("87ef"),i=n("ad41"),c=[],l=c.sort,u=s((function(){c.sort(void 0)})),d=s((function(){c.sort(null)})),f=i("sort"),p=u||!d||!f;r({target:"Array",proto:!0,forced:p},{sort:function(t){return void 0===t?l.call(a(this)):l.call(a(this),o(t))}})},2465:function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"n",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return u})),n.d(e,"m",(function(){return d})),n.d(e,"o",(function(){return f})),n.d(e,"p",(function(){return p})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return h})),n.d(e,"i",(function(){return m})),n.d(e,"l",(function(){return v})),n.d(e,"r",(function(){return w})),n.d(e,"d",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"q",(function(){return _}));var r=n("b775");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/features",method:"get",params:t})}function a(t,e){return Object(r["a"])({url:"/features/".concat(t),method:"put",data:e})}function s(t){return Object(r["a"])({url:"/features",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/features/".concat(t),method:"delete"})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Object(r["a"])({url:"/features/enable/".concat(t),method:"put"})}function l(t){return Object(r["a"])({url:"/features/batch",method:"put",data:t})}function u(){return Object(r["a"])({url:"/config",method:"get"})}function d(t){return Object(r["a"])({url:"/config",method:"put",data:t})}function f(){return Object(r["a"])({url:"/start",method:"post"})}function p(){return Object(r["a"])({url:"/stop",method:"post"})}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/account",method:"get",params:t})}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/positions",method:"get",params:t})}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/open-orders",method:"get",params:t})}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/local/positions",method:"get",params:t})}function w(t,e){return Object(r["a"])({url:"/futures/local/positions/".concat(t),method:"put",data:e})}function g(t,e){return Object(r["a"])({url:"/futures/local/positions/".concat(t),method:"delete",data:e})}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/local/open-orders",method:"get",params:t})}function _(t,e){return Object(r["a"])({url:"/features/strategy-rule/test/".concat(t),method:"post",data:e})}},"35db":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-tabs",{model:{value:t.tabName,callback:function(e){t.tabName=e},expression:"tabName"}},[n("el-tab-pane",{attrs:{label:t.$t("trade.position"),name:"position"}},[n("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px"}},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("trade.coin"),size:"small"},model:{value:t.search.symbol,callback:function(e){t.$set(t.search,"symbol",e)},expression:"search.symbol"}}),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:t.searchFuturesPositions}},[t._v(" "+t._s(t.$t("table.search"))+" ")])],1),n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px","align-items":"center"}},[n("el-select",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{change:t.changeRefreshInterval},model:{value:t.interval,callback:function(e){t.interval=e},expression:"interval"}},t._l(30,(function(t){return n("el-option",{key:t,attrs:{label:t+"s",value:t}})})),1),n("span",[t._v(t._s(t.$t("table.refreshInterval")))])],1)]),n("el-table",{attrs:{data:t.positions,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":t.rowKey,"expand-row-keys":t.expandKeys,"highlight-current-row":""},on:{"sort-change":t.sortChange,"expand-change":t.expandChange}},[n("el-table-column",{attrs:{label:t.$t("position.symbol"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.positionAmt"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.amount)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.entryPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.entry_price)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.markPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.mark_price)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.unrealizedProfit"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.nowProfit<0?n("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.unrealized_profit))]):n("span",{staticStyle:{color:"green"}},[t._v(t._s(e.row.unrealized_profit))])]}}])}),n("el-table-column",{attrs:{label:t.$t("position.nowProfit"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.nowProfit<0?n("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.nowProfit))]):n("span",{staticStyle:{color:"green"}},[t._v(t._s(e.row.nowProfit))])]}}])}),n("el-table-column",{attrs:{label:t.$t("position.leverage"),align:"center",width:"75"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return t.edit(e.row)}},model:{value:e.row.leverage,callback:function(n){t.$set(e.row,"leverage",n)},expression:"scope.row.leverage"}})]}}])}),n("el-table-column",{attrs:{label:t.$t("position.positionSide"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t("positionSide."+e.row.side))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.isolated"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(0!=e.row.isolated_wallet?t.$t("position.isolated"):t.$t("position.crossed"))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("table.actions"),align:"center",width:"80","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){return t.del(r)}}},[t._v(t._s(t.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:t.$t("trade.openOrder"),name:"openOrder"}},[n("el-table",{attrs:{data:t.openOrders,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":t.rowKey,"highlight-current-row":""}},[n("el-table-column",{attrs:{label:t.$t("order.symbol"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.price"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.price)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.origQty"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.orig_qty)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.executedQty"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.executed_qty)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.side"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t("side."+e.row.side))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.positionSide"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t("positionSide."+e.row.position_side))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("assets.updateTime"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.parseTime(e.row.updateTime))+" ")]}}])})],1)],1)],1)],1)},o=[],a=n("8204"),s=n("dd36"),i=n("fee1"),c=(n("e168"),n("3dd5"),n("d987"),n("4cc3"),n("8b03"),n("16dd"),n("374d"),n("90c8"),n("8d8a"),n("6de1"),n("1a71"),n("2465")),l=n("ed08"),u=n("1888"),d={data:function(){return{tabName:"position",account:{assets:[],positions:[]},positions:[],openOrders:[],search:{symbol:""},sort:"+",rowKey:function(t){return t.positionSide?t.symbol+t.positionSide:t.symbol},expandKeys:[],timeId:null,interval:30}},computed:{allProfit:function(){var t=this.list.reduce((function(t,e){return t+e.nowProfit}),0);return Object(u["a"])(t,2)}},watch:{tabName:function(t){this.fetchData(t)}},created:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.interval=localStorage.getItem("accountRefreshInterval")||30,e.next=3,t.fetchData();case 3:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){clearInterval(this.timeId)},methods:{parseTime:l["c"],changeRefreshInterval:function(t){localStorage.setItem("accountRefreshInterval",t),this.fetchData()},round:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Object(u["a"])(t,e)},expandChange:function(t,e){this.expandKeys=e.map((function(t){return t.symbol}))},sortChange:function(t){var e=t.order;this.sort="ascending"===e?"+":"-",this.fetchData()},fetchData:function(){var t=arguments,e=this;return Object(i["a"])(Object(s["a"])().mark((function n(){var r;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.length>0&&void 0!==t[0]?t[0]:null,e.timeId&&clearInterval(e.timeId),r||(r=e.tabName),"account"===r?e.getFuturesAccount():"position"===r?e.getFuturesPositions():"openOrder"===r&&e.getFuturesOpenOrders(),e.timeId=setInterval((function(){"account"===r?e.getFuturesAccount():"position"===r?e.getFuturesPositions():"openOrder"===r&&e.getFuturesOpenOrders()}),1e3*e.interval);case 5:case"end":return n.stop()}}),n)})))()},getFuturesAccount:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n,r,o,a,i,l;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["h"])();case 2:n=e.sent,r=n.data,o=r.assets,a=void 0===o?[]:o,i=r.positions,l=void 0===i?[]:i,t.account={assets:a,positions:l};case 9:case"end":return e.stop()}}),e)})))()},searchFuturesPositions:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getFuturesPositions();case 2:n=t.positions.filter((function(e){var n=!0;return t.search.symbol&&(console.log(e.symbol,t.search.symbol),n=n&&!e.symbol.includes(t.search.symbol)),n})),t.positions=n;case 4:case"end":return e.stop()}}),e)})))()},getFuturesPositions:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n,r,o;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["l"])();case 2:n=e.sent,r=n.data.positions,o=void 0===r?[]:r,t.positions=o.map((function(e){var n=Math.abs(e.amount),r=Number(e.unrealized_profit),o=Number(e.leverage),s=Number(e.mark_price),i=r/(n*s)*o*100;return Object(a["a"])(Object(a["a"])({},e),{},{unrealized_profit:t.round(r,2),nowProfit:t.round(i,4)})})),t.search={symbol:""};case 7:case"end":return e.stop()}}),e)})))()},getFuturesOpenOrders:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["k"])();case 2:n=e.sent,r=n.data.openOrders,t.openOrders=r||[];case 5:case"end":return e.stop()}}),e)})))()},edit:function(t){var e=this;return Object(i["a"])(Object(s["a"])().mark((function n(){var r,o;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.id,o=t.leverage,n.prev=1,n.next=4,Object(c["r"])(r,{leverage:Number(o)});case 4:return e.$message({message:e.$t("table.editSuccess"),type:"success"}),n.next=7,e.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),e.$message({message:e.$t("table.editFail"),type:"error"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},del:function(t){var e=this;return Object(i["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$confirm("".concat(e.$t("table.deleteConfirm")," ").concat(t.symbol,"?")).then(Object(i["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(c["d"])(t.id);case 3:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),n.next=6,e.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"error"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}));case 1:case"end":return n.stop()}}),n)})))()}}},f=d,p=n("9bf6"),b=Object(p["a"])(f,r,o,!1,null,null,null);e["default"]=b.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f0eac28"],{1:function(t,e){},"16dd":function(t,e,n){"use strict";var r=n("38e0"),o=n("9648"),a=n("39d3"),s=n("87ef"),i=n("ad41"),c=[],l=c.sort,u=s((function(){c.sort(void 0)})),d=s((function(){c.sort(null)})),f=i("sort"),p=u||!d||!f;r({target:"Array",proto:!0,forced:p},{sort:function(t){return void 0===t?l.call(a(this)):l.call(a(this),o(t))}})},2465:function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"n",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return u})),n.d(e,"m",(function(){return d})),n.d(e,"o",(function(){return f})),n.d(e,"p",(function(){return p})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return h})),n.d(e,"i",(function(){return m})),n.d(e,"l",(function(){return v})),n.d(e,"r",(function(){return w})),n.d(e,"d",(function(){return g})),n.d(e,"k",(function(){return _})),n.d(e,"q",(function(){return y}));var r=n("b775");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/features",method:"get",params:t})}function a(t,e){return Object(r["a"])({url:"/features/".concat(t),method:"put",data:e})}function s(t){return Object(r["a"])({url:"/features",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/features/".concat(t),method:"delete"})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Object(r["a"])({url:"/features/enable/".concat(t),method:"put"})}function l(t){return Object(r["a"])({url:"/features/batch",method:"put",data:t})}function u(){return Object(r["a"])({url:"/config",method:"get"})}function d(t){return Object(r["a"])({url:"/config",method:"put",data:t})}function f(){return Object(r["a"])({url:"/start",method:"post"})}function p(){return Object(r["a"])({url:"/stop",method:"post"})}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/account",method:"get",params:t})}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/positions",method:"get",params:t})}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/open-orders",method:"get",params:t})}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/local/positions",method:"get",params:t})}function w(t,e){return Object(r["a"])({url:"/futures/local/positions/".concat(t),method:"put",data:e})}function g(t,e){return Object(r["a"])({url:"/futures/local/positions/".concat(t),method:"delete",data:e})}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/futures/local/open-orders",method:"get",params:t})}function y(t,e){return Object(r["a"])({url:"/features/strategy-rule/test/".concat(t),method:"post",data:e})}},"35db":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-tabs",{model:{value:t.tabName,callback:function(e){t.tabName=e},expression:"tabName"}},[n("el-tab-pane",{attrs:{label:t.$t("trade.position"),name:"position"}},[n("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px"}},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("trade.coin"),size:"small"},model:{value:t.search.symbol,callback:function(e){t.$set(t.search,"symbol",e)},expression:"search.symbol"}}),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:t.searchFuturesPositions}},[t._v(" "+t._s(t.$t("table.search"))+" ")])],1),n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px","align-items":"center"}},[n("el-select",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{change:t.changeRefreshInterval},model:{value:t.interval,callback:function(e){t.interval=e},expression:"interval"}},t._l(30,(function(t){return n("el-option",{key:t,attrs:{label:t+"s",value:t}})})),1),n("span",[t._v(t._s(t.$t("table.refreshInterval")))])],1)]),n("el-table",{attrs:{data:t.positions,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":t.rowKey,"expand-row-keys":t.expandKeys,"highlight-current-row":""},on:{"sort-change":t.sortChange,"expand-change":t.expandChange}},[n("el-table-column",{attrs:{label:t.$t("position.symbol"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.positionAmt"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.amount)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.entryPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.entry_price)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.markPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.mark_price)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.unrealizedProfit"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.nowProfit<0?n("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.unrealized_profit))]):n("span",{staticStyle:{color:"green"}},[t._v(t._s(e.row.unrealized_profit))])]}}])}),n("el-table-column",{attrs:{label:t.$t("position.nowProfit"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.nowProfit<0?n("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.nowProfit))]):n("span",{staticStyle:{color:"green"}},[t._v(t._s(e.row.nowProfit))])]}}])}),n("el-table-column",{attrs:{label:t.$t("position.leverage"),align:"center",width:"75"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return t.edit(e.row)}},model:{value:e.row.leverage,callback:function(n){t.$set(e.row,"leverage",n)},expression:"scope.row.leverage"}})]}}])}),n("el-table-column",{attrs:{label:t.$t("position.positionSide"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t("positionSide."+e.row.side))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("position.isolated"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(0!=e.row.isolated_wallet?t.$t("position.isolated"):t.$t("position.crossed"))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("table.actions"),align:"center",width:"80","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){return t.del(r)}}},[t._v(t._s(t.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:t.$t("trade.openOrder"),name:"openOrder"}},[n("el-table",{attrs:{data:t.openOrders,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":t.rowKey,"highlight-current-row":""}},[n("el-table-column",{attrs:{label:t.$t("order.symbol"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.price"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.price)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.origQty"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.orig_qty)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.executedQty"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.executed_qty)+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.side"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t("side."+e.row.side))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("order.positionSide"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.$t("positionSide."+e.row.position_side))+" ")]}}])}),n("el-table-column",{attrs:{label:t.$t("assets.updateTime"),align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.parseTime(e.row.updateTime))+" ")]}}])})],1)],1)],1)],1)},o=[],a=n("8204"),s=n("dd36"),i=n("fee1"),c=(n("e168"),n("3dd5"),n("d987"),n("4cc3"),n("8b03"),n("16dd"),n("374d"),n("90c8"),n("8d8a"),n("6de1"),n("1a71"),n("2465")),l=n("ed08"),u=n("1888"),d={data:function(){return{tabName:"position",account:{assets:[],positions:[]},positions:[],openOrders:[],search:{symbol:""},sort:"+",rowKey:function(t){return t.positionSide?t.symbol+t.positionSide:t.symbol},expandKeys:[],timeId:null,interval:30}},computed:{allProfit:function(){var t=this.list.reduce((function(t,e){return t+e.nowProfit}),0);return Object(u["a"])(t,2)}},watch:{tabName:function(t){this.fetchData(t)}},created:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.interval=localStorage.getItem("accountRefreshInterval")||30,e.next=3,t.fetchData();case 3:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){clearInterval(this.timeId)},methods:{parseTime:l["c"],changeRefreshInterval:function(t){localStorage.setItem("accountRefreshInterval",t),this.fetchData()},round:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Object(u["a"])(t,e)},expandChange:function(t,e){this.expandKeys=e.map((function(t){return t.symbol}))},sortChange:function(t){var e=t.order;this.sort="ascending"===e?"+":"-",this.fetchData()},fetchData:function(){var t=arguments,e=this;return Object(i["a"])(Object(s["a"])().mark((function n(){var r;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.length>0&&void 0!==t[0]?t[0]:null,e.timeId&&clearInterval(e.timeId),r||(r=e.tabName),"account"===r?e.getFuturesAccount():"position"===r?e.getFuturesPositions():"openOrder"===r&&e.getFuturesOpenOrders(),e.timeId=setInterval((function(){"account"===r?e.getFuturesAccount():"position"===r?e.getFuturesPositions():"openOrder"===r&&e.getFuturesOpenOrders()}),1e3*e.interval);case 5:case"end":return n.stop()}}),n)})))()},getFuturesAccount:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n,r,o,a,i,l;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["h"])();case 2:n=e.sent,r=n.data,o=r.assets,a=void 0===o?[]:o,i=r.positions,l=void 0===i?[]:i,t.account={assets:a,positions:l};case 9:case"end":return e.stop()}}),e)})))()},searchFuturesPositions:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getFuturesPositions();case 2:case"end":return e.stop()}}),e)})))()},getFuturesPositions:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n,r,o;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["l"])();case 2:n=e.sent,r=n.data.positions,o=void 0===r?[]:r,t.positions=o.filter((function(e){return!t.search.symbol||e.symbol.includes(t.search.symbol)})).map((function(e){var n=Math.abs(e.amount),r=Number(e.unrealized_profit),o=Number(e.leverage),s=Number(e.mark_price),i=r/(n*s)*o*100;return Object(a["a"])(Object(a["a"])({},e),{},{unrealized_profit:t.round(r,2),nowProfit:t.round(i,4)})}));case 6:case"end":return e.stop()}}),e)})))()},getFuturesOpenOrders:function(){var t=this;return Object(i["a"])(Object(s["a"])().mark((function e(){var n,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["k"])();case 2:n=e.sent,r=n.data.openOrders,t.openOrders=r||[];case 5:case"end":return e.stop()}}),e)})))()},edit:function(t){var e=this;return Object(i["a"])(Object(s["a"])().mark((function n(){var r,o;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.id,o=t.leverage,n.prev=1,n.next=4,Object(c["r"])(r,{leverage:Number(o)});case 4:return e.$message({message:e.$t("table.editSuccess"),type:"success"}),n.next=7,e.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),e.$message({message:e.$t("table.editFail"),type:"error"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},del:function(t){var e=this;return Object(i["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$confirm("".concat(e.$t("table.deleteConfirm")," ").concat(t.symbol,"?")).then(Object(i["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(c["d"])(t.id);case 3:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),n.next=6,e.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"error"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}));case 1:case"end":return n.stop()}}),n)})))()}}},f=d,p=n("9bf6"),b=Object(p["a"])(f,r,o,!1,null,null,null);e["default"]=b.exports}}]); \ No newline at end of file diff --git a/static/js/chunk-6d50eed1.6f2640d9.js b/static/js/chunk-6d50eed1.6f2640d9.js deleted file mode 100644 index f0403ed..0000000 --- a/static/js/chunk-6d50eed1.6f2640d9.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d50eed1"],{1:function(e,t){},"16dd":function(e,t,n){"use strict";var a=n("38e0"),l=n("9648"),o=n("39d3"),r=n("87ef"),i=n("ad41"),s=[],c=s.sort,u=r((function(){s.sort(void 0)})),d=r((function(){s.sort(null)})),p=i("sort"),f=u||!d||!p;a({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),l(e))}})},"1e7e":function(e,t,n){},2465:function(e,t,n){"use strict";n.d(t,"g",(function(){return l})),n.d(t,"n",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"m",(function(){return d})),n.d(t,"o",(function(){return p})),n.d(t,"p",(function(){return f})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return m})),n.d(t,"l",(function(){return h})),n.d(t,"r",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"k",(function(){return w})),n.d(t,"q",(function(){return k}));var a=n("b775");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/features",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/features/".concat(e),method:"put",data:t})}function r(e){return Object(a["a"])({url:"/features",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/features/".concat(e),method:"delete"})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Object(a["a"])({url:"/features/enable/".concat(e),method:"put"})}function c(e){return Object(a["a"])({url:"/features/batch",method:"put",data:e})}function u(){return Object(a["a"])({url:"/config",method:"get"})}function d(e){return Object(a["a"])({url:"/config",method:"put",data:e})}function p(){return Object(a["a"])({url:"/start",method:"post"})}function f(){return Object(a["a"])({url:"/stop",method:"post"})}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/account",method:"get",params:e})}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/positions",method:"get",params:e})}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/open-orders",method:"get",params:e})}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/local/positions",method:"get",params:e})}function y(e,t){return Object(a["a"])({url:"/futures/local/positions/".concat(e),method:"put",data:t})}function v(e,t){return Object(a["a"])({url:"/futures/local/positions/".concat(e),method:"delete",data:t})}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/local/open-orders",method:"get",params:e})}function k(e,t){return Object(a["a"])({url:"/features/strategy-rule/test/".concat(e),method:"post",data:t})}},"26d8":function(e,t,n){"use strict";n("1e7e")},"333d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},l=[];n("374d");Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=i(),l=e-a,s=20,c=0;t="undefined"===typeof t?500:t;var u=function(){c+=s;var e=Math.easeInOutQuad(c,a,l,t);r(e),c0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/strategy-templates",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"put",data:t})}function r(e){return Object(a["a"])({url:"/strategy-templates",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"delete"})}function s(e,t){return Object(a["a"])({url:"/strategy-templates/test/".concat(e),method:"post",data:t})}},"97c4":function(e,t,n){(function(e){e(n("c5ba"))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,a=e.length;nr.ch&&(i.end=r.ch,i.string=i.string.slice(0,r.ch-i.start)):i={start:r.ch,end:r.ch,string:"",state:i.state,type:"."==i.string?"property":null};var c=i;while("property"==c.type){if(c=l(n,t(r.line,c.start)),"."!=c.string)return;if(c=l(n,t(r.line,c.start)),!u)var u=[];u.push(c)}return{list:b(i,u,a,o),from:t(r.line,i.start),to:t(r.line,i.end)}}}}function o(e,t){return l(e,d,(function(e,t){return e.getTokenAt(t)}),t)}function r(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function i(e,t){return l(e,p,r,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",i);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function f(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var a in e)t(a)}function b(e,t,l,o){var r=[],i=e.string,d=o&&o.globalScope||window;function p(e){0!=e.lastIndexOf(i,0)||a(r,e)||r.push(e)}function b(e){"string"==typeof e?n(s,p):e instanceof Array?n(c,p):e instanceof Function&&n(u,p),f(e,p)}if(t&&t.length){var g,m=t.pop();m.type&&0===m.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[m.string]),o&&!1===o.useGlobalScope||(g=g||d[m.string])):"string"==m.type?g="":"atom"==m.type?g=1:"function"==m.type&&(null==d.jQuery||"$"!=m.string&&"jQuery"!=m.string||"function"!=typeof d.jQuery?null!=d._&&"_"==m.string&&"function"==typeof d._&&(g=d._()):g=d.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&b(g)}else{for(var h=e.state.localVars;h;h=h.next)p(h.name);for(h=e.state.globalVars;h;h=h.next)p(h.name);o&&!1===o.useGlobalScope||b(d),n(l,p)}return r}}))},a6a9:function(e,t,n){"use strict";var a=n("38e0"),l=n("33e4").find,o=n("6466"),r=n("effa"),i="find",s=!0,c=r(i);i in[]&&Array(1)[i]((function(){s=!1})),a({target:"Array",proto:!0,forced:s||!c},{find:function(e){return l(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},b5ef:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("1a06"),n("d987"),n("6de1");function a(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function l(e,t){if(null==e)return{};var n,l,o=a(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l0,expression:"allList.length > 0"}],attrs:{total:e.allList.length,page:e.search.page,limit:e.search.limit},on:{"update:page":function(t){return e.$set(e.search,"page",t)},"update:limit":function(t){return e.$set(e.search,"limit",t)},pagination:e.getPageList}}),n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{model:e.info,"label-position":"left","label-width":"100px"}},[n("el-form-item",{attrs:{label:e.$t("trade.coin"),prop:"symbol"}},[n("el-input",{model:{value:e.info.symbol,callback:function(t){e.$set(e.info,"symbol",t)},expression:"info.symbol"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.addCoin(e.info)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTitle2,visible:e.dialogFormVisible2},on:{"update:visible":function(t){e.dialogFormVisible2=t}}},[n("el-form",{ref:"dataForm2",staticStyle:{width:"500px","margin-left":"50px"},attrs:{model:e.batchInfo,"label-position":"left","label-width":"130px"}},[n("el-form-item",{attrs:{label:e.$t("trade.strategyType"),prop:"strategyType"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyType,callback:function(t){e.$set(e.batchInfo,"strategyType",t)},expression:"batchInfo.strategyType"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)],1),n("el-form-item",{attrs:{label:e.$t("trade.strategyTemplate"),prop:"strategyTemplates"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-form-item",{attrs:{label:e.$t("trade.marginType"),prop:"marginType"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.marginType,callback:function(t){e.$set(e.batchInfo,"marginType",t)},expression:"batchInfo.marginType"}},[n("el-option",{attrs:{label:e.$t("trade.ISOLATED"),value:"ISOLATED"}}),n("el-option",{attrs:{label:e.$t("trade.CROSSED"),value:"CROSSED"}})],1)],1),n("el-form-item",{attrs:{label:e.$t("trade.usdt"),prop:"usdt"}},[n("el-input",{model:{value:e.batchInfo.usdt,callback:function(t){e.$set(e.batchInfo,"usdt",t)},expression:"batchInfo.usdt"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.leverage"),prop:"leverage"}},[n("el-input",{model:{value:e.batchInfo.leverage,callback:function(t){e.$set(e.batchInfo,"leverage",t)},expression:"batchInfo.leverage"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.profitRate"),prop:"profit"}},[n("el-input",{model:{value:e.batchInfo.profit,callback:function(t){e.$set(e.batchInfo,"profit",t)},expression:"batchInfo.profit"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.lossRate"),prop:"loss"}},[n("el-input",{model:{value:e.batchInfo.loss,callback:function(t){e.$set(e.batchInfo,"loss",t)},expression:"batchInfo.loss"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible2=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading2},on:{click:function(t){return e.batchEdit(e.batchInfo)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTechnologyTitle,visible:e.dialogTechnologyVisible},on:{"update:visible":function(t){e.dialogTechnologyVisible=t}}},[n("el-tabs",{attrs:{value:"ma"}},[n("el-tab-pane",{attrs:{label:"ma",name:"ma"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addMa}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ma,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delMa(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"ema",name:"ema"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addEma}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ema,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delEma(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"rsi",name:"rsi"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addRsi}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.rsi,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delRsi(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"kc",name:"kc"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addKc}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.kc,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.multiplier,callback:function(n){e.$set(t.row,"multiplier",n)},expression:"scope.row.multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delKc(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"boll",name:"boll"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBoll}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.boll,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.std_dev_multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.std_dev_multiplier,callback:function(n){e.$set(t.row,"std_dev_multiplier",n)},expression:"scope.row.std_dev_multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delBoll(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"atr",name:"atr"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addAtr}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.atr,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delAtr(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTechnologyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmTechnology()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogStrategyTitle,visible:e.dialogStrategyVisible,width:"75%"},on:{"update:visible":function(t){e.dialogStrategyVisible=t}}},[n("div",{staticStyle:{display:"flex",gap:"10px"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.addStrategy}},[e._v(e._s(e.$t("table.add")))]),n("el-select",{attrs:{clearable:"",size:"mini",placeholder:"select template"},on:{change:e.selectStrategyTemplate},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.strategy,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("strategy.name"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.code"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{type:"textarea",rows:6,size:"mini"},model:{value:t.row.code,callback:function(n){e.$set(t.row,"code",n)},expression:"scope.row.code"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.fullScreen"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(n){return e.fullCodeScreenChange(t.row,t.$index)}},model:{value:t.row.fullScreen,callback:function(n){e.$set(t.row,"fullScreen",n)},expression:"scope.row.fullScreen"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.type"),align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.type,callback:function(n){e.$set(t.row,"type",n)},expression:"scope.row.type"}},[n("el-option",{attrs:{label:e.$t("trade.long"),value:"long"}}),n("el-option",{attrs:{label:e.$t("trade.short"),value:"short"}}),n("el-option",{attrs:{label:e.$t("trade.close_long"),value:"close_long"}}),n("el-option",{attrs:{label:e.$t("trade.close_short"),value:"close_short"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delStrategy(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogStrategyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmStrategy()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogCodeTitle,visible:e.dialogCodeVisible,fullscreen:""},on:{"update:visible":function(t){e.dialogCodeVisible=t},closed:e.codeScreenClose}},[n("div",{staticClass:"code-full",staticStyle:{width:"100%"}},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-link",{attrs:{href:"https://expr-lang.org/docs/language-definition",type:"success",target:"_blank"}},[e._v("code rule")])],1),n("el-button",{attrs:{type:"primary"},on:{click:e.testStrategyRule}},[e._v(e._s(e.$t("table.test"))+" ")])],1),n("codemirror",{ref:"cmEditor",attrs:{value:e.code,options:e.cmOptions},on:{ready:e.onCmReady,focus:e.onCmFocus,input:e.onCmCodeChange}})],1)])],1)},l=[],o=n("b5ef"),r=n("8204"),i=n("b8c8"),s=n("dd36"),c=n("fee1"),u=(n("e168"),n("3dd5"),n("a6a9"),n("4cc3"),n("8b03"),n("7019"),n("16dd"),n("452e"),n("40a4"),n("374d"),n("5227"),n("90c8"),n("8d8a"),n("4a51"),n("3363"),n("1a71"),n("8a0d"),n("f2e9"),n("3399"),n("2465")),d=n("7506"),p=n("333d"),f=n("1888"),b=n("c5ba"),g=n.n(b),m=n("1ca5"),h=(n("7392"),n("cedf"),n("1657"),n("d8c5"),n("8f95"),n("31af"),n("e83b"),n("8961"),n("45d2"),n("7f27"),n("669a"),n("be82"),n("d770"),n("30fe"),n("3a45"),n("4a07"),n("a7ed"),n("cb97"),n("0c7b"),n("065a"),n("5ca6"),n("2399"),n("67ed"),n("6367"),n("5734"),n("97c4"),n("df07"),["pin","enable"]),y=["id","enable","leverage","usdt"],v={ma:[],ema:[],rsi:[],kc:[],boll:[],atr:[]},w={components:{codemirror:m["codemirror"],Pagination:p["a"]},data:function(){return{klineInterval:["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w","1M"],allList:[],list:[],sort:"",listLoading:!1,serviceLoading:!1,enableLoading:!1,buyAll:!0,sellAll:!0,search:{page:1,limit:50,symbol_type:"USDT",symbol:"",enable:"",margin_type:"",pin:""},dialogFormVisible:!1,dialogLoading:!1,dialogTitle:this.$t("table.add"),info:{},dialogFormVisible2:!1,dialogLoading2:!1,dialogTitle2:this.$t("table.editBatch"),batchInfo:{usdt:void 0,profit:void 0,loss:void 0,marginType:void 0,leverage:void 0,strategyType:void 0,strategyTemplateId:void 0},rowKey:function(e){return e.symbol+e.id},expandKeys:[],timeId:null,interval:30,dialogTechnologyTitle:"",dialogTechnologyVisible:!1,technologySymbolId:0,technology:JSON.parse(JSON.stringify(v)),dialogStrategyTitle:"",dialogStrategyVisible:!1,strategySymbolId:0,strategy:[],code:"",cmOptions:{tabSize:2,mode:"text/x-go",theme:"monokai",lineNumbers:!0,line:!0,foldGutter:!0,lineWrapping:!0,autoFormatJson:!0,jsonIndentation:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],extraKeys:{Tab:"autocomplete"},hintOptions:{completeSingle:!1,hint:this.customHint}},dialogCodeTitle:"",dialogCodeVisible:!1,strategyIndex:void 0,strategyTemplates:[],copyTechnology:""}},computed:{allProfit:function(){var e=this.list.reduce((function(e,t){return e+t.nowProfit}),0);return Object(f["a"])(e,2)}},activated:function(){this.interval=localStorage.getItem("refreshInterval")||30,this.fetchData()},deactivated:function(){clearInterval(this.timeId)},created:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.getStrategyTemplates(),e.search=Object.assign(e.search,e.$route.query),e.search.page=parseInt(e.search.page)||1,e.search.limit=parseInt(e.search.limit)||50,e.interval=localStorage.getItem("refreshInterval")||30,t.next=7,e.fetchData();case 7:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearInterval(this.timeId)},methods:{getStrategyTemplates:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(d["d"])();case 2:n=t.sent,a=n.data,e.strategyTemplates=a;case 5:case"end":return t.stop()}}),t)})))()},customHint:function(e){var t=e.getCursor(),n=e.getTokenAt(t),a=n.start,l=n.end,o=n.string,r=this.getHints(o),i={list:r.map((function(e){return{text:e}})),from:g.a.Pos(t.line,a),to:g.a.Pos(t.line,l)};return i},getHints:function(e){var t=this,n=["type","float","int","string","let","trim","upper","lower","split","replace","repeat","indexOf","hasPrefix","now()","max","min","abs","ceil","floor","round","all","any","one","none","map","filter","find","findIndex","findLast","groupBy","count","concat","join","reduce","sum","mean","median","first","last","take","reverse","sort","sortBy","keys","values","len","Kdj","IsDesc","IsAsc","SystemStartTime","NowPrice","NowTime","NowSymbolPercentChange","NowSymbolClose","NowSymbolOpen","NowSymbolLow","NowSymbolHigh","BasicTrend","ROI","Position","Position.EntryPrice","Position.MarkPrice","Position.PositionAmt","Position.UnRealizedProfit","Position.MarginType","Position.Leverage","Position.PositionSide"];if(void 0!==this.strategySymbolId){var a=this.list.find((function(e){return e.id===t.strategySymbolId}));if(a){var l={};try{l=JSON.parse(a.technology)}catch(f){l={}}var o=new Set;Object.keys(l).forEach((function(e){l[e].forEach((function(t){if(t.enable)switch(n.push(t.name),t.kline_interval&&o.add(t.kline_interval),e){case"ma":case"ema":case"rsi":case"atr":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Data")),n.push("".concat(t.name,".Data[]"));break;case"kc":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Multiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break;case"boll":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".StdDevMultiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break}}))})),o.forEach((function(e){n.push("kline_".concat(e)),n.push("kline_".concat(e,".High")),n.push("kline_".concat(e,".High[]")),n.push("kline_".concat(e,".Low")),n.push("kline_".concat(e,".Low[]")),n.push("kline_".concat(e,".Close")),n.push("kline_".concat(e,".Close[]")),n.push("kline_".concat(e,".Open")),n.push("kline_".concat(e,".Open[]")),n.push("kline_".concat(e,".Amount")),n.push("kline_".concat(e,".Amount[]")),n.push("kline_".concat(e,".Qps")),n.push("kline_".concat(e,".Qps[]"))}))}}for(var r=0,i=["BTCUSDT","ETHUSDT","SOLUSDT","BNBUSDT"];r1&&void 0!==arguments[1]?arguments[1]:2;return Object(f["a"])(e,t)},expandChange:function(e,t){this.expandKeys=t.map((function(e){return e.symbol}))},sortChange:function(e){var t=e.prop,n=e.order;this.sort=n?t+("ascending"===n?"+":"-"):"",this.fetchData()},handleTabClick:function(e){this.search.symbol_type=e.name,this.search.page=1,this.fetchData()},fetchData:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:clearInterval(e.timeId),e.getFutures(),e.replaceUrl(),e.timeId=setInterval((function(){return e.getFutures()}),1e3*e.interval);case 4:case"end":return t.stop()}}),t)})))()},getFutures:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.search,t.next=3,Object(u["g"])(Object(r["a"])({sort:e.sort},n));case 3:a=t.sent,l=a.data,e.allList=l.map((function(e){var t=e.pin,n=e.enable,a=Object(o["a"])(e,h);return Object(r["a"])({enable:n>0,pin_read:t,pin:t},a)})),e.getPageList();case 7:case"end":return t.stop()}}),t)})))()},replaceUrl:function(){this.$router.push({path:this.$route.path,query:Object(r["a"])({},this.search)})},getPageList:function(){var e=this.search;this.list=this.allList.slice((e.page-1)*e.limit,e.page*e.limit)},editPin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.pin_read&&!e.pin?e.pin=1:e.pin_read&&e.pin&&(e.pin_read=0,e.pin=0),n.prev=1,n.next=4,Object(u["n"])(e.id,{pin:e.pin});case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},edit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a,l,i,c,d;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.id,l=e.enable,i=e.leverage,c=e.usdt,d=Object(o["a"])(e,y),n.prev=1,n.next=4,Object(u["n"])(a,Object(r["a"])(Object(r["a"])({},d),{},{leverage:Number(i),usdt:c,enable:l?1:0}));case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},del:function(e){var t=this;this.$confirm("".concat(this.$t("table.deleteConfirm")," ").concat(e.symbol,"?")).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(u["c"])(e.id);case 3:return t.$message({message:t.$t("table.deleteSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.deleteFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},enableAll:function(e){var t=this,n=1===e?this.$t("table.enableAllCoins"):this.$t("table.disableAllCoins");this.$confirm(n).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(u["e"])(e);case 3:return t.$message({message:t.$t("table.actionSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},isChangeBuy:function(e,t){var n=this;return Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.edit(t);case 2:case"end":return e.stop()}}),e)})))()},openDialog:function(){this.dialogTitle=this.$t("table.add"),this.dialogFormVisible=!0},addCoin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a={symbol:e.symbol,quantity:20,percentChange:0,close:0,open:0,low:0,enable:1,updateTime:+new Date},n.next=3,Object(u["a"])(a);case 3:t.dialogFormVisible=!1;case 4:case"end":return n.stop()}}),n)})))()},batchEdit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(u["b"])(e);case 3:return t.batchInfo={usdt:void 0,profit:void 0,loss:void 0,marginType:void 0,leverage:void 0,strategyType:void 0,strategyTemplateId:void 0},t.dialogFormVisible2=!1,n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},openTechnologyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.technologySymbolId=e.id,e.technology)try{t.technology=Object(r["a"])(Object(r["a"])({},JSON.parse(JSON.stringify(v))),JSON.parse(e.technology))}catch(a){t.technology=JSON.parse(JSON.stringify(v))}else t.technology=JSON.parse(JSON.stringify(v));t.dialogTechnologyTitle="".concat(e.symbol," ").concat(t.$t("trade.technology")),t.dialogTechnologyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openStrategyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.strategySymbolId=e.id,e.strategy)try{t.strategy=JSON.parse(e.strategy)}catch(a){t.strategy=[]}else t.strategy=[];t.dialogStrategyTitle="".concat(e.symbol," ").concat(t.$t("trade.strategy")),t.dialogStrategyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openKlineDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getKcLineChart(e);case 3:n.next=10;break;case 5:return n.prev=5,n.t0=n["catch"](0),console.log(n.t0),t.$message({message:t.$t("table.actionFail"),type:"error"}),n.abrupt("return");case 10:t.dialogTitleKline="".concat(e.symbol,"(").concat(e.kline_interval,")"),t.dialogKlineVisible=!0;case 12:case"end":return n.stop()}}),n,null,[[0,5]])})))()},confirmTechnology:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,Object.keys(e.technology).forEach((function(t){e.technology[t].forEach((function(e){e.period&&(e.period=Number(e.period)),e.multiplier&&(e.multiplier=Number(e.multiplier)),e.std_dev_multiplier&&(e.std_dev_multiplier=Number(e.std_dev_multiplier))}))})),t.next=4,Object(u["n"])(e.technologySymbolId,{technology:JSON.stringify(e.technology)});case 4:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=7,e.fetchData();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},confirmStrategy:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n={strategy:JSON.stringify(e.strategy)},console.log(e.copyTechnology),e.copyTechnology&&(n.technology=e.copyTechnology),t.next=6,Object(u["n"])(e.strategySymbolId,n);case 6:return e.copyTechnology="",e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=10,e.fetchData();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))()},addMa:function(){this.technology.ma=[].concat(Object(i["a"])(this.technology.ma),[{name:"",kline_interval:"",period:14,enable:!1}])},delMa:function(e){this.technology.ma=this.technology.ma.filter((function(t,n){return n!==e.$index}))},addEma:function(){this.technology.ema=[].concat(Object(i["a"])(this.technology.ema),[{name:"",kline_interval:"",period:14,enable:!1}])},delEma:function(e){this.technology.ema=this.technology.ema.filter((function(t,n){return n!==e.$index}))},addRsi:function(){this.technology.rsi=[].concat(Object(i["a"])(this.technology.rsi),[{name:"",kline_interval:"",period:14,enable:!1}])},delRsi:function(e){this.technology.rsi=this.technology.rsi.filter((function(t,n){return n!==e.$index}))},addKc:function(){this.technology.kc=[].concat(Object(i["a"])(this.technology.kc),[{name:"",kline_interval:"",period:50,multiplier:2.75,enable:!1}])},delKc:function(e){this.technology.kc=this.technology.kc.filter((function(t,n){return n!==e.$index}))},addBoll:function(){this.technology.boll=[].concat(Object(i["a"])(this.technology.boll),[{name:"",kline_interval:"",period:21,std_dev_multiplier:2,enable:!1}])},delBoll:function(e){this.technology.boll=this.technology.boll.filter((function(t,n){return n!==e.$index}))},addAtr:function(){this.technology.atr=[].concat(Object(i["a"])(this.technology.atr),[{name:"",kline_interval:"",period:14,enable:!1}])},delAtr:function(e){this.technology.atr=this.technology.atr.filter((function(t,n){return n!==e.$index}))},addStrategy:function(){this.strategy=[].concat(Object(i["a"])(this.strategy),[{name:"",type:"",code:"",fullScreen:!1,enable:!1}])},delStrategy:function(e){this.strategy=this.strategy.filter((function(t,n){return n!==e.$index}))},selectStrategyTemplate:function(e){var t=this.strategyTemplates.find((function(t){return t.id===e}));if(t)try{this.strategy=JSON.parse(t.strategy),this.copyTechnology=t.technology}catch(n){this.$message({message:"template error",type:"error"})}}}},k=w,$=(n("26d8"),n("9bf6")),_=Object($["a"])(k,a,l,!1,null,null,null);t["default"]=_.exports}}]); \ No newline at end of file diff --git a/static/js/chunk-7367776c.260b218c.js b/static/js/chunk-7367776c.260b218c.js new file mode 100644 index 0000000..d122bda --- /dev/null +++ b/static/js/chunk-7367776c.260b218c.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7367776c"],{1:function(e,t){},"16dd":function(e,t,n){"use strict";var a=n("38e0"),l=n("9648"),o=n("39d3"),r=n("87ef"),i=n("ad41"),s=[],c=s.sort,u=r((function(){s.sort(void 0)})),d=r((function(){s.sort(null)})),p=i("sort"),f=u||!d||!p;a({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),l(e))}})},2215:function(e,t,n){},2465:function(e,t,n){"use strict";n.d(t,"g",(function(){return l})),n.d(t,"n",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"m",(function(){return d})),n.d(t,"o",(function(){return p})),n.d(t,"p",(function(){return f})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return m})),n.d(t,"l",(function(){return h})),n.d(t,"r",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"k",(function(){return w})),n.d(t,"q",(function(){return k}));var a=n("b775");function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/features",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/features/".concat(e),method:"put",data:t})}function r(e){return Object(a["a"])({url:"/features",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/features/".concat(e),method:"delete"})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Object(a["a"])({url:"/features/enable/".concat(e),method:"put"})}function c(e){return Object(a["a"])({url:"/features/batch",method:"put",data:e})}function u(){return Object(a["a"])({url:"/config",method:"get"})}function d(e){return Object(a["a"])({url:"/config",method:"put",data:e})}function p(){return Object(a["a"])({url:"/start",method:"post"})}function f(){return Object(a["a"])({url:"/stop",method:"post"})}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/account",method:"get",params:e})}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/positions",method:"get",params:e})}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/open-orders",method:"get",params:e})}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/local/positions",method:"get",params:e})}function y(e,t){return Object(a["a"])({url:"/futures/local/positions/".concat(e),method:"put",data:t})}function v(e,t){return Object(a["a"])({url:"/futures/local/positions/".concat(e),method:"delete",data:t})}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/futures/local/open-orders",method:"get",params:e})}function k(e,t){return Object(a["a"])({url:"/features/strategy-rule/test/".concat(e),method:"post",data:t})}},"333d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},l=[];n("374d");Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=i(),l=e-a,s=20,c=0;t="undefined"===typeof t?500:t;var u=function(){c+=s;var e=Math.easeInOutQuad(c,a,l,t);r(e),c0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/strategy-templates",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"put",data:t})}function r(e){return Object(a["a"])({url:"/strategy-templates",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"delete"})}function s(e,t){return Object(a["a"])({url:"/strategy-templates/test/".concat(e),method:"post",data:t})}},"97c4":function(e,t,n){(function(e){e(n("c5ba"))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,a=e.length;nr.ch&&(i.end=r.ch,i.string=i.string.slice(0,r.ch-i.start)):i={start:r.ch,end:r.ch,string:"",state:i.state,type:"."==i.string?"property":null};var c=i;while("property"==c.type){if(c=l(n,t(r.line,c.start)),"."!=c.string)return;if(c=l(n,t(r.line,c.start)),!u)var u=[];u.push(c)}return{list:b(i,u,a,o),from:t(r.line,i.start),to:t(r.line,i.end)}}}}function o(e,t){return l(e,d,(function(e,t){return e.getTokenAt(t)}),t)}function r(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function i(e,t){return l(e,p,r,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",i);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function f(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var a in e)t(a)}function b(e,t,l,o){var r=[],i=e.string,d=o&&o.globalScope||window;function p(e){0!=e.lastIndexOf(i,0)||a(r,e)||r.push(e)}function b(e){"string"==typeof e?n(s,p):e instanceof Array?n(c,p):e instanceof Function&&n(u,p),f(e,p)}if(t&&t.length){var g,m=t.pop();m.type&&0===m.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[m.string]),o&&!1===o.useGlobalScope||(g=g||d[m.string])):"string"==m.type?g="":"atom"==m.type?g=1:"function"==m.type&&(null==d.jQuery||"$"!=m.string&&"jQuery"!=m.string||"function"!=typeof d.jQuery?null!=d._&&"_"==m.string&&"function"==typeof d._&&(g=d._()):g=d.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&b(g)}else{for(var h=e.state.localVars;h;h=h.next)p(h.name);for(h=e.state.globalVars;h;h=h.next)p(h.name);o&&!1===o.useGlobalScope||b(d),n(l,p)}return r}}))},a6a9:function(e,t,n){"use strict";var a=n("38e0"),l=n("33e4").find,o=n("6466"),r=n("effa"),i="find",s=!0,c=r(i);i in[]&&Array(1)[i]((function(){s=!1})),a({target:"Array",proto:!0,forced:s||!c},{find:function(e){return l(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},b5ef:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("1a06"),n("d987"),n("6de1");function a(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function l(e,t){if(null==e)return{};var n,l,o=a(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l0,expression:"allList.length > 0"}],attrs:{total:e.allList.length,page:e.search.page,limit:e.search.limit},on:{"update:page":function(t){return e.$set(e.search,"page",t)},"update:limit":function(t){return e.$set(e.search,"limit",t)},pagination:e.getPageList}}),n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{model:e.info,"label-position":"left","label-width":"100px"}},[n("el-form-item",{attrs:{label:e.$t("trade.coin"),prop:"symbol"}},[n("el-input",{model:{value:e.info.symbol,callback:function(t){e.$set(e.info,"symbol",t)},expression:"info.symbol"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.addCoin(e.info)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTitle2,visible:e.dialogFormVisible2},on:{"update:visible":function(t){e.dialogFormVisible2=t}}},[n("el-form",{ref:"dataForm2",staticStyle:{width:"500px","margin-left":"50px"},attrs:{model:e.batchInfo,"label-position":"left","label-width":"130px"}},[n("el-form-item",{attrs:{label:e.$t("trade.strategyType"),prop:"strategyType"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyType,callback:function(t){e.$set(e.batchInfo,"strategyType",t)},expression:"batchInfo.strategyType"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)],1),n("el-form-item",{attrs:{label:e.$t("trade.strategyTemplate"),prop:"strategyTemplates"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-form-item",{attrs:{label:e.$t("trade.marginType"),prop:"marginType"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.marginType,callback:function(t){e.$set(e.batchInfo,"marginType",t)},expression:"batchInfo.marginType"}},[n("el-option",{attrs:{label:e.$t("trade.ISOLATED"),value:"ISOLATED"}}),n("el-option",{attrs:{label:e.$t("trade.CROSSED"),value:"CROSSED"}})],1)],1),n("el-form-item",{attrs:{label:e.$t("trade.usdt"),prop:"usdt"}},[n("el-input",{model:{value:e.batchInfo.usdt,callback:function(t){e.$set(e.batchInfo,"usdt",t)},expression:"batchInfo.usdt"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.leverage"),prop:"leverage"}},[n("el-input",{model:{value:e.batchInfo.leverage,callback:function(t){e.$set(e.batchInfo,"leverage",t)},expression:"batchInfo.leverage"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.profitRate"),prop:"profit"}},[n("el-input",{model:{value:e.batchInfo.profit,callback:function(t){e.$set(e.batchInfo,"profit",t)},expression:"batchInfo.profit"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.lossRate"),prop:"loss"}},[n("el-input",{model:{value:e.batchInfo.loss,callback:function(t){e.$set(e.batchInfo,"loss",t)},expression:"batchInfo.loss"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible2=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading2},on:{click:function(t){return e.batchEdit(e.batchInfo)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTechnologyTitle,visible:e.dialogTechnologyVisible},on:{"update:visible":function(t){e.dialogTechnologyVisible=t}}},[n("el-tabs",{attrs:{value:"ma"}},[n("el-tab-pane",{attrs:{label:"ma",name:"ma"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addMa}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ma,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delMa(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"ema",name:"ema"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addEma}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ema,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delEma(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"rsi",name:"rsi"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addRsi}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.rsi,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delRsi(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"kc",name:"kc"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addKc}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.kc,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.multiplier,callback:function(n){e.$set(t.row,"multiplier",n)},expression:"scope.row.multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delKc(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"boll",name:"boll"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBoll}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.boll,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.std_dev_multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.std_dev_multiplier,callback:function(n){e.$set(t.row,"std_dev_multiplier",n)},expression:"scope.row.std_dev_multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delBoll(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"atr",name:"atr"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addAtr}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.atr,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delAtr(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTechnologyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmTechnology()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogStrategyTitle,visible:e.dialogStrategyVisible,width:"75%"},on:{"update:visible":function(t){e.dialogStrategyVisible=t}}},[n("div",{staticStyle:{display:"flex",gap:"10px"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.addStrategy}},[e._v(e._s(e.$t("table.add")))]),n("el-select",{attrs:{clearable:"",size:"mini",placeholder:"select template"},on:{change:e.selectStrategyTemplate},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.strategy,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("strategy.name"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.code"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{type:"textarea",rows:6,size:"mini"},model:{value:t.row.code,callback:function(n){e.$set(t.row,"code",n)},expression:"scope.row.code"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.fullScreen"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(n){return e.fullCodeScreenChange(t.row,t.$index)}},model:{value:t.row.fullScreen,callback:function(n){e.$set(t.row,"fullScreen",n)},expression:"scope.row.fullScreen"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.type"),align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.type,callback:function(n){e.$set(t.row,"type",n)},expression:"scope.row.type"}},[n("el-option",{attrs:{label:e.$t("trade.long"),value:"long"}}),n("el-option",{attrs:{label:e.$t("trade.short"),value:"short"}}),n("el-option",{attrs:{label:e.$t("trade.close_long"),value:"close_long"}}),n("el-option",{attrs:{label:e.$t("trade.close_short"),value:"close_short"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delStrategy(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogStrategyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmStrategy()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogCodeTitle,visible:e.dialogCodeVisible,fullscreen:""},on:{"update:visible":function(t){e.dialogCodeVisible=t},closed:e.codeScreenClose}},[n("div",{staticClass:"code-full",staticStyle:{width:"100%"}},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-link",{attrs:{href:"https://expr-lang.org/docs/language-definition",type:"success",target:"_blank"}},[e._v("code rule")])],1),n("el-button",{attrs:{type:"primary"},on:{click:e.testStrategyRule}},[e._v(e._s(e.$t("table.test"))+" ")])],1),n("codemirror",{ref:"cmEditor",attrs:{value:e.code,options:e.cmOptions},on:{ready:e.onCmReady,focus:e.onCmFocus,input:e.onCmCodeChange}})],1)])],1)},l=[],o=n("b5ef"),r=n("8204"),i=n("b8c8"),s=n("dd36"),c=n("fee1"),u=(n("e168"),n("3dd5"),n("a6a9"),n("4cc3"),n("8b03"),n("7019"),n("16dd"),n("452e"),n("40a4"),n("374d"),n("5227"),n("90c8"),n("8d8a"),n("4a51"),n("3363"),n("1a71"),n("8a0d"),n("f2e9"),n("3399"),n("2465")),d=n("7506"),p=n("333d"),f=n("1888"),b=n("c5ba"),g=n.n(b),m=n("1ca5"),h=(n("7392"),n("cedf"),n("1657"),n("d8c5"),n("8f95"),n("31af"),n("e83b"),n("8961"),n("45d2"),n("7f27"),n("669a"),n("be82"),n("d770"),n("30fe"),n("3a45"),n("4a07"),n("a7ed"),n("cb97"),n("0c7b"),n("065a"),n("5ca6"),n("2399"),n("67ed"),n("6367"),n("5734"),n("97c4"),n("df07"),["pin","enable"]),y=["id","enable","leverage","usdt"],v={ma:[],ema:[],rsi:[],kc:[],boll:[],atr:[]},w={components:{codemirror:m["codemirror"],Pagination:p["a"]},data:function(){return{klineInterval:["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w","1M"],allList:[],list:[],sort:"",listLoading:!1,serviceLoading:!1,enableLoading:!1,buyAll:!0,sellAll:!0,search:{page:1,limit:50,symbol_type:"USDT",symbol:"",enable:"",margin_type:"",pin:""},dialogFormVisible:!1,dialogLoading:!1,dialogTitle:this.$t("table.add"),info:{},dialogFormVisible2:!1,dialogLoading2:!1,dialogTitle2:this.$t("table.editBatch"),batchInfo:{usdt:void 0,profit:void 0,loss:void 0,marginType:void 0,leverage:void 0,strategyType:void 0,strategyTemplateId:void 0},rowKey:function(e){return e.symbol+e.id},expandKeys:[],timeId:null,interval:30,dialogTechnologyTitle:"",dialogTechnologyVisible:!1,technologySymbolId:0,technology:JSON.parse(JSON.stringify(v)),dialogStrategyTitle:"",dialogStrategyVisible:!1,strategySymbolId:0,strategy:[],code:"",cmOptions:{tabSize:2,mode:"text/x-go",theme:"monokai",lineNumbers:!0,line:!0,foldGutter:!0,lineWrapping:!0,autoFormatJson:!0,jsonIndentation:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],extraKeys:{Tab:"autocomplete"},hintOptions:{completeSingle:!1,hint:this.customHint}},dialogCodeTitle:"",dialogCodeVisible:!1,strategyIndex:void 0,strategyTemplates:[],copyTechnology:""}},computed:{allProfit:function(){var e=this.list.reduce((function(e,t){return e+t.nowProfit}),0);return Object(f["a"])(e,2)}},activated:function(){this.interval=localStorage.getItem("refreshInterval")||30,this.fetchData()},deactivated:function(){clearInterval(this.timeId)},created:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.getStrategyTemplates(),e.search=Object.assign(e.search,e.$route.query),e.search.page=parseInt(e.search.page)||1,e.search.limit=parseInt(e.search.limit)||50,e.interval=localStorage.getItem("refreshInterval")||30,t.next=7,e.fetchData();case 7:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearInterval(this.timeId)},methods:{getStrategyTemplates:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(d["d"])();case 2:n=t.sent,a=n.data,e.strategyTemplates=a;case 5:case"end":return t.stop()}}),t)})))()},customHint:function(e){var t=e.getCursor(),n=e.getTokenAt(t),a=n.start,l=n.end,o=n.string,r=this.getHints(o),i={list:r.map((function(e){return{text:e}})),from:g.a.Pos(t.line,a),to:g.a.Pos(t.line,l)};return i},getHints:function(e){var t=this,n=["type","float","int","string","let","trim","upper","lower","split","replace","repeat","indexOf","hasPrefix","now()","max","min","abs","ceil","floor","round","all","any","one","none","map","filter","find","findIndex","findLast","groupBy","count","concat","join","reduce","sum","mean","median","first","last","take","reverse","sort","sortBy","keys","values","len","Kdj","IsDesc","IsAsc","SystemStartTime","NowPrice","NowTime","NowSymbolPercentChange","NowSymbolClose","NowSymbolOpen","NowSymbolLow","NowSymbolHigh","BasicTrend","ROI","Position","Position.EntryPrice","Position.MarkPrice","Position.Amount","Position.UnrealizedProfit","Position.Leverage","Position.Side","Position.Mock"];if(void 0!==this.strategySymbolId){var a=this.list.find((function(e){return e.id===t.strategySymbolId}));if(a){var l={};try{l=JSON.parse(a.technology)}catch(f){l={}}var o=new Set;Object.keys(l).forEach((function(e){l[e].forEach((function(t){if(t.enable)switch(n.push(t.name),t.kline_interval&&o.add(t.kline_interval),e){case"ma":case"ema":case"rsi":case"atr":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Data")),n.push("".concat(t.name,".Data[]"));break;case"kc":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Multiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break;case"boll":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".StdDevMultiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break}}))})),o.forEach((function(e){n.push("kline_".concat(e)),n.push("kline_".concat(e,".High")),n.push("kline_".concat(e,".High[]")),n.push("kline_".concat(e,".Low")),n.push("kline_".concat(e,".Low[]")),n.push("kline_".concat(e,".Close")),n.push("kline_".concat(e,".Close[]")),n.push("kline_".concat(e,".Open")),n.push("kline_".concat(e,".Open[]")),n.push("kline_".concat(e,".Amount")),n.push("kline_".concat(e,".Amount[]")),n.push("kline_".concat(e,".Qps")),n.push("kline_".concat(e,".Qps[]"))}))}}for(var r=0,i=["BTCUSDT","ETHUSDT","SOLUSDT","BNBUSDT"];r1&&void 0!==arguments[1]?arguments[1]:2;return Object(f["a"])(e,t)},expandChange:function(e,t){this.expandKeys=t.map((function(e){return e.symbol}))},sortChange:function(e){var t=e.prop,n=e.order;this.sort=n?t+("ascending"===n?"+":"-"):"",this.fetchData()},handleTabClick:function(e){this.search.symbol_type=e.name,this.search.page=1,this.fetchData()},fetchData:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:clearInterval(e.timeId),e.getFutures(),e.replaceUrl(),e.timeId=setInterval((function(){return e.getFutures()}),1e3*e.interval);case 4:case"end":return t.stop()}}),t)})))()},getFutures:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.search,t.next=3,Object(u["g"])(Object(r["a"])({sort:e.sort},n));case 3:a=t.sent,l=a.data,e.allList=l.map((function(e){var t=e.pin,n=e.enable,a=Object(o["a"])(e,h);return Object(r["a"])({enable:n>0,pin_read:t,pin:t},a)})),e.getPageList();case 7:case"end":return t.stop()}}),t)})))()},replaceUrl:function(){this.$router.push({path:this.$route.path,query:Object(r["a"])({},this.search)})},getPageList:function(){var e=this.search;this.list=this.allList.slice((e.page-1)*e.limit,e.page*e.limit)},editPin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.pin_read&&!e.pin?e.pin=1:e.pin_read&&e.pin&&(e.pin_read=0,e.pin=0),n.prev=1,n.next=4,Object(u["n"])(e.id,{pin:e.pin});case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},edit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a,l,i,c,d;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.id,l=e.enable,i=e.leverage,c=e.usdt,d=Object(o["a"])(e,y),n.prev=1,n.next=4,Object(u["n"])(a,Object(r["a"])(Object(r["a"])({},d),{},{leverage:Number(i),usdt:c,enable:l?1:0}));case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},del:function(e){var t=this;this.$confirm("".concat(this.$t("table.deleteConfirm")," ").concat(e.symbol,"?")).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(u["c"])(e.id);case 3:return t.$message({message:t.$t("table.deleteSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.deleteFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},enableAll:function(e){var t=this,n=1===e?this.$t("table.enableAllCoins"):this.$t("table.disableAllCoins");this.$confirm(n).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(u["e"])(e);case 3:return t.$message({message:t.$t("table.actionSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},isChangeBuy:function(e,t){var n=this;return Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.edit(t);case 2:case"end":return e.stop()}}),e)})))()},openDialog:function(){this.dialogTitle=this.$t("table.add"),this.dialogFormVisible=!0},addCoin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a={symbol:e.symbol,quantity:20,percentChange:0,close:0,open:0,low:0,enable:1,updateTime:+new Date},n.next=3,Object(u["a"])(a);case 3:t.dialogFormVisible=!1;case 4:case"end":return n.stop()}}),n)})))()},batchEdit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(u["b"])(e);case 3:return t.batchInfo={usdt:void 0,profit:void 0,loss:void 0,marginType:void 0,leverage:void 0,strategyType:void 0,strategyTemplateId:void 0},t.dialogFormVisible2=!1,n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},openTechnologyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.technologySymbolId=e.id,e.technology)try{t.technology=Object(r["a"])(Object(r["a"])({},JSON.parse(JSON.stringify(v))),JSON.parse(e.technology))}catch(a){t.technology=JSON.parse(JSON.stringify(v))}else t.technology=JSON.parse(JSON.stringify(v));t.dialogTechnologyTitle="".concat(e.symbol," ").concat(t.$t("trade.technology")),t.dialogTechnologyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openStrategyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.strategySymbolId=e.id,e.strategy)try{t.strategy=JSON.parse(e.strategy)}catch(a){t.strategy=[]}else t.strategy=[];t.dialogStrategyTitle="".concat(e.symbol," ").concat(t.$t("trade.strategy")),t.dialogStrategyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openKlineDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getKcLineChart(e);case 3:n.next=10;break;case 5:return n.prev=5,n.t0=n["catch"](0),console.log(n.t0),t.$message({message:t.$t("table.actionFail"),type:"error"}),n.abrupt("return");case 10:t.dialogTitleKline="".concat(e.symbol,"(").concat(e.kline_interval,")"),t.dialogKlineVisible=!0;case 12:case"end":return n.stop()}}),n,null,[[0,5]])})))()},confirmTechnology:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,Object.keys(e.technology).forEach((function(t){e.technology[t].forEach((function(e){e.period&&(e.period=Number(e.period)),e.multiplier&&(e.multiplier=Number(e.multiplier)),e.std_dev_multiplier&&(e.std_dev_multiplier=Number(e.std_dev_multiplier))}))})),t.next=4,Object(u["n"])(e.technologySymbolId,{technology:JSON.stringify(e.technology)});case 4:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=7,e.fetchData();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},confirmStrategy:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n={strategy:JSON.stringify(e.strategy)},console.log(e.copyTechnology),e.copyTechnology&&(n.technology=e.copyTechnology),t.next=6,Object(u["n"])(e.strategySymbolId,n);case 6:return e.copyTechnology="",e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=10,e.fetchData();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))()},addMa:function(){this.technology.ma=[].concat(Object(i["a"])(this.technology.ma),[{name:"",kline_interval:"",period:14,enable:!1}])},delMa:function(e){this.technology.ma=this.technology.ma.filter((function(t,n){return n!==e.$index}))},addEma:function(){this.technology.ema=[].concat(Object(i["a"])(this.technology.ema),[{name:"",kline_interval:"",period:14,enable:!1}])},delEma:function(e){this.technology.ema=this.technology.ema.filter((function(t,n){return n!==e.$index}))},addRsi:function(){this.technology.rsi=[].concat(Object(i["a"])(this.technology.rsi),[{name:"",kline_interval:"",period:14,enable:!1}])},delRsi:function(e){this.technology.rsi=this.technology.rsi.filter((function(t,n){return n!==e.$index}))},addKc:function(){this.technology.kc=[].concat(Object(i["a"])(this.technology.kc),[{name:"",kline_interval:"",period:50,multiplier:2.75,enable:!1}])},delKc:function(e){this.technology.kc=this.technology.kc.filter((function(t,n){return n!==e.$index}))},addBoll:function(){this.technology.boll=[].concat(Object(i["a"])(this.technology.boll),[{name:"",kline_interval:"",period:21,std_dev_multiplier:2,enable:!1}])},delBoll:function(e){this.technology.boll=this.technology.boll.filter((function(t,n){return n!==e.$index}))},addAtr:function(){this.technology.atr=[].concat(Object(i["a"])(this.technology.atr),[{name:"",kline_interval:"",period:14,enable:!1}])},delAtr:function(e){this.technology.atr=this.technology.atr.filter((function(t,n){return n!==e.$index}))},addStrategy:function(){this.strategy=[].concat(Object(i["a"])(this.strategy),[{name:"",type:"",code:"",fullScreen:!1,enable:!1}])},delStrategy:function(e){this.strategy=this.strategy.filter((function(t,n){return n!==e.$index}))},selectStrategyTemplate:function(e){var t=this.strategyTemplates.find((function(t){return t.id===e}));if(t)try{this.strategy=JSON.parse(t.strategy),this.copyTechnology=t.technology}catch(n){this.$message({message:"template error",type:"error"})}}}},k=w,$=(n("c8b6"),n("9bf6")),_=Object($["a"])(k,a,l,!1,null,null,null);t["default"]=_.exports}}]); \ No newline at end of file diff --git a/static/js/chunk-7e00b3b1.cd2fad3f.js b/static/js/chunk-7e00b3b1.cd2fad3f.js new file mode 100644 index 0000000..c6a71cf --- /dev/null +++ b/static/js/chunk-7e00b3b1.cd2fad3f.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e00b3b1"],{1:function(e,t){},"16dd":function(e,t,n){"use strict";var a=n("38e0"),l=n("9648"),o=n("39d3"),i=n("87ef"),r=n("ad41"),s=[],c=s.sort,u=i((function(){s.sort(void 0)})),d=i((function(){s.sort(null)})),p=r("sort"),f=u||!d||!p;a({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),l(e))}})},"333d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},l=[];n("374d");Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=r(),l=e-a,s=20,c=0;t="undefined"===typeof t?500:t;var u=function(){c+=s;var e=Math.easeInOutQuad(c,a,l,t);i(e),c0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/strategy-templates",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"put",data:t})}function i(e){return Object(a["a"])({url:"/strategy-templates",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"delete"})}function s(e,t){return Object(a["a"])({url:"/strategy-templates/test/".concat(e),method:"post",data:t})}},8021:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.openDialog()}}},[e._v(" "+e._s(e.$t("table.add"))+" ")]),n("el-button",{attrs:{type:"success",size:"mini",loading:e.serviceLoading},on:{click:function(t){return e.enableAll(1)}}},[e._v(" "+e._s(e.$t("table.enableAllCoins"))+" ")]),n("el-button",{attrs:{type:"danger",size:"mini",loading:e.serviceLoading},on:{click:function(t){return e.enableAll(0)}}},[e._v(" "+e._s(e.$t("table.disableAllCoins"))+" ")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.dialogFormVisible2=!0}}},[e._v(" "+e._s(e.$t("table.editBatch"))+" ")])],1),n("div",{staticStyle:{width:"25%","text-align":"right"}},[e._v(" "+e._s(e.$t("table.totalCount"))+": "+e._s(e.list.length)+" ")])]),n("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px"}},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:e.$t("trade.coin"),size:"mini"},model:{value:e.search.symbol,callback:function(t){e.$set(e.search,"symbol",t)},expression:"search.symbol"}}),n("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini",clearable:"",placeholder:"pin"},model:{value:e.search.pin,callback:function(t){e.$set(e.search,"pin",t)},expression:"search.pin"}},[n("el-option",{attrs:{label:e.$t("trade.pin"),value:"1"}})],1),n("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini",clearable:"",placeholder:"status"},model:{value:e.search.enable,callback:function(t){e.$set(e.search,"enable",t)},expression:"search.enable"}},[n("el-option",{attrs:{label:e.$t("table.open"),value:"1"}}),n("el-option",{attrs:{label:e.$t("table.close"),value:"0"}})],1),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:e.fetchData}},[e._v(" "+e._s(e.$t("table.search"))+" ")])],1),n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px","align-items":"center"}},[n("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini"},on:{change:e.changeRefreshInterval},model:{value:e.interval,callback:function(t){e.interval=t},expression:"interval"}},e._l(30,(function(e){return n("el-option",{key:e,attrs:{label:e+"s",value:e}})})),1),n("span",[e._v(e._s(e.$t("table.refreshInterval")))])],1)]),n("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.search.symbol_type,callback:function(t){e.$set(e.search,"symbol_type",t)},expression:"search.symbol_type"}},[n("el-tab-pane",{attrs:{label:"USDT",name:"USDT"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""},on:{"sort-change":e.sortChange,"expand-change":e.expandChange}},[n("el-table-column",{attrs:{label:e.$t("trade.pin"),width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-rate",{attrs:{max:1},on:{change:function(t){return e.editPin(a)}},model:{value:a.pin_read,callback:function(t){e.$set(a,"pin_read",t)},expression:"row.pin_read"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.coin"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategyType"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},on:{change:function(n){return e.edit(t.row)}},model:{value:t.row.strategy_type,callback:function(n){e.$set(t.row,"strategy_type",n)},expression:"scope.row.strategy_type"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.nowPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.round(t.row.close,10))+" ")]}}])}),n("el-table-column",{attrs:{label:"24h↑↓",align:"center",width:"90","show-overflow-tooltip":"",prop:"percent_change",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.percentChange<0?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.row.percentChange)+"%↓ ")]):n("span",{staticStyle:{color:"green"}},[e._v(e._s(t.row.percentChange)+"%↑ ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.usdt"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.usdt,callback:function(n){e.$set(t.row,"usdt",n)},expression:"scope.row.usdt"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.profitRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.profit,callback:function(n){e.$set(t.row,"profit",n)},expression:"scope.row.profit"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.lossRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.loss,callback:function(n){e.$set(t.row,"loss",n)},expression:"scope.row.loss"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.enable"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(t){return e.isChangeBuy(t,a)}},model:{value:a.enable,callback:function(t){e.$set(a,"enable",t)},expression:"row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"75","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"USDC",name:"USDC"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""},on:{"sort-change":e.sortChange,"expand-change":e.expandChange}},[n("el-table-column",{attrs:{label:e.$t("trade.pin"),width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-rate",{attrs:{max:1},on:{change:function(t){return e.editPin(a)}},model:{value:a.pin_read,callback:function(t){e.$set(a,"pin_read",t)},expression:"row.pin_read"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.coin"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategyType"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},on:{change:function(n){return e.edit(t.row)}},model:{value:t.row.strategy_type,callback:function(n){e.$set(t.row,"strategy_type",n)},expression:"scope.row.strategy_type"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.nowPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.round(t.row.close,10))+" ")]}}])}),n("el-table-column",{attrs:{label:"24h↑↓",align:"center",width:"90","show-overflow-tooltip":"",prop:"percent_change",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.percentChange<0?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.row.percentChange)+"%↓ ")]):n("span",{staticStyle:{color:"green"}},[e._v(e._s(t.row.percentChange)+"%↑ ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.usdt"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.usdt,callback:function(n){e.$set(t.row,"usdt",n)},expression:"scope.row.usdt"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.profitRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.profit,callback:function(n){e.$set(t.row,"profit",n)},expression:"scope.row.profit"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.lossRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.loss,callback:function(n){e.$set(t.row,"loss",n)},expression:"scope.row.loss"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.enable"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(t){return e.isChangeBuy(t,a)}},model:{value:a.enable,callback:function(t){e.$set(a,"enable",t)},expression:"row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"75","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"FDUSD",name:"FDUSD"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""},on:{"sort-change":e.sortChange,"expand-change":e.expandChange}},[n("el-table-column",{attrs:{label:e.$t("trade.pin"),width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-rate",{attrs:{max:1},on:{change:function(t){return e.editPin(a)}},model:{value:a.pin_read,callback:function(t){e.$set(a,"pin_read",t)},expression:"row.pin_read"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.coin"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategyType"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},on:{change:function(n){return e.edit(t.row)}},model:{value:t.row.strategy_type,callback:function(n){e.$set(t.row,"strategy_type",n)},expression:"scope.row.strategy_type"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.nowPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.round(t.row.close,10))+" ")]}}])}),n("el-table-column",{attrs:{label:"24h↑↓",align:"center",width:"90","show-overflow-tooltip":"",prop:"percent_change",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.percentChange<0?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.row.percentChange)+"%↓ ")]):n("span",{staticStyle:{color:"green"}},[e._v(e._s(t.row.percentChange)+"%↑ ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.usdt"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.usdt,callback:function(n){e.$set(t.row,"usdt",n)},expression:"scope.row.usdt"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.profitRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.profit,callback:function(n){e.$set(t.row,"profit",n)},expression:"scope.row.profit"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.lossRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.loss,callback:function(n){e.$set(t.row,"loss",n)},expression:"scope.row.loss"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.enable"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(t){return e.isChangeBuy(t,a)}},model:{value:a.enable,callback:function(t){e.$set(a,"enable",t)},expression:"row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"75","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.allList.length>0,expression:"allList.length > 0"}],attrs:{total:e.allList.length,page:e.search.page,limit:e.search.limit},on:{"update:page":function(t){return e.$set(e.search,"page",t)},"update:limit":function(t){return e.$set(e.search,"limit",t)},pagination:e.getPageList}}),n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{model:e.info,"label-position":"left","label-width":"100px"}},[n("el-form-item",{attrs:{label:e.$t("trade.coin"),prop:"symbol"}},[n("el-input",{model:{value:e.info.symbol,callback:function(t){e.$set(e.info,"symbol",t)},expression:"info.symbol"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.addCoin(e.info)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTitle2,visible:e.dialogFormVisible2},on:{"update:visible":function(t){e.dialogFormVisible2=t}}},[n("el-form",{ref:"dataForm2",staticStyle:{width:"500px","margin-left":"50px"},attrs:{model:e.batchInfo,"label-position":"left","label-width":"130px"}},[n("el-form-item",{attrs:{label:e.$t("trade.strategyType"),prop:"strategyType"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyType,callback:function(t){e.$set(e.batchInfo,"strategyType",t)},expression:"batchInfo.strategyType"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)],1),n("el-form-item",{attrs:{label:e.$t("trade.strategyTemplate"),prop:"strategyTemplates"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-form-item",{attrs:{label:e.$t("trade.usdt"),prop:"usdt"}},[n("el-input",{model:{value:e.batchInfo.usdt,callback:function(t){e.$set(e.batchInfo,"usdt",t)},expression:"batchInfo.usdt"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.profitRate"),prop:"profit"}},[n("el-input",{model:{value:e.batchInfo.profit,callback:function(t){e.$set(e.batchInfo,"profit",t)},expression:"batchInfo.profit"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.lossRate"),prop:"loss"}},[n("el-input",{model:{value:e.batchInfo.loss,callback:function(t){e.$set(e.batchInfo,"loss",t)},expression:"batchInfo.loss"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible2=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading2},on:{click:function(t){return e.batchEdit(e.batchInfo)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTechnologyTitle,visible:e.dialogTechnologyVisible},on:{"update:visible":function(t){e.dialogTechnologyVisible=t}}},[n("el-tabs",{attrs:{value:"ma"}},[n("el-tab-pane",{attrs:{label:"ma",name:"ma"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addMa}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ma,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delMa(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"ema",name:"ema"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addEma}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ema,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delEma(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"rsi",name:"rsi"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addRsi}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.rsi,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delRsi(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"kc",name:"kc"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addKc}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.kc,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.multiplier,callback:function(n){e.$set(t.row,"multiplier",n)},expression:"scope.row.multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delKc(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"boll",name:"boll"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBoll}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.boll,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.std_dev_multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.std_dev_multiplier,callback:function(n){e.$set(t.row,"std_dev_multiplier",n)},expression:"scope.row.std_dev_multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delBoll(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"atr",name:"atr"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addAtr}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.atr,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delAtr(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTechnologyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmTechnology()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogStrategyTitle,visible:e.dialogStrategyVisible,width:"75%"},on:{"update:visible":function(t){e.dialogStrategyVisible=t}}},[n("div",{staticStyle:{display:"flex",gap:"10px"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.addStrategy}},[e._v(e._s(e.$t("table.add")))]),n("el-select",{attrs:{clearable:"",size:"mini",placeholder:"select template"},on:{change:e.selectStrategyTemplate},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.strategy,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("strategy.name"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.code"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{type:"textarea",rows:6,size:"mini"},model:{value:t.row.code,callback:function(n){e.$set(t.row,"code",n)},expression:"scope.row.code"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.fullScreen"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(n){return e.fullCodeScreenChange(t.row,t.$index)}},model:{value:t.row.fullScreen,callback:function(n){e.$set(t.row,"fullScreen",n)},expression:"scope.row.fullScreen"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.type"),align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.type,callback:function(n){e.$set(t.row,"type",n)},expression:"scope.row.type"}},[n("el-option",{attrs:{label:e.$t("trade.long"),value:"long"}}),n("el-option",{attrs:{label:e.$t("trade.short"),value:"short"}}),n("el-option",{attrs:{label:e.$t("trade.close_long"),value:"close_long"}}),n("el-option",{attrs:{label:e.$t("trade.close_short"),value:"close_short"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delStrategy(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogStrategyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmStrategy()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogCodeTitle,visible:e.dialogCodeVisible,fullscreen:""},on:{"update:visible":function(t){e.dialogCodeVisible=t},closed:e.codeScreenClose}},[n("div",{staticClass:"code-full",staticStyle:{width:"100%"}},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-link",{attrs:{href:"https://expr-lang.org/docs/language-definition",type:"success",target:"_blank"}},[e._v("code rule")])],1),n("el-button",{attrs:{type:"primary"},on:{click:e.testStrategyRule}},[e._v(e._s(e.$t("table.test"))+" ")])],1),n("codemirror",{ref:"cmEditor",attrs:{value:e.code,options:e.cmOptions},on:{ready:e.onCmReady,focus:e.onCmFocus,input:e.onCmCodeChange}})],1)])],1)},l=[],o=n("b5ef"),i=n("8204"),r=n("b8c8"),s=n("dd36"),c=n("fee1"),u=(n("e168"),n("3dd5"),n("a6a9"),n("4cc3"),n("8b03"),n("7019"),n("16dd"),n("452e"),n("40a4"),n("374d"),n("5227"),n("90c8"),n("8d8a"),n("4a51"),n("3363"),n("1a71"),n("8a0d"),n("f2e9"),n("3399"),n("b775"));function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(u["a"])({url:"/spots",method:"get",params:e})}function p(e,t){return Object(u["a"])({url:"/spots/".concat(e),method:"put",data:t})}function f(e){return Object(u["a"])({url:"/spots",method:"post",data:e})}function b(e){return Object(u["a"])({url:"/spots/".concat(e),method:"delete"})}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Object(u["a"])({url:"/spots/enable/".concat(e),method:"put"})}function h(e){return Object(u["a"])({url:"/spots/batch",method:"put",data:e})}function m(e,t){return Object(u["a"])({url:"/spots/strategy-rule/test/".concat(e),method:"post",data:t})}var y=n("7506"),v=n("333d"),w=n("1888"),k=n("c5ba"),_=n.n(k),$=n("1ca5"),x=(n("7392"),n("cedf"),n("1657"),n("d8c5"),n("8f95"),n("31af"),n("e83b"),n("8961"),n("45d2"),n("7f27"),n("669a"),n("be82"),n("d770"),n("30fe"),n("3a45"),n("4a07"),n("a7ed"),n("cb97"),n("0c7b"),n("065a"),n("5ca6"),n("2399"),n("67ed"),n("6367"),n("5734"),n("97c4"),n("df07"),["pin","enable"]),S=["id","enable","leverage","usdt"],O={ma:[],ema:[],rsi:[],kc:[],boll:[],atr:[]},T={components:{codemirror:$["codemirror"],Pagination:v["a"]},data:function(){return{klineInterval:["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w","1M"],allList:[],list:[],sort:"",listLoading:!1,serviceLoading:!1,enableLoading:!1,buyAll:!0,sellAll:!0,search:{page:1,limit:50,symbol_type:"USDT",symbol:"",enable:"",margin_type:"",pin:""},dialogFormVisible:!1,dialogLoading:!1,dialogTitle:this.$t("table.add"),info:{},dialogFormVisible2:!1,dialogLoading2:!1,dialogTitle2:this.$t("table.editBatch"),batchInfo:{usdt:void 0,profit:void 0,loss:void 0,strategyType:void 0,strategyTemplateId:void 0},rowKey:function(e){return e.symbol+e.id},expandKeys:[],timeId:null,interval:30,dialogTechnologyTitle:"",dialogTechnologyVisible:!1,technologySymbolId:0,technology:JSON.parse(JSON.stringify(O)),dialogStrategyTitle:"",dialogStrategyVisible:!1,strategySymbolId:0,strategy:[],code:"",cmOptions:{tabSize:2,mode:"text/x-go",theme:"monokai",lineNumbers:!0,line:!0,foldGutter:!0,lineWrapping:!0,autoFormatJson:!0,jsonIndentation:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],extraKeys:{Tab:"autocomplete"},hintOptions:{completeSingle:!1,hint:this.customHint}},dialogCodeTitle:"",dialogCodeVisible:!1,strategyIndex:void 0,strategyTemplates:[],copyTechnology:""}},computed:{allProfit:function(){var e=this.list.reduce((function(e,t){return e+t.nowProfit}),0);return Object(w["a"])(e,2)}},activated:function(){this.interval=localStorage.getItem("spots_refresh_interval")||30,this.fetchData()},deactivated:function(){clearInterval(this.timeId)},created:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.getStrategyTemplates(),e.search=Object.assign(e.search,e.$route.query),e.search.page=parseInt(e.search.page)||1,e.search.limit=parseInt(e.search.limit)||50,e.interval=localStorage.getItem("spots_refresh_interval")||30,t.next=7,e.fetchData();case 7:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearInterval(this.timeId)},methods:{getStrategyTemplates:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(y["d"])();case 2:n=t.sent,a=n.data,e.strategyTemplates=a;case 5:case"end":return t.stop()}}),t)})))()},customHint:function(e){var t=e.getCursor(),n=e.getTokenAt(t),a=n.start,l=n.end,o=n.string,i=this.getHints(o),r={list:i.map((function(e){return{text:e}})),from:_.a.Pos(t.line,a),to:_.a.Pos(t.line,l)};return r},getHints:function(e){var t=this,n=["type","float","int","string","let","trim","upper","lower","split","replace","repeat","indexOf","hasPrefix","now()","max","min","abs","ceil","floor","round","all","any","one","none","map","filter","find","findIndex","findLast","groupBy","count","concat","join","reduce","sum","mean","median","first","last","take","reverse","sort","sortBy","keys","values","len","Kdj","IsDesc","IsAsc","SystemStartTime","NowPrice","NowTime","NowSymbolPercentChange","NowSymbolClose","NowSymbolOpen","NowSymbolLow","NowSymbolHigh","BasicTrend","ROI","Position","Position.EntryPrice","Position.MarkPrice","Position.Amount","Position.UnrealizedProfit","Position.Leverage","Position.Side","Position.Mock"];if(void 0!==this.strategySymbolId){var a=this.list.find((function(e){return e.id===t.strategySymbolId}));if(a){var l={};try{l=JSON.parse(a.technology)}catch(f){l={}}var o=new Set;Object.keys(l).forEach((function(e){l[e].forEach((function(t){if(t.enable)switch(n.push(t.name),t.kline_interval&&o.add(t.kline_interval),e){case"ma":case"ema":case"rsi":case"atr":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Data")),n.push("".concat(t.name,".Data[]"));break;case"kc":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Multiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break;case"boll":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".StdDevMultiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break}}))})),o.forEach((function(e){n.push("kline_".concat(e)),n.push("kline_".concat(e,".High")),n.push("kline_".concat(e,".High[]")),n.push("kline_".concat(e,".Low")),n.push("kline_".concat(e,".Low[]")),n.push("kline_".concat(e,".Close")),n.push("kline_".concat(e,".Close[]")),n.push("kline_".concat(e,".Open")),n.push("kline_".concat(e,".Open[]")),n.push("kline_".concat(e,".Amount")),n.push("kline_".concat(e,".Amount[]")),n.push("kline_".concat(e,".Qps")),n.push("kline_".concat(e,".Qps[]"))}))}}for(var i=0,r=["BTCUSDT","ETHUSDT","SOLUSDT","BNBUSDT"];i1&&void 0!==arguments[1]?arguments[1]:2;return Object(w["a"])(e,t)},expandChange:function(e,t){this.expandKeys=t.map((function(e){return e.symbol}))},sortChange:function(e){var t=e.prop,n=e.order;this.sort=n?t+("ascending"===n?"+":"-"):"",this.fetchData()},handleTabClick:function(e){this.search.symbol_type=e.name,this.search.page=1,this.fetchData()},fetchData:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:clearInterval(e.timeId),localStorage.setItem("spots_search",JSON.stringify(e.search)),e.getSpots(),e.timeId=setInterval((function(){return e.getSpots()}),1e3*e.interval);case 4:case"end":return t.stop()}}),t)})))()},getSpots:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.search,t.next=3,d(Object(i["a"])({sort:e.sort},n));case 3:a=t.sent,l=a.data,e.allList=l.map((function(e){var t=e.pin,n=e.enable,a=Object(o["a"])(e,x);return Object(i["a"])({enable:n>0,pin_read:t,pin:t},a)})),e.getPageList();case 7:case"end":return t.stop()}}),t)})))()},replaceUrl:function(){this.$router.push({path:this.$route.path,query:Object(i["a"])({},this.search)})},getPageList:function(){var e=this.search;this.list=this.allList.slice((e.page-1)*e.limit,e.page*e.limit)},editPin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.pin_read&&!e.pin?e.pin=1:e.pin_read&&e.pin&&(e.pin_read=0,e.pin=0),n.prev=1,n.next=4,p(e.id,{pin:e.pin});case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},edit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a,l,r,c,u;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.id,l=e.enable,r=e.leverage,c=e.usdt,u=Object(o["a"])(e,S),n.prev=1,n.next=4,p(a,Object(i["a"])(Object(i["a"])({},u),{},{leverage:Number(r),usdt:c,enable:l?1:0}));case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},del:function(e){var t=this;this.$confirm("".concat(this.$t("table.deleteConfirm")," ").concat(e.symbol,"?")).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,b(e.id);case 3:return t.$message({message:t.$t("table.deleteSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.deleteFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},enableAll:function(e){var t=this,n=1===e?this.$t("table.enableAllCoins"):this.$t("table.disableAllCoins");this.$confirm(n).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,g(e);case 3:return t.$message({message:t.$t("table.actionSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},isChangeBuy:function(e,t){var n=this;return Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.edit(t);case 2:case"end":return e.stop()}}),e)})))()},openDialog:function(){this.dialogTitle=this.$t("table.add"),this.dialogFormVisible=!0},addCoin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a={symbol:e.symbol,quantity:20,percentChange:0,close:0,open:0,low:0,enable:1,updateTime:+new Date},n.next=3,f(a);case 3:t.dialogFormVisible=!1;case 4:case"end":return n.stop()}}),n)})))()},batchEdit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,h(e);case 3:return t.batchInfo={usdt:void 0,profit:void 0,loss:void 0,strategyType:void 0,strategyTemplateId:void 0},t.dialogFormVisible2=!1,n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},openTechnologyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.technologySymbolId=e.id,e.technology)try{t.technology=Object(i["a"])(Object(i["a"])({},JSON.parse(JSON.stringify(O))),JSON.parse(e.technology))}catch(a){t.technology=JSON.parse(JSON.stringify(O))}else t.technology=JSON.parse(JSON.stringify(O));t.dialogTechnologyTitle="".concat(e.symbol," ").concat(t.$t("trade.technology")),t.dialogTechnologyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openStrategyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.strategySymbolId=e.id,e.strategy)try{t.strategy=JSON.parse(e.strategy)}catch(a){t.strategy=[]}else t.strategy=[];t.dialogStrategyTitle="".concat(e.symbol," ").concat(t.$t("trade.strategy")),t.dialogStrategyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openKlineDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getKcLineChart(e);case 3:n.next=10;break;case 5:return n.prev=5,n.t0=n["catch"](0),console.log(n.t0),t.$message({message:t.$t("table.actionFail"),type:"error"}),n.abrupt("return");case 10:t.dialogTitleKline="".concat(e.symbol,"(").concat(e.kline_interval,")"),t.dialogKlineVisible=!0;case 12:case"end":return n.stop()}}),n,null,[[0,5]])})))()},confirmTechnology:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,Object.keys(e.technology).forEach((function(t){e.technology[t].forEach((function(e){e.period&&(e.period=Number(e.period)),e.multiplier&&(e.multiplier=Number(e.multiplier)),e.std_dev_multiplier&&(e.std_dev_multiplier=Number(e.std_dev_multiplier))}))})),t.next=4,p(e.technologySymbolId,{technology:JSON.stringify(e.technology)});case 4:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=7,e.fetchData();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},confirmStrategy:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n={strategy:JSON.stringify(e.strategy)},console.log(e.copyTechnology),e.copyTechnology&&(n.technology=e.copyTechnology),t.next=6,p(e.strategySymbolId,n);case 6:return e.copyTechnology="",e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=10,e.fetchData();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))()},addMa:function(){this.technology.ma=[].concat(Object(r["a"])(this.technology.ma),[{name:"",kline_interval:"",period:14,enable:!1}])},delMa:function(e){this.technology.ma=this.technology.ma.filter((function(t,n){return n!==e.$index}))},addEma:function(){this.technology.ema=[].concat(Object(r["a"])(this.technology.ema),[{name:"",kline_interval:"",period:14,enable:!1}])},delEma:function(e){this.technology.ema=this.technology.ema.filter((function(t,n){return n!==e.$index}))},addRsi:function(){this.technology.rsi=[].concat(Object(r["a"])(this.technology.rsi),[{name:"",kline_interval:"",period:14,enable:!1}])},delRsi:function(e){this.technology.rsi=this.technology.rsi.filter((function(t,n){return n!==e.$index}))},addKc:function(){this.technology.kc=[].concat(Object(r["a"])(this.technology.kc),[{name:"",kline_interval:"",period:50,multiplier:2.75,enable:!1}])},delKc:function(e){this.technology.kc=this.technology.kc.filter((function(t,n){return n!==e.$index}))},addBoll:function(){this.technology.boll=[].concat(Object(r["a"])(this.technology.boll),[{name:"",kline_interval:"",period:21,std_dev_multiplier:2,enable:!1}])},delBoll:function(e){this.technology.boll=this.technology.boll.filter((function(t,n){return n!==e.$index}))},addAtr:function(){this.technology.atr=[].concat(Object(r["a"])(this.technology.atr),[{name:"",kline_interval:"",period:14,enable:!1}])},delAtr:function(e){this.technology.atr=this.technology.atr.filter((function(t,n){return n!==e.$index}))},addStrategy:function(){this.strategy=[].concat(Object(r["a"])(this.strategy),[{name:"",type:"",code:"",fullScreen:!1,enable:!1}])},delStrategy:function(e){this.strategy=this.strategy.filter((function(t,n){return n!==e.$index}))},selectStrategyTemplate:function(e){var t=this.strategyTemplates.find((function(t){return t.id===e}));if(t)try{this.strategy=JSON.parse(t.strategy),this.copyTechnology=t.technology}catch(n){this.$message({message:"template error",type:"error"})}}}},C=T,j=(n("3578"),n("9bf6")),I=Object(j["a"])(C,a,l,!1,null,null,null);t["default"]=I.exports},"97c4":function(e,t,n){(function(e){e(n("c5ba"))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,a=e.length;ni.ch&&(r.end=i.ch,r.string=r.string.slice(0,i.ch-r.start)):r={start:i.ch,end:i.ch,string:"",state:r.state,type:"."==r.string?"property":null};var c=r;while("property"==c.type){if(c=l(n,t(i.line,c.start)),"."!=c.string)return;if(c=l(n,t(i.line,c.start)),!u)var u=[];u.push(c)}return{list:b(r,u,a,o),from:t(i.line,r.start),to:t(i.line,r.end)}}}}function o(e,t){return l(e,d,(function(e,t){return e.getTokenAt(t)}),t)}function i(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function r(e,t){return l(e,p,i,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",r);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function f(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var a in e)t(a)}function b(e,t,l,o){var i=[],r=e.string,d=o&&o.globalScope||window;function p(e){0!=e.lastIndexOf(r,0)||a(i,e)||i.push(e)}function b(e){"string"==typeof e?n(s,p):e instanceof Array?n(c,p):e instanceof Function&&n(u,p),f(e,p)}if(t&&t.length){var g,h=t.pop();h.type&&0===h.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[h.string]),o&&!1===o.useGlobalScope||(g=g||d[h.string])):"string"==h.type?g="":"atom"==h.type?g=1:"function"==h.type&&(null==d.jQuery||"$"!=h.string&&"jQuery"!=h.string||"function"!=typeof d.jQuery?null!=d._&&"_"==h.string&&"function"==typeof d._&&(g=d._()):g=d.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&b(g)}else{for(var m=e.state.localVars;m;m=m.next)p(m.name);for(m=e.state.globalVars;m;m=m.next)p(m.name);o&&!1===o.useGlobalScope||b(d),n(l,p)}return i}}))},a6a9:function(e,t,n){"use strict";var a=n("38e0"),l=n("33e4").find,o=n("6466"),i=n("effa"),r="find",s=!0,c=i(r);r in[]&&Array(1)[r]((function(){s=!1})),a({target:"Array",proto:!0,forced:s||!c},{find:function(e){return l(this,e,arguments.length>1?arguments[1]:void 0)}}),o(r)},ab8e:function(e,t,n){},b5ef:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("1a06"),n("d987"),n("6de1");function a(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function l(e,t){if(null==e)return{};var n,l,o=a(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return Object(a["a"])({url:"/strategy-templates",method:"get",params:e})}function o(e,t){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"put",data:t})}function i(e){return Object(a["a"])({url:"/strategy-templates",method:"post",data:e})}function r(e){return Object(a["a"])({url:"/strategy-templates/".concat(e),method:"delete"})}function s(e,t){return Object(a["a"])({url:"/strategy-templates/test/".concat(e),method:"post",data:t})}},8021:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.openDialog()}}},[e._v(" "+e._s(e.$t("table.add"))+" ")]),n("el-button",{attrs:{type:"success",size:"mini",loading:e.serviceLoading},on:{click:function(t){return e.enableAll(1)}}},[e._v(" "+e._s(e.$t("table.enableAllCoins"))+" ")]),n("el-button",{attrs:{type:"danger",size:"mini",loading:e.serviceLoading},on:{click:function(t){return e.enableAll(0)}}},[e._v(" "+e._s(e.$t("table.disableAllCoins"))+" ")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.dialogFormVisible2=!0}}},[e._v(" "+e._s(e.$t("table.editBatch"))+" ")])],1),n("div",{staticStyle:{width:"25%","text-align":"right"}},[e._v(" "+e._s(e.$t("table.totalCount"))+": "+e._s(e.list.length)+" ")])]),n("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px"}},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:e.$t("trade.coin"),size:"mini"},model:{value:e.search.symbol,callback:function(t){e.$set(e.search,"symbol",t)},expression:"search.symbol"}}),n("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini",clearable:"",placeholder:"pin"},model:{value:e.search.pin,callback:function(t){e.$set(e.search,"pin",t)},expression:"search.pin"}},[n("el-option",{attrs:{label:e.$t("trade.pin"),value:"1"}})],1),n("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini",clearable:"",placeholder:"status"},model:{value:e.search.enable,callback:function(t){e.$set(e.search,"enable",t)},expression:"search.enable"}},[n("el-option",{attrs:{label:e.$t("table.open"),value:"1"}}),n("el-option",{attrs:{label:e.$t("table.close"),value:"0"}})],1),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:e.fetchData}},[e._v(" "+e._s(e.$t("table.search"))+" ")])],1),n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px","align-items":"center"}},[n("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini"},on:{change:e.changeRefreshInterval},model:{value:e.interval,callback:function(t){e.interval=t},expression:"interval"}},e._l(30,(function(e){return n("el-option",{key:e,attrs:{label:e+"s",value:e}})})),1),n("span",[e._v(e._s(e.$t("table.refreshInterval")))])],1)]),n("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.search.symbol_type,callback:function(t){e.$set(e.search,"symbol_type",t)},expression:"search.symbol_type"}},[n("el-tab-pane",{attrs:{label:"USDT",name:"USDT"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""},on:{"sort-change":e.sortChange,"expand-change":e.expandChange}},[n("el-table-column",{attrs:{label:e.$t("trade.pin"),width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-rate",{attrs:{max:1},on:{change:function(t){return e.editPin(a)}},model:{value:a.pin_read,callback:function(t){e.$set(a,"pin_read",t)},expression:"row.pin_read"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.coin"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategyType"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},on:{change:function(n){return e.edit(t.row)}},model:{value:t.row.strategy_type,callback:function(n){e.$set(t.row,"strategy_type",n)},expression:"scope.row.strategy_type"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.nowPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.round(t.row.close,10))+" ")]}}])}),n("el-table-column",{attrs:{label:"24h↑↓",align:"center",width:"90","show-overflow-tooltip":"",prop:"percent_change",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.percentChange<0?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.row.percentChange)+"%↓ ")]):n("span",{staticStyle:{color:"green"}},[e._v(e._s(t.row.percentChange)+"%↑ ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.usdt"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.usdt,callback:function(n){e.$set(t.row,"usdt",n)},expression:"scope.row.usdt"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.profitRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.profit,callback:function(n){e.$set(t.row,"profit",n)},expression:"scope.row.profit"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.lossRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.loss,callback:function(n){e.$set(t.row,"loss",n)},expression:"scope.row.loss"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.enable"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(t){return e.isChangeBuy(t,a)}},model:{value:a.enable,callback:function(t){e.$set(a,"enable",t)},expression:"row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"75","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"USDC",name:"USDC"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""},on:{"sort-change":e.sortChange,"expand-change":e.expandChange}},[n("el-table-column",{attrs:{label:e.$t("trade.pin"),width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-rate",{attrs:{max:1},on:{change:function(t){return e.editPin(a)}},model:{value:a.pin_read,callback:function(t){e.$set(a,"pin_read",t)},expression:"row.pin_read"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.coin"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategyType"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},on:{change:function(n){return e.edit(t.row)}},model:{value:t.row.strategy_type,callback:function(n){e.$set(t.row,"strategy_type",n)},expression:"scope.row.strategy_type"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.nowPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.round(t.row.close,10))+" ")]}}])}),n("el-table-column",{attrs:{label:"24h↑↓",align:"center",width:"90","show-overflow-tooltip":"",prop:"percent_change",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.percentChange<0?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.row.percentChange)+"%↓ ")]):n("span",{staticStyle:{color:"green"}},[e._v(e._s(t.row.percentChange)+"%↑ ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.usdt"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.usdt,callback:function(n){e.$set(t.row,"usdt",n)},expression:"scope.row.usdt"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.profitRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.profit,callback:function(n){e.$set(t.row,"profit",n)},expression:"scope.row.profit"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.lossRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.loss,callback:function(n){e.$set(t.row,"loss",n)},expression:"scope.row.loss"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.enable"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(t){return e.isChangeBuy(t,a)}},model:{value:a.enable,callback:function(t){e.$set(a,"enable",t)},expression:"row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"75","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"FDUSD",name:"FDUSD"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"",size:"mini","row-key":e.rowKey,"expand-row-keys":e.expandKeys,"highlight-current-row":""},on:{"sort-change":e.sortChange,"expand-change":e.expandChange}},[n("el-table-column",{attrs:{label:e.$t("trade.pin"),width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-rate",{attrs:{max:1},on:{change:function(t){return e.editPin(a)}},model:{value:a.pin_read,callback:function(t){e.$set(a,"pin_read",t)},expression:"row.pin_read"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.coin"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.symbol)+" ")]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategyType"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},on:{change:function(n){return e.edit(t.row)}},model:{value:t.row.strategy_type,callback:function(n){e.$set(t.row,"strategy_type",n)},expression:"scope.row.strategy_type"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.technology"),align:"center",width:"115"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openTechnologyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.technology"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.strategy"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.openStrategyDialog(t.row)}}},[e._v(" "+e._s(e.$t("trade.strategy"))+" ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.nowPrice"),align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.round(t.row.close,10))+" ")]}}])}),n("el-table-column",{attrs:{label:"24h↑↓",align:"center",width:"90","show-overflow-tooltip":"",prop:"percent_change",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.percentChange<0?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.row.percentChange)+"%↓ ")]):n("span",{staticStyle:{color:"green"}},[e._v(e._s(t.row.percentChange)+"%↑ ")])]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.usdt"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.usdt,callback:function(n){e.$set(t.row,"usdt",n)},expression:"scope.row.usdt"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.profitRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.profit,callback:function(n){e.$set(t.row,"profit",n)},expression:"scope.row.profit"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.lossRate"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},on:{blur:function(n){return e.edit(t.row)}},model:{value:t.row.loss,callback:function(n){e.$set(t.row,"loss",n)},expression:"scope.row.loss"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("trade.enable"),align:"center",width:"75"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(t){return e.isChangeBuy(t,a)}},model:{value:a.enable,callback:function(t){e.$set(a,"enable",t)},expression:"row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"75","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.del(a)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.allList.length>0,expression:"allList.length > 0"}],attrs:{total:e.allList.length,page:e.search.page,limit:e.search.limit},on:{"update:page":function(t){return e.$set(e.search,"page",t)},"update:limit":function(t){return e.$set(e.search,"limit",t)},pagination:e.getPageList}}),n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{model:e.info,"label-position":"left","label-width":"100px"}},[n("el-form-item",{attrs:{label:e.$t("trade.coin"),prop:"symbol"}},[n("el-input",{model:{value:e.info.symbol,callback:function(t){e.$set(e.info,"symbol",t)},expression:"info.symbol"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.addCoin(e.info)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTitle2,visible:e.dialogFormVisible2},on:{"update:visible":function(t){e.dialogFormVisible2=t}}},[n("el-form",{ref:"dataForm2",staticStyle:{width:"500px","margin-left":"50px"},attrs:{model:e.batchInfo,"label-position":"left","label-width":"130px"}},[n("el-form-item",{attrs:{label:e.$t("trade.strategyType"),prop:"strategyType"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyType,callback:function(t){e.$set(e.batchInfo,"strategyType",t)},expression:"batchInfo.strategyType"}},[n("el-option",{attrs:{label:e.$t("strategyType.global"),value:"global"}}),n("el-option",{attrs:{label:e.$t("strategyType.custom"),value:"custom"}}),n("el-option",{attrs:{label:e.$t("strategyType.line1"),value:"line1"}}),n("el-option",{attrs:{label:e.$t("strategyType.line2"),value:"line2"}}),n("el-option",{attrs:{label:e.$t("strategyType.line3"),value:"line3"}}),n("el-option",{attrs:{label:e.$t("strategyType.line4"),value:"line4"}}),n("el-option",{attrs:{label:e.$t("strategyType.line5"),value:"line5"}}),n("el-option",{attrs:{label:e.$t("strategyType.line6"),value:"line6"}}),n("el-option",{attrs:{label:e.$t("strategyType.line7"),value:"line7"}})],1)],1),n("el-form-item",{attrs:{label:e.$t("trade.strategyTemplate"),prop:"strategyTemplates"}},[n("el-select",{attrs:{clearable:"",size:"mini"},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-form-item",{attrs:{label:e.$t("trade.usdt"),prop:"usdt"}},[n("el-input",{model:{value:e.batchInfo.usdt,callback:function(t){e.$set(e.batchInfo,"usdt",t)},expression:"batchInfo.usdt"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.profitRate"),prop:"profit"}},[n("el-input",{model:{value:e.batchInfo.profit,callback:function(t){e.$set(e.batchInfo,"profit",t)},expression:"batchInfo.profit"}})],1),n("el-form-item",{attrs:{label:e.$t("trade.lossRate"),prop:"loss"}},[n("el-input",{model:{value:e.batchInfo.loss,callback:function(t){e.$set(e.batchInfo,"loss",t)},expression:"batchInfo.loss"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible2=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading2},on:{click:function(t){return e.batchEdit(e.batchInfo)}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogTechnologyTitle,visible:e.dialogTechnologyVisible},on:{"update:visible":function(t){e.dialogTechnologyVisible=t}}},[n("el-tabs",{attrs:{value:"ma"}},[n("el-tab-pane",{attrs:{label:"ma",name:"ma"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addMa}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ma,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delMa(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"ema",name:"ema"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addEma}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.ema,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delEma(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"rsi",name:"rsi"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addRsi}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.rsi,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delRsi(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"kc",name:"kc"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addKc}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.kc,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.multiplier,callback:function(n){e.$set(t.row,"multiplier",n)},expression:"scope.row.multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delKc(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"boll",name:"boll"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addBoll}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.boll,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.std_dev_multiplier"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.std_dev_multiplier,callback:function(n){e.$set(t.row,"std_dev_multiplier",n)},expression:"scope.row.std_dev_multiplier"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delBoll(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1),n("el-tab-pane",{attrs:{label:"atr",name:"atr"}},[n("div",[n("el-button",{attrs:{type:"primary"},on:{click:e.addAtr}},[e._v(e._s(e.$t("table.add")))])],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.technology.atr,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("technology.name"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.klineInterval"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.kline_interval,callback:function(n){e.$set(t.row,"kline_interval",n)},expression:"scope.row.kline_interval"}},e._l(e.klineInterval,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.period"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.period,callback:function(n){e.$set(t.row,"period",n)},expression:"scope.row.period"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("technology.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delAtr(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogTechnologyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmTechnology()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogStrategyTitle,visible:e.dialogStrategyVisible,width:"75%"},on:{"update:visible":function(t){e.dialogStrategyVisible=t}}},[n("div",{staticStyle:{display:"flex",gap:"10px"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.addStrategy}},[e._v(e._s(e.$t("table.add")))]),n("el-select",{attrs:{clearable:"",size:"mini",placeholder:"select template"},on:{change:e.selectStrategyTemplate},model:{value:e.batchInfo.strategyTemplateId,callback:function(t){e.$set(e.batchInfo,"strategyTemplateId",t)},expression:"batchInfo.strategyTemplateId"}},e._l(e.strategyTemplates,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),n("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.strategy,border:"",fit:"",size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:e.$t("strategy.name"),align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{size:"mini"},model:{value:t.row.name,callback:function(n){e.$set(t.row,"name",n)},expression:"scope.row.name"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.code"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{staticClass:"edit-input",attrs:{type:"textarea",rows:6,size:"mini"},model:{value:t.row.code,callback:function(n){e.$set(t.row,"code",n)},expression:"scope.row.code"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.fullScreen"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},on:{change:function(n){return e.fullCodeScreenChange(t.row,t.$index)}},model:{value:t.row.fullScreen,callback:function(n){e.$set(t.row,"fullScreen",n)},expression:"scope.row.fullScreen"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.type"),align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-select",{attrs:{size:"mini"},model:{value:t.row.type,callback:function(n){e.$set(t.row,"type",n)},expression:"scope.row.type"}},[n("el-option",{attrs:{label:e.$t("trade.long"),value:"long"}}),n("el-option",{attrs:{label:e.$t("trade.short"),value:"short"}}),n("el-option",{attrs:{label:e.$t("trade.close_long"),value:"close_long"}}),n("el-option",{attrs:{label:e.$t("trade.close_short"),value:"close_short"}})],1)]}}])}),n("el-table-column",{attrs:{label:e.$t("strategy.enable"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#dcdfe6"},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.delStrategy(t)}}},[e._v(e._s(e.$t("table.delete"))+" ")])]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogStrategyVisible=!1}}},[e._v(e._s(e.$t("table.cancel")))]),n("el-button",{attrs:{type:"primary",loading:e.dialogLoading},on:{click:function(t){return e.confirmStrategy()}}},[e._v(e._s(e.$t("table.confirm")))])],1)],1),n("el-dialog",{attrs:{title:e.dialogCodeTitle,visible:e.dialogCodeVisible,fullscreen:""},on:{"update:visible":function(t){e.dialogCodeVisible=t},closed:e.codeScreenClose}},[n("div",{staticClass:"code-full",staticStyle:{width:"100%"}},[n("div",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-between","align-items":"center"}},[n("div",{staticStyle:{display:"flex","flex-flow":"row wrap",gap:"10px",width:"75%"}},[n("el-link",{attrs:{href:"https://expr-lang.org/docs/language-definition",type:"success",target:"_blank"}},[e._v("code rule")])],1),n("el-button",{attrs:{type:"primary"},on:{click:e.testStrategyRule}},[e._v(e._s(e.$t("table.test"))+" ")])],1),n("codemirror",{ref:"cmEditor",attrs:{value:e.code,options:e.cmOptions},on:{ready:e.onCmReady,focus:e.onCmFocus,input:e.onCmCodeChange}})],1)])],1)},l=[],o=n("b5ef"),i=n("8204"),r=n("b8c8"),s=n("dd36"),c=n("fee1"),u=(n("e168"),n("3dd5"),n("a6a9"),n("4cc3"),n("8b03"),n("7019"),n("16dd"),n("452e"),n("40a4"),n("374d"),n("5227"),n("90c8"),n("8d8a"),n("4a51"),n("3363"),n("1a71"),n("8a0d"),n("f2e9"),n("3399"),n("b775"));function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(u["a"])({url:"/spots",method:"get",params:e})}function p(e,t){return Object(u["a"])({url:"/spots/".concat(e),method:"put",data:t})}function f(e){return Object(u["a"])({url:"/spots",method:"post",data:e})}function b(e){return Object(u["a"])({url:"/spots/".concat(e),method:"delete"})}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Object(u["a"])({url:"/spots/enable/".concat(e),method:"put"})}function h(e){return Object(u["a"])({url:"/spots/batch",method:"put",data:e})}function m(e,t){return Object(u["a"])({url:"/spots/strategy-rule/test/".concat(e),method:"post",data:t})}var y=n("7506"),v=n("333d"),w=n("1888"),k=n("c5ba"),_=n.n(k),$=n("1ca5"),x=(n("7392"),n("cedf"),n("1657"),n("d8c5"),n("8f95"),n("31af"),n("e83b"),n("8961"),n("45d2"),n("7f27"),n("669a"),n("be82"),n("d770"),n("30fe"),n("3a45"),n("4a07"),n("a7ed"),n("cb97"),n("0c7b"),n("065a"),n("5ca6"),n("2399"),n("67ed"),n("6367"),n("5734"),n("97c4"),n("df07"),["pin","enable"]),S=["id","enable","leverage","usdt"],O={ma:[],ema:[],rsi:[],kc:[],boll:[],atr:[]},T={components:{codemirror:$["codemirror"],Pagination:v["a"]},data:function(){return{klineInterval:["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w","1M"],allList:[],list:[],sort:"",listLoading:!1,serviceLoading:!1,enableLoading:!1,buyAll:!0,sellAll:!0,search:{page:1,limit:50,symbol_type:"USDT",symbol:"",enable:"",margin_type:"",pin:""},dialogFormVisible:!1,dialogLoading:!1,dialogTitle:this.$t("table.add"),info:{},dialogFormVisible2:!1,dialogLoading2:!1,dialogTitle2:this.$t("table.editBatch"),batchInfo:{usdt:void 0,profit:void 0,loss:void 0,strategyType:void 0,strategyTemplateId:void 0},rowKey:function(e){return e.symbol+e.id},expandKeys:[],timeId:null,interval:30,dialogTechnologyTitle:"",dialogTechnologyVisible:!1,technologySymbolId:0,technology:JSON.parse(JSON.stringify(O)),dialogStrategyTitle:"",dialogStrategyVisible:!1,strategySymbolId:0,strategy:[],code:"",cmOptions:{tabSize:2,mode:"text/x-go",theme:"monokai",lineNumbers:!0,line:!0,foldGutter:!0,lineWrapping:!0,autoFormatJson:!0,jsonIndentation:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"],extraKeys:{Tab:"autocomplete"},hintOptions:{completeSingle:!1,hint:this.customHint}},dialogCodeTitle:"",dialogCodeVisible:!1,strategyIndex:void 0,strategyTemplates:[],copyTechnology:""}},computed:{allProfit:function(){var e=this.list.reduce((function(e,t){return e+t.nowProfit}),0);return Object(w["a"])(e,2)}},activated:function(){this.interval=localStorage.getItem("spots_refresh_interval")||30,this.fetchData()},deactivated:function(){clearInterval(this.timeId)},created:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.getStrategyTemplates(),e.search=Object.assign(e.search,e.$route.query),e.search.page=parseInt(e.search.page)||1,e.search.limit=parseInt(e.search.limit)||50,e.interval=localStorage.getItem("spots_refresh_interval")||30,t.next=7,e.fetchData();case 7:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearInterval(this.timeId)},methods:{getStrategyTemplates:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(y["d"])();case 2:n=t.sent,a=n.data,e.strategyTemplates=a;case 5:case"end":return t.stop()}}),t)})))()},customHint:function(e){var t=e.getCursor(),n=e.getTokenAt(t),a=n.start,l=n.end,o=n.string,i=this.getHints(o),r={list:i.map((function(e){return{text:e}})),from:_.a.Pos(t.line,a),to:_.a.Pos(t.line,l)};return r},getHints:function(e){var t=this,n=["type","float","int","string","let","trim","upper","lower","split","replace","repeat","indexOf","hasPrefix","now()","max","min","abs","ceil","floor","round","all","any","one","none","map","filter","find","findIndex","findLast","groupBy","count","concat","join","reduce","sum","mean","median","first","last","take","reverse","sort","sortBy","keys","values","len","Kdj","IsDesc","IsAsc","SystemStartTime","NowPrice","NowTime","NowSymbolPercentChange","NowSymbolClose","NowSymbolOpen","NowSymbolLow","NowSymbolHigh","BasicTrend","ROI","Position","Position.EntryPrice","Position.MarkPrice","Position.PositionAmt","Position.UnRealizedProfit","Position.MarginType","Position.Leverage","Position.PositionSide"];if(void 0!==this.strategySymbolId){var a=this.list.find((function(e){return e.id===t.strategySymbolId}));if(a){var l={};try{l=JSON.parse(a.technology)}catch(f){l={}}var o=new Set;Object.keys(l).forEach((function(e){l[e].forEach((function(t){if(t.enable)switch(n.push(t.name),t.kline_interval&&o.add(t.kline_interval),e){case"ma":case"ema":case"rsi":case"atr":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Data")),n.push("".concat(t.name,".Data[]"));break;case"kc":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".Multiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break;case"boll":n.push("".concat(t.name,".KlineInterval")),n.push("".concat(t.name,".Period")),n.push("".concat(t.name,".StdDevMultiplier")),n.push("".concat(t.name,".High")),n.push("".concat(t.name,".High[]")),n.push("".concat(t.name,".Low")),n.push("".concat(t.name,".Low[]")),n.push("".concat(t.name,".Mid")),n.push("".concat(t.name,".Mid[]"));break}}))})),o.forEach((function(e){n.push("kline_".concat(e)),n.push("kline_".concat(e,".High")),n.push("kline_".concat(e,".High[]")),n.push("kline_".concat(e,".Low")),n.push("kline_".concat(e,".Low[]")),n.push("kline_".concat(e,".Close")),n.push("kline_".concat(e,".Close[]")),n.push("kline_".concat(e,".Open")),n.push("kline_".concat(e,".Open[]")),n.push("kline_".concat(e,".Amount")),n.push("kline_".concat(e,".Amount[]")),n.push("kline_".concat(e,".Qps")),n.push("kline_".concat(e,".Qps[]"))}))}}for(var i=0,r=["BTCUSDT","ETHUSDT","SOLUSDT","BNBUSDT"];i1&&void 0!==arguments[1]?arguments[1]:2;return Object(w["a"])(e,t)},expandChange:function(e,t){this.expandKeys=t.map((function(e){return e.symbol}))},sortChange:function(e){var t=e.prop,n=e.order;this.sort=n?t+("ascending"===n?"+":"-"):"",this.fetchData()},handleTabClick:function(e){this.search.symbol_type=e.name,this.search.page=1,this.fetchData()},fetchData:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:clearInterval(e.timeId),localStorage.setItem("spots_search",JSON.stringify(e.search)),e.getSpots(),e.timeId=setInterval((function(){return e.getSpots()}),1e3*e.interval);case 4:case"end":return t.stop()}}),t)})))()},getSpots:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n,a,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.search,t.next=3,d(Object(i["a"])({sort:e.sort},n));case 3:a=t.sent,l=a.data,e.allList=l.map((function(e){var t=e.pin,n=e.enable,a=Object(o["a"])(e,x);return Object(i["a"])({enable:n>0,pin_read:t,pin:t},a)})),e.getPageList();case 7:case"end":return t.stop()}}),t)})))()},replaceUrl:function(){this.$router.push({path:this.$route.path,query:Object(i["a"])({},this.search)})},getPageList:function(){var e=this.search;this.list=this.allList.slice((e.page-1)*e.limit,e.page*e.limit)},editPin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.pin_read&&!e.pin?e.pin=1:e.pin_read&&e.pin&&(e.pin_read=0,e.pin=0),n.prev=1,n.next=4,p(e.id,{pin:e.pin});case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},edit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a,l,r,c,u;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.id,l=e.enable,r=e.leverage,c=e.usdt,u=Object(o["a"])(e,S),n.prev=1,n.next=4,p(a,Object(i["a"])(Object(i["a"])({},u),{},{leverage:Number(r),usdt:c,enable:l?1:0}));case 4:return t.$message({message:t.$t("table.editSuccess"),type:"success"}),n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),t.$message({message:t.$t("table.editFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},del:function(e){var t=this;this.$confirm("".concat(this.$t("table.deleteConfirm")," ").concat(e.symbol,"?")).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,b(e.id);case 3:return t.$message({message:t.$t("table.deleteSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.deleteFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},enableAll:function(e){var t=this,n=1===e?this.$t("table.enableAllCoins"):this.$t("table.disableAllCoins");this.$confirm(n).then(Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,g(e);case 3:return t.$message({message:t.$t("table.actionSuccess"),type:"success"}),n.next=6,t.fetchData();case 6:n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 11:case"end":return n.stop()}}),n,null,[[0,8]])})))).catch((function(){}))},isChangeBuy:function(e,t){var n=this;return Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.edit(t);case 2:case"end":return e.stop()}}),e)})))()},openDialog:function(){this.dialogTitle=this.$t("table.add"),this.dialogFormVisible=!0},addCoin:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){var a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a={symbol:e.symbol,quantity:20,percentChange:0,close:0,open:0,low:0,enable:1,updateTime:+new Date},n.next=3,f(a);case 3:t.dialogFormVisible=!1;case 4:case"end":return n.stop()}}),n)})))()},batchEdit:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,h(e);case 3:return t.batchInfo={usdt:void 0,profit:void 0,loss:void 0,strategyType:void 0,strategyTemplateId:void 0},t.dialogFormVisible2=!1,n.next=7,t.fetchData();case 7:n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),t.$message({message:t.$t("table.actionFail"),type:"success"});case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},openTechnologyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.technologySymbolId=e.id,e.technology)try{t.technology=Object(i["a"])(Object(i["a"])({},JSON.parse(JSON.stringify(O))),JSON.parse(e.technology))}catch(a){t.technology=JSON.parse(JSON.stringify(O))}else t.technology=JSON.parse(JSON.stringify(O));t.dialogTechnologyTitle="".concat(e.symbol," ").concat(t.$t("trade.technology")),t.dialogTechnologyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openStrategyDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.copyTechnology="",t.strategySymbolId=e.id,e.strategy)try{t.strategy=JSON.parse(e.strategy)}catch(a){t.strategy=[]}else t.strategy=[];t.dialogStrategyTitle="".concat(e.symbol," ").concat(t.$t("trade.strategy")),t.dialogStrategyVisible=!0;case 5:case"end":return n.stop()}}),n)})))()},openKlineDialog:function(e){var t=this;return Object(c["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getKcLineChart(e);case 3:n.next=10;break;case 5:return n.prev=5,n.t0=n["catch"](0),console.log(n.t0),t.$message({message:t.$t("table.actionFail"),type:"error"}),n.abrupt("return");case 10:t.dialogTitleKline="".concat(e.symbol,"(").concat(e.kline_interval,")"),t.dialogKlineVisible=!0;case 12:case"end":return n.stop()}}),n,null,[[0,5]])})))()},confirmTechnology:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,Object.keys(e.technology).forEach((function(t){e.technology[t].forEach((function(e){e.period&&(e.period=Number(e.period)),e.multiplier&&(e.multiplier=Number(e.multiplier)),e.std_dev_multiplier&&(e.std_dev_multiplier=Number(e.std_dev_multiplier))}))})),t.next=4,p(e.technologySymbolId,{technology:JSON.stringify(e.technology)});case 4:return e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=7,e.fetchData();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},confirmStrategy:function(){var e=this;return Object(c["a"])(Object(s["a"])().mark((function t(){var n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n={strategy:JSON.stringify(e.strategy)},console.log(e.copyTechnology),e.copyTechnology&&(n.technology=e.copyTechnology),t.next=6,p(e.strategySymbolId,n);case 6:return e.copyTechnology="",e.$message({message:e.$t("table.actionSuccess"),type:"success"}),t.next=10,e.fetchData();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),e.$message({message:e.$t("table.actionFail"),type:"success"});case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))()},addMa:function(){this.technology.ma=[].concat(Object(r["a"])(this.technology.ma),[{name:"",kline_interval:"",period:14,enable:!1}])},delMa:function(e){this.technology.ma=this.technology.ma.filter((function(t,n){return n!==e.$index}))},addEma:function(){this.technology.ema=[].concat(Object(r["a"])(this.technology.ema),[{name:"",kline_interval:"",period:14,enable:!1}])},delEma:function(e){this.technology.ema=this.technology.ema.filter((function(t,n){return n!==e.$index}))},addRsi:function(){this.technology.rsi=[].concat(Object(r["a"])(this.technology.rsi),[{name:"",kline_interval:"",period:14,enable:!1}])},delRsi:function(e){this.technology.rsi=this.technology.rsi.filter((function(t,n){return n!==e.$index}))},addKc:function(){this.technology.kc=[].concat(Object(r["a"])(this.technology.kc),[{name:"",kline_interval:"",period:50,multiplier:2.75,enable:!1}])},delKc:function(e){this.technology.kc=this.technology.kc.filter((function(t,n){return n!==e.$index}))},addBoll:function(){this.technology.boll=[].concat(Object(r["a"])(this.technology.boll),[{name:"",kline_interval:"",period:21,std_dev_multiplier:2,enable:!1}])},delBoll:function(e){this.technology.boll=this.technology.boll.filter((function(t,n){return n!==e.$index}))},addAtr:function(){this.technology.atr=[].concat(Object(r["a"])(this.technology.atr),[{name:"",kline_interval:"",period:14,enable:!1}])},delAtr:function(e){this.technology.atr=this.technology.atr.filter((function(t,n){return n!==e.$index}))},addStrategy:function(){this.strategy=[].concat(Object(r["a"])(this.strategy),[{name:"",type:"",code:"",fullScreen:!1,enable:!1}])},delStrategy:function(e){this.strategy=this.strategy.filter((function(t,n){return n!==e.$index}))},selectStrategyTemplate:function(e){var t=this.strategyTemplates.find((function(t){return t.id===e}));if(t)try{this.strategy=JSON.parse(t.strategy),this.copyTechnology=t.technology}catch(n){this.$message({message:"template error",type:"error"})}}}},C=T,j=(n("99cf"),n("9bf6")),I=Object(j["a"])(C,a,l,!1,null,null,null);t["default"]=I.exports},"97c4":function(e,t,n){(function(e){e(n("c5ba"))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,a=e.length;ni.ch&&(r.end=i.ch,r.string=r.string.slice(0,i.ch-r.start)):r={start:i.ch,end:i.ch,string:"",state:r.state,type:"."==r.string?"property":null};var c=r;while("property"==c.type){if(c=l(n,t(i.line,c.start)),"."!=c.string)return;if(c=l(n,t(i.line,c.start)),!u)var u=[];u.push(c)}return{list:b(r,u,a,o),from:t(i.line,r.start),to:t(i.line,r.end)}}}}function o(e,t){return l(e,d,(function(e,t){return e.getTokenAt(t)}),t)}function i(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function r(e,t){return l(e,p,i,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",r);var s="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),p="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function f(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var a in e)t(a)}function b(e,t,l,o){var i=[],r=e.string,d=o&&o.globalScope||window;function p(e){0!=e.lastIndexOf(r,0)||a(i,e)||i.push(e)}function b(e){"string"==typeof e?n(s,p):e instanceof Array?n(c,p):e instanceof Function&&n(u,p),f(e,p)}if(t&&t.length){var g,h=t.pop();h.type&&0===h.type.indexOf("variable")?(o&&o.additionalContext&&(g=o.additionalContext[h.string]),o&&!1===o.useGlobalScope||(g=g||d[h.string])):"string"==h.type?g="":"atom"==h.type?g=1:"function"==h.type&&(null==d.jQuery||"$"!=h.string&&"jQuery"!=h.string||"function"!=typeof d.jQuery?null!=d._&&"_"==h.string&&"function"==typeof d._&&(g=d._()):g=d.jQuery());while(null!=g&&t.length)g=g[t.pop().string];null!=g&&b(g)}else{for(var m=e.state.localVars;m;m=m.next)p(m.name);for(m=e.state.globalVars;m;m=m.next)p(m.name);o&&!1===o.useGlobalScope||b(d),n(l,p)}return i}}))},"99cf":function(e,t,n){"use strict";n("e4a3")},a6a9:function(e,t,n){"use strict";var a=n("38e0"),l=n("33e4").find,o=n("6466"),i=n("effa"),r="find",s=!0,c=i(r);r in[]&&Array(1)[r]((function(){s=!1})),a({target:"Array",proto:!0,forced:s||!c},{find:function(e){return l(this,e,arguments.length>1?arguments[1]:void 0)}}),o(r)},b5ef:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("1a06"),n("d987"),n("6de1");function a(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function l(e,t){if(null==e)return{};var n,l,o=a(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l