| 
					
				 | 
			
			
				@@ -611,7 +611,7 @@ LivingAllowanceInfo.importCallBack = function (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 LivingAllowanceInfo.initCheckFileTable = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $('#checkFileTable').bootstrapTable('destroy'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $('#checkFileTable').bootstrapTable({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        url: Feng.ctxPath + "/common/api/listTalentFile", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        url: Feng.ctxPath + "/common/api/listNonPredefinedFiles", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         method: 'POST', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         contentType: "application/x-www-form-urlencoded; charset=UTF-8", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -625,23 +625,23 @@ LivingAllowanceInfo.initCheckFileTable = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         showColumns: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         queryParams: function (params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return {"mainId": $("#batch").val(), "fileTypeId": "master_living_allowance"}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return {"batch": $("#batch").val(), "fileTag": "master_living_allowance"}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rowStyle: function (row, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return {css: {"word-break": "break-word", "white-space": "inherit"}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         columns: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    {title: '附件原名', field: 'orignName', visible: true, align: 'center', valign: 'middle', width: '120px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    {title: '附件原名', field: 'originalName', visible: true, align: 'center', valign: 'middle', width: '120px'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     {title: '预览', field: 'url', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         formatter: function (value, row, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             var sn = value.lastIndexOf("."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             var suffix = value.substring(sn + 1, value.length); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             var imgStr = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if (suffix == "pdf" || suffix == "PDF") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + value + "','" + row.id + "','" + row.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + value + "','" + row.id + "','" + row.originalName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + value + "','" + row.id + "','" + row.orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + value + "','" + row.id + "','" + row.originalName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 imgStr = '<img class=\"imgUrl\"  src=\"' + value + '\" style=\"width:25px;height:25px;\">'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -650,7 +650,7 @@ LivingAllowanceInfo.initCheckFileTable = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     {title: '操作', field: 'url', visible: true, align: 'center', valign: 'middle', width: '80px', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         formatter: function (value, row, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            return "<button type='button' onclick=\"downloadFile('" + row.id + "','" + row.type + "')\" class=\"btn btn-xs btn-success\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i>下载</button>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            return "<button type='button' onclick=\"downloadFile('" + row.id + "','6')\" class=\"btn btn-xs btn-success\"><i class=\"fa fa-download\" aria-hidden=\"true\"></i>下载</button>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     "<button type='button' onclick=\"LivingAllowanceInfo.deleteCheckFile('" + row.id + "','" + CONFIG.project_master_living_allowance + "')\" class=\"btn btn-xs btn-danger\">" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     "<i class=\"fa fa-times\"></i>删除" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     "</button>"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -692,9 +692,8 @@ LivingAllowanceInfo.checkFileUpload = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#upload_file ").unbind("change"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#upload_file ").change(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var formData = new FormData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formData.append("fileTypeId", "master_living_allowance"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formData.append("mainId", batch); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formData.append("fileId", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        formData.append("fileTag", "master_living_allowance"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        formData.append("memo", batch); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (var i = 0; i < $('#upload_file')[0].files.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             formData.append('file', $('#upload_file')[0].files[i]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -718,7 +717,7 @@ LivingAllowanceInfo.checkFileUpload = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 LivingAllowanceInfo.deleteCheckFile = function (id, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var operation = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var ajax = new $ax(Feng.ctxPath + "/common/api/deleteNonPredefinedFile", function (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (data.code = 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Feng.success(data.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $("#checkFileTable").bootstrapTable("refresh", {}); 
			 |