|  | @ -19,12 +19,11 @@
 | 
	
		
			
				|  |  |             $('.m-retrieve-area').show();
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             $.ajax({
 | 
	
		
			
				|  |  |                 url: '${contextRoot}/datacollect/getJobLayout',
 | 
	
		
			
				|  |  |                 type: "get",
 | 
	
		
			
				|  |  |                 url: '${contextRoot}/datacollect/getLayout',
 | 
	
		
			
				|  |  |                 dataType: "json",
 | 
	
		
			
				|  |  |                 success: function (data) {
 | 
	
		
			
				|  |  |                     if(!Util.isStrEmpty(data)){
 | 
	
		
			
				|  |  |                         schemeVersionList = data || [];
 | 
	
		
			
				|  |  |                     if(data.successFlg){
 | 
	
		
			
				|  |  |                         schemeVersionList = data.detailModelList || [];
 | 
	
		
			
				|  |  |                     }else{
 | 
	
		
			
				|  |  |                         $.ligerDialog.error(data.message);
 | 
	
		
			
				|  |  |                     }
 | 
	
	
		
			
				|  | @ -37,37 +36,40 @@
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             me.grid = $("#div_grid").ligerGrid({
 | 
	
		
			
				|  |  |                 url: '${contextRoot}/datacollect/getJob',
 | 
	
		
			
				|  |  | //                usePager: false,
 | 
	
		
			
				|  |  |                 url: '${contextRoot}/datacollect/getSchemeVersionList',
 | 
	
		
			
				|  |  |                 usePager: false,
 | 
	
		
			
				|  |  |                 columns: [
 | 
	
		
			
				|  |  |                     {display:'适配方案',name:'schemeAndVersion', width: '20%',render: function (row, rowindex, value, column) {
 | 
	
		
			
				|  |  |                         //<option value="">请选择</option>
 | 
	
		
			
				|  |  |                         var select= '<select class="sel-scheme-id form-control"  id="schemeId'+rowindex+'" style="margin-top:3px;font-size:12px;">';
 | 
	
		
			
				|  |  |                     { display: 'schemeId', name: 'schemeId', hide:true },
 | 
	
		
			
				|  |  |                     { display: 'id', name: 'id', hide:true },
 | 
	
		
			
				|  |  |                     {display:'适配方案',name:'', width: '20%',render: function (row, rowindex, value, column) {
 | 
	
		
			
				|  |  |                         var select= '<select class="sel-scheme-name form-control"  id="schemeNm'+rowindex+'" style="margin-top:3px;font-size:12px;">';
 | 
	
		
			
				|  |  |                         for(var i=0;i<schemeVersionList.length;i++){
 | 
	
		
			
				|  |  |                             select+='<option value="'+schemeVersionList[i].id+'">'+schemeVersionList[i].name+'</option>';
 | 
	
		
			
				|  |  |                             select+='<option value="'+schemeVersionList[i].schemeId+'">'+schemeVersionList[i].name+'</option>';
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                         select = $(select+"</select>");
 | 
	
		
			
				|  |  |                         $('option[value="'+row.schemeId+'"]',select).attr('selected',true);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         return  select.prop("outerHTML");
 | 
	
		
			
				|  |  |                     }},
 | 
	
		
			
				|  |  |                     {display:'版本',name:'jobPlan',width: '20%',render: function (row, rowindex, value, column) {
 | 
	
		
			
				|  |  |                         var select= '<select class="sel-version-id form-control"  id="versionId'+rowindex+'" style="margin-top:3px;font-size:12px;">';
 | 
	
		
			
				|  |  |                     {display:'版本',name:'',width: '20%',render: function (row, rowindex, value, column) {
 | 
	
		
			
				|  |  |                         var select= '<select class="sel-version-name form-control"  id="versionNm'+rowindex+'" style="margin-top:3px;font-size:12px;">';
 | 
	
		
			
				|  |  |                         var versionList = [];
 | 
	
		
			
				|  |  |                         for(var i=0;i<schemeVersionList.length;i++){
 | 
	
		
			
				|  |  |                             versionList = schemeVersionList[i].versionList;
 | 
	
		
			
				|  |  |                             for(var j=0;j<versionList.length;j++){
 | 
	
		
			
				|  |  |                                 select+='<option value="'+versionList[j].id+'">'+versionList[j].name+'</option>';
 | 
	
		
			
				|  |  |                             if(schemeVersionList[i].schemeId == row.schemeId){
 | 
	
		
			
				|  |  |                                 versionList = schemeVersionList[i].versionList;
 | 
	
		
			
				|  |  |                                 for(var j=0;j<versionList.length;j++){
 | 
	
		
			
				|  |  |                                     select+='<option value="'+versionList[j].id+'">'+versionList[j].name+'</option>';
 | 
	
		
			
				|  |  |                                 }
 | 
	
		
			
				|  |  |                             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                         select = $(select+"</select>");
 | 
	
		
			
				|  |  |                         $('option[value="'+row.schemeId+'"]',select).attr('selected',true);
 | 
	
		
			
				|  |  |                         $('option[value="'+row.id+'"]',select).attr('selected',true);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         return  select.prop("outerHTML");
 | 
	
		
			
				|  |  |                     }},
 | 
	
		
			
				|  |  |                     {display:'数据集名称',name:'jobDataset', width: '40%',render: function (row, rowindex, value, column) {
 | 
	
		
			
				|  |  |                         var html = '<input style="margin-top:3px;font-size:12px;" data-rowindex="'+rowindex+'" class="sel-dataset-name form-control" value="'+(value || "")+'" >' +
 | 
	
		
			
				|  |  |                     {display:'数据集名称',name:'dataSets', width: '40%',render: function (row, rowindex, value, column) {
 | 
	
		
			
				|  |  |                         var dataSets = value.toString().substring(0,value.length-1);
 | 
	
		
			
				|  |  |                         var html = '<input style="margin-top:3px;font-size:12px;" data-rowindex="'+rowindex+'" class="sel-dataset-name form-control" value="'+(dataSets || "")+'" >' +
 | 
	
		
			
				|  |  |                                 '<div style="display: none;" id="datasetId'+rowindex+'"></div>';
 | 
	
		
			
				|  |  |                         return html;
 | 
	
		
			
				|  |  |                     }},
 | 
	
	
		
			
				|  | @ -81,11 +83,11 @@
 | 
	
		
			
				|  |  |                 onAfterShowData: function (gridData) {//显示完数据事件
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     //【适配方案】change事件
 | 
	
		
			
				|  |  |                     $(".sel-scheme-id").on("change", function() {
 | 
	
		
			
				|  |  |                     $(".sel-scheme-name").on("change", function() {
 | 
	
		
			
				|  |  |                         var rowIndex = $(this).attr("id").replace("schemeId","");
 | 
	
		
			
				|  |  |                         var option = "";
 | 
	
		
			
				|  |  |                         for(var i=0;i<schemeVersionList.length;i++){
 | 
	
		
			
				|  |  |                             if(schemeVersionList[i].id == $(this).val()){
 | 
	
		
			
				|  |  |                             if(schemeVersionList[i].schemeId == $(this).val()){
 | 
	
		
			
				|  |  |                                 versionList = schemeVersionList[i].versionList;
 | 
	
		
			
				|  |  |                                 for(var j=0;j<versionList.length;j++){
 | 
	
		
			
				|  |  |                                     option+='<option value="'+versionList[j].id+'">'+versionList[j].name+'</option>';
 | 
	
	
		
			
				|  | @ -98,11 +100,10 @@
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     //【数据集名称】focus事件
 | 
	
		
			
				|  |  |                     $(".sel-dataset-name").on("focus", function() {
 | 
	
		
			
				|  |  |                         debugger
 | 
	
		
			
				|  |  |                         var rowindex = $(this).attr("data-rowindex");
 | 
	
		
			
				|  |  |                         jobLayout.grid.select(rowindex);//选中行
 | 
	
		
			
				|  |  |                         var row = jobLayout.grid.getSelectedRow();
 | 
	
		
			
				|  |  |                         var  params = {schemeId:"",version:""};
 | 
	
		
			
				|  |  |                         var  params = {schemeId:row.schemeId,version:row.id,schemeNm:$("#schemeNm"+rowindex).find("option:selected").text()};
 | 
	
		
			
				|  |  |                         me.dialog = $.ligerDialog.open({
 | 
	
		
			
				|  |  |                             height: 600,
 | 
	
		
			
				|  |  |                             width: 600,
 |