|
@@ -7,6 +7,8 @@
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
<link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
<link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
<link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
<link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
|
|
+ <%@include file="/webpage/include/treetable.jsp" %>
|
|
|
|
+
|
|
<style>
|
|
<style>
|
|
label.error{
|
|
label.error{
|
|
top:40px;
|
|
top:40px;
|
|
@@ -21,10 +23,10 @@
|
|
// var ss=$(span).val().split(" ")[4];
|
|
// var ss=$(span).val().split(" ")[4];
|
|
$(span).toggle(function () {
|
|
$(span).toggle(function () {
|
|
$(tiao).hide();
|
|
$(tiao).hide();
|
|
- $(span).find("span").attr("class","treeTable-icon")
|
|
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_shut")
|
|
},function () {
|
|
},function () {
|
|
$(tiao).show();
|
|
$(tiao).show();
|
|
- $(span).find("span").attr("class","treeTable-icon open")
|
|
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_open")
|
|
});
|
|
});
|
|
}
|
|
}
|
|
var validateForm;
|
|
var validateForm;
|
|
@@ -177,6 +179,14 @@
|
|
, trigger: 'click'
|
|
, trigger: 'click'
|
|
, trigger: 'click'
|
|
, trigger: 'click'
|
|
});
|
|
});
|
|
|
|
+ $(".tabMove").mouseover(function(){
|
|
|
|
+ //tips层-下
|
|
|
|
+ var td=$(this)
|
|
|
|
+ var tdval=$(this).find("input").val();
|
|
|
|
+ layer.tips(tdval, td, {
|
|
|
|
+ tips: 3
|
|
|
|
+ });
|
|
|
|
+ })
|
|
});
|
|
});
|
|
function hasInArr(id,idArr) {
|
|
function hasInArr(id,idArr) {
|
|
for(var i=0;i<idArr.length;i++){
|
|
for(var i=0;i<idArr.length;i++){
|
|
@@ -814,8 +824,8 @@
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目负责人:</label>
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目负责人:</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
- <sys:treeselect id="principal" name="projectReportData.principal.id" value="${projectReportData.principal.id}" labelName="projectReportData.principal.name" labelValue="${projectReportData.principal.name}"
|
|
|
|
- cssStyle="background-color:#fff" title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
|
|
+ <sys:reportedtreeselectUser id="principal" name="projectReportData.principal.id" value="${ruralProjectRecords.projectMasterId}" labelName="projectReportData.principal.name" labelValue="${projectRecords.projectMasterName}"
|
|
|
|
+ cssStyle="background-color:#fff" title="用户" url="/sys/office/treeDataAll?type=4" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
<div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
@@ -825,7 +835,88 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2><span class="require-item">*</span>咨询员</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-sm12 lw6">
|
|
|
|
+ <div class="layui-item nav-btns">
|
|
|
|
+ <div class="layui-item nav-btns" style="padding-left:0px;">
|
|
|
|
+ <a class="nav-btn nav-btn-add"
|
|
|
|
+ onclick="addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTpl);workClientBankRowIdx = workClientBankRowIdx + 1;"
|
|
|
|
+ title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
+ </div>
|
|
|
|
+ <table id="bankinfo" class="table table-bordered table-condensed can-edit">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="60px">编号</th>
|
|
|
|
+ <th ><span class="require-item">*</span>咨询员名称</th>
|
|
|
|
+ <th ><span class="require-item">*</span>注册/资格证号</th>
|
|
|
|
+ <th ><span class="require-item">*</span>专业</th>
|
|
|
|
+ <th ><span class="require-item">*</span>本人负责内容</th>
|
|
|
|
+ <th width="100px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="reportedConsultantList">
|
|
|
|
+ <c:forEach items="${info}" var = "info" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <td width="60px">
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_costNum" name="reportedConsultantList[${status.index+1}].costNum" readonly="readonly" style="text-align: center" value="${status.index+1}" type="text" class="form-control contentDetail"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <sys:reportedtreeselectUser id="reportedConsultantList${status.index+1}_zixunyuan" name="reportedConsultantList[${status.index+1}].zixunyuan" value="${info.zixunyuan}" labelName="workAccountList[${status.index+1}].zixunyuan" labelValue="${info.zixunyuanName}"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=4" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_zhucezigezhID" readonly="true" name="reportedConsultantList[${status.index+1}].zhucezigezhID" value="${info.zhucezigezhID}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_major" readonly="true" name="reportedConsultantList[${status.index+1}].major" value="${info.major}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_wordnr" placeholder="请输入本人负责内容" name="reportedConsultantList[${status.index+1}].wordnr" value="${info.wordnr}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="text-center op-td" width="10">
|
|
|
|
+ <span class="op-btn op-btn-delete" onclick="delRow(this, '#reportedConsultantList${status.index+1}')" title="删除"><i class="fa fa-trash"></i> 删除</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <script type="text/template" id="workClientBankTpl">//<!--
|
|
|
|
+ <tr id="reportedConsultantList{{idx}}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_id" name="reportedConsultantList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_delFlag" name="reportedConsultantList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_remindId" name="reportedConsultantList[{{idx}}].remindId" type="hidden" value="{{row.remindId}}"/>
|
|
|
|
+ </td>
|
|
|
|
|
|
|
|
+ <td width="60px">
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_costNum" name="reportedConsultantList[{{idx}}].costNum" readonly="readonly" style="text-align: center" value="{{idx}}" type="text" class="form-control contentDetail"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <sys:reportedtreeselectUser id="reportedConsultantList{{idx}}_zixunyuan" name="reportedConsultantList[{{idx}}].zixunyuan" value="{{row.zixunyuan}}" labelName="workAccountList[{{idx}}].zixunyuan" labelValue="{{row.zixunyuanName}}"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=4" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_zhucezigezhID" readonly="true" name="reportedConsultantList[{{idx}}].zhucezigezhID" value="{{row.zhucezigezhID}}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_major" readonly="true" name="reportedConsultantList[{{idx}}].major" value="{{row.major}}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_wordnr" placeholder="请输入本人负责内容" name="reportedConsultantList[{{idx}}].wordnr" value="{{row.wordnr}}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="text-center op-td" width="10">
|
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#reportedConsultantList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>//-->
|
|
|
|
+ </script>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
<div class="form-group-label"><h2>成果文件</h2></div>
|
|
<div class="form-group-label"><h2>成果文件</h2></div>
|
|
@@ -845,11 +936,11 @@
|
|
<input id="attachment_file" type="file" name="attachment_file" multiple="multiple" style="display: none;" onChange="if(this.value)insertTitle(this.value);"/>
|
|
<input id="attachment_file" type="file" name="attachment_file" multiple="multiple" style="display: none;" onChange="if(this.value)insertTitle(this.value);"/>
|
|
<span id="attachment_title"></span>
|
|
<span id="attachment_title"></span>
|
|
<div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
<div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
- <table id="upTable" class="table table-bordered table-condensed details">
|
|
|
|
|
|
+ <table id="upTable" class="table table-bordered table-condensed details tree_table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<%-- <th>序号</th>--%>
|
|
<%-- <th>序号</th>--%>
|
|
- <th width="40%">电子件名称</th>
|
|
|
|
|
|
+ <th width="30%">电子件名称</th>
|
|
<%-- <th width="100px">最大容量(M)</th>--%>
|
|
<%-- <th width="100px">最大容量(M)</th>--%>
|
|
<th>类型限制</th>
|
|
<th>类型限制</th>
|
|
<%-- <th>文件名</th>--%>
|
|
<%-- <th>文件名</th>--%>
|
|
@@ -864,10 +955,10 @@
|
|
<td style="display:none">${fileAttachment.mustFlag}</td>
|
|
<td style="display:none">${fileAttachment.mustFlag}</td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fileAttachment.mustFlag == 1}">
|
|
<c:when test="${fileAttachment.mustFlag == 1}">
|
|
- <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span><span style="color: red">* </span>${fileAttachment.attachName}</td>
|
|
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileAttachment.attachName}<input type="hidden" value="${fileAttachment.attachName}"/></td>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
- <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>${fileAttachment.attachName}</td>
|
|
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileAttachment.attachName}<input type="hidden" value="${fileAttachment.attachName}"/></td>
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
<td>${fileAttachment.attachLength}M;${fileAttachment.attachTypes}</td>
|
|
<td>${fileAttachment.attachLength}M;${fileAttachment.attachTypes}</td>
|
|
@@ -924,7 +1015,7 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
- <div class="form-group-label"><h2>依据性资料</h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2>依据性文件</h2></div>
|
|
<%-- <div class="layui-item nav-btns">--%>
|
|
<%-- <div class="layui-item nav-btns">--%>
|
|
<%-- <%–<a id="gistdata_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>–%>--%>
|
|
<%-- <%–<a id="gistdata_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>–%>--%>
|
|
<%-- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=12&projectType=2&projectId=${projectId}&reviewFee='+$('#reviewFee').val(),'500px','350px',false,'inputForm','file_gistdata')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>--%>
|
|
<%-- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=12&projectType=2&projectId=${projectId}&reviewFee='+$('#reviewFee').val(),'500px','350px',false,'inputForm','file_gistdata')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>--%>
|
|
@@ -941,11 +1032,11 @@
|
|
<input id="gistdata_file" type="file" name="gistdata_file" multiple="multiple" style="display: none;" onChange="if(this.value)gistdataInsertTitle(this.value);"/>
|
|
<input id="gistdata_file" type="file" name="gistdata_file" multiple="multiple" style="display: none;" onChange="if(this.value)gistdataInsertTitle(this.value);"/>
|
|
<span id="gistdata_title"></span>
|
|
<span id="gistdata_title"></span>
|
|
<div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
<div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
- <table id="gistdata_upTable" class="table table-bordered table-condensed details">
|
|
|
|
|
|
+ <table id="gistdata_upTable" class="table table-bordered table-condensed details tree_table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<%-- <th>序号</th>--%>
|
|
<%-- <th>序号</th>--%>
|
|
- <th width="40%">电子件名称</th>
|
|
|
|
|
|
+ <th width="30%">电子件名称</th>
|
|
<%-- <th width="100px">最大容量(M)</th>--%>
|
|
<%-- <th width="100px">最大容量(M)</th>--%>
|
|
<th>类型限制</th>
|
|
<th>类型限制</th>
|
|
<%-- <th>文件名</th>--%>
|
|
<%-- <th>文件名</th>--%>
|
|
@@ -960,10 +1051,10 @@
|
|
<td style="display:none">${fileGistdata.mustFlag}</td>
|
|
<td style="display:none">${fileGistdata.mustFlag}</td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fileOther.mustFlag == 1}">
|
|
<c:when test="${fileOther.mustFlag == 1}">
|
|
- <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span><span style="color: red">* </span>${fileGistdata.attachName}</td>
|
|
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileGistdata.attachName}<input type="hidden" value="${fileGistdata.attachName}"/></td>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
- <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>${fileGistdata.attachName}</td>
|
|
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileGistdata.attachName}<input type="hidden" value="${fileGistdata.attachName}"/></td>
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
<td>${fileGistdata.attachLength}M;${fileGistdata.attachTypes}</td>
|
|
<td>${fileGistdata.attachLength}M;${fileGistdata.attachTypes}</td>
|
|
@@ -1037,7 +1128,7 @@
|
|
<input id="other_file" type="file" name="other_file" multiple="multiple" style="display: none;" onChange="if(this.value)otherInsertTitle(this.value);"/>
|
|
<input id="other_file" type="file" name="other_file" multiple="multiple" style="display: none;" onChange="if(this.value)otherInsertTitle(this.value);"/>
|
|
<span id="other_title"></span>
|
|
<span id="other_title"></span>
|
|
<div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
<div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
- <table id="upTable_other" class="table table-bordered table-condensed details">
|
|
|
|
|
|
+ <table id="upTable_other" class="table table-bordered table-condensed details tree_table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<%-- <th>序号</th>--%>
|
|
<%-- <th>序号</th>--%>
|
|
@@ -1056,10 +1147,10 @@
|
|
<td style="display:none">${fileOther.mustFlag}</td>
|
|
<td style="display:none">${fileOther.mustFlag}</td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fileOther.mustFlag == 1}">
|
|
<c:when test="${fileOther.mustFlag == 1}">
|
|
- <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span><span style="color: red">* </span>${fileOther.attachName}</td>
|
|
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileOther.attachName}<input type="hidden" value="${fileOther .attachName}"/></td>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
- <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>${fileOther.attachName}</td>
|
|
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileOther.attachName}<input type="hidden" value="${fileOther.attachName}"/></td>
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
<td>${fileOther.attachLength}M;${fileOther.attachTypes}</td>
|
|
<td>${fileOther.attachLength}M;${fileOther.attachTypes}</td>
|
|
@@ -1296,24 +1387,16 @@
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
-
|
|
|
|
- function addRowBaseData(list, idx, tpl, row){
|
|
|
|
- bornTemplete(list, idx, tpl, row, idx);
|
|
|
|
|
|
+ function addRow(list, idx, tpl, row){
|
|
|
|
+ var idx1 = $("#reportedConsultantList tr").length;
|
|
|
|
+ idx1 +=1;
|
|
|
|
+ bornTemplete(list, idx1, tpl, row, idx);
|
|
}
|
|
}
|
|
|
|
|
|
function bornTemplete(list, idx, tpl, row, idx1){
|
|
function bornTemplete(list, idx, tpl, row, idx1){
|
|
- var idx1 = '';
|
|
|
|
- if(list == 'file_attachment'){
|
|
|
|
- idx1 = $("#file_attachment tr").length +1;
|
|
|
|
- }else if(list == 'file_gistdata'){
|
|
|
|
- idx1 = $("#file_gistdata tr").length +1;
|
|
|
|
- }else if(list == 'file_other'){
|
|
|
|
- idx1 = $("#file_other tr").length +1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
$(list).append(Mustache.render(tpl, {
|
|
$(list).append(Mustache.render(tpl, {
|
|
idx: idx, delBtn: true, row: row,
|
|
idx: idx, delBtn: true, row: row,
|
|
- order:idx1 + 1, idx1:idx1
|
|
|
|
|
|
+ order:idx1 + 1
|
|
}));
|
|
}));
|
|
$(list+idx).find("select").each(function(){
|
|
$(list+idx).find("select").each(function(){
|
|
$(this).val($(this).attr("data-value"));
|
|
$(this).val($(this).attr("data-value"));
|
|
@@ -1327,6 +1410,36 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ // function addRowBaseData(list, idx, tpl, row){
|
|
|
|
+ // bornTemplete(list, idx, tpl, row, idx);
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // function bornTemplete(list, idx, tpl, row, idx1){
|
|
|
|
+ // var idx1 = '';
|
|
|
|
+ // if(list == 'file_attachment'){
|
|
|
|
+ // idx1 = $("#file_attachment tr").length +1;
|
|
|
|
+ // }else if(list == 'file_gistdata'){
|
|
|
|
+ // idx1 = $("#file_gistdata tr").length +1;
|
|
|
|
+ // }else if(list == 'file_other'){
|
|
|
|
+ // idx1 = $("#file_other tr").length +1;
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // $(list).append(Mustache.render(tpl, {
|
|
|
|
+ // idx: idx, delBtn: true, row: row,
|
|
|
|
+ // order:idx1 + 1, idx1:idx1
|
|
|
|
+ // }));
|
|
|
|
+ // $(list+idx).find("select").each(function(){
|
|
|
|
+ // $(this).val($(this).attr("data-value"));
|
|
|
|
+ // });
|
|
|
|
+ // $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
+ // var ss = $(this).attr("data-value").split(',');
|
|
|
|
+ // for (var i=0; i<ss.length; i++){
|
|
|
|
+ // if($(this).val() == ss[i]){
|
|
|
|
+ // $(this).attr("checked","checked");
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
function delRowBaseData(obj, prefix,userId){
|
|
function delRowBaseData(obj, prefix,userId){
|
|
var id = $(prefix+"_id").val();
|
|
var id = $(prefix+"_id").val();
|
|
var currentUser = '${fns:getUser().id}';
|
|
var currentUser = '${fns:getUser().id}';
|
|
@@ -1410,7 +1523,25 @@
|
|
top.layer.close(index);
|
|
top.layer.close(index);
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function delRow(obj, prefix){
|
|
|
|
+ var id = $(prefix+"_id");
|
|
|
|
+ var delFlag = $(prefix+"_delFlag");
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ var workClientBankRowIdx = 0,
|
|
|
|
+ workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ var dataBank = ${fns:toJson(ruralProjectRecordsReported.reportedConsultantList)};
|
|
|
|
+ for (var i = 0; i < dataBank.length; i++) {
|
|
|
|
+ addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTpl, dataBank[i]);
|
|
|
|
+ workClientBankRowIdx = workClientBankRowIdx + 1;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|