重大技术需求系统

重大技术需求系统一

代码

     layui.use('form', function(){
	  var form = layui.form;
	  
	  //各种基于事件的操作,下面会有进一步介绍
	
		form.on("radio(test1)", function (data) {
		//console.log(data);
	        if (data.value=='基础研究') { 
	        	$('#subcla').show();
	        	$('#nobasetech1').hide();
	        	$('#nobasetech').hide();
	          //  alert("这是基础研究"); 
	        }else{ 
	        	$('#subcla').hide();
	        	$('#nobasetech1').show();
	        //	console.log(data);
	         //   alert("这不是基础研究"); 
	        } 
	    });
	  
		
		form.on("checkbox(test2)", function (data) {
			//console.log(data);
		        if (data.value=='其他技术') { 
		        	$('#nobasetech').show();
		       //     alert("这是其他技术"); 
		        }else{ 
		        	$('#nobasetech').hide();
		        //	console.log(data);
		        //   alert(data.value); 
		        } 
		    });
	  
});


对于部分要求信息进行了显示隐藏关系约束

完成了基本信息页面的增删改查,对数据库中某信息进行了一对多关系修改,对非空等要求进行了判断并给出提示信息。

原文地址:https://www.cnblogs.com/2506236179zhw/p/14226265.html