فهرست منبع

1、加入招聘会酒店自动下发权限功能
2、修改jsp

rayson 1 سال پیش
والد
کامیت
6736d15ef7
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      src/main/webapp/WEB-INF/views/modules/recruitment/mdeJobFairForm.jsp

+ 6 - 6
src/main/webapp/WEB-INF/views/modules/recruitment/mdeJobFairForm.jsp

@@ -31,15 +31,15 @@
 
         });
 
-        function addRow(list, idx, tpl, row) {
+        function addRow(list, idx, tpl, row,isLocal = false) {
 
+            if(false == isLocal) {
                 $(list).append(Mustache.render(tpl, {
                     idx: idx, delBtn: true, row: row, rowNo: idx + 1
                 }));
+            }
 
-            debugger
             $(list + idx).find("select").each(function () {
-                debugger
                 $(this).val($(this).attr("data-value"));
                 $(this).select2();
             });
@@ -384,8 +384,8 @@
                     </shiro:hasPermission>
                 </tr>
                 </thead>
-<%--                <tbody id="mdeFairDtlList">--%>
-<%--                </tbody>--%>
+                    <%--                <tbody id="mdeFairDtlList">--%>
+                    <%--                </tbody>--%>
                 <tbody id="mdeFairDtlList">
                 <c:forEach items="${mdeJobFair.mdeFairDtlList}" var="fairDtl" varStatus="status">
                     <tr id="mdeFairDtlList${status.index}">
@@ -549,7 +549,7 @@
                     console.log(data)
                     for (var i = 0; i < data.length; i++) {
                         console.log(data[i]);
-                        addRow('', mdeFairDtlRowIdx, mdeFairDtlTpl, data[i],true);
+                        addRow('#mdeFairDtlList', mdeFairDtlRowIdx, mdeFairDtlTpl, data[i], true);
                         mdeFairDtlRowIdx = mdeFairDtlRowIdx + 1;
                     }