在layui 表格中列操作中插入input 表单输入框,实现数据内容监听效果;
实现效果1:
代码实现:
layui.use(['form','layer', 'table', 'laytpl','laydate'], function() {
var layer = layui.layer,
$ = layui.jquery,
form = layui.form,
table = layui.table,
laytpl = layui.laytpl,
laydate = layui.laydate;
//请求条件
var where={start_time:start,end_time:end,status:status};
itemslist(where);
//渲染商品内容
function itemslist(where){
table.render({
elem: '#itemslist',
url:'/api/fresh/orderItems',
id:'itemslist',
toolbar: '#toolBar',
defaultToolbar: [],
title: '生成采购单商品',
where:where,
page:true,
cols: [[