|
|
@ -1,6 +1,6 @@
|
|
|
|
class UserControl extends DatasetControl {
|
|
|
|
function newUserControl(doctx = "user") {
|
|
|
|
constructor(conf) {
|
|
|
|
let ctrl = new DatasetControl({
|
|
|
|
super(conf || {
|
|
|
|
doctx: doctx,
|
|
|
|
prefix:"user",
|
|
|
|
prefix:"user",
|
|
|
|
prefixName:"사용자",
|
|
|
|
prefixName:"사용자",
|
|
|
|
infoSize:"xl",
|
|
|
|
infoSize:"xl",
|
|
|
@ -10,27 +10,7 @@ class UserControl extends DatasetControl {
|
|
|
|
REG_DT:datetimeFormat
|
|
|
|
REG_DT:datetimeFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
ctrl.changePassword = async params => {
|
|
|
|
|
|
|
|
|
|
|
|
async selectUser(multiple) {
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url:this.url("/select.do"),
|
|
|
|
|
|
|
|
data:{multiple:multiple},
|
|
|
|
|
|
|
|
success:resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
title:"사용자 선택",
|
|
|
|
|
|
|
|
content:resp,
|
|
|
|
|
|
|
|
size:"xl",
|
|
|
|
|
|
|
|
getData:() => {return getSelectedUser();},
|
|
|
|
|
|
|
|
onOK:(selected) => resolve(selected)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changePassword(params) {
|
|
|
|
|
|
|
|
if (!params) {
|
|
|
|
if (!params) {
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: wctx.url("/user/changePassword.do"),
|
|
|
|
url: wctx.url("/user/changePassword.do"),
|
|
|
@ -52,5 +32,22 @@ class UserControl extends DatasetControl {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return ctrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
async function selectUser(multiple) {
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url:wctx.url("/user/select.do"),
|
|
|
|
|
|
|
|
data:{multiple:multiple},
|
|
|
|
|
|
|
|
success:resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
title:"사용자 선택",
|
|
|
|
|
|
|
|
content:resp,
|
|
|
|
|
|
|
|
getData:() => {return getSelectedUser();},
|
|
|
|
|
|
|
|
onOK:(selected) => resolve(selected)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|