|
@@ -42,10 +42,8 @@ var Bll = { |
|
@@ -42,10 +42,8 @@ var Bll = { |
42
|
}
|
42
|
}
|
43
|
};
|
43
|
};
|
44
|
/**
|
44
|
/**
|
45
|
- * 获取数据
|
45
|
+ * 列表
|
46
|
*/
|
46
|
*/
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
var g = new common.grid({
|
47
|
var g = new common.grid({
|
50
|
el: "#basicTable",
|
48
|
el: "#basicTable",
|
51
|
columns: [
|
49
|
columns: [
|
|
@@ -65,22 +63,13 @@ var g = new common.grid({ |
|
@@ -65,22 +63,13 @@ var g = new common.grid({ |
65
|
function init(item) {
|
63
|
function init(item) {
|
66
|
if (top) {
|
64
|
if (top) {
|
67
|
html += "<div id='category_id_" + item.id + "' class='level-wrap clearfix'>";
|
65
|
html += "<div id='category_id_" + item.id + "' class='level-wrap clearfix'>";
|
68
|
- if (item.isRefundExchange == 0) {
|
|
|
69
|
- isRefundExchange = 0;
|
|
|
70
|
- }
|
|
|
71
|
top = false;
|
66
|
top = false;
|
72
|
} else {
|
67
|
} else {
|
73
|
html += "<div id='category_id_" + item.id + "' class='level-wrap clearfix level_" + item.sortLevel + "' style='display: none'>";
|
68
|
html += "<div id='category_id_" + item.id + "' class='level-wrap clearfix level_" + item.sortLevel + "' style='display: none'>";
|
74
|
- if (item.isRefundExchange == 0) {
|
|
|
75
|
- isRefundExchange = 0;
|
|
|
76
|
- }
|
|
|
77
|
}
|
69
|
}
|
78
|
html += common.util.__template2($('#tableTemp2').html(), item);
|
70
|
html += common.util.__template2($('#tableTemp2').html(), item);
|
79
|
- if (item.subList) {
|
71
|
+ if (item.subList.length>0) {//如果有子集
|
80
|
for (var i = 0; i < item.subList.length; i++) {
|
72
|
for (var i = 0; i < item.subList.length; i++) {
|
81
|
- if (isRefundExchange == 0) {
|
|
|
82
|
- item.subList[i].isok = true;
|
|
|
83
|
- }
|
|
|
84
|
init(item.subList[i]);
|
73
|
init(item.subList[i]);
|
85
|
}
|
74
|
}
|
86
|
}
|
75
|
}
|
|
@@ -97,6 +86,11 @@ g.init(Bll.dataList); |
|
@@ -97,6 +86,11 @@ g.init(Bll.dataList); |
97
|
$(document).on('click', '.folder', function () {
|
86
|
$(document).on('click', '.folder', function () {
|
98
|
var $wrap = $(this).parent();
|
87
|
var $wrap = $(this).parent();
|
99
|
if (!$(this).hasClass('open')) {
|
88
|
if (!$(this).hasClass('open')) {
|
|
|
89
|
+ var isfont = $(this).data('name');
|
|
|
90
|
+ if(isfont==0){
|
|
|
91
|
+ $wrap.find('.level-wrap .operate a').hide();
|
|
|
92
|
+ }
|
|
|
93
|
+
|
100
|
if ($wrap.find('> .level-wrap').size() > 0) {
|
94
|
if ($wrap.find('> .level-wrap').size() > 0) {
|
101
|
var position = $(this).css("background-position");
|
95
|
var position = $(this).css("background-position");
|
102
|
var a = position.substring(0, position.indexOf("px"));
|
96
|
var a = position.substring(0, position.indexOf("px"));
|