mirror of https://gitee.com/stylefeng/guns
【user】【organization】BUG修复,删除js控制台log
parent
b12701e9b5
commit
df7cd394e7
|
@ -51,7 +51,6 @@ layui.use(['table', 'HttpRequest'], function () {
|
||||||
}, function (data) {
|
}, function (data) {
|
||||||
Feng.error(data.message + "!");
|
Feng.error(data.message + "!");
|
||||||
});
|
});
|
||||||
console.log(data)
|
|
||||||
httpRequest.set('token', data.token);
|
httpRequest.set('token', data.token);
|
||||||
httpRequest.start(true);
|
httpRequest.start(true);
|
||||||
};
|
};
|
||||||
|
|
|
@ -33,7 +33,6 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'HttpRequest',
|
||||||
|
|
||||||
// 选择部门时
|
// 选择部门时
|
||||||
Organization.onClickDept = function (obj) {
|
Organization.onClickDept = function (obj) {
|
||||||
console.log(obj);
|
|
||||||
Organization.condition.orgParentId = obj.data.id;
|
Organization.condition.orgParentId = obj.data.id;
|
||||||
Organization.search();
|
Organization.search();
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,10 +14,11 @@ layui.use(['form', 'admin', 'HttpRequest', 'xmSelect'], function () {
|
||||||
|
|
||||||
// 初始化组织树
|
// 初始化组织树
|
||||||
new HttpRequest(Feng.ctxPath + "/hrOrganization/treeLayui", 'get', function (data) {
|
new HttpRequest(Feng.ctxPath + "/hrOrganization/treeLayui", 'get', function (data) {
|
||||||
|
console.log(result.data);
|
||||||
organizationXmSel = xmSelect.render({
|
organizationXmSel = xmSelect.render({
|
||||||
el: '#organization',
|
el: '#organization',
|
||||||
data: data.data,
|
data: data.data,
|
||||||
initValue: [result.data.orgId],
|
initValue: [result.data.orgParentId],
|
||||||
layVerify: 'required',
|
layVerify: 'required',
|
||||||
model: {label: {type: 'text'}},
|
model: {label: {type: 'text'}},
|
||||||
prop: {name: 'title', value: 'id'},
|
prop: {name: 'title', value: 'id'},
|
||||||
|
|
|
@ -45,7 +45,6 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'HttpRequest',
|
||||||
* 选择部门时
|
* 选择部门时
|
||||||
*/
|
*/
|
||||||
MgrUser.onClickDept = function (obj) {
|
MgrUser.onClickDept = function (obj) {
|
||||||
console.log(obj);
|
|
||||||
MgrUser.condition.orgId = obj.data.id;
|
MgrUser.condition.orgId = obj.data.id;
|
||||||
MgrUser.search();
|
MgrUser.search();
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
var result = request.start();
|
var result = request.start();
|
||||||
form.val('userForm', result.data);
|
form.val('userForm', result.data);
|
||||||
|
|
||||||
console.log(result.data.grantRoleIdList);
|
|
||||||
// 初始化角色
|
// 初始化角色
|
||||||
new HttpRequest(Feng.ctxPath + "/sysRole/dropDown", 'get', function (data) {
|
new HttpRequest(Feng.ctxPath + "/sysRole/dropDown", 'get', function (data) {
|
||||||
roleXmSel = xmSelect.render({
|
roleXmSel = xmSelect.render({
|
||||||
|
@ -27,7 +26,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
// 表单提交事件
|
// 表单提交事件
|
||||||
form.on('submit(btnSubmit)', function (data) {
|
form.on('submit(btnSubmit)', function (data) {
|
||||||
// 角色ids
|
// 角色ids
|
||||||
console.log(Feng.getUrlParam("userId"));
|
|
||||||
data.field.grantRoleIdList = roleXmSel.getValue('value');
|
data.field.grantRoleIdList = roleXmSel.getValue('value');
|
||||||
data.field.userId = Feng.getUrlParam("userId");
|
data.field.userId = Feng.getUrlParam("userId");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue