前端接口对接

This commit is contained in:
pengyb 2024-08-21 13:08:18 +08:00
parent ee03de8f4c
commit 4c3a9a28d6
3 changed files with 7 additions and 2 deletions

View File

@ -93,7 +93,7 @@
</div>
<!-- 栏目7 -->
<div class="layui-tab-item">
<iframe src="./wagesReport/wagesReportList.html" frameborder="0" width="100%"
<iframe src="./wagesReport/wagesReportList.html" id="wagesFrame" frameborder="0" width="100%"
height="100%"></iframe>
</div>
</div>

View File

@ -51,8 +51,11 @@ function init(){
var attendanceFrame = $("#attendanceFrame")[0];
var attendanceWindow = attendanceFrame.contentWindow;
attendanceWindow.init();
attendanceWindow.initTable1();
var wagesFrame = $("#wagesFrame")[0];
var wagesWindow = wagesFrame.contentWindow;
wagesWindow.init();
},
});
},

View File

@ -71,12 +71,14 @@ function resetClick(){
* 初始化数据
*/
function init(){
var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
// 渲染表格
table.render({
id: 'layui_table',
elem: '#table',
url: PATH_URL + '/wages/getWagesEscalationList',
where: {
yjId: yjId
},
page: true, //开启分页
method:'post',