pull/1/head
tanghc 5 years ago
parent 3446a32bdf
commit 45f3eb8f89
  1. 61
      doc/docs/_sidebar.md
  2. 23
      doc/docs/files/10086_自定义路由.md
  3. 2
      sop-admin/sop-admin-server/src/main/resources/public/index.html
  4. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/css/app.c6dfb7ee.css
  5. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/css/chunk-2c1f2e8f.0314067f.css
  6. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/css/chunk-4de1c2b6.a37cd815.css
  7. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/css/chunk-c3ce42fe.6b789903.css
  8. 1
      sop-admin/sop-admin-server/src/main/resources/public/static/js/app.4f45e42d.js
  9. 1
      sop-admin/sop-admin-server/src/main/resources/public/static/js/app.872b3cd0.js
  10. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-25908fca.786892d9.js
  11. 10
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-2c1f2e8f.019801bd.js
  12. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-2d2085ef.2e46d1f4.js
  13. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-2d221c34.0db10350.js
  14. 1
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-37401378.4e39ec9b.js
  15. 2
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-4de1c2b6.0188bd8f.js
  16. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-510c5a69.c3dd05bb.js
  17. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-6f78c9fe.bec8af48.js
  18. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-73b2dcec.2a5ee7b8.js
  19. 1
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-9b31c83a.50cacf29.js
  20. 1
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-9b31c83a.9f4ebfeb.js
  21. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-9f479afe.6b795525.js
  22. 1
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-c3ce42fe.77fc6cc5.js
  23. 20
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-ea2e58a4.f3f85b0e.js
  24. 0
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-elementUI.298ac98c.js
  25. 18
      sop-admin/sop-admin-server/src/main/resources/public/static/js/chunk-libs.75deb05f.js
  26. 31
      sop-admin/sop-admin-vue/src/views/service/route.vue

