From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 05 二月 2024 11:56:52 +0800 Subject: [PATCH] 更新bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/course/course_info.js | 27 ++------------------------- 1 files changed, 2 insertions(+), 25 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/course/course_info.js b/cloud-server-management/src/main/webapp/static/modular/system/course/course_info.js index 75f45e4..1117eba 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/course/course_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/course/course_info.js @@ -104,8 +104,10 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/course/editCourse", function (data) { if(data.code == 200){ + window.parent.Course.table.refresh(); CourseInfo.close(); + Feng.success("修改成功!"); }else{ Feng.error(data.msg); @@ -117,32 +119,7 @@ ajax.start(); }; -/** - * 修改密码 - */ -CourseInfo.chPwd = function () { - let oldPwd = $('#oldPwd').val(); - let newPwd = $('#newPwd').val(); - if(oldPwd == newPwd){ - Feng.error("新密码不能和原始密码相同"); - return - } - let patt = /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{8,30}/; - if(!patt.test(newPwd)){ - Feng.error("密码中必须包含大小字母、数字、特称字符,至少8个字符,最多30个字符"); - return - } - var ajax = new $ax(Feng.ctxPath + "/mgr/changePwd", function (data) { - Feng.success("修改成功!"); - }, function (data) { - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }); - ajax.set("oldPwd"); - ajax.set("newPwd"); - ajax.set("rePwd"); - ajax.start(); -}; function onBodyDown(event) { if (!(event.target.id == "menuBtn" || event.target.id == "menuContent" || $( -- Gitblit v1.7.1