(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[476],{8195:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search"},[r("span",[e._v("搜索:")]),r("el-input",{attrs:{placeholder:"请输入内容",clearable:"",size:"small"},on:{clear:function(t){return e.clearData()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryClick()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},[r("i",{staticClass:"el-icon-search",attrs:{slot:"prefix"},on:{click:function(t){return e.queryClick()}},slot:"prefix"})])],1)},a=[],i=(r(4916),r(4765),{name:"",data:function(){return{search:""}},props:{},computed:{},watch:{},methods:{queryClick:function(){this.$emit("searchActive",this.search)},clearData:function(){this.$emit("clearData")}},beforeDestroy:function(){clearTimeout(this.timer)}}),s=i,o=r(1001),l=(0,o.Z)(s,n,a,!1,null,"59eb271c",null),c=l.exports},5476:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"container"},[r("el-row",{staticStyle:{"margin-right":"5px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:24}},[r("el-form",{staticClass:"demo-ruleForm",attrs:{model:e.whereform,"status-icon":"","abel-width":"100px",inline:"",size:"mini"}},[r("el-form-item",{attrs:{label:"查询条件",prop:"age"}},[r("el-input",{attrs:{placeholder:"输入查询条件",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryApiList(e.param.content.pageNumber=1)}},model:{value:e.whereform.condition,callback:function(t){e.$set(e.whereform,"condition",t)},expression:"whereform.condition"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.queryApiList(e.param.content.pageNumber=1)}}},[e._v("查 询")])],1),r("el-select",{attrs:{size:"small",clearable:"",placeholder:"是否清理缓存"},on:{change:function(t){return e.queryApiList(e.param.content.pageNumber=1)}},model:{value:e.whereform.iscacheing,callback:function(t){e.$set(e.whereform,"iscacheing",t)},expression:"whereform.iscacheing"}},[r("el-option",{attrs:{label:"是",value:"1"}}),r("el-option",{attrs:{label:"否",value:"0"}})],1),r("el-select",{attrs:{size:"small",clearable:"",placeholder:"是否授权"},on:{change:function(t){return e.queryApiList(e.param.content.pageNumber=1)}},model:{value:e.whereform.accesstoken,callback:function(t){e.$set(e.whereform,"accesstoken",t)},expression:"whereform.accesstoken"}},[r("el-option",{attrs:{label:"是",value:"1"}}),r("el-option",{attrs:{label:"否",value:"0"}})],1),r("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:function(t){return e.queryApiList(e.param.content.pageNumber=1)}},model:{value:e.selectorderbymode,callback:function(t){e.selectorderbymode=t},expression:"selectorderbymode"}},e._l(e.sort,(function(e){return r("el-option",{key:e.sortid,attrs:{label:e.sortname,value:e.sortid}})})),1),r("el-tag",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"}},[e._v(" 接口合计: "+e._s(e.total)+"个")])],1)],1),r("el-col",{attrs:{span:16}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,"header-cell-style":{background:"#f1f2f3",color:"#333"},border:"",size:"mini","highlight-current-row":"",stripe:""},on:{"row-click":e.rowClick}},[r("el-table-column",{attrs:{prop:"apps",label:"关联应用",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",e._l(t.row.apps,(function(t){return r("el-tag",{key:t.index,staticStyle:{"margin-right":"5px"},attrs:{type:"danger",effect:"dark",size:"mini"}},[e._v(e._s(t)+" ")])})),1)]}}])}),r("el-table-column",{attrs:{prop:"title",label:"接口路径"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.classname)),r("br"),1===t.row.accesstoken?r("el-tag",{attrs:{type:"primary",size:"mini"}},[e._v(e._s(t.row.method))]):e._e(),0===t.row.accesstoken?r("el-tag",{staticStyle:{background:"green",color:"white"},attrs:{type:"primary",size:"mini"}},[e._v(e._s(t.row.method)+" ")]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"title",label:"接口名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.title)+" "),1===t.row.deprecated?r("el-tag",{staticStyle:{"margin-left":"5px"},attrs:{type:"danger",size:"mini"}},[e._v(" 已过期 ")]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"coder",label:"负责人",width:"60",align:"center"}}),r("el-table-column",{attrs:{prop:"apiid",label:"ID",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.apiid&&null!=t.row.apiid?r("el-tag",{attrs:{type:"primary",size:"mini"}},[e._v(" "+e._s(t.row.apiid)+"-"+e._s(t.row.apiversion)+" ")]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"requestmsg.requesttimes",label:"请求次数",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticStyle:{"text-align":"right"}},[e._v(" "+e._s(0===t.row.requestmsg.requesttimes?"":t.row.requestmsg.requesttimes)+" "),0!==t.row.requestmsg.readcachetimes?r("el-tag",{staticStyle:{background:"green",color:"white","margin-left":"5px"},attrs:{type:"primary",size:"mini"}},[e._v(e._s(t.row.requestmsg.readcachetimes)+" ")]):e._e()],1)]}}])}),r("el-table-column",{attrs:{prop:"cacheinglife",label:"缓存时效",width:"65",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!==t.row.cacheinglife?r("el-tag",{attrs:{type:"primary",size:"mini"}},[e._v(" "+e._s(t.row.cacheinglife+"分钟")+" ")]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"requestmsg.requesttimelong_avg",label:"请求均时",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticStyle:{"text-align":"right"}},[e._v(" "+e._s(0===t.row.requestmsg.requesttimelong_avg?"":t.row.requestmsg.requesttimelong_avg)+" ")])]}}])}),r("el-table-column",{attrs:{prop:"requestmsg.requesttimelong_last",label:"最新时长",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticStyle:{"text-align":"right"}},[e._v(" "+e._s(0===t.row.requestmsg.requesttimelong_last?"":t.row.requestmsg.requesttimelong_last)+" ")])]}}])}),r("el-table-column",{attrs:{prop:"requestmsg.lastrequesttime",label:"最近请求时间",width:"150",align:"center"}}),r("el-table-column",{attrs:{prop:"intervaltime",label:"最低请求间隔",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticStyle:{"text-align":"right"}},[e._v(" "+e._s(0===t.row.intervaltime?"":t.row.intervaltime+"毫秒")+" ")])]}}])}),r("el-table-column",{attrs:{prop:"iscacheingclean",label:"缓存清理",width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0===t.row.iscacheingclean?"":"✅")+" ")]}}])})],1),r("div",{staticStyle:{margin:"20px 0"},attrs:{align:"right"}},[r("el-pagination",{attrs:{background:"",small:"","current-page":e.currentPage,"page-size":e.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("p",{staticStyle:{"margin-top":"20px"}},[e._v("缓存清理列表")]),r("el-table",{attrs:{data:e.cleandatas,size:"mini","header-cell-style":{background:"#f1f2f3",color:"#333"},"highlight-current-row":""}},[r("el-table-column",{attrs:{prop:"title",label:"缓存清理接口路径"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.classname)),r("br"),r("el-tag",{attrs:{type:"primary",size:"mini"}},[e._v(e._s(t.row.method))])]}}])}),r("el-table-column",{attrs:{property:"id",label:"ID",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:"primary",size:"mini"}},[e._v(" "+e._s(t.row.id)+"-"+e._s(t.row.version)+" ")])]}}])}),r("el-table-column",{attrs:{property:"title",label:"名称"}})],1),r("p",{staticStyle:{"margin-top":"20px"}},[e._v("接口请求日志")]),r("el-table",{attrs:{data:e.requestlogList,size:"mini","header-cell-style":{background:"#f1f2f3",color:"#333"},"highlight-current-row":"",border:""}},[r("el-table-column",{attrs:{prop:"usermsg",label:"用户信息",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:"primary",size:"mini"}},[e._v(e._s(t.row.usermsg.userid)+": "+e._s(t.row.usermsg.name))]),r("el-tag",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"}},[e._v(e._s("账号:"+t.row.usermsg.accountno)+" ")]),r("br"),e._v(" "+e._s("手机号:"+t.row.usermsg.phonenumber)),r("br"),e._v(" "+e._s("站点:"+t.row.usermsg.siteid)+" "+e._s(t.row.usermsg.sitename)),r("br"),e._v(" "+e._s("token:"+t.row.usermsg.token)),r("br"),r("el-tag",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"mini"}},[e._v(e._s("操作端:"+t.row.usermsg.systemclient)+" ")]),e._v(" "+e._s("IP:"+t.row.usermsg.ip)),r("br"),r("el-tag",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"mini"}},[e._v(e._s("请求时间:"+t.row.createdate)+" ")]),r("br"),e._v(" "+e._s("操作设备:"+t.row.usermsg.useragent)),r("br")]}}])}),r("el-table-column",{attrs:{prop:"request",label:"请求内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.iscacheing?r("div",{staticStyle:{color:"green"}},[e._v(" "+e._s(t.row.request))]):e._e(),1!==t.row.iscacheing?r("div",[e._v(" "+e._s(JSON.stringify(t.row.request,null,2)))]):e._e()]}}])}),r("el-table-column",{attrs:{label:"操作",width:"70",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("apisqllog",{attrs:{data:e.row}})]}}])})],1)],1)],1)],1)},a=[],i=r(6198),s=(r(5666),r(1539),r(4747),r(2707),r(8195)),o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{"margin-right":"10px"}},[r("div",[1!==e.data.iscacheing?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.showDialog}},[e._v("详情")]):e._e(),1===e.data.iscacheing?r("el-button",{attrs:{type:"success",disabled:"",size:"mini"}},[e._v("缓存")]):e._e()],1),r("el-dialog",{attrs:{"append-to-body":"",title:"API SQL执行详情",visible:e.dialogFormVisible,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("div",[e._v("请求内容")]),r("el-input",{attrs:{type:"textarea",rows:"33",value:JSON.stringify(e.data.request,null,2)}})],1),r("el-col",{attrs:{span:16}},[r("div",[e._v("执行SQL:"+e._s(e.list.length)+" 次")]),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,height:"700px",size:"mini",stripe:"",border:"","header-cell-style":{background:"#f1f2f3",color:"#333"},"highlight-current-row":""}},[r("el-table-column",{attrs:{label:"SQL",prop:"sql"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.success?r("div",{staticStyle:{color:"red",padding:"10px"}},[r("el-tooltip",{attrs:{content:t.row.errmsg,placement:"left"}},[r("div",[e._v(" "+e._s(t.row.sql))])])],1):e._e(),1===t.row.success?r("div",{staticStyle:{padding:"10px"}},[e._v(" "+e._s(t.row.sql)+" ")]):e._e()]}}])}),r("el-table-column",{attrs:{label:"时长",prop:"runtime",width:"50",align:"right"}})],1)],1)],1)],1)],1)},l=[],c={props:["data"],data:function(){return{dialogFormVisible:!1,param:{classname:"sysmanage.develop.apimanage.ApiMonitor",method:"queryApiRequestSQLLog",content:{requestlogid:""}},list:[]}},methods:{showDialog:function(){console.log(this.data),this.dialogFormVisible=!0,this.listData()},listData:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.param.content.requestlogid=e.data.requestlogid,t.next=3,e.$api.requested(e.param);case 3:r=t.sent,e.list=r.data;case 5:case"end":return t.stop()}}),t)})))()}}},u=c,p=r(1001),d=(0,p.Z)(u,o,l,!1,null,null,null),f=d.exports,m={data:function(){return{param:{classname:"sysmanage.develop.apimanage.ApiMonitor",method:"queryApiList",content:{pageNumber:1,pageSize:20,where:{condition:"",iscacheing:0,accesstoken:0},sort:[]}},list:[],sort:[],allLsit:[],requestlogList:[],selectorderbymode:"default",cleandatas:[],total:0,currentPage:0,selectArr:{searchResult:"",cacheUseResult:"",cacheClearResult:"",tokenResult:""},whereform:{condition:"",iscacheing:"",accesstoken:"",orderby:""}}},components:{search:s.Z,apisqllog:f},methods:{queryApiList:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.param.content.where.condition=e.whereform.condition,e.param.content.where.iscacheing=e.whereform.iscacheing,e.param.content.where.accesstoken=e.whereform.accesstoken,e.sort.forEach((function(t){t.sortid==e.selectorderbymode?t.sorted=1:t.sorted=0})),e.param.content.sort=e.sort,t.next=7,e.$api.requested(e.param);case 7:r=t.sent,e.allLsit=r.data,e.list=r.data,e.sort=r.sort,e.total=r.total,e.sort.forEach((function(t){1==t.sorted&&(e.selectorderbymode=t.sortid)}));case 13:case"end":return t.stop()}}),t)})))()},rowClick:function(e){var t=this;return(0,i.Z)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$api.requested({classname:"sysmanage.develop.apimanage.ApiMonitor",method:"queryApiRequestLog",content:{classname:e.classname,method:e.method}});case 2:n=r.sent,t.requestlogList=n.data,t.cleandatas=e.cleandatas;case 5:case"end":return r.stop()}}),r)})))()},handleSizeChange:function(e){this.param.content.pageSize=e,this.queryApiList()},handleCurrentChange:function(e){this.param.content.pageNumber=e,this.queryApiList()}},mounted:function(){this.param.content.pageSize=Math.floor(document.body.scrollHeight/100),this.queryApiList()}},g=m,h=(0,p.Z)(g,n,a,!1,null,"79e29cce",null),v=h.exports},8533:function(e,t,r){"use strict";var n=r(2092).forEach,a=r(9341),i=a("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},2092:function(e,t,r){var n=r(9974),a=r(1702),i=r(8361),s=r(7908),o=r(6244),l=r(5417),c=a([].push),u=function(e){var t=1==e,r=2==e,a=3==e,u=4==e,p=6==e,d=7==e,f=5==e||p;return function(m,g,h,v){for(var y,w,b=s(m),_=i(b),x=n(g,h),k=o(_),S=0,q=v||l,E=t?q(m,k):r||d?q(m,0):void 0;k>S;S++)if((f||S in _)&&(y=_[S],w=x(y,S,b),e))if(t)E[S]=w;else if(w)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:c(E,y)}else switch(e){case 4:return!1;case 7:c(E,y)}return p?-1:a||u?u:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9341:function(e,t,r){"use strict";var n=r(7293);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1589:function(e,t,r){var n=r(7854),a=r(1400),i=r(6244),s=r(6135),o=n.Array,l=Math.max;e.exports=function(e,t,r){for(var n=i(e),c=a(t,n),u=a(void 0===r?n:r,n),p=o(l(u-c,0)),d=0;c0)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},o=function(e,t,r,n){var a=t.length,i=r.length,s=0,o=0;while(s0&&(!k.multiline||k.multiline&&"\n"!==h(q,k.lastIndex-1))&&(R="(?: "+R+")",L=" "+L,C++),r=new RegExp("^(?:"+R+")",I)),x&&(r=new RegExp("^"+R+"$(?!\\s)",I)),b&&(a=k.lastIndex),o=n(m,A?r:k,L),A?o?(o.input=w(o.input,C),o[0]=w(o[0],C),o.index=k.lastIndex,k.lastIndex+=o[0].length):k.lastIndex=0:b&&o&&(k.lastIndex=k.global?o.index+o[0].length:a),x&&o&&o.length>1&&n(f,o[0],r,(function(){for(l=1;lb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},1150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},2707:function(e,t,r){"use strict";var n=r(2109),a=r(1702),i=r(9662),s=r(7908),o=r(6244),l=r(1340),c=r(7293),u=r(4362),p=r(9341),d=r(8886),f=r(256),m=r(7392),g=r(8008),h=[],v=a(h.sort),y=a(h.push),w=c((function(){h.sort(void 0)})),b=c((function(){h.sort(null)})),_=p("sort"),x=!c((function(){if(m)return m<70;if(!(d&&d>3)){if(f)return!0;if(g)return g<603;var e,t,r,n,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)h.push({k:t+n,v:r})}for(h.sort((function(e,t){return t.v-e.v})),n=0;nl(r)?1:-1}};n({target:"Array",proto:!0,forced:k},{sort:function(e){void 0!==e&&i(e);var t=s(this);if(x)return void 0===e?v(t):v(t,e);var r,n,a=[],l=o(t);for(n=0;n