mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
1 line
6.4 KiB
JavaScript
1 line
6.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a3b683f"],{1328:function(t,e,r){"use strict";r.d(e,"p",(function(){return s})),r.d(e,"s",(function(){return i})),r.d(e,"t",(function(){return l})),r.d(e,"r",(function(){return c})),r.d(e,"u",(function(){return d})),r.d(e,"z",(function(){return p})),r.d(e,"q",(function(){return m})),r.d(e,"x",(function(){return f})),r.d(e,"h",(function(){return h})),r.d(e,"d",(function(){return v})),r.d(e,"f",(function(){return g})),r.d(e,"o",(function(){return b})),r.d(e,"A",(function(){return w})),r.d(e,"a",(function(){return _})),r.d(e,"m",(function(){return y})),r.d(e,"c",(function(){return x})),r.d(e,"i",(function(){return N})),r.d(e,"k",(function(){return k})),r.d(e,"g",(function(){return L})),r.d(e,"b",(function(){return S})),r.d(e,"l",(function(){return q})),r.d(e,"j",(function(){return j})),r.d(e,"v",(function(){return $})),r.d(e,"n",(function(){return C})),r.d(e,"e",(function(){return J})),r.d(e,"w",(function(){return O})),r.d(e,"y",(function(){return z}));var n=r("bc3a"),a=r.n(n),u="admin",o="public";function s(t){var e="/api/v4/clients";return a()({method:"get",url:e,auth:{username:u,password:o},params:t})}function i(t){var e="/api/v4/subscriptions";return a()({method:"get",url:e,auth:{username:u,password:o},params:t})}function l(t){var e="/api/v4/routes";return a()({method:"get",url:e,auth:{username:u,password:o},params:t})}function c(){var t="/api/v4/plugins";return a()({method:"get",url:t,auth:{username:u,password:o}})}function d(t,e){var r="/api/v4/nodes/"+t+"/plugins/"+e+"/load";return a()({method:"put",url:r,auth:{username:u,password:o}})}function p(t,e){var r="/api/v4/nodes/"+t+"/plugins/"+e+"/unload";return a()({method:"put",url:r,auth:{username:u,password:o}})}function m(){var t="/api/v4/listeners";return a()({method:"get",url:t,auth:{username:u,password:o}})}function f(){var t="/api/v4/metrics";return a()({method:"get",url:t,auth:{username:u,password:o}})}function h(){var t="/api/v4/stats";return a()({method:"get",url:t,auth:{username:u,password:o}})}function v(t){var e="/api/v4/clients/"+t;return a()({method:"delete",url:e,auth:{username:u,password:o}})}function g(t){var e="/api/v4/clients/"+t;return a()({method:"get",url:e,auth:{username:u,password:o}})}function b(t){var e="/api/v4/subscriptions/"+t;return a()({method:"get",url:e,auth:{username:u,password:o}})}function w(t){var e="/api/v4/mqtt/unsubscribe";return a()({method:"post",url:e,auth:{username:u,password:o},params:t})}function _(t){var e="/api/v4/mqtt/subscribe";return a()({method:"post",url:e,auth:{username:u,password:o},params:t})}function y(t){var e="";return e="undefined"==typeof t||""==t||null==t?"/api/v4/rules":"/api/v4/rules/"+t,a()({method:"get",url:e,auth:{username:u,password:o}})}function x(t){var e="/api/v4/rules/"+t;return a()({method:"delete",url:e,auth:{username:u,password:o}})}function N(t){var e="";return e="undefined"==typeof t||""==t||null==t?"/api/v4/resources":"/api/v4/resources/"+t,a()({method:"get",url:e,auth:{username:u,password:o}})}function k(t){var e="/api/v4/resources/"+t;return a()({method:"get",url:e,auth:{username:u,password:o}})}function L(t){var e="/api/v4/resources/"+t;return a()({method:"post",url:e,auth:{username:u,password:o}})}function S(t){var e="/api/v4/resources/"+t;return a()({method:"delete",url:e,auth:{username:u,password:o}})}function q(){var t="/api/v4/resource_types";return a()({method:"get",url:t,auth:{username:u,password:o}})}function j(t){var e="/api/v4/resources?test=true";return a()({method:"post",url:e,auth:{username:u,password:o},data:t})}function $(t){var e="/api/v4/resources";return a()({method:"post",url:e,auth:{username:u,password:o},data:t})}function C(){var t="/api/v4/rule_events";return a()({method:"get",url:t,auth:{username:u,password:o}})}function J(){var t="/api/v4/actions";return a()({method:"get",url:t,auth:{username:u,password:o}})}function O(t){var e="/api/v4/rules";return a()({method:"post",url:e,auth:{username:u,password:o},data:t})}function z(t){var e="/api/v4/rules?test=true";return a()({method:"post",url:e,auth:{username:u,password:o},data:t})}},"451b":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticStyle:{padding:"6px"}},[r("el-card",{staticStyle:{"padding-bottom":"100px"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.listenerList}},[r("el-table-column",{attrs:{label:"协议",align:"center",prop:"protocol"}}),r("el-table-column",{attrs:{label:"监听地址",align:"center",prop:"listen_on"}}),r("el-table-column",{attrs:{label:"最大连接数",align:"center",prop:"max_conns"}}),r("el-table-column",{attrs:{label:"当前连接数",align:"center",prop:"current_conns"}}),r("el-table-column",{attrs:{label:"连接成功数",align:"center",prop:"acceptors"}}),r("el-table-column",{attrs:{label:"账号错误数",align:"center",prop:"shutdown_count.bad_username_or_password"}}),r("el-table-column",{attrs:{label:"功能错误数",align:"center",prop:"shutdown_count.function_clause"}}),r("el-table-column",{attrs:{label:"SSL关闭数",align:"center",prop:"shutdown_count.ssl_closed"}})],1),r("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"分类名称",prop:"categoryName"}},[r("el-input",{attrs:{placeholder:"请输入产品分类名称"},model:{value:t.form.categoryName,callback:function(e){t.$set(t.form,"categoryName",e)},expression:"form.categoryName"}})],1),r("el-form-item",{attrs:{label:"显示顺序",prop:"orderNum"}},[r("el-input",{attrs:{placeholder:"请输入显示顺序"},model:{value:t.form.orderNum,callback:function(e){t.$set(t.form,"orderNum",e)},expression:"form.orderNum"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.cancel}},[t._v("确 定")]),r("el-button",{on:{click:t.cancel}},[t._v("取 消")])],1)],1)],1)],1)},a=[],u=r("1328"),o={name:"Category",data:function(){return{loading:!0,showSearch:!0,total:0,listenerList:[],title:"",open:!1,form:{}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(u["q"])().then((function(e){t.listenerList=e.data.data[0].listeners,console.log(e),t.loading=!1}))},cancel:function(){this.open=!1,this.reset()}}},s=o,i=r("2877"),l=Object(i["a"])(s,n,a,!1,null,null,null);e["default"]=l.exports}}]); |