Layui弹出层中使用数据表格数据显示延迟

提问 未结 7 184
铭感不忘
铭感不忘 2020-2-21
悬赏:20飞吻
版本:layui 2.5.5 浏览器:谷歌
function setExamineFormValue(obj, data) {
//计划详情表格
table.render({
elem: '#plan_content'
,url:'/market/selPlan'
,page: true
,title: '机会计划表'
,limit: 5
,where:{ch_id:data.id}
, parseData: function (res) {
alert(res.datasize)
alert(res.plans)
return {
"code": res.code,//数据状态
"msg": res.msg,//状态信息
"count": res.datasize, //解析数据长度
"data": res.plans
}
}
, cols: [[
{
field: 'p_date',
title: '日期',
width: 170,
align: 'center'
}, {
field: 'p_project',
title: '计划项',
width: 500,
align: 'center'
}, {
fixed: 'right',
title: '操作',
width:165,
align: 'center',
toolbar: '#opePlan'
}
]]
});
form.val("checkThePlan", {
"id": data.id
, "ch_name": data.ch_name
, "ch_source": data.ch_source
, "ch_odds": data.ch_odds
, "ch_outline": data.ch_outline
, "ch_peole": data.ch_peole
, "ch_tel": data.ch_tel
, "ch_describe": data.ch_describe
, "ch_creater_name": data.ch_creater_name
, "ch_date": data.ch_date
, "ch_time": data.ch_time
});
}
<div class="layui-row" id="details_table" style="display:none;">
<form class="layui-form" action="" lay-filter="checkThePlan">
<table>
<tr>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">编号</td>
<td width="30%"><input type="text" name="id"></td>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">客户名称</td>
<td width="30%"><input type="text" name="ch_name"></td>
</tr>
<tr>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">机会来源</td>
<td width="30%"><input type="text" name="ch_source"></td>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">成功几率(%)</td>
<td width="30%"><input type="text" name="ch_odds"></td>
</tr>
<tr>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">联系人</td>
<td width="30%"><input type="text" name="ch_peole"></td>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">联系电话</td>
<td width="30%"><input type="text" name="ch_tel"></td>
</tr>
<tr>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">概要</td>
<td colspan="3"><input type="text" name="ch_outline"></td>
</tr>
<tr>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">机会描述</td>
<td colspan="3"><input type="text" name="ch_describe"></td>
</tr>
<tr>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">指派时间</td>
<td width="30%"><input type="text" name="ch_time"></td>
<td width="20%" style="background-color:#f2f2f2; text-align:center;">创建人</td>
<td width="30%"><input type="text" name="ch_creater_name"></td>
</tr>
</table>
<table class="layui-hide" id="plan_content" lay-filter="plan_content"></table>
</form>
</div>
回帖