From d76a2d7b684d72440efd6db35a0f216850ba2963 Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 10 Nov 2020 11:07:43 +0800 Subject: [PATCH] 4.2.0 --- .../main/resources/public/static/js/chunk-27eb7616.26efb320.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 sop-website/sop-website-server/src/main/resources/public/static/js/chunk-27eb7616.26efb320.js diff --git a/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-27eb7616.26efb320.js b/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-27eb7616.26efb320.js new file mode 100644 index 00000000..a974e18e --- /dev/null +++ b/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-27eb7616.26efb320.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27eb7616"],{"24af":function(e,t,a){},"456d":function(e,t,a){var l=a("4bf8"),r=a("0d58");a("5eda")("keys",(function(){return function(e){return r(l(e))}}))},"504c":function(e,t,a){var l=a("9e1e"),r=a("0d58"),n=a("6821"),o=a("52a7").f;e.exports=function(e){return function(t){var a,s=n(t),i=r(s),c=i.length,u=0,d=[];while(c>u)a=i[u++],l&&!o.call(s,a)||d.push(e?[a,s[a]]:s[a]);return d}}},"5eda":function(e,t,a){var l=a("5ca1"),r=a("8378"),n=a("79e5");e.exports=function(e,t){var a=(r.Object||{})[e]||Object[e],o={};o[e]=t(a),l(l.S+l.F*n((function(){a(1)})),"Object",o)}},"64e1":function(e,t,a){},8615:function(e,t,a){var l=a("5ca1"),r=a("504c")(!1);l(l.S,"Object",{values:function(e){return r(e)}})},d505:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-container",[a("el-aside",{staticStyle:{"border-right":"1px solid #eee","padding-right":"20px"},attrs:{width:"300px"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:e.docVO.menuProjects.length>0,expression:"docVO.menuProjects.length > 0"}],staticStyle:{"margin-bottom":"10px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"搜索:支持接口名,文档标题",size:"mini",clearable:""},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),e._v(" "),a("el-tree",{ref:"tree",attrs:{data:e.docVO.menuProjects,props:e.defaultProps,"filter-node-method":e.filterNode,"node-key":"id","default-expand-all":"","highlight-current":"","empty-text":"暂无文档"},on:{"current-change":e.onDocSelect}})],1),e._v(" "),a("el-main",{staticStyle:{"padding-top":"0"}},[a("doc-view",{directives:[{name:"show",rawName:"v-show",value:e.item,expression:"item"}],attrs:{item:e.item,"url-prod":e.docVO.urlProd,uri:"/portal/isv/getDocItem"}})],1)],1)],1)},r=[],n=(a("64e1"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",[e._v(e._s(e.docInfo.summary))]),e._v(" "),a("el-table",{attrs:{data:[{methodLabel:"接口名(method)",methodValue:e.docInfo.name,versionLabel:"版本号(version)",versionValue:e.docInfo.version}],border:"","cell-style":e.baseInfoCellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"methodLabel",align:"center",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"api-info"},[e._v(e._s(t.row.methodLabel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"methodValue"}}),e._v(" "),a("el-table-column",{attrs:{prop:"versionLabel",align:"center",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"api-info"},[e._v(e._s(t.row.versionLabel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"versionValue",width:"120"}})],1),e._v(" "),a("h3",[e._v("接口描述")]),e._v(" "),a("div",{staticClass:"doc-overview"},[e._v(e._s(e.docInfo.description||e.docInfo.title))]),e._v(" "),a("h3",[e._v("请求地址")]),e._v(" "),a("el-table",{attrs:{data:[{envLabel:"环境",envValue:"正式环境",urlLabel:"请求地址",urlValue:e.urlProd}],border:"","cell-style":e.baseInfoCellStyle,"show-header":!1}},[a("el-table-column",{attrs:{align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"api-info"},[e._v(e._s(t.row.envLabel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"envValue",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"api-info"},[e._v(e._s(t.row.urlLabel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"urlValue"}})],1),e._v(" "),a("h3",[e._v("请求方法")]),e._v(" "),a("div",{staticClass:"doc-request-method"},[e._v("\n "+e._s(e.docInfo.httpMethodList&&e.docInfo.httpMethodList.join(" / ").toUpperCase())+"\n ")]),e._v(" "),a("h2",[e._v("请求参数")]),e._v(" "),a("h3",[e._v("公共请求参数")]),e._v(" "),a("el-table",{attrs:{data:e.commonParams,"cell-style":e.cellStyleSmall(),"header-cell-style":e.headCellStyleSmall(),border:""}},[a("el-table-column",{attrs:{prop:"name",label:"名称",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"must",label:"必须",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:t.row.must?"danger":""},[e._v(e._s(t.row.must?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"description",label:"描述"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.description)+"\n "),"sign"===t.row.name?a("span",[e._v(",\n "),a("router-link",{attrs:{target:"_blank",to:"/help?id=sign"}},[a("el-button",{attrs:{type:"text"}},[e._v("签名算法介绍")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"example",label:"示例值"}})],1),e._v(" "),a("h3",[e._v("业务请求参数")]),e._v(" "),a("parameter-table",{attrs:{data:e.docInfo.requestParameters}}),e._v(" "),a("h2",[e._v("响应参数")]),e._v(" "),a("h3",[e._v("公共响应参数")]),e._v(" "),a("el-table",{attrs:{data:e.commonResult,"cell-style":e.cellStyleSmall(),"header-cell-style":e.headCellStyleSmall(),border:""}},[a("el-table-column",{attrs:{prop:"name",label:"名称",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"description",label:"描述"}}),e._v(" "),a("el-table-column",{attrs:{prop:"example",label:"示例值"}})],1),e._v(" "),a("h3",[e._v("业务响应参数")]),e._v(" "),a("parameter-table",{attrs:{data:e.docInfo.responseParameters}}),e._v(" "),a("h3",[e._v("响应示例")]),e._v(" "),a("pre",{staticClass:"normal-text"},[e._v(e._s(JSON.stringify(e.responseSuccessExample,null,4)))]),e._v(" "),a("h3",[e._v("错误示例")]),e._v(" "),a("pre",{staticClass:"normal-text"},[e._v(e._s(JSON.stringify(e.responseErrorExample,null,4)))]),e._v(" "),a("h2",[e._v("业务错误码")]),e._v(" "),a("router-link",{attrs:{target:"_blank",to:"/code"}},[a("el-button",{attrs:{type:"text"}},[e._v("公共错误码")])],1),e._v(" "),a("el-table",{attrs:{data:e.docInfo.bizCodeList,border:"","cell-style":e.cellStyleSmall(),"header-cell-style":e.headCellStyleSmall()}},[a("el-table-column",{attrs:{prop:"code",label:"sub_code(错误码)",width:"300"}}),e._v(" "),a("el-table-column",{attrs:{prop:"msg",label:"sub_msg(错误描述)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"solution",label:"解决方案"}})],1)],1)}),o=[],s=(a("a481"),a("8615"),a("ac6a"),a("456d"),a("7f7f"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{attrs:{data:e.data,border:"","row-key":"id","default-expand-all":"","tree-props":{children:"refs",hasChildren:"hasChildren"},"cell-style":e.cellStyleSmall(),"header-cell-style":e.headCellStyleSmall(),"empty-text":"无参数"}},[a("el-table-column",{attrs:{prop:"name",label:"名称",width:"250"}}),e._v(" "),a("el-table-column",{attrs:{prop:"type",label:"类型",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.type))]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:"array"===t.row.type&&t.row.elementType,expression:"scope.row.type === 'array' && scope.row.elementType"}]},[a("el-tooltip",{attrs:{effect:"dark",content:"元素类型:"+t.row.elementType,placement:"top"}},[a("i",{staticClass:"el-icon-info"})])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"required",label:"必须",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:t.row.required?"danger":""},[e._v(e._s(t.row.required?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"maxLength",label:"最大长度"}}),e._v(" "),a("el-table-column",{attrs:{prop:"description",label:"描述"}}),e._v(" "),a("el-table-column",{attrs:{prop:"paramExample",label:"示例值"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.editable?a("div"):a("div",["enum"===t.row.type?a("div",[e._v("\n "+e._s((t.row.enums||[]).join("、"))+"\n ")]):a("div",[e._v("\n "+e._s(t.row.paramExample)+"\n ")])])]}}])})],1)}),i=[],c={name:"ParameterTable",props:{data:{type:Array,default:function(){return[]}},editable:{type:Boolean,default:!1},tree:{type:Boolean,default:!0}}},u=c,d=a("2877"),p=Object(d["a"])(u,s,i,!1,null,null,null),m=p.exports,f={name:"DocView",components:{ParameterTable:m},props:{item:{type:Object,default:function(){}},uri:{type:String,default:""},urlProd:{type:String,default:""}},data:function(){return{active:"info",baseInfoCellStyle:function(e){return 0===e.columnIndex||2===e.columnIndex?{padding:"5px 0",background:"#f5f7fa"}:{padding:"5px 0"}},commonParams:[],commonResult:[],docBaseInfoData:[],docInfo:{summary:"",httpMethodList:[],requestParameters:[],responseParameters:[],bizCodes:[]},responseSuccessExample:{},responseErrorExample:{error_response:{request_id:"0d27836fcac345729176359388aeeb74",code:"40004",msg:"业务处理失败",sub_code:"isv.name-error",sub_msg:"姓名错误"}}}},watch:{item:function(e){this.initItem(e)}},created:function(){var e=this;this.getFile("static/params.json",(function(t){e.commonParams=t.commonParams,e.commonResult=t.commonResult}))},methods:{initItem:function(e){this.setData(e)},setData:function(e){this.docInfo=e,this.createResponseExample(e)},createResponseExample:function(e){var t={},a={request_id:"4b8e7ca9cbcb448491df2f0120e49b9d",code:"10000",msg:"success"};t[this.getResponseNodeName()]=a;var l=this.createExample(e.responseParameters);for(var r in l)a[r]=l[r];this.responseSuccessExample=t},createExample:function(e){for(var t={},a=0;a0){var n=this.createExample(l.refs);r="array"===l.type?[n]:n}else r=l.paramExample;t[l.name]=r}}var o=1===Object.keys(t).length&&this.isArray(Object.values(t)[0]);return o?Object.values(t)[0]:t},getResponseNodeName:function(){var e=this.docInfo.name;return e.replace(/\./g,"_")+"_response"}}},v=f,_=(a("f738"),Object(d["a"])(v,n,o,!1,null,"c361512c",null)),h=_.exports,b={components:{docView:h},data:function(){return{active:"info",docVO:{urlProd:"",urlTest:"",menuProjects:[]},item:null,filterText:"",defaultProps:{children:"children",label:"label"}}},watch:{filterText:function(e){this.$refs.tree.filter(e)}},created:function(){this.loadTree()},methods:{loadTree:function(){this.get("/portal/isv/getDocMenus",{},(function(e){this.docVO=e.data}))},filterNode:function(e,t){return!e||-1!==JSON.stringify(t).indexOf(e)},onDocSelect:function(e,t){this.showDoc(e)},showDoc:function(e){e.id&&this.get("/portal/isv/getDocItem",{id:e.id},(function(e){this.item=e.data}))}}},y=b,w=Object(d["a"])(y,l,r,!1,null,null,null);t["default"]=w.exports},f738:function(e,t,a){"use strict";a("24af")}}]); \ No newline at end of file