From ff87829a9cd1b17c6eadb88f0061b729f48693d7 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 1 Aug 2018 14:28:02 +0800 Subject: [PATCH] =?UTF-8?q?TreeTable=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ajax/libs/bootstrap-treetable/bootstrap-treetable.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js b/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js index 12bb2162..c05c92b3 100644 --- a/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js +++ b/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js @@ -105,6 +105,7 @@ var td = $(''); // 增加formatter渲染 if (column.formatter) { + td = $(''); td.html(column.formatter.call(this, item[column.field], item, index)); } else { td.text(item[column.field]); @@ -137,9 +138,9 @@ // 判断有没有选择列 if(i==0 && item.field=='selectItem'){ hasSelectItem = true; - th = $(''); + th = $(''); }else{ - th = $(''); + th = $(''); } th.text(item.title); thr.append(th); @@ -308,7 +309,7 @@ type : "GET", // 请求数据的ajax类型 url : null, // 请求数据的ajax的url ajaxParams : {}, // 请求数据的ajax的data属性 - expandColumn : 1,// 在哪一列上面显示展开按钮 + expandColumn : 0,// 在哪一列上面显示展开按钮 expandAll : false, // 是否全部展开 expandFirst : true, // 是否默认第一级展开--expandAll为false时生效 striped : false, // 是否各行渐变色