password initialization

1. Initialize the password

 Display layer:

 

notes:

$.messager.alert(MESSAGE_PLAT.PROMPT, MESSAGE_PLAT.CHOOSE_ONE,'info');

Submit after confirmation:

copy code
$.messager.confirm(MESSAGE_PLAT.PROMPT, "This operation cannot be returned, do you want to continue with password initialization?",
                    function(flag) {
                        if (flag) {
                            $.post("user/init.do"
                                    + '?ids='
                                    + $.farm.getCheckedIds(gridUser, 'ID'), {},
                                    function(flag) {
                                        var jsonObject = JSON.parse(flag, null);
                                        if (jsonObject.model.STATE == 0) {
                                            $ .messager.alert (
                                                    MESSAGE_PLAT.PROMPT, MESSAGE_PLAT.SUCCESS,
                                                    'info');
                                        } else {
                                            var str = MESSAGE_PLAT.ERROR_SUBMIT
                                                    + flag.pageset.message;
                                            $ .messager.alert (
                                                    MESSAGE_PLAT.ERROR, str,
                                                    'error');
                                        }
                                    });
                        }
                    });
copy code

 Controller layer:

Service layer:

 

Configuration file:

 

 

 

Dao layers

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325139698&siteId=291194637