Procházet zdrojové kódy

管理员修改复核问题解决

[user3] před 4 roky
rodič
revize
4c71eb1799

+ 86 - 84
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/all/adminReportEditFormAlls.jsp

@@ -1172,10 +1172,12 @@
 				$("#GCGMValueParameter").addClass("number");
 			}
 
-			var contents=${projectcontentinfo.recordsReported.contentsIncludeList}
-			for(var i=0;i<contents.length;i++){
-				var con=contents[i];
-				$(".contents_"+con+"").prop("checked",true)
+			var contents=${fns:toJson(projectcontentinfo.recordsReported.contentsIncludeList)}
+			if(null!=contents){
+				for(var i=0;i<contents.length;i++){
+					var con=contents[i];
+					$(".contents_"+con+"").prop("checked",true)
+				}
 			}
 
 		});
@@ -2419,7 +2421,7 @@
 					<script type="text/javascript">
 						var workClientBankRowIdx1 = 0,
 								workClientBankTpl1 = $("#workClientBankTpl1").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
-						workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
+						// workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
 						$(document).ready(function () {
 							var dataBank = ${fns:toJson(consultantInfo1)};
 							for (var i = 0; i < dataBank.length; i++) {
@@ -2730,7 +2732,7 @@
 	var workClientBankRowIdx = $("#reportedConsultantList").find("tr:last").find("td").eq(1).find("input").val(),
 			workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
 	workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
-	$(document).ready(function () {
+	// $(document).ready(function () {
 		<%--var dataBank = ${fns:toJson(info)};--%>
 		<%--for (var i = 0; i < dataBank.length; i++) {--%>
 		<%--	if(i == 0){--%>
@@ -2740,7 +2742,7 @@
 		<%--	}--%>
 		<%--	workClientBankRowIdx = workClientBankRowIdx + 1;--%>
 		<%--}--%>
-	});
+	// });
 	function consultants(id, workClientBankRowIdx, workClientBankTpl) {
 		//根据id查询咨询员列表现有数据量
 		var length =$("#reportedConsultantList").find("tr:last").find("td").eq(1).find("input").val();
@@ -2885,83 +2887,83 @@
 	}
 
 
-	//新增行方法
-	var fileAttachmentTpl = $("#fileAttachmentTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
-	var gistdataTpl = $("#gistdataTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
-	var otherTpl = $("#otherTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
-
-	function formAttachment(title,url,width,height,target,formId,divId){
-		var rows = $(this).parent().prevAll().length + 1;
-		var frameIndex = parent.layer.getFrameIndex(window.name);
-		var urls = url;
-		if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
-			width='auto';
-			height='auto';
-		}else{//如果是PC端,根据用户设置的width和height显示。
-
-		}
-		top.layer.open({
-			type: 2,
-			area: [width, height],
-			title: title,
-			skin:"two-btns",
-			maxmin: false, //开启最大化最小化按钮
-			content: urls ,
-			btn: ['确定','关闭'],
-			yes: function(index, layero){
-				var body = top.layer.getChildFrame('body', index);
-				var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
-				var inputForm = body.find('#inputForm');
-				var top_iframe;
-				inputForm.attr("action","${ctx}/projectTemplate/projectTemplate/getProjectTemplateInfo");//表单提交成功后,从服务器返回的url在当前tab中展示
-				var $document = iframeWin.contentWindow.document;
-				formSubmitAjax($document,formId,index,divId);
-
-			},
-			cancel: function(index){
-			}
-		});
-	}
-	function formSubmitAjax($document,inputForm,index,divId){
-		var validateForm = $($document.getElementById(inputForm)).validate({
-			submitHandler: function(form){
-				loading('正在提交,请稍等...');
-				form.submit();
-			},
-			errorContainer: "#messageBox",
-			errorPlacement: function(error, element) {
-				$($document.getElementById("#messageBox")).text("输入有误,请先更正。");
-				if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
-					error.appendTo(element.parent().parent());
-				} else {
-					error.insertAfter(element);
-				}
-			}
-		});
-		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
-				success:function(data) {
-					if(!data.success){
-						top.layer.msg("保存依据资料信息异常!",{icon:2});
-						return false;
-					}
-					var idx = ''
-					if(divId == 'file_attachment'){
-						idx = $("#file_attachment tr").length;
-						addRowBaseData("#file_attachment",idx,fileAttachmentTpl,data.body.projectAccessoryInfo);
-					}else if(divId == 'file_gistdata'){
-						idx = $("#file_gistdata tr").length;
-						addRowBaseData("#file_gistdata",idx,gistdataTpl,data.body.projectAccessoryInfo);
-					}else if(divId == 'file_other'){
-						idx = $("#file_other tr").length;
-						addRowBaseData("#file_other",idx,otherTpl,data.body.projectAccessoryInfo);
-					}
-					parent.layer.msg(data.msg,{icon:1});
-					top.layer.close(index)
-				}
-			});
-		}
-	}
+	<%--//新增行方法--%>
+	<%--var fileAttachmentTpl = $("#fileAttachmentTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
+	<%--var gistdataTpl = $("#gistdataTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
+	<%--var otherTpl = $("#otherTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
+
+	<%--function formAttachment(title,url,width,height,target,formId,divId){--%>
+	<%--	var rows = $(this).parent().prevAll().length + 1;--%>
+	<%--	var frameIndex = parent.layer.getFrameIndex(window.name);--%>
+	<%--	var urls = url;--%>
+	<%--	if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗--%>
+	<%--		width='auto';--%>
+	<%--		height='auto';--%>
+	<%--	}else{//如果是PC端,根据用户设置的width和height显示。--%>
+
+	<%--	}--%>
+	<%--	top.layer.open({--%>
+	<%--		type: 2,--%>
+	<%--		area: [width, height],--%>
+	<%--		title: title,--%>
+	<%--		skin:"two-btns",--%>
+	<%--		maxmin: false, //开启最大化最小化按钮--%>
+	<%--		content: urls ,--%>
+	<%--		btn: ['确定','关闭'],--%>
+	<%--		yes: function(index, layero){--%>
+	<%--			var body = top.layer.getChildFrame('body', index);--%>
+	<%--			var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();--%>
+	<%--			var inputForm = body.find('#inputForm');--%>
+	<%--			var top_iframe;--%>
+	<%--			inputForm.attr("action","${ctx}/projectTemplate/projectTemplate/getProjectTemplateInfo");//表单提交成功后,从服务器返回的url在当前tab中展示--%>
+	<%--			var $document = iframeWin.contentWindow.document;--%>
+	<%--			formSubmitAjax($document,formId,index,divId);--%>
+
+	<%--		},--%>
+	<%--		cancel: function(index){--%>
+	<%--		}--%>
+	<%--	});--%>
+	<%--}--%>
+	<%--function formSubmitAjax($document,inputForm,index,divId){--%>
+	<%--	var validateForm = $($document.getElementById(inputForm)).validate({--%>
+	<%--		submitHandler: function(form){--%>
+	<%--			loading('正在提交,请稍等...');--%>
+	<%--			form.submit();--%>
+	<%--		},--%>
+	<%--		errorContainer: "#messageBox",--%>
+	<%--		errorPlacement: function(error, element) {--%>
+	<%--			$($document.getElementById("#messageBox")).text("输入有误,请先更正。");--%>
+	<%--			if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){--%>
+	<%--				error.appendTo(element.parent().parent());--%>
+	<%--			} else {--%>
+	<%--				error.insertAfter(element);--%>
+	<%--			}--%>
+	<%--		}--%>
+	<%--	});--%>
+	<%--	if(validateForm.form()){--%>
+	<%--		$($document.getElementById(inputForm)).ajaxSubmit({--%>
+	<%--			success:function(data) {--%>
+	<%--				if(!data.success){--%>
+	<%--					top.layer.msg("保存依据资料信息异常!",{icon:2});--%>
+	<%--					return false;--%>
+	<%--				}--%>
+	<%--				var idx = ''--%>
+	<%--				if(divId == 'file_attachment'){--%>
+	<%--					idx = $("#file_attachment tr").length;--%>
+	<%--					addRowBaseData("#file_attachment",idx,fileAttachmentTpl,data.body.projectAccessoryInfo);--%>
+	<%--				}else if(divId == 'file_gistdata'){--%>
+	<%--					idx = $("#file_gistdata tr").length;--%>
+	<%--					addRowBaseData("#file_gistdata",idx,gistdataTpl,data.body.projectAccessoryInfo);--%>
+	<%--				}else if(divId == 'file_other'){--%>
+	<%--					idx = $("#file_other tr").length;--%>
+	<%--					addRowBaseData("#file_other",idx,otherTpl,data.body.projectAccessoryInfo);--%>
+	<%--				}--%>
+	<%--				parent.layer.msg(data.msg,{icon:1});--%>
+	<%--				top.layer.close(index)--%>
+	<%--			}--%>
+	<%--		});--%>
+	<%--	}--%>
+	<%--}--%>
 
 
 	function hasInArr(id,idArr) {

+ 86 - 85
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/adminReportEditForms.jsp

@@ -1171,11 +1171,12 @@
 				$("#GCGMValueParameter").removeClass("number");
 				$("#GCGMValueParameter").addClass("number");
 			}
-
-			var contents=${projectcontentinfo.recordsReported.contentsIncludeList}
-			for(var i=0;i<contents.length;i++){
-				var con=contents[i];
-				$(".contents_"+con+"").prop("checked",true)
+			var contents=${fns:toJson(projectcontentinfo.recordsReported.contentsIncludeList)}
+			if(null!=contents){
+				for(var i=0;i<contents.length;i++){
+					var con=contents[i];
+					$(".contents_"+con+"").prop("checked",true)
+				}
 			}
 
 		});
@@ -2419,7 +2420,7 @@
 					<script type="text/javascript">
 						var workClientBankRowIdx1 = 0,
 								workClientBankTpl1 = $("#workClientBankTpl1").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
-						workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
+						// workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
 						$(document).ready(function () {
 							var dataBank = ${fns:toJson(consultantInfo1)};
 							for (var i = 0; i < dataBank.length; i++) {
@@ -2730,7 +2731,7 @@
 	var workClientBankRowIdx = $("#reportedConsultantList").find("tr:last").find("td").eq(1).find("input").val(),
 			workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
 	workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
-	$(document).ready(function () {
+	// $(document).ready(function () {
 		<%--var dataBank = ${fns:toJson(info)};--%>
 		<%--for (var i = 0; i < dataBank.length; i++) {--%>
 		<%--	if(i == 0){--%>
@@ -2740,7 +2741,7 @@
 		<%--	}--%>
 		<%--	workClientBankRowIdx = workClientBankRowIdx + 1;--%>
 		<%--}--%>
-	});
+	// });
 	function consultants(id, workClientBankRowIdx, workClientBankTpl) {
 		//根据id查询咨询员列表现有数据量
 		var length =$("#reportedConsultantList").find("tr:last").find("td").eq(1).find("input").val();
@@ -2885,83 +2886,83 @@
 	}
 
 
-	//新增行方法
-	var fileAttachmentTpl = $("#fileAttachmentTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
-	var gistdataTpl = $("#gistdataTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
-	var otherTpl = $("#otherTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
-
-	function formAttachment(title,url,width,height,target,formId,divId){
-		var rows = $(this).parent().prevAll().length + 1;
-		var frameIndex = parent.layer.getFrameIndex(window.name);
-		var urls = url;
-		if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
-			width='auto';
-			height='auto';
-		}else{//如果是PC端,根据用户设置的width和height显示。
-
-		}
-		top.layer.open({
-			type: 2,
-			area: [width, height],
-			title: title,
-			skin:"two-btns",
-			maxmin: false, //开启最大化最小化按钮
-			content: urls ,
-			btn: ['确定','关闭'],
-			yes: function(index, layero){
-				var body = top.layer.getChildFrame('body', index);
-				var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
-				var inputForm = body.find('#inputForm');
-				var top_iframe;
-				inputForm.attr("action","${ctx}/projectTemplate/projectTemplate/getProjectTemplateInfo");//表单提交成功后,从服务器返回的url在当前tab中展示
-				var $document = iframeWin.contentWindow.document;
-				formSubmitAjax($document,formId,index,divId);
-
-			},
-			cancel: function(index){
-			}
-		});
-	}
-	function formSubmitAjax($document,inputForm,index,divId){
-		var validateForm = $($document.getElementById(inputForm)).validate({
-			submitHandler: function(form){
-				loading('正在提交,请稍等...');
-				form.submit();
-			},
-			errorContainer: "#messageBox",
-			errorPlacement: function(error, element) {
-				$($document.getElementById("#messageBox")).text("输入有误,请先更正。");
-				if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
-					error.appendTo(element.parent().parent());
-				} else {
-					error.insertAfter(element);
-				}
-			}
-		});
-		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
-				success:function(data) {
-					if(!data.success){
-						top.layer.msg("保存依据资料信息异常!",{icon:2});
-						return false;
-					}
-					var idx = ''
-					if(divId == 'file_attachment'){
-						idx = $("#file_attachment tr").length;
-						addRowBaseData("#file_attachment",idx,fileAttachmentTpl,data.body.projectAccessoryInfo);
-					}else if(divId == 'file_gistdata'){
-						idx = $("#file_gistdata tr").length;
-						addRowBaseData("#file_gistdata",idx,gistdataTpl,data.body.projectAccessoryInfo);
-					}else if(divId == 'file_other'){
-						idx = $("#file_other tr").length;
-						addRowBaseData("#file_other",idx,otherTpl,data.body.projectAccessoryInfo);
-					}
-					parent.layer.msg(data.msg,{icon:1});
-					top.layer.close(index)
-				}
-			});
-		}
-	}
+	<%--//新增行方法--%>
+	<%--var fileAttachmentTpl = $("#fileAttachmentTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
+	<%--var gistdataTpl = $("#gistdataTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
+	<%--var otherTpl = $("#otherTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
+
+	<%--function formAttachment(title,url,width,height,target,formId,divId){--%>
+	<%--	var rows = $(this).parent().prevAll().length + 1;--%>
+	<%--	var frameIndex = parent.layer.getFrameIndex(window.name);--%>
+	<%--	var urls = url;--%>
+	<%--	if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗--%>
+	<%--		width='auto';--%>
+	<%--		height='auto';--%>
+	<%--	}else{//如果是PC端,根据用户设置的width和height显示。--%>
+
+	<%--	}--%>
+	<%--	top.layer.open({--%>
+	<%--		type: 2,--%>
+	<%--		area: [width, height],--%>
+	<%--		title: title,--%>
+	<%--		skin:"two-btns",--%>
+	<%--		maxmin: false, //开启最大化最小化按钮--%>
+	<%--		content: urls ,--%>
+	<%--		btn: ['确定','关闭'],--%>
+	<%--		yes: function(index, layero){--%>
+	<%--			var body = top.layer.getChildFrame('body', index);--%>
+	<%--			var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();--%>
+	<%--			var inputForm = body.find('#inputForm');--%>
+	<%--			var top_iframe;--%>
+	<%--			inputForm.attr("action","${ctx}/projectTemplate/projectTemplate/getProjectTemplateInfo");//表单提交成功后,从服务器返回的url在当前tab中展示--%>
+	<%--			var $document = iframeWin.contentWindow.document;--%>
+	<%--			formSubmitAjax($document,formId,index,divId);--%>
+
+	<%--		},--%>
+	<%--		cancel: function(index){--%>
+	<%--		}--%>
+	<%--	});--%>
+	<%--}--%>
+	<%--function formSubmitAjax($document,inputForm,index,divId){--%>
+	<%--	var validateForm = $($document.getElementById(inputForm)).validate({--%>
+	<%--		submitHandler: function(form){--%>
+	<%--			loading('正在提交,请稍等...');--%>
+	<%--			form.submit();--%>
+	<%--		},--%>
+	<%--		errorContainer: "#messageBox",--%>
+	<%--		errorPlacement: function(error, element) {--%>
+	<%--			$($document.getElementById("#messageBox")).text("输入有误,请先更正。");--%>
+	<%--			if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){--%>
+	<%--				error.appendTo(element.parent().parent());--%>
+	<%--			} else {--%>
+	<%--				error.insertAfter(element);--%>
+	<%--			}--%>
+	<%--		}--%>
+	<%--	});--%>
+	<%--	if(validateForm.form()){--%>
+	<%--		$($document.getElementById(inputForm)).ajaxSubmit({--%>
+	<%--			success:function(data) {--%>
+	<%--				if(!data.success){--%>
+	<%--					top.layer.msg("保存依据资料信息异常!",{icon:2});--%>
+	<%--					return false;--%>
+	<%--				}--%>
+	<%--				var idx = ''--%>
+	<%--				if(divId == 'file_attachment'){--%>
+	<%--					idx = $("#file_attachment tr").length;--%>
+	<%--					addRowBaseData("#file_attachment",idx,fileAttachmentTpl,data.body.projectAccessoryInfo);--%>
+	<%--				}else if(divId == 'file_gistdata'){--%>
+	<%--					idx = $("#file_gistdata tr").length;--%>
+	<%--					addRowBaseData("#file_gistdata",idx,gistdataTpl,data.body.projectAccessoryInfo);--%>
+	<%--				}else if(divId == 'file_other'){--%>
+	<%--					idx = $("#file_other tr").length;--%>
+	<%--					addRowBaseData("#file_other",idx,otherTpl,data.body.projectAccessoryInfo);--%>
+	<%--				}--%>
+	<%--				parent.layer.msg(data.msg,{icon:1});--%>
+	<%--				top.layer.close(index)--%>
+	<%--			}--%>
+	<%--		});--%>
+	<%--	}--%>
+	<%--}--%>
 
 
 	function hasInArr(id,idArr) {