|
@@ -77,7 +77,7 @@
|
|
"<input readonly='true' name='ProInfoType' style='text-align: center' class=\"form-control required\" value='"+type+"'></td>"+
|
|
"<input readonly='true' name='ProInfoType' style='text-align: center' class=\"form-control required\" value='"+type+"'></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"><input readonly='true' name='ProInfoName' style='text-align: center' class=\"form-control\" value='"+name+"'></input></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"><input readonly='true' name='ProInfoName' style='text-align: center' class=\"form-control\" value='"+name+"'></input></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
- "<td width=\"20%\">" +
|
|
|
|
|
|
+ "<td width=\"20%\" style='padding-top: 8px;'>" +
|
|
"<span href=javascript:void(0); onclick=\"addRowInfoForm("+edit+","+editId+")\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
"<span href=javascript:void(0); onclick=\"addRowInfoForm("+edit+","+editId+")\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<input type='text' class='" + jsonInput + "' name='proInfos' style='display: none;' value='"+proJson+"' />"+
|
|
"<input type='text' class='" + jsonInput + "' name='proInfos' style='display: none;' value='"+proJson+"' />"+
|
|
@@ -128,16 +128,16 @@
|
|
}
|
|
}
|
|
if(flag) {
|
|
if(flag) {
|
|
$("#projectList").append("<tr class='rowSize' onclick='listTr(this)'>" +
|
|
$("#projectList").append("<tr class='rowSize' onclick='listTr(this)'>" +
|
|
- "<td><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + obj.id + "><input type=\"hidden\" name=\"projectid\" value=" + obj.id + "><span><i class=\"layui-icon layui-icon-triangle-d\"></i></span>" + obj.projectId + "</td>" +
|
|
|
|
- "<td>" + obj.projectName + "</td>" +
|
|
|
|
- "<td>" + obj.projectReportNumber + "</td>" +
|
|
|
|
|
|
+ "<td ><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + obj.id + "><input type=\"hidden\" name=\"projectid\" value=" + obj.id + "/><span><i class=\"layui-icon layui-icon-triangle-d\"></i></span>" + obj.projectId + "</td>" +
|
|
|
|
+ "<td >" + obj.projectName + "</td>" +
|
|
|
|
+ "<td >" + obj.projectReportNumber + "</td>" +
|
|
"<td class=\"text-center op-td\" >" +
|
|
"<td class=\"text-center op-td\" >" +
|
|
"<span class=\"op-btn op-btn-add\" onclick=\"addRowInfoForm("+tid+","+id+")\" title=\"添加\"><i class=\"fa fa-plus\"></i> 添加</span>" +
|
|
"<span class=\"op-btn op-btn-add\" onclick=\"addRowInfoForm("+tid+","+id+")\" title=\"添加\"><i class=\"fa fa-plus\"></i> 添加</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListRow(this," + id + ")\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListRow(this," + id + ")\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"</td>" +
|
|
"</td>" +
|
|
"</tr>")
|
|
"</tr>")
|
|
$("#projectList").append("<tr class='"+obj.id+"' style='display: none;'> <td colspan='4' style='padding: 0px;'>" +
|
|
$("#projectList").append("<tr class='"+obj.id+"' style='display: none;'> <td colspan='4' style='padding: 0px;'>" +
|
|
- "<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
|
|
|
|
+ "<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed can-edit\">" +
|
|
"<tbody id='" + id + "'>" +
|
|
"<tbody id='" + id + "'>" +
|
|
"<input type='text' id='" + id + "_len' style='display: none;' name='flags' />"+
|
|
"<input type='text' id='" + id + "_len' style='display: none;' name='flags' />"+
|
|
"</tbody>" +
|
|
"</tbody>" +
|
|
@@ -159,20 +159,21 @@
|
|
$(iid).parent().parent().parent().show();
|
|
$(iid).parent().parent().parent().show();
|
|
$.each(result.data,function(index,value){
|
|
$.each(result.data,function(index,value){
|
|
$(iid).append(
|
|
$(iid).append(
|
|
- "<tr class='listInfo' style='position: relative'>"+
|
|
|
|
|
|
+ "<tr class='listInfo'>"+
|
|
// "<td class=\"hide\">"+
|
|
// "<td class=\"hide\">"+
|
|
// "<input type='file' multiple='multiple' style='display: none;' onChange='if(this.value)insertAccording(this.value,"+obj.id+",this);'/>"+
|
|
// "<input type='file' multiple='multiple' style='display: none;' onChange='if(this.value)insertAccording(this.value,"+obj.id+",this);'/>"+
|
|
// "<input type='hidden' style='display: none;' id='attId' value='"+value.id+"'/>"+
|
|
// "<input type='hidden' style='display: none;' id='attId' value='"+value.id+"'/>"+
|
|
// "<input type='hidden' style='display: none;' id='fileUrl' value='"+value.url+"'/>"+
|
|
// "<input type='hidden' style='display: none;' id='fileUrl' value='"+value.url+"'/>"+
|
|
// "</td>"+
|
|
// "</td>"+
|
|
"<td style=\"text-align: center;position: relative;\" width=\"20%\">" +
|
|
"<td style=\"text-align: center;position: relative;\" width=\"20%\">" +
|
|
- "<input name='proInfoType' onChange='upwType(this)' style='text-align: center' readonly='true' class=\"form-control required\" value='"+value.proInfoType+"'/></td>"+
|
|
|
|
|
|
+ "<input name='proInfoType' style='text-align: center' readonly='true' class=\"form-control\" value='"+value.proInfoType+"'/></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"><input readonly='true' name='proInfoName' style='text-align: center' class=\"form-control required\" value='"+value.proInfoName+"'/></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"><input readonly='true' name='proInfoName' style='text-align: center' class=\"form-control required\" value='"+value.proInfoName+"'/></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
- "<td width=\"20%\">" +
|
|
|
|
|
|
+ "<td width=\"20%\" style='padding-top : 8px;'>" +
|
|
"<span href=javascript:void(0); onclick=\"addRowInfoForm("+tid+","+id+")\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
"<span href=javascript:void(0); onclick=\"addRowInfoForm("+tid+","+id+")\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<input type='text' class='" + id + "_json' style='display: none;' name='proInfos' />"+
|
|
"<input type='text' class='" + id + "_json' style='display: none;' name='proInfos' />"+
|
|
|
|
+ "<input type='text' style='display: none;' class='typeId' value='"+value.id+"' />"+
|
|
"</td>"+
|
|
"</td>"+
|
|
"</tr>"
|
|
"</tr>"
|
|
)
|
|
)
|
|
@@ -210,7 +211,21 @@
|
|
},100);
|
|
},100);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ function delListInfoRow(obj, prefix){
|
|
|
|
+ var tr=$(obj).parent().parent();
|
|
|
|
+ var id=$(tr).find("td").eq(3).find(".typeId").val();
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ // $(obj).parent().parent().parent().parent().parent().parent().remove();
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:"post",
|
|
|
|
+ url:"${ctx}/projectFilingBatch/projectFilingBatchInfo/deleteById",
|
|
|
|
+ data:{"id":id},
|
|
|
|
+ dataType:"json",
|
|
|
|
+ success:function (d) {
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
function insertTitle(tValue){
|
|
function insertTitle(tValue){
|
|
var files = $("#attachment_file")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
var files = $("#attachment_file")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
var attachmentId = $("#id").val();
|
|
var attachmentId = $("#id").val();
|
|
@@ -295,12 +310,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="form-group layui-row first">
|
|
|
|
|
|
+ <div class="form-group layui-row first">
|
|
<div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
<div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" style="padding:0px">
|
|
<table id="contentTable2" class="table table-bordered table-condensed details">
|
|
<table id="contentTable2" class="table table-bordered table-condensed details">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th class="hide"></th>
|
|
|
|
|
|
+<%-- <th class="hide"></th>--%>
|
|
<th style="text-align: center" width="20%">归档项目编号</th>
|
|
<th style="text-align: center" width="20%">归档项目编号</th>
|
|
<th style="text-align: center" width="20%">归档项目名称</th>
|
|
<th style="text-align: center" width="20%">归档项目名称</th>
|
|
<th style="text-align: center" width="20%">报告号</th>
|
|
<th style="text-align: center" width="20%">报告号</th>
|
|
@@ -352,6 +368,7 @@
|
|
<%-- </c:choose>--%>
|
|
<%-- </c:choose>--%>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
</form:form>
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|