ソースを参照

git-svn-id: https://192.168.57.71/svn/jsgkj@1566 931142cf-59ea-a443-aa0e-51397b428577

ld_jiangxf 8 年 前
コミット
30117d309b

+ 1 - 1
gkjsjy/trunk/WebContent/WEB-INF/pages/gkjsgl/jsjdgl/jsjdgladd.jsp

@@ -310,7 +310,7 @@ text-align:center;
 					<td>
 					            <input type="hidden" class="form-control" name="delid11" id="delid11">
 					            <input type="hidden" class="form-control" id="fjzdid11">
-					            <a class='main_title' href="###" onclick="jsjdgl.detail.download()"><span id="fjmc11"></span></a>
+					            <a class='main_title' href="###" onclick="jsjdgl.detail.download(11)"><span id="fjmc11"></span></a>
 					</td>
 					<td>
 								<span id="fbdw11"></span>

+ 31 - 13
gkjsjy/trunk/WebContent/static/biz/js/gkjsgl/jsjdgl/jsjdgldetail.js

@@ -418,15 +418,24 @@ jsjdgl.detail.delFile = function(scflag){
 }
 //添加附件弹出				
 jsjdgl.detail.tianjiafj=function(i){
-	$("#flag").val(i);
-	$("#wjh1").val("");
-	$("#fbsj1").val("");
-	$("#fbdw1").val("");
-	$("#fjmc1").html("");
-	$("#fjxq").empty();
-	$("#scfjbt").removeAttr("style");
-	$('#theme-popover-mask').fadeIn(100);
-	$('#theme-popover').slideDown(0);
+	if($("#id").val() == ''){
+		$.alert({
+   		    title: '提示',
+   		    content: '请先选择项目',
+   		    confirm: function(){
+   		    }
+       	});
+	}else{
+		$("#flag").val(i);
+		$("#wjh1").val("");
+		$("#fbsj1").val("");
+		$("#fbdw1").val("");
+		$("#fjmc1").html("");
+		$("#fjxq").empty();
+		$("#scfjbt").removeAttr("style");
+		$('#theme-popover-mask').fadeIn(100);
+		$('#theme-popover').slideDown(0);
+	}
 }
 
 jsjdgl.detail.xinzengfj=function(){
@@ -1022,10 +1031,19 @@ jsjdgl.detail.initqtfjview = function(data){
 }
 
 jsjdgl.detail.qtfj = function(){
-	$('#qtfjmask').fadeIn(100);
-	$('#qtfjpopover').slideDown(0);
-	$("#qtfjxq").empty();
-	$("#scqtfjbt").removeAttr("style");
+	if($("#id").val() == ''){
+		$.alert({
+   		    title: '提示',
+   		    content: '请先选择项目',
+   		    confirm: function(){
+   		    }
+       	});
+	}else{
+		$('#qtfjmask').fadeIn(100);
+		$('#qtfjpopover').slideDown(0);
+		$("#qtfjxq").empty();
+		$("#scqtfjbt").removeAttr("style");
+	}
 }
 
 jsjdgl.detail.saveQtfj = function(){