...
|
...
|
@@ -42,10 +42,8 @@ var Bll = { |
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* 获取数据
|
|
|
* 列表
|
|
|
*/
|
|
|
|
|
|
|
|
|
var g = new common.grid({
|
|
|
el: "#basicTable",
|
|
|
columns: [
|
...
|
...
|
@@ -65,22 +63,13 @@ var g = new common.grid({ |
|
|
function init(item) {
|
|
|
if (top) {
|
|
|
html += "<div id='category_id_" + item.id + "' class='level-wrap clearfix'>";
|
|
|
if (item.isRefundExchange == 0) {
|
|
|
isRefundExchange = 0;
|
|
|
}
|
|
|
top = false;
|
|
|
} else {
|
|
|
html += "<div id='category_id_" + item.id + "' class='level-wrap clearfix level_" + item.sortLevel + "' style='display: none'>";
|
|
|
if (item.isRefundExchange == 0) {
|
|
|
isRefundExchange = 0;
|
|
|
}
|
|
|
}
|
|
|
html += common.util.__template2($('#tableTemp2').html(), item);
|
|
|
if (item.subList) {
|
|
|
if (item.subList.length>0) {//如果有子集
|
|
|
for (var i = 0; i < item.subList.length; i++) {
|
|
|
if (isRefundExchange == 0) {
|
|
|
item.subList[i].isok = true;
|
|
|
}
|
|
|
init(item.subList[i]);
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -97,6 +86,11 @@ g.init(Bll.dataList); |
|
|
$(document).on('click', '.folder', function () {
|
|
|
var $wrap = $(this).parent();
|
|
|
if (!$(this).hasClass('open')) {
|
|
|
var isfont = $(this).data('name');
|
|
|
if(isfont==0){
|
|
|
$wrap.find('.level-wrap .operate a').hide();
|
|
|
}
|
|
|
|
|
|
if ($wrap.find('> .level-wrap').size() > 0) {
|
|
|
var position = $(this).css("background-position");
|
|
|
var a = position.substring(0, position.indexOf("px"));
|
...
|
...
|
|