@ -1,33 +1,32 @@
* [首页](/?t=1566526912523) * [首页](/?t=1566794701229)
* 开发文档 * 开发文档
* [快速体验](files/10010_快速体验.md?t=1566526912526) * [快速体验](files/10010_快速体验.md?t=1566794701233)
* [项目接入到SOP](files/10011_项目接入到SOP.md?t=1566526912545) * [项目接入到SOP](files/10011_项目接入到SOP.md?t=1566794701264)
* [新增接口](files/10020_新增接口.md?t=1566526912546) * [新增接口](files/10020_新增接口.md?t=1566794701265)
* [开发流程](files/10021_开发流程.md?t=1566526912546) * [开发流程](files/10021_开发流程.md?t=1566794701265)
* [业务参数校验](files/10030_业务参数校验.md?t=1566526912546) * [业务参数校验](files/10030_业务参数校验.md?t=1566794701265)
* [错误处理](files/10040_错误处理.md?t=1566526912546) * [错误处理](files/10040_错误处理.md?t=1566794701265)
* [编写文档](files/10041_编写文档.md?t=1566526912546) * [编写文档](files/10041_编写文档.md?t=1566794701265)
* [接口交互详解](files/10050_接口交互详解.md?t=1566526912546) * [接口交互详解](files/10050_接口交互详解.md?t=1566794701265)
* [easyopen支持](files/10070_easyopen支持.md?t=1566526912546) * [easyopen支持](files/10070_easyopen支持.md?t=1566794701265)
* [使用签名校验工具](files/10080_使用签名校验工具.md?t=1566526912546) * [使用签名校验工具](files/10080_使用签名校验工具.md?t=1566794701266)
* [ISV管理](files/10085_ISV管理.md?t=1566526912547) * [ISV管理](files/10085_ISV管理.md?t=1566794701266)
* [自定义路由](files/10086_自定义路由.md?t=1566526912547) * [自定义返回结果](files/10087_自定义返回结果.md?t=1566794701266)
* [自定义返回结果](files/10087_自定义返回结果.md?t=1566526912547) * [自定义过滤器](files/10088_自定义过滤器.md?t=1566794701266)
* [自定义过滤器](files/10088_自定义过滤器.md?t=1566526912547) * [路由授权](files/10090_路由授权.md?t=1566794701266)
* [路由授权](files/10090_路由授权.md?t=1566526912547) * [接口限流](files/10092_接口限流.md?t=1566794701266)
* [接口限流](files/10092_接口限流.md?t=1566526912547) * [监控日志](files/10093_监控日志.md?t=1566794701266)
* [监控日志](files/10093_监控日志.md?t=1566526912547) * [SDK开发](files/10095_SDK开发.md?t=1566794701266)
* [SDK开发](files/10095_SDK开发.md?t=1566526912547) * [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1566794701267)
* [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1566526912548) * [应用授权](files/10097_应用授权.md?t=1566794701267)
* [应用授权](files/10097_应用授权.md?t=1566526912548) * [传统web开发](files/10100_传统web开发.md?t=1566794701267)
* [传统web开发](files/10100_传统web开发.md?t=1566526912548) * [文件上传](files/10104_文件上传.md?t=1566794701270)
* [文件上传](files/10104_文件上传.md?t=1566526912548) * [配置Sleuth链路追踪](files/10109_配置Sleuth链路追踪.md?t=1566794701270)
* [配置Sleuth链路追踪](files/10109_配置Sleuth链路追踪.md?t=1566526912548) * [预发布灰度发布](files/10110_预发布灰度发布.md?t=1566794701270)
* [预发布灰度发布](files/10110_预发布灰度发布.md?t=1566526912548) * [动态修改请求参数](files/10111_动态修改请求参数.md?t=1566794701270)
* [动态修改请求参数](files/10111_动态修改请求参数.md?t=1566526912548)
* 原理分析 * 原理分析
* [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1566526912548) * [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1566794701270)
* [原理分析之如何存储路由](files/90011_原理分析之如何存储路由.md?t=1566526912548) * [原理分析之如何存储路由](files/90011_原理分析之如何存储路由.md?t=1566794701270)
* [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1566526912549) * [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1566794701270)
* [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1566526912549) * [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1566794701270)
* [常见问题](files/90100_常见问题.md?t=1566526912549) * [常见问题](files/90100_常见问题.md?t=1566794701270)

@ -1,23 +0,0 @@
# 自定义路由
假设有一个非java开发的接口,比如php开发的接口,然后需要接入到SOP,使用接口名版本号进行路由跳转。
操作方式如下:
- 登录sop-admin,服务管理--路由管理
- 新建一个自定义服务:`php-service`
![新建一个自定义服务](images/10086_1.png "10086_1.png")
- 选中php-service,新建一个路由,输入接口名、版本号、uri
![新建一个路由](images/10086_2.png "10086_2.png")
- 请求网关
`http://localhost:8081/api?method=php.goods.list&version=1.0`会跳转到`http://www.xxx.com/api/listGoods.php`
注意:
- php接口返回数据必须是json格式,返回其它内容可能会调用失败
- 只有自定义服务、路由可以删除

