Files
zyplayer-doc/zyplayer-doc-dubbo/src/main/resources/dist/js/index.b5ddc7bd.js
暮光:城中城 ad1aa476a4 build
2022-08-23 22:55:34 +08:00

1 line
34 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(e){function t(t){for(var n,i,s=t[0],l=t[1],u=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);c&&c(t);while(p.length)p.shift()();return r.push.apply(r,u||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],n=!0,s=1;s<a.length;s++){var l=a[s];0!==o[l]&&(n=!1)}n&&(r.splice(t--,1),e=i(i.s=a[0]))}return e}var n={},o={index:0},r=[];function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=n,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;r.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"034f":function(e,t,a){"use strict";var n=a("85ec"),o=a.n(n);o.a},"19ac":function(e,t,a){"use strict";var n=a("69fb"),o=a.n(n);o.a},"1cc7":function(e,t,a){"use strict";var n=a("d1f1"),o=a.n(n);o.a},"379b":function(e,t,a){"use strict";var n=a("a77a"),o=a.n(n);o.a},"40c0":function(e,t,a){},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var n=a("2b0e"),o=a("5c96"),r=a.n(o),i=(a("0fae"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[e.fullscreen?[a("router-view")]:a("el-container",[a("el-aside",{staticStyle:{background:"#fff"}},[a("div",{staticStyle:{padding:"10px",height:"100%","box-sizing":"border-box"}},[a("div",{attrs:{align:"center"}},[a("el-dropdown",{staticStyle:{width:"280px"},attrs:{"split-button":"",type:"primary"},on:{command:e.dropdownCommand}},[a("el-upload",{staticClass:"upload-page-file",attrs:{action:"zyplayer-doc-dubbo/doc-dubbo/uploadDocJar","on-success":e.uploadFileSuccess,"on-error":e.uploadFileError,name:"file","show-file-list":!1,limit:999}},[a("el-button",{staticStyle:{width:"250px"},attrs:{type:"primary",icon:"el-icon-upload"}},[e._v("上传文档JAR")])],1),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"reload",icon:"el-icon-refresh"}},[e._v("重新加载服务列表")])],1)],1)],1),a("el-input",{staticStyle:{margin:"10px 0"},attrs:{placeholder:"搜索文档"},model:{value:e.searchKeywords,callback:function(t){e.searchKeywords=t},expression:"searchKeywords"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchByKeywords},slot:"append"})],1),a("div",{staticStyle:{overflow:"auto","padding-bottom":"30px"}},[a("el-tree",{attrs:{data:e.pathIndex,props:e.defaultProps},on:{"node-click":e.handleNodeClick}})],1)],1)]),a("el-container",[a("el-header",[a("header-right")],1),a("el-main",{staticStyle:{padding:"0","box-shadow":"rgba(0, 0, 0, 0.1) 0 0 8px"}},[a("router-view",{attrs:{dubboDocMap:e.dubboDocMap,treePathDataMap:e.treePathDataMap}})],1)],1)],1)],2)}),s=[],l=(a("4ec9"),a("d3b7"),a("3ca3"),a("ddb0"),a("4328")),u=a.n(l),c=a("bc3a"),d=a.n(c),p=d.a.create({baseURL:"./",timeout:1e4,headers:{"Content-type":"application/x-www-form-urlencoded"},withCredentials:!0}),f={"/zyplayer-doc-dubbo/doc-dubbo/request":!0};p.interceptors.request.use((function(e){return e.needValidateResult=!0,f[e.url]&&(e.needValidateResult=!1),e}),(function(e){return console.log(e),Promise.reject(e)})),p.interceptors.response.use((function(e){if(e.message)Ve.$message.error("请求错误:"+e.message);else{if(!e.config.needValidateResult||200==e.data.errCode)return e.data;if(400==e.data.errCode){Ve.$message.error("请先登录");var t=encodeURIComponent(window.location.href);window.location="./#/user/login?redirect="+t}else if(402==e.data.errCode)Ve.$router.push("/common/noAuth");else if(200!==e.data.errCode)return Ve.$message.error(e.data.errMsg||"未知错误"),Promise.reject(e.data.errMsg||"未知错误")}return Promise.reject("请求错误")}),(function(e){return console.log("err"+e),Ve.$message.info("请求错误:"+e.message),Promise.reject(e)}));var h=p,b={findDocInfo:function(e){return h({url:"/zyplayer-doc-dubbo/doc-dubbo/findDocInfo",method:"post",data:u.a.stringify(e)})},reloadService:function(e){return h({url:"/zyplayer-doc-dubbo/doc-dubbo/reloadService",method:"post",data:u.a.stringify(e)})},getDocList:function(e){return h({url:"/zyplayer-doc-dubbo/doc-dubbo/getDocList",method:"post",data:u.a.stringify(e)})},saveDoc:function(e){return h({url:"/zyplayer-doc-dubbo/doc-dubbo/saveDoc",method:"post",data:u.a.stringify(e)})},request:function(e){return h({url:"/zyplayer-doc-dubbo/doc-dubbo/request",method:"post",data:u.a.stringify(e)})}},m=(a("4160"),a("c975"),a("ac1f"),a("1276"),a("159b"),{createTreeViewByTree:function(e,t,a){var n=this,o=[];if(t){for(var r="",i=function(i){var s=t[i].interface;if(!n.findInPathsValue(t[i],a))return"continue";if(t[i].nodeList.length<=0)return"continue";for(var l=t[i].nodeList[0].methods,u=t[i].nodeList[0].application,c=function(a){var c=s+"."+l[a],d=c.split("."),p=null;d.forEach((function(s,f){if(s||0!=f){var h=s;if(null==p)p=n.findNode(o,h),null==p&&(p={id:o.length,label:h,children:[]},o.push(p)),r=p.id,p=p.children;else{var b=n.findNode(p,h);if(null==b&&(b={id:r+"."+p.length,label:h,children:[]},p.push(b)),r=b.id,p=b.children,f==d.length-1){var m=c;b.children=null,b.method=l[a],b.interface=m,b.application=u,e.set(m,t[i])}}}}))},d=0;d<l.length;d++)c(d)},s=0;s<t.length;s++)i(s);return o}},createTreeViewByTreeWithMerge:function(e,t,a){var n=this.createTreeViewByTree(e,t,a);return this.mergeNode(n),n},findNode:function(e,t){for(var a=0;a<e.length;a++)if(e[a].label==t)return e[a];return null},mergeNode:function(e){for(var t=0;t<e.length;t++){var a=e[t];null!=a.children&&null!=a.children[0].children&&null!=a.children[0].children[0].children&&(1==a.children.length&&(a.label=a.label+"."+a.children[0].label,a.children=a.children[0].children,t--),this.mergeNode(a.children))}},findInPathsValue:function(e,t){if(!t)return!0;t=t.toLowerCase();var a=e.interface;if(a&&a.toLowerCase().indexOf(t)>=0)return!0;if(e.nodeList.length>0)for(var n=0;n<e.nodeList.length;n++){var o=e.nodeList[n];if(o.application&&o.application.toLowerCase().indexOf(t)>=0)return!0;if(o.methods&&o.methods.length>0)for(var r=0;r<o.methods.length;r++){var i=o.methods[r];if(i.toLowerCase().indexOf(t)>=0)return!0;var s=a+"."+i,l=app.dubboDocMap[s];if(l){if(l.explain&&l.explain.toLowerCase().indexOf(t)>=0)return!0;if(l.explain&&l.explain.toLowerCase().indexOf(t)>=0)return!0}}}return!1}}),g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header-right"},[a("span",{staticClass:"header-right-user-name"},[e._v(e._s(e.userSelfInfo.userName))]),a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.userSettingDropdown}},[a("i",{staticClass:"el-icon-setting",staticStyle:{"margin-right":"15px","font-size":"16px",cursor:"pointer",color:"#fff"}}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"console"}},[e._v("控制台")]),a("el-dropdown-item",{attrs:{command:"aboutDoc",divided:""}},[e._v("关于")]),a("el-dropdown-item",{attrs:{command:"myInfo"}},[e._v("我的资料")]),a("el-dropdown-item",{attrs:{command:"userSignOut"}},[e._v("退出登录")])],1)],1),a("about-dialog",{ref:"aboutDialog"})],1)},v=[],y={userLogin:function(e){return h({url:"/login",method:"post",data:u.a.stringify(e)})},userLogout:function(){return h({url:"/logout",method:"post",data:u.a.stringify({})})},getSelfUserInfo:function(){return h({url:"/user/info/selfInfo",method:"post",data:u.a.stringify({})})},getUserBaseInfo:function(e){return h({url:"/zyplayer-doc-wiki/common/user/base",method:"post",data:u.a.stringify(e)})}},_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关于",visible:e.aboutDialogVisible,width:"600px","custom-class":"about-zyplayer-doc"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[a("div",{},[a("div",{staticStyle:{"font-weight":"bold","font-size":"25px"}},[e._v("zyplayer-doc")]),a("div",{staticStyle:{"line-height":"30px",padding:"10px 0"}},[a("div",[e._v("版本 "+e._s(e.upgradeInfo.nowVersion||"1.0.0"))]),a("div",[e._v("版权所有 © 2018-2021 "),a("a",{attrs:{target:"_blank",href:"http://doc.zyplayer.com"}},[e._v("doc.zyplayer.com")])])]),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"支持"}},[a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("文档:"),a("a",{attrs:{target:"_blank",href:"http://doc.zyplayer.com/doc-wiki#/docs/w4eSzPWvQRSBvaCHZS8t6d"}},[e._v("http://doc.zyplayer.com")])]),a("div",[e._v("主页:"),a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("https://gitee.com/zyplayer/zyplayer-doc")])]),a("div",[e._v("反馈:"),a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc/issues"}},[e._v("https://gitee.com/zyplayer/zyplayer-doc/issues")])]),a("div",[e._v("特性关注&技术交流QQ群466363173")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("UI/设计/开发/测试")]),a("div",[a("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])])],1)]),a("el-tab-pane",{attrs:{label:"开源软件"}},[a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("此项目基于以下开源软件构建")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("后端")]),a("div",[a("a",{attrs:{target:"_blank",href:"https://spring.io/projects/spring-boot"}},[e._v("Spring-Boot")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"http://www.mybatis.org"}},[e._v("MyBatis")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://github.com/alibaba/druid"}},[e._v("Druid")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://mp.baomidou.com"}},[e._v("MyBatis-Plus")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://www.hutool.cn"}},[e._v("Hutool")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://github.com/alibaba/fastjson"}},[e._v("Fastjson")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://alibaba-easyexcel.github.io"}},[e._v("Easy Excel")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://swagger.io"}},[e._v("Swagger")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://dubbo.io"}},[e._v("Dubbo")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"http://www.eclipse.org/jgit"}},[e._v("JGit")]),e._v("、... ")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("前端")]),e._v(" Vue、element-ui、wangeditor、mavon-editor、qrcodejs2、vant、vue-router、axios、vue-hljs、brace、echarts、sql-formatter、vue-clipboard2、... "),a("div")],1)]),e.upgradeInfo.lastVersion?a("el-tab-pane",{attrs:{label:"软件更新"}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 软件更新 "),a("sup",{staticClass:"el-badge__content el-badge__content--undefined is-fixed is-dot",staticStyle:{top:"10px",right:"20px"}})]),a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("当前版本:"+e._s(e.upgradeInfo.nowVersion))]),a("div",[e._v("最新版本:"+e._s(e.upgradeInfo.lastVersion))]),a("div",[e._v("升级地址:"),a("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v(e._s(e.upgradeInfo.upgradeUrl))])]),a("div",[e._v("升级内容:")]),a("pre",{staticStyle:{margin:"0","max-height":"250px",overflow:"auto"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])])]):e._e()],1)],1)])},w=[],I={systemUpgradeInfo:function(e){return h({url:"/system/info/upgrade",method:"post",data:u.a.stringify(e)})}},x={data:function(){return{aboutDialogVisible:!1,upgradeInfo:{}}},mounted:function(){this.checkSystemUpgrade()},methods:{show:function(){this.aboutDialogVisible=!0},checkSystemUpgrade:function(){var e=this;I.systemUpgradeInfo({}).then((function(t){t.data&&(e.upgradeInfo=t.data,e.upgradeInfo.upgradeContent&&(e.upgradeInfo.upgradeContent=e.upgradeInfo.upgradeContent.replaceAll("","\n")),console.log("zyplayer-doc发现新版本\n升级地址"+t.data.upgradeUrl+"\n当前版本"+t.data.nowVersion+"\n最新版本"+t.data.lastVersion+"\n升级内容"+t.data.upgradeContent))}))}}},S=x,P=(a("1cc7"),a("2877")),k=Object(P["a"])(S,_,w,!1,null,null,null),D=k.exports,L={data:function(){return{userSelfInfo:{}}},components:{"about-dialog":D},mounted:function(){this.getSelfUserInfo()},methods:{userSignOut:function(){y.userLogout().then((function(){location.reload()}))},getSelfUserInfo:function(){var e=this;y.getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?this.$refs.aboutDialog.show():"myInfo"==e?this.$router.push({path:"/user/myInfo"}):"console"==e?window.open("./","_blank"):this.$message.warning("功能暂未开放")}}},O=L,j=(a("379b"),Object(P["a"])(O,g,v,!1,null,null,null)),R=j.exports,$={components:{"header-right":R},data:function(){return{isCollapse:!1,pathIndex:[],defaultProps:{children:"children",label:"label"},dubboInfo:{},requestHostOptions:[],treePathDataMap:new Map,dubboDocList:[],dubboDocMap:[],searchKeywords:""}},computed:{fullscreen:function(){return this.$store.state.global.fullscreen}},mounted:function(){this.doGetServiceList()},methods:{handleNodeClick:function(e){null==e.children&&this.$router.push({path:"/doc/dubboDocView",query:{path:e.interface,method:e.method,application:e.application}})},uploadFileError:function(e){this.$message({message:"上传失败,"+e,type:"error"})},uploadFileSuccess:function(e){200==e.errCode?this.$message({message:"上传成功!",type:"success"}):this.$message({message:"上传失败,"+e.errMsg,type:"error"})},reloadService:function(){var e=this;b.reloadService().then((function(t){e.$message({message:"加载成功!",type:"success"}),e.doGetServiceList()}))},dropdownCommand:function(e){"reload"==e&&this.reloadService()},searchByKeywords:function(){this.pathIndex=m.createTreeViewByTreeWithMerge(this.treePathDataMap,this.dubboDocList,this.searchKeywords)},doGetServiceList:function(){var e=this;b.getDocList({}).then((function(t){e.dubboDocList=t.data.serverList||[],e.dubboDocMap=t.data.docMap||{},e.pathIndex=m.createTreeViewByTreeWithMerge(e.treePathDataMap,e.dubboDocList)}))}}},C=$,M=(a("034f"),Object(P["a"])(C,i,s,!1,null,null,null)),q=M.exports,T=a("8c4f"),E=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},V=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"10px"}},[a("div",{staticStyle:{"max-width":"1200px",margin:"20px auto"}},[a("div",{staticStyle:{"text-align":"center"}},[e._v('欢迎使用ヾ(๑╹◡╹)ノ"')])])])}],N={data:function(){return{}},mounted:function(){this},methods:{}},z=N,H=Object(P["a"])(z,E,V,!1,null,null,null),U=H.exports,F=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"padding-top":"50px"}},[a("el-form",{ref:"loginParam",staticClass:"demo-ruleForm login-container",attrs:{model:e.loginParam,rules:e.loginRules,"label-position":"left","label-width":"0px"}},[a("h3",{staticClass:"title"},[e._v("系统登录")]),a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginSubmit(t)}},model:{value:e.loginParam.username,callback:function(t){e.$set(e.loginParam,"username",t)},expression:"loginParam.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginSubmit(t)}},model:{value:e.loginParam.password,callback:function(t){e.$set(e.loginParam,"password",t)},expression:"loginParam.password"}})],1),a("el-form-item",{staticStyle:{width:"100%"}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:e.logining},nativeOn:{click:function(t){return t.preventDefault(),e.loginSubmit(t)}}},[e._v("登录")])],1)],1)],1)},J=[],B={data:function(){return{logining:!1,redirect:"",loginParam:{username:"",password:""},loginRules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},checked:!0}},mounted:function(){this.redirect=this.$route.query.redirect},methods:{loginSubmit:function(){var e=this;this.$refs.loginParam.validate((function(t){t&&y.userLogin(e.loginParam).then((function(){e.redirect?location.href=decodeURIComponent(e.redirect):e.$router.back()}))}))}}},Q=B,A=(a("9231"),Object(P["a"])(Q,F,J,!1,null,null,null)),K=A.exports,G=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-info-vue"},[a("div",{staticStyle:{margin:"0 auto","max-width":"1000px"}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e._v("我的信息")]),a("el-form",{staticClass:"search-form-box",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号:"}},[e._v(e._s(e.userInfo.userNo))]),a("el-form-item",{attrs:{label:"用户名:"}},[e._v(e._s(e.userInfo.userName))]),a("el-form-item",{attrs:{label:"手机号:"}},[e._v(e._s(e.userInfo.phone))]),a("el-form-item",{attrs:{label:"邮箱:"}},[e._v(e._s(e.userInfo.email))]),a("el-form-item",{attrs:{label:"状态:"}},[e._v(e._s(0==e.userInfo.delFlag?"正常":"停用"))]),a("el-form-item",{attrs:{label:"性别:"}},[e._v(e._s(0==e.userInfo.sex?"女":"男"))])],1)],1)],1)])},W=[],Z={data:function(){return{userInfo:{}}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;y.getSelfUserInfo().then((function(t){e.userInfo=t.data}))}}},X=Z,Y=(a("dcfc"),Object(P["a"])(X,G,W,!1,null,null,null)),ee=Y.exports,te=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dubbo-doc-view"},[a("el-tabs",{staticStyle:{width:"100%","box-shadow":"none"},attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"接口说明"}},[e.dubboInfo.interface?a("el-form",{attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"服务:"}},[e._v(" "+e._s(e.dubboInfo.interface)+" ")]),a("el-form-item",{attrs:{label:"方法:"}},[e._v(" "+e._s(e.dubboInfo.method)+" ")]),a("el-form-item",{attrs:{label:"说明:"}},[e.dubboInfoExplainShow?a("div",[a("pre",{staticStyle:{margin:"0"}},[e._v(e._s(e.dubboInfo.docInfo.explain)),a("el-button",{staticStyle:{float:"right"},on:{click:e.editDocInfoExplain}},[e._v("编辑")])],1)]):a("div",[a("el-input",{attrs:{type:"textarea",rows:4,placeholder:"维护人员、使用说明、便于搜索的信息"},model:{value:e.docInfoExplainInput,callback:function(t){e.docInfoExplainInput=t},expression:"docInfoExplainInput"}}),a("el-button",{staticStyle:{float:"right",margin:"5px"},on:{click:function(t){t.preventDefault(),e.dubboInfoExplainShow=!0}}},[e._v("取消")]),a("el-button",{staticStyle:{float:"right",margin:"5px"},attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.saveDocInfoExplain(t)}}},[e._v("保存")])],1)]),a("el-form-item",{attrs:{label:"节点:"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.dubboInfo.nodeList,border:""}},[a("el-table-column",{attrs:{prop:"application",label:"应用"}}),a("el-table-column",{attrs:{prop:"ip",label:"IP"}}),a("el-table-column",{attrs:{prop:"port",label:"端口"}})],1)],1),a("el-form-item",{attrs:{label:"参数:"}},[a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.docParamList,border:""}},[a("el-table-column",{attrs:{label:"顺序",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.$index))]}}])}),a("el-table-column",{attrs:{label:"参数名",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.paramName,callback:function(a){e.$set(t.row,"paramName",a)},expression:"scope.row.paramName"}})]}}])}),a("el-table-column",{attrs:{label:"类型",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.paramType))]}}])}),a("el-table-column",{attrs:{label:"说明"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.paramDesc,callback:function(a){e.$set(t.row,"paramDesc",a)},expression:"scope.row.paramDesc"}})]}}])})],1),a("el-button",{staticStyle:{float:"right",margin:"5px"},attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.saveDocInfoParam(t)}}},[e._v("保存")])],1),a("el-form-item",{attrs:{label:"返回值:"}},[e._v(" "+e._s(e.dubboInfo.docInfo.resultType)+" ")]),a("el-form-item",{attrs:{label:"结果说明:"}},[e.dubboInfoResultShow?a("div",[a("pre",{staticStyle:{margin:"0"}},[e._v(e._s(e.dubboInfo.docInfo.result)),a("el-button",{staticStyle:{float:"right"},on:{click:e.editDocInfoResult}},[e._v("编辑")])],1)]):a("div",[a("el-input",{attrs:{type:"textarea",rows:4,placeholder:"结果集说明等"},model:{value:e.docInfoResultInput,callback:function(t){e.docInfoResultInput=t},expression:"docInfoResultInput"}}),a("el-button",{staticStyle:{float:"right",margin:"5px"},on:{click:function(t){t.preventDefault(),e.dubboInfoResultShow=!0}}},[e._v("取消")]),a("el-button",{staticStyle:{float:"right",margin:"5px"},attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.saveDocInfoResult(t)}}},[e._v("保存")])],1)])],1):a("div",[e._v("请先选择服务")])],1),a("el-tab-pane",{attrs:{label:"在线调试"}},[e.dubboInfo.interface?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.onlineDebugLoading,expression:"onlineDebugLoading"}]},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:e.dubboInfo.function,callback:function(t){e.$set(e.dubboInfo,"function",t)},expression:"dubboInfo.function"}},[a("el-select",{staticStyle:{width:"200px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.requestHostValue,callback:function(t){e.requestHostValue=t},expression:"requestHostValue"}},e._l(e.requestHostOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1),a("el-button",{attrs:{slot:"append"},on:{click:function(t){return t.preventDefault(),e.requestExecute(t)}},slot:"append"},[e._v("执行")])],1),a("el-form",{attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"请求参数:"}},[a("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.docParamRequestList,border:""}},[a("el-table-column",{attrs:{label:"顺序",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.$index))]}}])}),a("el-table-column",{attrs:{label:"参数名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.paramName))]}}])}),a("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.paramType))]}}])}),a("el-table-column",{attrs:{label:"参数值"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.paramValue,callback:function(a){e.$set(t.row,"paramValue",a)},expression:"scope.row.paramValue"}})]}}])}),a("el-table-column",{attrs:{label:"说明"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.paramDesc))]}}])})],1)],1),a("el-form-item",{attrs:{label:"请求结果:"}},[a("div",{staticClass:"request-result",domProps:{innerHTML:e._s(e.requestResult)}})])],1)],1):a("div",[e._v("请先选择服务")])])],1)],1)},ae=[],ne=(a("baa5"),a("2ca0"),a("a15b"),a("0d03"),a("25f0"),a("bf2d")),oe={annotationObject:{},tabStr:" ",isArray:function(e){return e&&"object"===Object(ne["a"])(e)&&"number"===typeof e.length&&!e.propertyIsEnumerable("length")},processObjectToHtmlPre:function(e,t,a,n,o,r){var i=this.processObject(e,"",t,a,n,o,r);return i='<pre class="json">'+i+"</pre>",i},processObject:function(e,t,a,n,o,r,i){var s="",l=n?"<span class='comma'>,</span> ":"",u=Object(ne["a"])(e);if(this.isArray(e))if(0==e.length)s+=this.getRow(a,"<span class='array-brace'>[ ]</span>"+l,r);else{var c='<span><img class="option-img" src="webjars/doc-dubbo/img/expanded.png" onClick="Formatjson.expImgClicked(this);" /></span><span class="collapsible">',d="";i&&t&&this.annotationObject[t]&&(d='<span class="annotation">// '+this.annotationObject[t]+"</span>"),s+=this.getRow(a,"<span class='array-brace'>[</span>"+c+d,r);for(var p=0;p<e.length;p++)s+=this.processObject(e[p],"",a+1,p<e.length-1,!0,!1,i);c="</span>",s+=this.getRow(a,c+"<span class='array-brace'>]</span>"+l)}else if("object"==u&&null==e)s+=this.formatLiteral("null","",l,a,o,"null");else if("object"==u){var f=0;for(var h in e)f++;if(0==f)s+=this.getRow(a,"<span class='object-brace'>{ }</span>"+l,r);else{c='<span><img class="option-img" src="webjars/doc-dubbo/img/expanded.png" onClick="Formatjson.expImgClicked(this);" /></span><span class="collapsible">',d="";i&&t&&this.annotationObject[t]&&(d='<span class="annotation">// '+this.annotationObject[t]+"</span>"),s+=this.getRow(a,"<span class='object-brace'>{</span>"+c+d,r);var b=0;for(var h in e){var m='<span class="property-name">"'+h+'"</span>: '+this.processObject(e[h],h,a+1,++b<f,!1,!0,i);s+=this.getRow(a+1,m)}c="</span>",s+=this.getRow(a,c+"<span class='object-brace'>}</span>"+l)}}else"number"==u?s+=this.formatLiteral(e,"",l,a,o,"number"):"boolean"==u?s+=this.formatLiteral(e,"",l,a,o,"boolean"):"function"==u?(e=this.formatFunction(a,e),s+=this.formatLiteral(e,"",l,a,o,"function")):s+="undefined"==u?this.formatLiteral("undefined","",l,a,o,"null"):this.formatLiteral(e,'"',l,a,o,"string");return s},expImgClicked:function(e){var t=e.parentNode.nextSibling;if(t){var a="none",n="webjars/doc-dubbo/img/collapsed.png";"none"==t.style.display&&(a="inline",n="webjars/doc-dubbo/img/expanded.png"),t.style.display=a,e.src=n}},formatLiteral:function(e,t,a,n,o,r){"string"==typeof e&&(e=e.split("<").join("&lt;").split(">").join("&gt;"));var i="<span class='"+r+"'>"+t+e+t+a+"</span>";return o&&(i=this.getRow(n,i)),i},formatFunction:function(e,t){for(var a="",n=0;n<e;n++)a+=this.tabStr;var o=t.toString().split("\n"),r="";for(n=0;n<o.length;n++)r+=(0==n?"":a)+o[n]+"\n";return r},getRow:function(e,t,a){for(var n="",o=0;o<e&&!a;o++)n+=this.tabStr;return null!=t&&t.length>0&&"\n"!=t.charAt(t.length-1)&&(t+="\n"),n+t}};window.Formatjson=oe;var re=oe,ie={props:["dubboDocMap","treePathDataMap"],data:function(){return{vueQueryParam:{},dubboInfo:{},requestHostOptions:[],onlineDebugLoading:!1,dubboInfoExplainShow:!0,docInfoExplainInput:"",dubboInfoResultShow:!0,docInfoResultInput:"",requestHostValue:"",requestResult:"",docParamList:[],docParamRequestList:[]}},mounted:function(){},activated:function(){this.initQueryParam(this.$route)},methods:{initQueryParam:function(e){var t=this;this.vueQueryParam=e.query;var a={key:this.$route.fullPath,val:this.vueQueryParam.method};this.$store.commit("global/addTableName",a);var n=this.vueQueryParam.path,o=this.vueQueryParam.method,r=this.vueQueryParam.application,i=this.dubboDocMap[n];if(i)this.createDocInfo(n,o);else{var s=n.substring(0,n.lastIndexOf(".")),l=n.substring(n.lastIndexOf(".")+1,n.length),u={service:s,method:l,application:r};b.findDocInfo(u).then((function(e){e.data&&(t.dubboDocMap[e.data.function]=e.data),t.createDocInfo(n,l)}))}},createDocInfo:function(e,t,a){var n=this,o=this.dubboDocMap[e],r=this.treePathDataMap.get(e);if(o&&r){r.method=t,r.function=e,r.docInfo=o||{},this.dubboInfo={},this.dubboInfo=r,this.requestHostOptions=[];for(var i={},s=0;s<r.nodeList.length;s++){var l=r.nodeList[s],u=l.ip+":"+l.port;l.version&&(u+=" V"+l.version),l.group&&(u+=" G"+l.group),i[u]||(i[u]=1,this.requestHostOptions.push({value:u}))}this.requestHostValue="",this.docInfoExplainInput=this.dubboInfo.docInfo.explain,this.requestHostOptions.length>0&&(this.requestHostValue=this.requestHostOptions[0].value),this.docParamList=[],this.docParamList=this.dubboInfo.docInfo.params||[],this.createDocParamRequestList()}else a||setTimeout((function(){return n.createDocInfo(e,t,!0)}),1500)},saveDocInfoExplain:function(){this.doSaveDocInfo(this.docInfoExplainInput,null,null,!0)},saveDocInfoResult:function(){this.doSaveDocInfo(null,null,this.docInfoResultInput,!0)},editDocInfoResult:function(){this.dubboInfoResultShow=!1,this.docInfoResultInput=this.dubboInfo.docInfo.result||""},editDocInfoExplain:function(){this.dubboInfoExplainShow=!1,this.docInfoExplainInput=this.dubboInfo.docInfo.explain||""},saveDocInfoParam:function(){for(var e=[],t=0;t<this.docParamList.length;t++){var a=this.docParamList[t];a.paramType&&e.push(a)}var n=JSON.stringify(e);this.doSaveDocInfo(null,n,null,!0)},createDocParamRequestList:function(){for(var e=[],t=0;t<this.docParamList.length;t++){var a=this.docParamList[t];(a.paramType||a.paramDesc)&&e.push(a)}this.docParamRequestList=e},doSaveDocInfo:function(e,t,a,n){var o=this,r={service:this.dubboInfo.interface,method:this.dubboInfo.method,resultType:this.dubboInfo.resultType,paramValue:this.dubboInfo.paramValue,version:this.dubboInfo.docInfo.version||0,explain:e,result:a,paramsJson:t};b.saveDoc(r).then((function(e){o.dubboDocMap[e.data.function]=e.data,o.dubboInfo.docInfo=e.data,o.dubboInfoExplainShow=!0,o.dubboInfoResultShow=!0,o.docParamList=e.data.params||[],o.createDocParamRequestList(),n&&o.$message({message:"保存成功!",type:"success"})}))},requestExecute:function(){var e=this,t=this.dubboInfo.function,a=this.requestHostValue,n=t.substring(0,t.lastIndexOf(".")),o=t.substring(t.lastIndexOf(".")+1,t.length),r=a.split(" "),i=r[0].split(":"),s="",l="";r.forEach((function(e){e.startsWith("V")&&(s=e.substring(1,e.length)),e.startsWith("G")&&(l=e.substring(1,e.length))}));for(var u=[],c=[],d=0;d<this.docParamList.length;d++){var p=this.docParamList[d];u.push(p.paramType),c.push(p.paramValue||"")}var f={service:n,method:o,ip:i[0],port:i[1],version:s,group:l,paramTypes:JSON.stringify(u),params:JSON.stringify(c)};this.requestResult="",this.onlineDebugLoading=!0,b.request(f).then((function(t){if(e.onlineDebugLoading=!1,200==t.errCode){try{e.requestResult=re.processObjectToHtmlPre(JSON.parse(t.data),0,!1,!1,!1,!1)}catch(n){try{e.requestResult=re.processObjectToHtmlPre(t.data,0,!1,!1,!1,!1)}catch(n){e.requestResult=t.data}}var a=JSON.stringify(e.docParamRequestList);e.doSaveDocInfo(null,a,null,!1)}else e.requestResult=t.errMsg}),(function(t){e.onlineDebugLoading=!1,e.requestResult=t||"",t.responseJSON&&t.responseJSON.message&&(e.requestResult=t.responseJSON.message)}))}}},se=ie,le=(a("19ac"),Object(P["a"])(se,te,ae,!1,null,null,null)),ue=le.exports,ce=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("router-view")},de=[],pe={},fe=Object(P["a"])(pe,ce,de,!1,null,null,null),he=fe.exports,be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{staticStyle:{padding:"5px 10px 0"},attrs:{type:"card",closable:""},on:{"tab-click":e.changePage,"tab-remove":e.removePageTab},model:{value:e.activePage,callback:function(t){e.activePage=t},expression:"activePage"}},e._l(e.pageList,(function(t){return a("el-tab-pane",{attrs:{label:e.pageTabNameMap[t.fullPath]||t.name,name:t.fullPath}})})),1),a("keep-alive",[a("router-view",{key:e.$route.fullPath,attrs:{dubboDocMap:e.dubboDocMap,treePathDataMap:e.treePathDataMap}})],1)],1)},me=[],ge=(a("4de4"),a("b0c0"),{props:["dubboDocMap","treePathDataMap"],name:"PageTableView",components:{},data:function(){return{pageList:[],linkList:[],activePage:"",multiPage:!0}},computed:{pageTabNameMap:function(){return this.$store.state.global.pageTabNameMap}},created:function(){this.pageList.push(this.$route),this.linkList.push(this.$route.fullPath),this.activePage=this.$route.fullPath},watch:{$route:function(e,t){this.activePage=e.fullPath,this.linkList.indexOf(e.fullPath)<0&&(this.linkList.push(e.fullPath),this.pageList.push(e))},activePage:function(e){this.$router.push(e)}},methods:{changePage:function(e){this.activePage=e.name},editPage:function(e,t){this[t](e)},removePageTab:function(e){if(1!==this.pageList.length){this.pageList=this.pageList.filter((function(t){return t.fullPath!==e}));var t=this.linkList.indexOf(e);this.linkList=this.linkList.filter((function(t){return t!==e})),t=t>=this.linkList.length?this.linkList.length-1:t,this.activePage=this.linkList[t]}else this.$message.warning("这是最后一页,不能再关闭了啦")}}}),ve=ge,ye=Object(P["a"])(ve,be,me,!1,null,"9a5fb18c",null),_e=ye.exports,we=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._v("没有权限访问该模块")])},Ie=[],xe={data:function(){return{}},mounted:function(){},methods:{}},Se=xe,Pe=Object(P["a"])(Se,we,Ie,!1,null,null,null),ke=Pe.exports,De=[{path:"/home",component:U,name:"主页",meta:{requireAuth:!0}},{path:"/",redirect:"/home"},{path:"/",name:"Tab标签页",component:_e,children:[{path:"/doc/dubboDocView",name:"文档信息",component:ue},{path:"/user/myInfo",name:"我的信息",component:ee}]},{path:"/user",name:"用户管理",component:he,children:[{path:"login",name:"系统登录",component:K,meta:{fullscreen:!0}}]},{path:"/common",name:"",component:he,children:[{path:"noAuth",name:"没有权限",component:ke}]}],Le=De,Oe=a("2f62"),je={namespaced:!0,state:{pageTabNameMap:{},fullscreen:!1},getters:{getPageTabNameMap:function(e){return e.pageTabNameMap}},mutations:{addTableName:function(e,t){var a=Object.assign({},e.pageTabNameMap);a[t.key]=t.val,e.pageTabNameMap=a},setFullscreen:function(e,t){e.fullscreen=t}}};n["default"].use(Oe["a"]);var Re=new Oe["a"].Store({modules:{global:je}}),$e=a("a7fe"),Ce=a.n($e),Me=a("2315"),qe=a.n(Me);a("f1e9");n["default"].use(r.a),n["default"].use(T["a"]),n["default"].use(Ce.a,d.a),n["default"].use(qe.a),n["default"].prototype.$store=Re;var Te=new T["a"]({routes:Le});Te.beforeEach((function(e,t,a){e.meta.title&&(document.title=e.meta.title),Re.commit("global/setFullscreen",!!e.meta.fullscreen),a()}));var Ee=new n["default"]({el:"#app",router:Te,render:function(e){return e(q)}}),Ve=t["default"]=Ee},"69fb":function(e,t,a){},"85ec":function(e,t,a){},9231:function(e,t,a){"use strict";var n=a("40c0"),o=a.n(n);o.a},a77a:function(e,t,a){},d1f1:function(e,t,a){},dcfc:function(e,t,a){"use strict";var n=a("ed55"),o=a.n(n);o.a},ed55:function(e,t,a){}});