浏览代码

BUG对应

git-svn-id: https://192.168.57.71/svn/jsgkj@1219 931142cf-59ea-a443-aa0e-51397b428577
ld_zhouk 9 年之前
父节点
当前提交
c16f9c1217

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/dict.jsp

@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/group.jsp

@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 2 - 1
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/menu.jsp

@@ -8,7 +8,7 @@
 <script src="<%=base%>/static/js/frame/menu.js"></script>
 </head>
 <body class="p_body">
-	<div class="easyui-layout" data-options="fit:true">
+    <div id="easyuiLayout" class="easyui-layout" data-options="fit:true">
 		<!-- Í·²¿ -->
 		<div id="regionNorth" data-options="region:'north'" class="regionNorthStyle">
 			<%@ include file="../layouts/navbar.jsp"%>
@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/org.jsp

@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/param.jsp

@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/role.jsp

@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/frame/xzqh.jsp

@@ -24,6 +24,7 @@
 		<!-- ÄÚÈݲ¿·Ö -->
 		<div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
 			<div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
 				<div class="p_block">
 					<div class="p_headdiv">
 						<div class="p_headblock">

+ 3 - 2
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/user/main.jsp

@@ -9,8 +9,9 @@
 <body class="p_body">
     <div class="easyui-layout" data-options="fit:true">
         <!-- ÄÚÈݲ¿·Ö -->
-        <div id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
+        <div id="regionCenter" id="regionCenter" data-options="region:'center'" class="regionCenterStyle">
             <div class="p_all">
+            <%@ include file="../layouts/menubar.jsp"%>
                 <div class="p_block">
                     <div class="p_headdiv">
                         <div class="p_headblock">
@@ -44,7 +45,7 @@
                         </table>
                     </div>
                     <div class="container page-content">
-                        <div class="row clearfix">
+                        <div class="form group">
                             <div class="col-md-3 column page-content-tree">
                                 <!-- ×éÖ¯Ê÷ -->
                                 <div id="orgTree" class="ztree"></div>

+ 5 - 0
gkaqv2/trunk/modules/web/src/main/webapp/static/js/frame/dict.js

@@ -257,6 +257,11 @@ function editInfo() {
             },
             url : basePath + '/dict/getRecord',
             success : function(data) {
+                // 清空表单信息
+                comClearFormData("#editForm");
+                $('#pid').selectpicker('refresh');
+                $('#leaf').selectpicker('refresh');
+
                 var selData = $(grid_selector).jqGrid('getRowData', ids);
                 $('#pid').selectpicker('val', selData.pid);
                 $("#pcode").val(selData.pcode);

+ 17 - 10
gkaqv2/trunk/modules/web/src/main/webapp/static/js/frame/group.js

@@ -212,6 +212,12 @@ function addInfo() {
     comClearFormData("#editForm");
     $('#org').selectpicker('refresh');
     $('#role').selectpicker('refresh');
+    $("#remark").removeProp("readonly");
+    $("#org").removeProp("readonly");
+    $("#role").removeProp("readonly");
+    $("#menuTreeDiv").hide();
+    menuTree.checkAllNodes(false);
+    menuTree.expandAll(false);
 
     //获取选择行
     var nodes = orgTree.getSelectedNodes();
@@ -222,12 +228,6 @@ function addInfo() {
         var node = nodes[0];
         $('#org').selectpicker('val', node.id);
     }
-    $("#remark").removeProp("readonly");
-    $("#org").removeProp("readonly");
-    $("#role").removeProp("readonly");
-    $("#menuTreeDiv").hide();
-    menuTree.checkAllNodes(false);
-    menuTree.expandAll(false);
     // 弹出模态框
     showModelDialog("editWin", "新增");
 };
@@ -249,16 +249,23 @@ function editInfo() {
             },
             url : basePath + '/group/getRecord',
             success : function(data) {
+                // 清空表单信息
+                comClearFormData("#editForm");
+                $('#org').selectpicker('refresh');
+                $('#role').selectpicker('refresh');
+                $("#remark").removeProp("readonly");
+                $("#org").removeProp("readonly");
+                $("#role").removeProp("readonly");
+                $("#menuTreeDiv").hide();
+                menuTree.checkAllNodes(false);
+                menuTree.expandAll(false);
+
                 var selData = $(grid_selector).jqGrid('getRowData', ids);
                 $("#id").val(data.id);
                 $("#org").selectpicker('val', data.org);
                 $("#role").selectpicker('val', data.role);
                 $("#remark").val(data.remark);
                 $("#menuBtnRef").val('');
-                $("#remark").removeProp("readonly");
-                $("#org").removeProp("readonly");
-                $("#role").removeProp("readonly");
-                $("#menuTreeDiv").hide();
                 showModelDialog("editWin", "编辑");
             },
             error : function(XMLHttpRequest, textStatus, errorThrown) {

+ 10 - 2
gkaqv2/trunk/modules/web/src/main/webapp/static/js/frame/menu.js

@@ -317,6 +317,9 @@ function editInfo() {
                 },
                 url : basePath + '/btn/getRecord',
                 success : function(data) {
+                    // 清空按钮表单信息
+                    comClearFormData("#editBtnForm");
+
                     $("#menuId").val(pnode.id);
                     $("#menuName").val(pnode.name);
                     $("#btnId").val(data.id);
@@ -341,6 +344,9 @@ function editInfo() {
                 },
                 url : basePath + '/menu/getRecord',
                 success : function(data) {
+                    // 清空菜单表单信息
+                    comClearFormData("#editForm");
+
                     if (!isNull(pnode)) {
                         $("#pid").val(pnode.id);
                         $("#pcode").val(pnode.code);
@@ -436,7 +442,9 @@ function save() {
             if (data && data.success == true) {
                 layer.alert("数据已成功保存!");
                 closeWin();
-                menuTree.reAsyncChildNodes(null, "refresh");
+                if (isNull($("#id").val())) {
+                    menuTree.reAsyncChildNodes(null, "refresh");
+                }
                 searchRecord();
             } else {
                 layer.alert("数据保存失败!");
@@ -474,7 +482,7 @@ function btnSave() {
             if (data && data.success == true) {
                 layer.alert("数据已成功保存!");
                 closeBtnWin();
-                menuTree.reAsyncChildNodes(null, "refresh");
+//                menuTree.reAsyncChildNodes(null, "refresh");
                 searchRecord();
             } else {
                 layer.alert("数据保存失败!");

+ 11 - 1
gkaqv2/trunk/modules/web/src/main/webapp/static/js/frame/org.js

@@ -133,6 +133,7 @@ $(document).ready(function() {
     });
     $('#editWin').on('hide.bs.modal', function() {
         $('#editForm').bootstrapValidator('resetForm', false);
+        $('#szd').prop('disabled', false);
     });
 });
 
@@ -301,6 +302,13 @@ function editInfo() {
             },
             url : basePath + '/org/getRecord',
             success : function(data) {
+                // 清空表单信息
+                comClearFormData("#editForm");
+                $('#orgType').selectpicker('refresh');
+                $('#szd').selectpicker('refresh');
+                $('#xzqh').selectpicker('refresh');
+                $('#szd').prop('disabled', true);
+
                 var selData = $(grid_selector).jqGrid('getRowData', ids);
                 $("#pid").val(selData.pid);
                 $("#pcode").val(selData.pcode);
@@ -413,7 +421,9 @@ function save() {
             if (data && data.success == true) {
                 layer.alert("数据已成功保存!");
                 closeWin();
-                orgTree.reAsyncChildNodes(null, "refresh");
+                if (isNull($("#id").val())) {
+                    orgTree.reAsyncChildNodes(null, "refresh");
+                }
                 searchRecord();
             } else {
                 layer.alert("数据保存失败!");

+ 3 - 0
gkaqv2/trunk/modules/web/src/main/webapp/static/js/frame/param.js

@@ -109,6 +109,9 @@ function editInfo() {
             },
             url : basePath + '/param/getRecord',
             success : function(data) {
+                // 清空表单信息
+                comClearFormData("#editForm");
+
                 $("#id").val(data.id);
                 $("#key").val(data.key);
                 $("#value").val(data.value);

+ 10 - 7
gkaqv2/trunk/modules/web/src/main/webapp/static/js/frame/role.js

@@ -187,13 +187,8 @@ function editInfo() {
             },
             url : basePath + '/role/getRecord',
             success : function(data) {
-                var selData = $(grid_selector).jqGrid('getRowData', ids);
-                $("#id").val(data.id);
-                $("#code").val(data.code);
-                $("#name").val(data.name);
-                $("#remark").val(data.remark);
-                $("#sortno").val(data.sortno);
-                $("#menuBtnRef").val('');
+                // 清空表单信息
+                comClearFormData("#editForm");
                 $("#code").removeProp("readonly");
                 $("#name").removeProp("readonly");
                 $("#remarkDiv").show();
@@ -201,6 +196,14 @@ function editInfo() {
                 $("#menuTreeDiv").hide();
                 menuTree.checkAllNodes(false);
                 menuTree.expandAll(false);
+
+                var selData = $(grid_selector).jqGrid('getRowData', ids);
+                $("#id").val(data.id);
+                $("#code").val(data.code);
+                $("#name").val(data.name);
+                $("#remark").val(data.remark);
+                $("#sortno").val(data.sortno);
+                $("#menuBtnRef").val('');
                 showModelDialog("editWin", "编辑");
             },
             error : function(XMLHttpRequest, textStatus, errorThrown) {