From de31878b8dab39f758f0f783cff65199712310b6 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Fri, 10 Jun 2022 09:21:42 +0800 Subject: [PATCH] setter --- public/static/manager/js/mall/order.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/static/manager/js/mall/order.js b/public/static/manager/js/mall/order.js index a4035b0..8dd564c 100755 --- a/public/static/manager/js/mall/order.js +++ b/public/static/manager/js/mall/order.js @@ -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); } });