diff --git a/doc/docs/_sidebar.md b/doc/docs/_sidebar.md index 6ba62b4e..28e90257 100644 --- a/doc/docs/_sidebar.md +++ b/doc/docs/_sidebar.md @@ -1,29 +1,29 @@ -* [首页](/?t=1560480225362) +* [首页](/?t=1560912863431) * 开发文档 - * [快速体验](files/10010_快速体验.md?t=1560480225362) - * [项目接入到SOP](files/10011_项目接入到SOP.md?t=1560480225379) - * [新增接口](files/10020_新增接口.md?t=1560480225379) - * [业务参数校验](files/10030_业务参数校验.md?t=1560480225380) - * [错误处理](files/10040_错误处理.md?t=1560480225380) - * [编写文档](files/10041_编写文档.md?t=1560480225380) - * [接口交互详解](files/10050_接口交互详解.md?t=1560480225380) - * [easyopen支持](files/10070_easyopen支持.md?t=1560480225380) - * [使用签名校验工具](files/10080_使用签名校验工具.md?t=1560480225380) - * [ISV管理](files/10085_ISV管理.md?t=1560480225380) - * [自定义路由](files/10086_自定义路由.md?t=1560480225381) - * [路由授权](files/10090_路由授权.md?t=1560480225381) - * [接口限流](files/10092_接口限流.md?t=1560480225381) - * [监控日志](files/10093_监控日志.md?t=1560480225381) - * [SDK开发](files/10095_SDK开发.md?t=1560480225381) - * [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1560480225382) - * [应用授权](files/10097_应用授权.md?t=1560480225382) - * [更改数据节点名称](files/10099_更改数据节点名称.md?t=1560480225382) - * [对接前端](files/10100_对接前端.md?t=1560480225382) - * [自定义过滤器](files/10102_自定义过滤器.md?t=1560480225382) - * [文件上传](files/10104_文件上传.md?t=1560480225382) + * [快速体验](files/10010_快速体验.md?t=1560912863434) + * [项目接入到SOP](files/10011_项目接入到SOP.md?t=1560912863453) + * [新增接口](files/10020_新增接口.md?t=1560912863453) + * [业务参数校验](files/10030_业务参数校验.md?t=1560912863453) + * [错误处理](files/10040_错误处理.md?t=1560912863453) + * [编写文档](files/10041_编写文档.md?t=1560912863453) + * [接口交互详解](files/10050_接口交互详解.md?t=1560912863453) + * [easyopen支持](files/10070_easyopen支持.md?t=1560912863454) + * [使用签名校验工具](files/10080_使用签名校验工具.md?t=1560912863454) + * [ISV管理](files/10085_ISV管理.md?t=1560912863454) + * [自定义路由](files/10086_自定义路由.md?t=1560912863454) + * [路由授权](files/10090_路由授权.md?t=1560912863454) + * [接口限流](files/10092_接口限流.md?t=1560912863454) + * [监控日志](files/10093_监控日志.md?t=1560912863454) + * [SDK开发](files/10095_SDK开发.md?t=1560912863455) + * [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1560912863455) + * [应用授权](files/10097_应用授权.md?t=1560912863455) + * [更改数据节点名称](files/10099_更改数据节点名称.md?t=1560912863455) + * [对接前端](files/10100_对接前端.md?t=1560912863455) + * [自定义过滤器](files/10102_自定义过滤器.md?t=1560912863455) + * [文件上传](files/10104_文件上传.md?t=1560912863455) * 原理分析 - * [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1560480225382) - * [原理分析之路由存储](files/90011_原理分析之路由存储.md?t=1560480225382) - * [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1560480225383) - * [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1560480225383) - * [常见问题](files/90100_常见问题.md?t=1560480225383) + * [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1560912863455) + * [原理分析之路由存储](files/90011_原理分析之路由存储.md?t=1560912863456) + * [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1560912863456) + * [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1560912863456) + * [常见问题](files/90100_常见问题.md?t=1560912863456) diff --git a/doc/docs/files/10090_路由授权.md b/doc/docs/files/10090_路由授权.md index e68c1ec9..017dccc4 100644 --- a/doc/docs/files/10090_路由授权.md +++ b/doc/docs/files/10090_路由授权.md @@ -9,7 +9,7 @@ 假设把路由a,b,c分配给了`VIP角色`,那么具有VIP角色的ISV可以访问a,b,c三个路由。 -默认情况下,接口访问时公开的,ISV都能访问。如果要设置某个接口需要授权,在`@ApiMapping`注解中指定permission=true。 +默认情况下,接口访问时公开的,ISV都能访问。如果要设置某个接口访问权限,在`@ApiMapping`注解中指定permission=true。 如:`@ApiMapping(value = "permission.story.get", permission = true)`。这样该接口是需要经过授权给ISV才能访问的。 重启服务后,登录admin,服务管理-路由列表界面中,操作操作列会出现一个授权按钮,点击出现授权窗口,勾选对应的角色即可完成授权。 diff --git a/sop-gateway/src/main/resources/application-dev.yml b/sop-gateway/src/main/resources/application-dev.yml index cf1679e0..02b73a56 100644 --- a/sop-gateway/src/main/resources/application-dev.yml +++ b/sop-gateway/src/main/resources/application-dev.yml @@ -11,7 +11,7 @@ zuul: Servlet30WrapperFilter: pre: disable: true - # 不用改,如果要改,建议全局替换修改 + # 不用改,如果要改,请全局替换修改 secret: MZZOUSTua6LzApIWXCwEgbBmxSzpzC ribbon: diff --git a/sop-website/website-front/assets/css/global.css b/sop-website/website-front/assets/css/global.css index bf1ba9a9..30358ed4 100644 --- a/sop-website/website-front/assets/css/global.css +++ b/sop-website/website-front/assets/css/global.css @@ -463,4 +463,21 @@ body .site-demo-nav .layui-nav-item{line-height: 40px} } .site-out-up{-webkit-animation-duration: 3s; animation-duration: 3s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-name: site-anim-closeup; animation-name: site-anim-closeup; overflow: hidden;} +.layui-table-input { + display: block; + width: 100%; + padding-left: 10px; + + height: 28px; + line-height: 1.3; + line-height: 38px\9; + border-width: 1px; + border-style: solid; + background-color: #fff; + border-radius: 2px; + border-color: #e6e6e6; +} +.layui-table-cell .layui-input,td .layui-input,th .layui-input { + height: 28px; +} diff --git a/sop-website/website-front/assets/js/inputcache.js b/sop-website/website-front/assets/js/inputcache.js new file mode 100644 index 00000000..50dbdd94 --- /dev/null +++ b/sop-website/website-front/assets/js/inputcache.js @@ -0,0 +1,48 @@ +/** + * 自动保存输入框的值 + * @type {{init: InputCache.init}} + */ +var InputCache = { + init: function () { + var storage = window.localStorage; + if (storage) { + var dataKey = location.host; + + $('body').find('input[type="text"]').unbind().change(function () { + var id = this.id; + if (id) { + var data = getCache(); + data[id] = this.value; + setCache(data); + } + }); + + function getCache() { + var jsonStr = storage.getItem(dataKey); + if (!jsonStr) { + jsonStr = '{}'; + } + return JSON.parse(jsonStr); + } + + function setCache(jsonObj) { + var jsonStr = JSON.stringify(jsonObj); + storage.setItem(dataKey, jsonStr); + } + + // load data + var cache = getCache(); + var docu = document; + + for (var id in cache) { + var dom = docu.getElementById(id); + if (dom) { + var oldVal = dom.value; + var val = cache[id] || oldVal; + dom.value = val; + } + } + } + } +} + diff --git a/sop-website/website-front/assets/lib/layuiext/module/treetable-lay/treetable.js b/sop-website/website-front/assets/lib/layuiext/module/treetable-lay/treetable.js index c95dec07..01c4a7b3 100644 --- a/sop-website/website-front/assets/lib/layuiext/module/treetable-lay/treetable.js +++ b/sop-website/website-front/assets/lib/layuiext/module/treetable-lay/treetable.js @@ -75,10 +75,11 @@ layui.define(['layer', 'table'], function (exports) { count: param.data.length, limit: param.data.length }; - param.cols[0][param.treeColIndex].templet = function (d) { - var mId = d.id; - var mPid = d.pid; - var isDir = d.isParent; + var firstTemplet = param.firstTemplet; + param.cols[0][param.treeColIndex].templet = function (row) { + var mId = row.id; + var mPid = row.pid; + var isDir = row.isParent; var emptyNum = treetable.getEmptyNum(mPid, mData); var iconHtml = ''; for (var i = 0; i < emptyNum; i++) { @@ -92,7 +93,9 @@ layui.define(['layer', 'table'], function (exports) { iconHtml += ' '; var ttype = isDir ? 'dir' : 'file'; var vg = '
' + var field = param.cols[0][param.treeColIndex].field; + var cellVal = firstTemplet ? firstTemplet(row) : row[field]; + return vg + iconHtml + cellVal + '' }; param.done = function (res, curr, count) { diff --git a/sop-website/website-front/pages/doc/auth.html b/sop-website/website-front/pages/doc/auth.html index e3ef0fe5..429a7ade 100644 --- a/sop-website/website-front/pages/doc/auth.html +++ b/sop-website/website-front/pages/doc/auth.html @@ -59,7 +59,7 @@