@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>SOP Admin</title><link href=static/css/chunk-elementUI.81cf475c.css rel=stylesheet><link href=static/css/chunk-libs.3dfb7769.css rel=stylesheet><link href=static/css/app.4f0872ef.css rel=stylesheet></head><body><noscript><strong>We're sorry but SOP Admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script>(function(e){function n(n){for(var r,c,o=n[0],f=n[1],i=n[2],l=0,h=[];l<o.length;l++)c=o[l],u[c]&&h.push(u[c][0]),u[c]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);d&&d(n);while(h.length)h.shift()();return a.push.apply(a,i||[]),t()}function t(){for(var e,n=0;n<a.length;n++){for(var t=a[n],r=!0,c=1;c<t.length;c++){var o=t[c];0!==u[o]&&(r=!1)}r&&(a.splice(n--,1),e=f(f.s=t[0]))}return e}var r={},c={runtime:0},u={runtime:0},a=[];function o(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-238a81e9":"5955f13d","chunk-25908fca":"b2f0b665","chunk-2d2085ef":"7c741493","chunk-2d221c34":"c8ef105a","chunk-37401378":"4e39ec9b","chunk-510c5a69":"93406082","chunk-6f78c9fe":"f1ed64fa","chunk-73b2dcec":"14f248eb","chunk-9b31c83a":"50cacf29","chunk-9f479afe":"c1cbb02b","chunk-ea2e58a4":"f3f85b0e"}[e]+".js"}function f(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var n=[],t={"chunk-238a81e9":1,"chunk-25908fca":1,"chunk-37401378":1,"chunk-510c5a69":1,"chunk-73b2dcec":1,"chunk-9b31c83a":1,"chunk-ea2e58a4":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise(function(n,t){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-238a81e9":"e8e2beee","chunk-25908fca":"89ab33e8","chunk-2d2085ef":"31d6cfe0","chunk-2d221c34":"31d6cfe0","chunk-37401378":"a43114f3","chunk-510c5a69":"5e48e29a","chunk-6f78c9fe":"31d6cfe0","chunk-73b2dcec":"99cf6327","chunk-9b31c83a":"3b12267b","chunk-9f479afe":"31d6cfe0","chunk-ea2e58a4":"d10599db"}[e]+".css",u=f.p+r,a=document.getElementsByTagName("link"),o=0;o<a.length;o++){var i=a[o],l=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(l===r||l===u))return n()}var h=document.getElementsByTagName("style");for(o=0;o<h.length;o++){i=h[o],l=i.getAttribute("data-href");if(l===r||l===u)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var r=n&&n.target&&n.target.src||u,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete c[e],d.parentNode.removeChild(d),t(a)},d.href=u;var s=document.getElementsByTagName("head")[0];s.appendChild(d)}).then(function(){c[e]=0}));var r=u[e];if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(function(n,t){r=u[e]=[n,t]});n.push(r[2]=a);var i,l=document.createElement("script");l.charset="utf-8",l.timeout=120,f.nc&&l.setAttribute("nonce",f.nc),l.src=o(e),i=function(n){l.onerror=l.onload=null,clearTimeout(h);var t=u[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,a=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");a.type=r,a.request=c,t[1](a)}u[e]=void 0}};var h=setTimeout(function(){i({type:"timeout",target:l})},12e4);l.onerror=l.onload=i,document.head.appendChild(l)}return Promise.all(n)},f.m=e,f.c=r,f.d=function(e,n,t){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)f.d(t,r,function(n){return e[n]}.bind(null,r));return t},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="",f.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=n,i=i.slice();for(var h=0;h<i.length;h++)n(i[h]);var d=l;t()})([]);</script><script src=static/js/chunk-elementUI.8ebdfbab.js></script><script src=static/js/chunk-libs.9cf9cc40.js></script><script src=static/js/app.4f45e42d.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>SOP Admin</title><link href=static/css/chunk-elementUI.81cf475c.css rel=stylesheet><link href=static/css/chunk-libs.3dfb7769.css rel=stylesheet><link href=static/css/app.c6dfb7ee.css rel=stylesheet></head><body><noscript><strong>We're sorry but SOP Admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script>(function(e){function n(n){for(var r,c,a=n[0],f=n[1],i=n[2],d=0,l=[];d<a.length;d++)c=a[d],u[c]&&l.push(u[c][0]),u[c]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);h&&h(n);while(l.length)l.shift()();return o.push.apply(o,i||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,c=1;c<t.length;c++){var a=t[c];0!==u[a]&&(r=!1)}r&&(o.splice(n--,1),e=f(f.s=t[0]))}return e}var r={},c={runtime:0},u={runtime:0},o=[];function a(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-25908fca":"786892d9","chunk-2c1f2e8f":"019801bd","chunk-2d2085ef":"2e46d1f4","chunk-2d221c34":"0db10350","chunk-4de1c2b6":"0188bd8f","chunk-510c5a69":"c3dd05bb","chunk-6f78c9fe":"bec8af48","chunk-73b2dcec":"2a5ee7b8","chunk-9b31c83a":"9f4ebfeb","chunk-9f479afe":"6b795525","chunk-c3ce42fe":"77fc6cc5"}[e]+".js"}function f(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var n=[],t={"chunk-25908fca":1,"chunk-2c1f2e8f":1,"chunk-4de1c2b6":1,"chunk-510c5a69":1,"chunk-73b2dcec":1,"chunk-9b31c83a":1,"chunk-c3ce42fe":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise(function(n,t){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-25908fca":"89ab33e8","chunk-2c1f2e8f":"0314067f","chunk-2d2085ef":"31d6cfe0","chunk-2d221c34":"31d6cfe0","chunk-4de1c2b6":"a37cd815","chunk-510c5a69":"5e48e29a","chunk-6f78c9fe":"31d6cfe0","chunk-73b2dcec":"99cf6327","chunk-9b31c83a":"3b12267b","chunk-9f479afe":"31d6cfe0","chunk-c3ce42fe":"6b789903"}[e]+".css",u=f.p+r,o=document.getElementsByTagName("link"),a=0;a<o.length;a++){var i=o[a],d=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(d===r||d===u))return n()}var l=document.getElementsByTagName("style");for(a=0;a<l.length;a++){i=l[a],d=i.getAttribute("data-href");if(d===r||d===u)return n()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=n,h.onerror=function(n){var r=n&&n.target&&n.target.src||u,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete c[e],h.parentNode.removeChild(h),t(o)},h.href=u;var s=document.getElementsByTagName("head")[0];s.appendChild(h)}).then(function(){c[e]=0}));var r=u[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(function(n,t){r=u[e]=[n,t]});n.push(r[2]=o);var i,d=document.createElement("script");d.charset="utf-8",d.timeout=120,f.nc&&d.setAttribute("nonce",f.nc),d.src=a(e),i=function(n){d.onerror=d.onload=null,clearTimeout(l);var t=u[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,o=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");o.type=r,o.request=c,t[1](o)}u[e]=void 0}};var l=setTimeout(function(){i({type:"timeout",target:d})},12e4);d.onerror=d.onload=i,document.head.appendChild(d)}return Promise.all(n)},f.m=e,f.c=r,f.d=function(e,n,t){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)f.d(t,r,function(n){return e[n]}.bind(null,r));return t},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="",f.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],d=i.push.bind(i);i.push=n,i=i.slice();for(var l=0;l<i.length;l++)n(i[l]);var h=d;t()})([]);</script><script src=static/js/chunk-elementUI.298ac98c.js></script><script src=static/js/chunk-libs.75deb05f.js></script><script src=static/js/app.872b3cd0.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37401378"],{5040:function(t,n,a){"use strict";var e=a("a5a4"),s=a.n(e);s.a},9406:function(t,n,a){"use strict";a.r(n);var e=function(){var t=this,n=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"dashboard-container"},[a("div",{staticClass:"dashboard-text"},[t._v("欢迎使用SOP Admin")])])}],i={created:function(){this.post("admin.userinfo.get",{},function(t){})}},c=i,r=(a("5040"),a("2877")),o=Object(r["a"])(c,e,s,!1,null,"b4bd5162",null);n["default"]=o.exports},a5a4:function(t,n,a){}}]);

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-238a81e9"],{"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("97ef"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"c095f994",null);s["default"]=r.exports},"97ef":function(t,s,a){"use strict";var e=a("b51e"),c=a.n(e);c.a},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},b51e:function(t,s,a){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4de1c2b6"],{"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("97ef"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"c095f994",null);s["default"]=r.exports},"97ef":function(t,s,a){"use strict";var e=a("d3f45"),c=a.n(e);c.a},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},d3f45:function(t,s,a){}}]);

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3ce42fe"],{5040:function(t,n,e){"use strict";var c=e("585b"),s=e.n(c);s.a},"585b":function(t,n,e){},9406:function(t,n,e){"use strict";e.r(n);var c=function(){var t=this,n=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"dashboard-container"},[e("div",{staticClass:"dashboard-text"},[t._v("欢迎使用SOP Admin")])])}],a={created:function(){this.post("admin.userinfo.get",{},function(t){})}},i=a,r=(e("5040"),e("2877")),o=Object(r["a"])(i,c,s,!1,null,"b4bd5162",null);n["default"]=o.exports}}]);

