From df7cd394e7841ef4471f462ffb853defac5da95c Mon Sep 17 00:00:00 2001 From: chenjinlong <$chenjinlong> Date: Tue, 12 Jan 2021 23:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90user=E3=80=91=E3=80=90organization?= =?UTF-8?q?=E3=80=91BUG=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=88=A0=E9=99=A4js?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/assets/modular/system/onlineUser/online_user.js | 1 - .../webapp/assets/modular/system/organization/organization.js | 1 - .../assets/modular/system/organization/organization_edit.js | 3 ++- src/main/webapp/assets/modular/system/user/user.js | 1 - src/main/webapp/assets/modular/system/user/user_role.js | 2 -- 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/assets/modular/system/onlineUser/online_user.js b/src/main/webapp/assets/modular/system/onlineUser/online_user.js index 5f1a41f2..21fe59cb 100644 --- a/src/main/webapp/assets/modular/system/onlineUser/online_user.js +++ b/src/main/webapp/assets/modular/system/onlineUser/online_user.js @@ -51,7 +51,6 @@ layui.use(['table', 'HttpRequest'], function () { }, function (data) { Feng.error(data.message + "!"); }); - console.log(data) httpRequest.set('token', data.token); httpRequest.start(true); }; diff --git a/src/main/webapp/assets/modular/system/organization/organization.js b/src/main/webapp/assets/modular/system/organization/organization.js index de91700f..4dfa9cf2 100644 --- a/src/main/webapp/assets/modular/system/organization/organization.js +++ b/src/main/webapp/assets/modular/system/organization/organization.js @@ -33,7 +33,6 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'HttpRequest', // 选择部门时 Organization.onClickDept = function (obj) { - console.log(obj); Organization.condition.orgParentId = obj.data.id; Organization.search(); }; diff --git a/src/main/webapp/assets/modular/system/organization/organization_edit.js b/src/main/webapp/assets/modular/system/organization/organization_edit.js index 3a55c222..aef0c5eb 100644 --- a/src/main/webapp/assets/modular/system/organization/organization_edit.js +++ b/src/main/webapp/assets/modular/system/organization/organization_edit.js @@ -14,10 +14,11 @@ layui.use(['form', 'admin', 'HttpRequest', 'xmSelect'], function () { // 初始化组织树 new HttpRequest(Feng.ctxPath + "/hrOrganization/treeLayui", 'get', function (data) { + console.log(result.data); organizationXmSel = xmSelect.render({ el: '#organization', data: data.data, - initValue: [result.data.orgId], + initValue: [result.data.orgParentId], layVerify: 'required', model: {label: {type: 'text'}}, prop: {name: 'title', value: 'id'}, diff --git a/src/main/webapp/assets/modular/system/user/user.js b/src/main/webapp/assets/modular/system/user/user.js index a8ecf7e6..6a693935 100644 --- a/src/main/webapp/assets/modular/system/user/user.js +++ b/src/main/webapp/assets/modular/system/user/user.js @@ -45,7 +45,6 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'HttpRequest', * 选择部门时 */ MgrUser.onClickDept = function (obj) { - console.log(obj); MgrUser.condition.orgId = obj.data.id; MgrUser.search(); }; diff --git a/src/main/webapp/assets/modular/system/user/user_role.js b/src/main/webapp/assets/modular/system/user/user_role.js index 99ad13d4..d72a745f 100644 --- a/src/main/webapp/assets/modular/system/user/user_role.js +++ b/src/main/webapp/assets/modular/system/user/user_role.js @@ -11,7 +11,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func var result = request.start(); form.val('userForm', result.data); - console.log(result.data.grantRoleIdList); // 初始化角色 new HttpRequest(Feng.ctxPath + "/sysRole/dropDown", 'get', function (data) { roleXmSel = xmSelect.render({ @@ -27,7 +26,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func // 表单提交事件 form.on('submit(btnSubmit)', function (data) { // 角色ids - console.log(Feng.getUrlParam("userId")); data.field.grantRoleIdList = roleXmSel.getValue('value'); data.field.userId = Feng.getUrlParam("userId");