setter
parent
aba2549b1c
commit
de31878b8d
|
@ -371,7 +371,7 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect', 'laydate'
|
|||
|
||||
// 渲染表格
|
||||
let listUrl = $('#table-container').data('url');
|
||||
let insTb = table.render({
|
||||
var insTb = table.render({
|
||||
elem: '#table-container',
|
||||
toolbar: '#toolbar-tpl-detail',
|
||||
defaultToolbar: [],
|
||||
|
@ -433,6 +433,7 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect', 'laydate'
|
|||
Tools.setInsTb(insTb);
|
||||
}
|
||||
});
|
||||
Tools.setInsTb(insTb)
|
||||
//监听单元格编辑
|
||||
table.on('edit(table-container)', function(obj){
|
||||
let indexLoad = layer.load(2);
|
||||
|
@ -443,8 +444,8 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect', 'laydate'
|
|||
layer.close(indexLoad);
|
||||
layer.msg(res.msg)
|
||||
if (res.code === 0) {
|
||||
$("#order_original_price").text(res.data.original_price);
|
||||
insTb.refresh();
|
||||
$("#order_original_price").val(res.data.original_price);
|
||||
refreshTab(insTb);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue