diff --git a/README-zh.md b/README-zh.md index e472d1d6..9e111c1e 100644 --- a/README-zh.md +++ b/README-zh.md @@ -5,3 +5,6 @@ npm install # 启动服务 npm run dev +# v1.9.0修改 +1. 角色修改,全局userId实际意义修改为userRoleId(用户角色id),新增identityUserId(新的用户id) + diff --git a/public/index.html b/public/index.html index 0c22a84a..8703f504 100644 --- a/public/index.html +++ b/public/index.html @@ -30,7 +30,6 @@ <% } else { %> \ No newline at end of file diff --git a/src/const/check/index.js b/src/const/check/index.js index 8b2ea225..f19bc6c2 100644 --- a/src/const/check/index.js +++ b/src/const/check/index.js @@ -1,6 +1,5 @@ import { SubjectCheckConfig } from './module/Subject' -console.log(SubjectCheckConfig.moduleType) export const checkConfig = { ModuleType: { ...SubjectCheckConfig.ModuleType diff --git a/src/directive/dialogDrag.js b/src/directive/dialogDrag.js index 460884d6..c798679c 100644 --- a/src/directive/dialogDrag.js +++ b/src/directive/dialogDrag.js @@ -10,7 +10,7 @@ const dialogDrag = Vue.directive('dialogDrag', { dragDom.style.cssText += ';top:0px;' // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null); - const sty = (function() { + const sty = (function () { if (window.document.currentStyle) { return (dom, attr) => dom.currentStyle[attr] } else { @@ -47,8 +47,10 @@ const dialogDrag = Vue.directive('dialogDrag', { styL = +styL.replace(/\px/g, '') styT = +styT.replace(/\px/g, '') } + const oldMousemove = document.onmousemove - document.onmousemove = function(e) { + document.onmousemove = function (e) { + oldMousemove(e) // 通过事件委托,计算移动的距离 let left = e.clientX - disX const top = e.clientY - disY @@ -70,8 +72,8 @@ const dialogDrag = Vue.directive('dialogDrag', { dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;` } - document.onmouseup = function(e) { - document.onmousemove = null + document.onmouseup = function (e) { + document.onmousemove = oldMousemove document.onmouseup = null } } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d8a1ad17..9268d926 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -14,13 +14,13 @@
diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index 7b98223b..64b8dd60 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -5,24 +5,38 @@ :model="user" :rules="userFormRules" label-width="150px" - style="width:800px;" + style="width: 800px" >