大家好,又见面了,我是你们的朋友全栈君。
html
js
var table= {
id: “treeTable”,
table: null,
layerIndex: -1
};
/**
- 初始化表格的列
*/
tableTer.initColumn = function () {
var columns = [
{field: ‘selectItem’, radio: true},
{title: ‘xxx’, field: ‘xxx’, visible: false, align: ‘center’, valign: ‘middle’, width: ‘100px’},
{title: ‘xxx’, field: ‘xxx’, align: ‘center’, valign: ‘middle’, sortable: true, width: ‘290px’},
{title: ‘xxx’, field: ‘xxx’, align: ‘center’, valign: ‘middle’, sortable: true, width: ‘110px’},
{title: ‘xxx’, field: ‘xxx’, align: ‘center’, valign: ‘middle’, sortable: true, width: ‘90px’},
{title: ‘xxx’, field: ‘xxx’, align: ‘center’, valign: ‘middle’, sortable: true, width: ‘90px’}]
return columns;
};
$(function () {
var column = tableTer.initColumn();
var table = new TreeTable(ID, baseURL + “查询数据路径”, column);
table.setExpandColumn(2);
table.setIdField(“ID”);
table.setCodeField(“ID”);
table.setParentCodeField(“父id”);
table.setExpandAll(false);
table.init();
tableTer.table = table;
});
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/136455.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...