密码初始化

1.初始化密码

 显示层:

笔记:

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

确认后提交:

复制代码
$.messager.confirm(MESSAGE_PLAT.PROMPT, "该操作将无法返回,是否继续执行密码初始化?",
                    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');
                                        }
                                    });
                        }
                    });
复制代码

 Controller层:

Service层:

配置文件:

Dao层

猜你喜欢

转载自www.cnblogs.com/lhuser/p/8980684.html