@ -93,7 +93,7 @@
<el-table-column <el-table-column
prop="roles" prop="roles"
label="访问权限" label="访问权限"
width="100" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-html="roleRender(scope.row)"></span> <span v-html="roleRender(scope.row)"></span>
@ -105,7 +105,7 @@
width="80" width="80"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.ignoreValidate === 0" style="color:#67C23A">校验</span> <span v-if="scope.row.ignoreValidate === 0">校验</span>
<span v-if="scope.row.ignoreValidate === 1" style="color:#E6A23C">不校验</span> <span v-if="scope.row.ignoreValidate === 1" style="color:#E6A23C">不校验</span>
</template> </template>
</el-table-column> </el-table-column>
@ -115,7 +115,7 @@
width="120" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.mergeResult === 1" style="color:#67C23A"></span> <span v-if="scope.row.mergeResult === 1"></span>
<span v-if="scope.row.mergeResult === 0" style="color:#E6A23C"></span> <span v-if="scope.row.mergeResult === 0" style="color:#E6A23C"></span>
</template> </template>
</el-table-column> </el-table-column>
@ -154,33 +154,18 @@
ref="routeDialogFormRef" ref="routeDialogFormRef"
:model="routeDialogFormData" :model="routeDialogFormData"
:rules="routeDialogFormRules" :rules="routeDialogFormRules"
label-width="120px" label-width="180px"
size="mini" size="mini"
> >
<el-input v-show="false" v-model="routeDialogFormData.id" /> <el-input v-show="false" v-model="routeDialogFormData.id" />
<el-form-item label="接口名" prop="name"> <el-form-item label="接口名 (版本号)">
<el-input v-model="routeDialogFormData.name" placeholder="接口名,如:product.goods.list" :disabled="Boolean(routeDialogFormData.id)" /> {{ routeDialogFormData.name + (routeDialogFormData.version ? ' (' + routeDialogFormData.version + ')' : '') }}
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input v-model="routeDialogFormData.version" placeholder="版本号,如:1.0" :disabled="Boolean(routeDialogFormData.id)" />
</el-form-item>
<el-form-item label="uri" prop="uri">
<el-input v-model="routeDialogFormData.uri" placeholder="如:http://www.xx.com" :disabled="routePropDisabled()" />
</el-form-item>
<el-form-item label="path" prop="path">
<el-input v-model="routeDialogFormData.path" placeholder="如:/order/list" :disabled="routePropDisabled()" />
</el-form-item> </el-form-item>
<el-form-item label="签名校验"> <el-form-item label="签名校验">
<el-radio-group v-model="routeDialogFormData.ignoreValidate" :disabled="routePropDisabled()"> {{ routeDialogFormData.ignoreValidate ? '不校验' : '校验' }}
<el-radio :label="0" name="ignoreValidate">校验</el-radio>
<el-radio :label="1" name="ignoreValidate">不校验</el-radio>
</el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="统一格式输出"> <el-form-item label="统一格式输出">
<el-radio-group v-model="routeDialogFormData.mergeResult" :disabled="routePropDisabled()"> {{ routeDialogFormData.mergeResult === 1 ? '是' : '否' }}
<el-radio :label="1" name="mergeResult"></el-radio>
<el-radio :label="0" name="mergeResult"></el-radio>
</el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="状态"> <el-form-item label="状态">
<el-radio-group v-model="routeDialogFormData.status"> <el-radio-group v-model="routeDialogFormData.status">

Loading…
Cancel
Save