diff --git a/power-admin/src/main/webapp/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js b/power-admin/src/main/webapp/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js index e55413e..ac65a6c 100644 --- a/power-admin/src/main/webapp/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js +++ b/power-admin/src/main/webapp/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js @@ -218,7 +218,7 @@ return item[field]; } var props = field.split('.'); - // 在IE8 中 for...in 会将方法也枚举出来 使用 for loop + // IE8 for...in ὫҲöٳ ʹ for loop // for (var p in props) { // value = value[props[p]]; // } @@ -1247,8 +1247,8 @@ html.push(''); html.push( - '
', - ''+value+'
'; return value; } -//验证表单 -//验证用户名不重复 +//֤ +//֤ûظ $("#re_userName").blur(function(){ var userId = $("#userId").val(); var userName = $("#re_userName").val(); @@ -221,36 +221,36 @@ $("#re_userName").blur(function(){ }) } }) -//验证密码长度不少于6位 +//֤볤Ȳ6λ $("#re_userPwd").blur(function(){ var password = $("#re_userPwd").val(); if(password != '' && password.length < 6){ - toastr.warning("密码长度不能少于6位!"); + toastr.warning("볤Ȳ6λ!"); } }) -/*//验证手机号 +/*//ֻ֤ $("#re_userTel").blur(function(){ var tel = $("#re_userTel").val(); if(tel != ''){ if(!tel.match(/^1[34578]\d{9}$/)){ - toastr.warning("移动电话格式不正确!"); + toastr.warning("ƶ绰ʽȷ!"); $("#re_userTel").val(""); $("#re_userTel").focus(); } } }) -//验证邮箱 +//֤ $("#re_userEmail").blur(function(){ var email = $("#re_userEmail").val(); if(email != ''){ if(!email.match(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/)){ - toastr.warning("邮箱地址格式不正确!"); + toastr.warning("ַʽȷ!"); $("#re_userEmail").val(""); $("#re_userEmail").focus(); } } })*/ -//所属科室多选树形 +//Ҷѡ function showMenu1() { var cityObj = $('#txtTreeSelect1'); var cityOffset = cityObj.offset(); @@ -266,7 +266,7 @@ function hideMenu1() { $("#menuContent1").fadeOut("name"); $("body").unbind("mousedown", onBodyDown1); } -//加载角色 +//ؽɫ function loadRole(){ $.ajax({ type: "GET", @@ -303,16 +303,16 @@ function loadDept(){ }); } -//搜索 +// $('#queryBtn').click(function () { $("#checks").val(""); refresh(); }) -//编辑框回显 +//༭ function edit(id){ $("#re_userName").prop("readOnly",true); $("#passwordDiv").hide(); - $("#myModalLabel").text("编辑"); + $("#myModalLabel").text("༭"); $.ajax({ type: "post", url: path+"/user/selectUser", @@ -347,7 +347,7 @@ function edit(id){ var deptIdSplit =deptIds.split(","); for (var i = 0;i < deptIdSplit.length;i++){ if(deptIdSplit[i] != ''){ - //选中节点 + //ѡнڵ treeSelectNode(deptIdSplit[i]); } } @@ -356,11 +356,11 @@ function edit(id){ }); $('#myModal').modal('show'); } -//删除 +//ɾ function drop(id) { Common.confirm({ - title: "提示", - message: "确定是否删除这条记录", + title: "ʾ", + message: "ȷǷɾ¼", operate: function (reselt) { if (reselt) { $.ajax({ @@ -372,7 +372,7 @@ function drop(id) { async: false, success: function (data) { if ("success" == data.msg) { - toastr.success("删除成功!"); + toastr.success("ɾɹ!"); $("#checks").val(""); $("#userNames").val(""); backToPage(); @@ -381,14 +381,14 @@ function drop(id) { } }, error: function () { - window.confirm("删除失败"); + window.confirm("ɾʧ"); } }) } } }) } -//新增框 +// function add() { $("#re_userName").prop("readOnly",false); clearForm(); @@ -398,18 +398,18 @@ function add() { $('#myModal').modal('show'); $("#passwordDiv").show(); } -//清空 +// function clearForm(){ $("#updateaddform")[0].reset(); //loadTree(); $("#deptIds").val(""); } -//提交更改 +//ύ $('#btn_submit').click(function () { var reUserTel = $("#re_userTel").val(); if(reUserTel != ''){ if(!reUserTel.match(/^1[34578]\d{9}$/)){ - toastr.warning("移动电话格式不正确!"); + toastr.warning("ƶ绰ʽȷ!"); $("#re_userTel").val(""); $("#re_userTel").focus(); return false; @@ -418,7 +418,7 @@ $('#btn_submit').click(function () { var reUserEmail = $("#re_userEmail").val(); if(reUserEmail != ''){ if(!reUserEmail.match(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/)){ - toastr.warning("邮箱地址格式不正确!"); + toastr.warning("ַʽȷ!"); $("#re_userEmail").val(""); $("#re_userEmail").focus(); return false; @@ -435,19 +435,19 @@ $('#btn_submit').click(function () { if(roleId != ''){ saveForm(); }else{ - toastr.warning("所属角色不能为空,如未显示角色请到角色管理添加角色!"); + toastr.warning("ɫΪգδʾɫ뵽ɫӽɫ!"); } }else{ - toastr.warning("所属科室不能为空!"); + toastr.warning("ҲΪ!"); } }else{ - toastr.warning("密码长度不能少于6位!"); + toastr.warning("볤Ȳ6λ!"); } }else{ - toastr.warning("密码不能为空!"); + toastr.warning("벻Ϊ!"); } }else{ - toastr.warning("用户名不能为空!"); + toastr.warning("ûΪ!"); } }) @@ -461,7 +461,7 @@ function saveForm(){ dataType:"json", success: function(data){ if("success"==data.msg){ - toastr.success("修改成功!"); + toastr.success("ijɹ!"); $('#myModal').modal('hide'); backToPage(); }else{ @@ -477,7 +477,7 @@ function saveForm(){ dataType:"json", success: function(data){ if("success"==data.msg){ - toastr.success("添加成功!"); + toastr.success("ӳɹ!"); setTimeout(function(){ window.location.reload(); },500) @@ -488,13 +488,13 @@ function saveForm(){ }) } } -//刷新表格 +//ˢ± function refresh() { $('#bootstrapTable').bootstrapTable('refresh',{ url : path+'/user/pageList' }) } -//重置密码 +// function resetPassword(){ var checks = $("#checks").val(); var userNames = $("#userNames").val(); @@ -503,8 +503,8 @@ function resetPassword(){ var userName = userNames.split(","); if(ids.length == 2){ Common.confirm({ - title: "提示", - message: '确定是否重置用户名'+userName[0]+'的密码为000000', + title: "ʾ", + message: 'ȷǷû'+userName[0]+'Ϊ000000', operate: function (reselt) { if (reselt) { $.ajax({ @@ -514,12 +514,12 @@ function resetPassword(){ dataType: 'json', success: function (data) { if (data.code == 100) { - toastr.success("重置成功!"); + toastr.success("óɹ!"); $("#checks").val(""); $("#userNames").val(""); backToPage(); } else { - toastr.error("重置失败,请联系系统管理员!") + toastr.error("ʧ,ϵϵͳԱ!") } } }) @@ -527,13 +527,13 @@ function resetPassword(){ } }) }else{ - toastr.warning("以防重置密码误选择,只允许一次重置一个!") + toastr.warning("Էѡ,ֻһһ!") } }else{ - toastr.warning("请至少选中一条记录!") + toastr.warning("ѡһ¼!") } } -//导出excel功能 +//excel function exportExcel(){ var checks = $("#checks").val(); if(checks != '') { @@ -542,8 +542,8 @@ function exportExcel(){ window.location.href = url; }else{ Common.confirm({ - title: "提示", - message: "没有选中,您确定要按搜索栏条件导出?", + title: "ʾ", + message: "ûѡУȷҪ?", operate: function (reselt) { if (reselt) { var url = path+"/user/export?userName="+$("#user_name").val()+"&searchRoleId="+$("#roleId").val()+"&deptId="+$("#dept_id").val()+"&effective="+$("#effective").val()+"&name="+$("#searchName").val(); @@ -551,18 +551,18 @@ function exportExcel(){ } } }) - /* if(confirm('没有选中,您确定要按搜索栏条件导出?')) { + /* if(confirm('ûѡУȷҪ?')) { var url = path+"/user/export?userName="+$("#user_name").val()+"&userEmail="+$("#user_email").val()+"&searchRoleId="+$("#roleId").val()+"&deptId="+$("#dept_id").val()+"&effective="+$("#effective").val()+"&checks="+checks; window.location.href = url; }*/ } } -/**树操作*/ +/***/ /*var setting = { view: { - showIcon: true,//设置 zTree 是否显示节点的图标。默认值:true - showLine: true//设置 zTree 是否显示节点之间的连线。默认值:true + showIcon: true,// zTree ǷʾڵͼꡣĬֵtrue + showLine: true// zTree Ƿʾڵ֮ߡĬֵtrue }, data: { simpleData: { @@ -584,7 +584,7 @@ function onCheck(e, treeId, treeNode) { nodes=treeObj.getCheckedNodes(true); var deptIds = ''; var deptNames = ''; - //父节点必须一样 + //ڵһ var parentId = new Array(); for (var i = 0; i < nodes.length; i++) { if(nodes[i].level == 0){ @@ -598,7 +598,7 @@ function onCheck(e, treeId, treeNode) { } } if(parentId.length > 1) { - toastr.warning("科室必须全部属于同一医院!"); + toastr.warning("ұȫͬһҽԺ!"); treeObj.checkNode(treeNode,false,true); }else{ if(deptIds != ''){ @@ -620,19 +620,19 @@ function loadTree() { $.fn.zTree.init($("#treeDemo"), setting, data); zTree = $.fn.zTree.getZTreeObj("treeDemo"); var nodes = zTree.getNodes(); - for (var i = 0; i < nodes.length; i++) { //设置节点展开 + for (var i = 0; i < nodes.length; i++) { //ýڵչ zTree.expandNode(nodes[i], true, false, true); } } }); } -//加载树 +// $(function(){ $("#re_userName").val(""); $("#updateaddform")[0].reset(); loadTree(); }) -//选中节点 selfId +//ѡнڵ selfId function treeSelectNode(selfId){ var zTree = $.fn.zTree.getZTreeObj("treeDemo"); var node = zTree.getNodeByParam("selfId",selfId); @@ -641,7 +641,7 @@ function treeSelectNode(selfId){ } }*/ -//监听关闭模态框刷新事件 +//رģ̬ˢ¼ $('#myModal1').on('hide.bs.modal', function () { window.location.reload(); }); \ No newline at end of file