$(function() { layui.use('laydate', function(){ var laydate = layui.laydate; //日期时间选择器 laydate.render({ elem: '#startTime', done:function (data) { var endTime=$("#endTime").val(); if(data>endTime && endTime!=''){ layer.msg("开始时间不能大于结束时间"); $("#startTime").val(''); } } }); laydate.render({ elem: '#endTime', done:function (data) { var startTime=$("#startTime").val(); if(data 0) { var leng = (pageNum - 1) * pageSize; for (var i = 0; i < results.length; i++) { var l = results[i]; html += ""; html += "" + (i + leng + 1) + ""; html += ""+ JY.Object.notEmpty(l.launchName) + ""; html += ""+ JY.Object.notEmpty(l.launchTime) + ""; html += ""+ JY.Object.notEmpty(l.finishTime) + ""; html += ""+ JY.Object.notEmpty(l.maType) + ""; html += ""+ JY.Object.notEmpty(l.receiveName) + ""; if(l.checkStatus == 4 || l.checkStatus == '4'){ html += "待生成二维码"; }else if(l.checkStatus == 5 || l.checkStatus =='5') { html += "待下载二维码"; }else{ html += "已完成"; } html += rowFunction(l.taskId); html += ""; } $("#baseTable tbody").append(html); JY.Page.setPage("baseForm", "pageing", pageSize,pageNum, totalRecord, "getbaseList"); } else { html += "没有相关数据"; $("#baseTable tbody").append(html); $("#pageing ul").empty();// 清空分页 } JY.Model.loadingClose(); } ); } function rowFunction(id) { var h = ""; h += ""; h += ""; h += ""; h += ""; return h; } function details(id){ localStorage.setItem("taskId",id); //iframe层-父子操作 layer.open({ type: 2, title:['打印机具类型列表','background-color: #27A3D9;color:#fff'], shadeClose:true, shade:false, maxmin: true, area: ['850px', '500px'], content:bonuspath + '/backstage/inputQrcode/details' }); }