You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
799 lines
28 KiB
799 lines
28 KiB
var e = BI.inherit(BI.Widget, { |
|
props: { |
|
baseCls: "dec-edit-user-popup", |
|
onClickConfirm: BI.emptyFn, |
|
info: {}, |
|
roleEditable: !0, |
|
passwordEditable: !0 |
|
}, |
|
_store: function () { |
|
return BI.Models.getModel("dec.model.user.edit.popup", this.options) |
|
}, |
|
watch: { |
|
ableCopy: function (e) { |
|
this.resetPasswordBtn.setEnable(!e) |
|
// this.copyBtn.setEnable(e) |
|
}, |
|
password: function (e) { |
|
this.resetPasswordBtn.setText(e ? "生成成功" : BI.i18nText("Dec-Reset_Password_Button")) |
|
} |
|
}, |
|
render: function () { |
|
var e = this; |
|
return { |
|
type: "bi.vtape", |
|
items: [{ |
|
el: this._rebuildCenter() |
|
}, { |
|
type: "bi.right_vertical_adapt", |
|
lgap: 10, |
|
height: 44, |
|
items: [{ |
|
type: "bi.button", |
|
text: BI.i18nText("Dec-Basic_Cancel"), |
|
level: "ignore", |
|
handler: function () { |
|
e._close() |
|
} |
|
}, { |
|
type: "bi.button", |
|
text: BI.i18nText("Dec-Basic_Sure"), |
|
handler: function () { |
|
e._end() |
|
} |
|
} |
|
] |
|
} |
|
] |
|
} |
|
}, |
|
_rebuildCenter: function () { |
|
var t = this, |
|
e = this.options.info; |
|
return { |
|
type: "bi.form", |
|
cls: "dec-add-user-popup", |
|
layouts: [{ |
|
type: "bi.vertical", |
|
bgap: 15 |
|
} |
|
], |
|
ref: function (e) { |
|
t.form = e |
|
}, |
|
items: [{ |
|
type: "bi.htape", |
|
cls: "bi-tips", |
|
height: 36, |
|
items: [{ |
|
type: "bi.label", |
|
textAlign: "left", |
|
text: BI.i18nText("Dec-Basic_Tip") + ":", |
|
height: 24, |
|
width: 40 |
|
}, { |
|
type: "bi.label", |
|
whiteSpace: "normal", |
|
textAlign: "left", |
|
text: BI.i18nText("Dec-Add_User_Tips") |
|
} |
|
] |
|
}, { |
|
label: { |
|
type: "bi.label", |
|
width: 80, |
|
textAlign: "left", |
|
text: BI.i18nText("Dec-User_Name") |
|
}, |
|
el: { |
|
type: "bi.label", |
|
cls: "bi-border", |
|
width: 428, |
|
height: 22, |
|
value: e.username, |
|
textAlign: "left", |
|
lgap: 4, |
|
disabled: !0 |
|
} |
|
}, { |
|
type: "dec.form.editor", |
|
$value: "real-name", |
|
textWidth: 80, |
|
editorWidth: 430, |
|
text: BI.i18nText("Dec-Real_Name"), |
|
watermark: BI.i18nText("Dec-Real_Name"), |
|
value: e.realName, |
|
rules: { |
|
required: { |
|
message: BI.i18nText("Dec-Real_Name_Can_Not_Null") |
|
}, |
|
max: DecCst.STRING_SHORT_TEXT_LENGTH |
|
}, |
|
ref: function (e) { |
|
t.realName = e |
|
} |
|
}, |
|
|
|
|
|
|
|
{ |
|
type: "bi.vertical_adapt", |
|
invisible: !this.options.passwordEditable, |
|
items: [ |
|
{ |
|
type: "bi.label", |
|
textAlign: "left", |
|
width: 80, |
|
text: BI.i18nText("Dec-Reset_Password"), |
|
title: BI.i18nText("Dec-Reset_Password") |
|
}, { |
|
type: "bi.form.error.item", |
|
width: 430, |
|
el: { |
|
type: "bi.button", |
|
$value: "reset-pwd", |
|
text: BI.i18nText("Dec-Reset_Password_Button"), |
|
handler: function () { |
|
t.resetPasswordRow.hideError(), |
|
t.store.genPassword(t._generatePassword()) |
|
}, |
|
ref: function (e) { |
|
t.resetPasswordBtn = e |
|
} |
|
}, |
|
ref: function (e) { |
|
t.resetPasswordRow = e |
|
} |
|
}, |
|
// { |
|
// type: "bi.clipboard", |
|
// width: 80, |
|
// height: 24, |
|
// disabled: !this.model.ableCopy, |
|
// el: { |
|
// type: "bi.button", |
|
// clear: !0, |
|
// level: "ignore", |
|
// text: BI.i18nText("Dec-Copy_Password"), |
|
// tipType: "success", |
|
// title: BI.i18nText("Dec-Copy_Password"), |
|
// handler: function () { |
|
// BI.Msg.toast(BI.i18nText("Dec-Basic_Copy_Success"), { |
|
// level: "success" |
|
// }) |
|
// } |
|
// }, |
|
// copy: function () { |
|
// return t.model.password |
|
// }, |
|
// ref: function (e) { |
|
// t.copyBtn = e |
|
// } |
|
// } |
|
] |
|
}, |
|
|
|
{ |
|
type: "dec.form.editor", |
|
$value: "email", |
|
textWidth: 80, |
|
editorWidth: 430, |
|
text: BI.i18nText("Dec-User_Email"), |
|
watermark: BI.i18nText("Dec-User_Email"), |
|
value: e.email, |
|
rules: { |
|
email: !0 |
|
}, |
|
ref: function (e) { |
|
t.email = e |
|
} |
|
}, { |
|
type: "dec.form.editor", |
|
$value: "mobile", |
|
textWidth: 80, |
|
editorWidth: 430, |
|
text: BI.i18nText("Dec-User_Mobile"), |
|
watermark: BI.i18nText("Dec-User_Mobile"), |
|
value: e.mobile, |
|
rules: { |
|
phone: !0 |
|
}, |
|
ref: function (e) { |
|
t.mobile = e |
|
} |
|
}, { |
|
type: "bi.vertical", |
|
items: [{ |
|
type: "bi.vertical_adapt", |
|
items: [{ |
|
type: "bi.label", |
|
textAlign: "left", |
|
width: 80, |
|
text: BI.i18nText("Dec-Role") |
|
}, { |
|
type: "dec.select.role.combo", |
|
ref: function (e) { |
|
t.role = e |
|
}, |
|
disabled: !this.options.roleEditable, |
|
width: 430, |
|
roleNames: e.roleNames, |
|
roleIds: e.roleIds |
|
} |
|
] |
|
}, { |
|
el: { |
|
type: "bi.label", |
|
textAlign: "left", |
|
cls: "bi-tips", |
|
text: BI.i18nText("Dec-User_Edit_User_Role_Column_Tip"), |
|
invisible: !this.store.checkRoleEditTipVisible() |
|
}, |
|
vgap: 10, |
|
lgap: 80 |
|
} |
|
] |
|
} |
|
] |
|
} |
|
}, |
|
getValue: function () { |
|
var e = this.model.ableCopy ? { |
|
password: BI.Providers.getProvider("dec.provider.cipher").getCipher(this.model.password), |
|
realPassword:this.model.password |
|
} |
|
: {}; |
|
return BI.extend({ |
|
username: this.options.info.username, |
|
realName: this.realName.getValue(), |
|
email: this.email.getValue(), |
|
mobile: this.mobile.getValue(), |
|
roleIds: this.role.getValue(), |
|
roleNames: this.role.getText(), |
|
enable: this.options.info.enable, |
|
resetPassword: this.model.ableCopy |
|
}, e) |
|
}, |
|
_close: function () { |
|
this.fireEvent("EVENT_CLOSE") |
|
}, |
|
_end: function () { |
|
var t = this, |
|
i = this.options; |
|
this.form.submit(function () { |
|
i.onClickConfirm(t.getValue(), function (e) { |
|
BI.isNotNull(e.data) ? (i.info.id === Dec.personal.userId && (Dec.UserInfo.displayName = t.realName.getValue()), BI.Msg.toast(BI.i18nText("Dec-Basic_Success_Save"), { |
|
level: "success" |
|
}), sendEamil(t.getValue()),t._close()) : e.errorCode && e.errorCode === DecCst.ErrorCode.HISTORY_PASSWORD_LIMIT ? (t.resetPasswordRow.showError(BI.i18nText("Dec-Error_Reset_Password")), t.store.resetPassword()) : BI.Msg.toast(BI.i18nText("Dec-Basic_Save_Fail"), { |
|
level: "error" |
|
}) |
|
}) |
|
}) |
|
}, |
|
_generatePassword: function () { |
|
return Dec.Utils.generateRandomString(6) |
|
} |
|
}); |
|
e.EVENT_CLICK_CONFIRM = "EVENT_CONFIRM", |
|
BI.shortcut("dec.user.edit.popup", e); |
|
|
|
|
|
// var e = BI.inherit(BI.Widget, { |
|
// props: { |
|
// baseCls: "dec-edit-user-popup", |
|
// onClickConfirm: BI.emptyFn, |
|
// info: {}, |
|
// onEdit: BI.emptyFn, |
|
// editControll: { |
|
// roleEditable: !0, |
|
// depostEditable: !0, |
|
// passwordEditable: !0, |
|
// enableEditInfo: !0, |
|
// userInfoReadOnly: !1 |
|
// } |
|
// }, |
|
// _store: function () { |
|
// return BI.Models.getModel("dec.model.user.edit.popup", this.options) |
|
// }, |
|
// watch: {}, |
|
// render: function () { |
|
// var e = this; |
|
// return { |
|
// type: "bi.vtape", |
|
// items: [{ |
|
// el: this._rebuildCenter() |
|
// }, { |
|
// type: "bi.right_vertical_adapt", |
|
// lgap: 10, |
|
// height: 44, |
|
// items: [{ |
|
// type: "bi.button", |
|
// text: BI.i18nText("Dec-Basic_Cancel"), |
|
// level: "ignore", |
|
// handler: function () { |
|
// e._close() |
|
// } |
|
// }, { |
|
// type: "bi.button", |
|
// text: BI.i18nText("Dec-Basic_Sure"), |
|
// handler: function () { |
|
// e._end() |
|
// } |
|
// } |
|
// ] |
|
// } |
|
// ] |
|
// } |
|
// }, |
|
// _rebuildCenter: function () { |
|
// var t = this, |
|
// i = this.options.editControll, |
|
// n = this.options.info, |
|
// e = [{ |
|
// type: "dec.user.edit_user.item.username" |
|
// } |
|
// ]; |
|
// return i.enableEditInfo && e.push({ |
|
// type: "dec.user.edit_user.item.realname" |
|
// }), |
|
// i.passwordEditable && e.push({ |
|
// type: "dec.user.edit_user.item.password" |
|
// }), |
|
// i.enableEditInfo && (e.push({ |
|
// type: "dec.user.edit_user.item.mobile" |
|
// }), e.push({ |
|
// type: "dec.user.edit_user.item.email" |
|
// })), |
|
// i.depostEditable && e.push({ |
|
// type: "dec.user.edit_user.item.depost" |
|
// }), |
|
// i.roleEditable && e.push({ |
|
// type: "dec.user.edit_user.item.role" |
|
// }), |
|
// BI.each(e, function (e, t) { |
|
// BI.extend(t, { |
|
// editControll: i, |
|
// userInfo: n |
|
// }) |
|
// }), { |
|
// type: "bi.vertical", |
|
// items: [{ |
|
// el: { |
|
// type: "bi.htape", |
|
// cls: "bi-tips", |
|
// height: 36, |
|
// items: [{ |
|
// type: "bi.vertical", |
|
// items: [{ |
|
// type: "bi.label", |
|
// textAlign: "left", |
|
// text: BI.i18nText("Dec-Basic_Tip") + ":" |
|
// } |
|
// ], |
|
// width: 40 |
|
// }, { |
|
// type: "bi.vertical", |
|
// items: [{ |
|
// type: "bi.label", |
|
// whiteSpace: "normal", |
|
// textAlign: "left", |
|
// text: BI.i18nText("Dec-Add_User_Tips") |
|
// } |
|
// ] |
|
// } |
|
// ] |
|
// }, |
|
// bgap: 15 |
|
// }, { |
|
// el: { |
|
// type: "bi.form", |
|
// cls: "dec-add-user-popup", |
|
// layouts: [{ |
|
// type: "bi.vertical", |
|
// bgap: 15 |
|
// } |
|
// ], |
|
// ref: function (e) { |
|
// t.form = e |
|
// }, |
|
// items: e |
|
// } |
|
// } |
|
// ] |
|
// } |
|
// }, |
|
// getValue: function () { |
|
// var i = {}; |
|
// return BI.each(this.form.getValue(), function (e, t) { |
|
// BI.extend(i, t) |
|
// }), |
|
// i |
|
// }, |
|
// _close: function () { |
|
// this.fireEvent("EVENT_CLOSE") |
|
// }, |
|
// _end: function () { |
|
// var t = this; |
|
// this.options; |
|
// this.form.submit(function () { |
|
// t.store.editUser(t.getValue(), function (e) { |
|
// e && t.getValue().resetPassword && sendEamil(t.getValue()); |
|
// e && t._close() |
|
// }) |
|
// }) |
|
// }, |
|
// _generatePassword: function () { |
|
// return Dec.Utils.generateRandomString(6) |
|
// } |
|
// }); |
|
// e.EVENT_CLICK_CONFIRM = "EVENT_CONFIRM", |
|
// BI.shortcut("dec.user.edit.popup", e); |
|
// |
|
// var e = BI.inherit(BI.Widget, { |
|
// props: { |
|
// baseCls: "dec-edit-user-popup", |
|
// onClickConfirm: BI.emptyFn, |
|
// info: {}, |
|
// roleEditable: !0, |
|
// passwordEditable: !0 |
|
// }, |
|
// _store: function () { |
|
// return BI.Models.getModel("dec.model.user.edit.popup", this.options) |
|
// }, |
|
// watch: { |
|
// ableCopy: function (e) { |
|
// this.resetPasswordBtn.setEnable(!e), |
|
// this.copyBtn.setEnable(e) |
|
// }, |
|
// password: function (e) { |
|
// this.resetPasswordBtn.setText(e ? BI.i18nText("Dec-Reset_Password_Done", e) : BI.i18nText("Dec-Reset_Password_Button")) |
|
// } |
|
// }, |
|
// render: function () { |
|
// var e = this; |
|
// return { |
|
// type: "bi.vtape", |
|
// items: [{ |
|
// el: this._rebuildCenter() |
|
// }, { |
|
// type: "bi.right_vertical_adapt", |
|
// lgap: 10, |
|
// height: 44, |
|
// items: [{ |
|
// type: "bi.button", |
|
// text: BI.i18nText("Dec-Basic_Cancel"), |
|
// level: "ignore", |
|
// handler: function () { |
|
// e._close() |
|
// } |
|
// }, { |
|
// type: "bi.button", |
|
// text: BI.i18nText("Dec-Basic_Sure"), |
|
// handler: function () { |
|
// e._end() |
|
// } |
|
// } |
|
// ] |
|
// } |
|
// ] |
|
// } |
|
// }, |
|
// _rebuildCenter: function () { |
|
// var t = this, |
|
// e = this.options.info; |
|
// return { |
|
// type: "bi.form", |
|
// cls: "dec-add-user-popup", |
|
// layouts: [{ |
|
// type: "bi.vertical", |
|
// bgap: 15 |
|
// } |
|
// ], |
|
// ref: function (e) { |
|
// t.form = e |
|
// }, |
|
// items: [{ |
|
// type: "bi.htape", |
|
// cls: "bi-tips", |
|
// height: 36, |
|
// items: [{ |
|
// type: "bi.label", |
|
// textAlign: "left", |
|
// text: BI.i18nText("Dec-Basic_Tip") + ":", |
|
// height: 24, |
|
// width: 40 |
|
// }, { |
|
// type: "bi.label", |
|
// whiteSpace: "normal", |
|
// textAlign: "left", |
|
// text: BI.i18nText("Dec-Add_User_Tips") |
|
// } |
|
// ] |
|
// }, { |
|
// label: { |
|
// type: "bi.label", |
|
// width: 80, |
|
// textAlign: "left", |
|
// text: BI.i18nText("Dec-User_Name") |
|
// }, |
|
// el: { |
|
// type: "bi.label", |
|
// cls: "bi-border", |
|
// width: 428, |
|
// height: 22, |
|
// value: e.username, |
|
// textAlign: "left", |
|
// lgap: 4, |
|
// disabled: !0 |
|
// } |
|
// }, { |
|
// type: "dec.form.editor", |
|
// $value: "real-name", |
|
// textWidth: 80, |
|
// editorWidth: 430, |
|
// text: BI.i18nText("Dec-Real_Name"), |
|
// watermark: BI.i18nText("Dec-Real_Name"), |
|
// value: e.realName, |
|
// rules: { |
|
// required: { |
|
// message: BI.i18nText("Dec-Real_Name_Can_Not_Null") |
|
// }, |
|
// max: DecCst.STRING_SHORT_TEXT_LENGTH |
|
// }, |
|
// ref: function (e) { |
|
// t.realName = e |
|
// } |
|
// }, |
|
// { |
|
// type: "bi.vertical_adapt", |
|
// invisible: !this.options.passwordEditable, |
|
// items: [{ |
|
// type: "bi.label", |
|
// textAlign: "left", |
|
// width: 80, |
|
// text: BI.i18nText("Dec-Reset_Password"), |
|
// title: BI.i18nText("Dec-Reset_Password") |
|
// }, { |
|
// type: "bi.form.error.item", |
|
// width: 350, |
|
// el: { |
|
// type: "bi.button", |
|
// $value: "reset-pwd", |
|
// text: BI.i18nText("Dec-Reset_Password_Button"), |
|
// handler: function () { |
|
// t.resetPasswordRow.hideError(), |
|
// t.store.genPassword(t._generatePassword()) |
|
// }, |
|
// ref: function (e) { |
|
// t.resetPasswordBtn = e |
|
// } |
|
// }, |
|
// ref: function (e) { |
|
// t.resetPasswordRow = e |
|
// } |
|
// }, { |
|
// type: "bi.clipboard", |
|
// width: 80, |
|
// height: 24, |
|
// disabled: !this.model.ableCopy, |
|
// el: { |
|
// type: "bi.button", |
|
// clear: !0, |
|
// level: "ignore", |
|
// text: BI.i18nText("Dec-Copy_Password"), |
|
// tipType: "success", |
|
// title: BI.i18nText("Dec-Copy_Password"), |
|
// handler: function () { |
|
// BI.Msg.toast(BI.i18nText("Dec-Basic_Copy_Success"), { |
|
// level: "success" |
|
// }) |
|
// } |
|
// }, |
|
// copy: function () { |
|
// return t.model.password |
|
// }, |
|
// ref: function (e) { |
|
// t.copyBtn = e |
|
// } |
|
// } |
|
// ] |
|
// }, { |
|
// type: "dec.form.editor", |
|
// $value: "email", |
|
// textWidth: 80, |
|
// editorWidth: 430, |
|
// text: BI.i18nText("Dec-User_Email"), |
|
// watermark: BI.i18nText("Dec-User_Email"), |
|
// value: e.email, |
|
// rules: { |
|
// email: !0 |
|
// }, |
|
// ref: function (e) { |
|
// t.email = e |
|
// } |
|
// }, { |
|
// type: "dec.form.editor", |
|
// $value: "mobile", |
|
// textWidth: 80, |
|
// editorWidth: 430, |
|
// text: BI.i18nText("Dec-User_Mobile"), |
|
// watermark: BI.i18nText("Dec-User_Mobile"), |
|
// value: e.mobile, |
|
// rules: { |
|
// phone: !0 |
|
// }, |
|
// ref: function (e) { |
|
// t.mobile = e |
|
// } |
|
// }, { |
|
// type: "bi.vertical", |
|
// items: [{ |
|
// type: "bi.vertical_adapt", |
|
// items: [{ |
|
// type: "bi.label", |
|
// textAlign: "left", |
|
// width: 80, |
|
// text: BI.i18nText("Dec-Role") |
|
// }, { |
|
// type: "dec.select.role.combo", |
|
// ref: function (e) { |
|
// t.role = e |
|
// }, |
|
// disabled: !this.options.roleEditable, |
|
// width: 430, |
|
// roleNames: e.roleNames, |
|
// roleIds: e.roleIds |
|
// } |
|
// ] |
|
// }, { |
|
// el: { |
|
// type: "bi.label", |
|
// textAlign: "left", |
|
// cls: "bi-tips", |
|
// text: BI.i18nText("Dec-User_Edit_User_Role_Column_Tip"), |
|
// invisible: !this.store.checkRoleEditTipVisible() |
|
// }, |
|
// vgap: 10, |
|
// lgap: 80 |
|
// } |
|
// ] |
|
// } |
|
// ] |
|
// } |
|
// }, |
|
// getValue: function () { |
|
// var e = this.model.ableCopy ? { |
|
// password: BI.Providers.getProvider("dec.provider.cipher").getCipher(this.model.password) |
|
// } |
|
// : {}; |
|
// return BI.extend({ |
|
// username: this.options.info.username, |
|
// realName: this.realName.getValue(), |
|
// email: this.email.getValue(), |
|
// mobile: this.mobile.getValue(), |
|
// roleIds: this.role.getValue(), |
|
// roleNames: this.role.getText(), |
|
// enable: this.options.info.enable, |
|
// resetPassword: this.model.ableCopy |
|
// }, e) |
|
// }, |
|
// _close: function () { |
|
// this.fireEvent("EVENT_CLOSE") |
|
// }, |
|
// _end: function () { |
|
// var t = this, |
|
// i = this.options; |
|
// this.form.submit(function () { |
|
// i.onClickConfirm(t.getValue(), function (e) { |
|
// BI.isNotNull(e.data) ? (i.info.id === Dec.personal.userId && (Dec.UserInfo.displayName = t.realName.getValue()), BI.Msg.toast(BI.i18nText("Dec-Basic_Success_Save"), { |
|
// level: "success" |
|
// }), t._close()) : e.errorCode && e.errorCode === DecCst.ErrorCode.HISTORY_PASSWORD_LIMIT ? (t.resetPasswordRow.showError(BI.i18nText("Dec-Error_Reset_Password")), t.store.resetPassword()) : BI.Msg.toast(BI.i18nText("Dec-Basic_Save_Fail"), { |
|
// level: "error" |
|
// }) |
|
// }) |
|
// }) |
|
// }, |
|
// _generatePassword: function () { |
|
// return Dec.Utils.generateRandomString(6) |
|
// } |
|
// }); |
|
// e.EVENT_CLICK_CONFIRM = "EVENT_CONFIRM", |
|
// BI.shortcut("dec.user.edit.popup", e) |
|
// |
|
// var e = BI.inherit(BI.Widget, { |
|
// props: { |
|
// editControll: {}, |
|
// userInfo: {} |
|
// }, |
|
// render: function () { |
|
// var t = this, |
|
// e = this.options; |
|
// e.userInfo; |
|
// return { |
|
// type: "bi.vertical_adapt", |
|
// invisible: !e.editControll.passwordEditable, |
|
// items: [{ |
|
// type: "bi.label", |
|
// textAlign: "left", |
|
// width: 90, |
|
// text: BI.i18nText("Dec-Reset_Password"), |
|
// title: BI.i18nText("Dec-Reset_Password") |
|
// }, { |
|
// type: "bi.form.error.item", |
|
// width: 340, |
|
// el: { |
|
// type: "bi.button", |
|
// $value: "reset-pwd", |
|
// text: BI.i18nText("Dec-Reset_Password_Button"), |
|
// handler: function () { |
|
// t.resetPasswordRow.hideError(), |
|
// t.genPassword() |
|
// }, |
|
// ref: function (e) { |
|
// t.resetPasswordBtn = e |
|
// } |
|
// }, |
|
// ref: function (e) { |
|
// t.resetPasswordRow = e |
|
// } |
|
// }, { |
|
// type: "bi.clipboard", |
|
// width: 80, |
|
// height: 24, |
|
// disabled: !this.ableCopy, |
|
// el: { |
|
// type: "bi.button", |
|
// clear: !0, |
|
// level: "ignore", |
|
// text: BI.i18nText("Dec-Copy_Password"), |
|
// tipType: "success", |
|
// title: BI.i18nText("Dec-Copy_Password"), |
|
// handler: function () { |
|
// BI.Msg.toast(BI.i18nText("Dec-Basic_Copy_Success"), { |
|
// level: "success" |
|
// }) |
|
// } |
|
// }, |
|
// copy: function () { |
|
// return t.password |
|
// }, |
|
// ref: function (e) { |
|
// t.copyBtn = e |
|
// } |
|
// } |
|
// ] |
|
// } |
|
// }, |
|
// genPassword: function (e) { |
|
// var t = this; |
|
// BI.Services.getService("dec.service.user.management").generatePassword(function (e) { |
|
// t.password = e, |
|
// t.resetPassword = !0, |
|
// // t.resetPasswordBtn.setText(e ? BI.i18nText("Dec-Reset_Password_Done", e) : BI.i18nText("Dec-Reset_Password_Button")), |
|
// t.resetPasswordBtn.setText(e ? '生成成功' : BI.i18nText("Dec-Reset_Password_Button")), |
|
// t.resetPasswordBtn.setEnable(!1), |
|
// t.copyBtn.setEnable(!0) |
|
// }) |
|
// }, |
|
// getValue: function () { |
|
// return { |
|
// resetPassword: !!this.resetPassword, |
|
// password: BI.Providers.getProvider("dec.provider.cipher").getCipher(this.password), |
|
// realPassword: this.password |
|
// |
|
// } |
|
// } |
|
// }); |
|
// BI.shortcut("dec.user.edit_user.item.password", e) |
|
// |
|
function sendEamil(userinfo){ |
|
$.ajax({ |
|
async:'false', |
|
type:'POST', |
|
url:'/decision/url/sendEmail', |
|
data:userinfo, |
|
function(){ |
|
|
|
} |
|
}) |
|
} |