Showing
3 changed files
with
70 additions
and
0 deletions
@@ -128,11 +128,16 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | @@ -128,11 +128,16 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | ||
128 | , done: function (res) { | 128 | , done: function (res) { |
129 | if (res && res.data ) { | 129 | if (res && res.data ) { |
130 | let arr=res.data; | 130 | let arr=res.data; |
131 | + let colsArr=[]; | ||
132 | + cols.map(item=>{ | ||
133 | + colsArr.push(item.field) | ||
134 | + }) | ||
131 | if(fieldExpandArr.indexOf(resType)!=-1){ | 135 | if(fieldExpandArr.indexOf(resType)!=-1){ |
132 | }else{ | 136 | }else{ |
133 | fieldExpandArr.push(resType); | 137 | fieldExpandArr.push(resType); |
134 | if(arr.length>0){ | 138 | if(arr.length>0){ |
135 | arr.map(item=>{ | 139 | arr.map(item=>{ |
140 | + if(colsArr.indexOf(item.field)==-1){ | ||
136 | let listStr=''; | 141 | let listStr=''; |
137 | if(item.list && item.list.length>0){ | 142 | if(item.list && item.list.length>0){ |
138 | listStr=item.list.join(',') | 143 | listStr=item.list.join(',') |
@@ -149,6 +154,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | @@ -149,6 +154,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | ||
149 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 154 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
150 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 155 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
151 | </div></div>`}) | 156 | </div></div>`}) |
157 | + } | ||
158 | + | ||
152 | }) | 159 | }) |
153 | } | 160 | } |
154 | } | 161 | } |
@@ -268,11 +275,16 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | @@ -268,11 +275,16 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | ||
268 | , done: function (res) { | 275 | , done: function (res) { |
269 | if (res && res.data ) { | 276 | if (res && res.data ) { |
270 | let arr=res.data; | 277 | let arr=res.data; |
278 | + let colsArr=[]; | ||
279 | + cols.map(item=>{ | ||
280 | + colsArr.push(item.field) | ||
281 | + }) | ||
271 | if(fieldExpandArr.indexOf(resType)!=-1){ | 282 | if(fieldExpandArr.indexOf(resType)!=-1){ |
272 | }else{ | 283 | }else{ |
273 | fieldExpandArr.push(resType); | 284 | fieldExpandArr.push(resType); |
274 | if(arr.length>0){ | 285 | if(arr.length>0){ |
275 | arr.map(item=>{ | 286 | arr.map(item=>{ |
287 | + if(colsArr.indexOf(item.field)==-1){ | ||
276 | let listStr=''; | 288 | let listStr=''; |
277 | if(item.list && item.list.length>0){ | 289 | if(item.list && item.list.length>0){ |
278 | listStr=item.list.join(',') | 290 | listStr=item.list.join(',') |
@@ -289,6 +301,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | @@ -289,6 +301,8 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'soulTable', 'sessions', 'comm | ||
289 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 301 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
290 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 302 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
291 | </div></div>`}) | 303 | </div></div>`}) |
304 | + } | ||
305 | + | ||
292 | }) | 306 | }) |
293 | } | 307 | } |
294 | } | 308 | } |
@@ -447,11 +447,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -447,11 +447,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
447 | , done: function (res) { | 447 | , done: function (res) { |
448 | if (res && res.data ) { | 448 | if (res && res.data ) { |
449 | let arr=res.data; | 449 | let arr=res.data; |
450 | + let colsArr=[]; | ||
451 | + cols.map(item=>{ | ||
452 | + colsArr.push(item.field) | ||
453 | + }) | ||
450 | if(fieldExpandArr.indexOf('OperatingSystem')!=-1){ | 454 | if(fieldExpandArr.indexOf('OperatingSystem')!=-1){ |
451 | }else{ | 455 | }else{ |
452 | fieldExpandArr.push('OperatingSystem'); | 456 | fieldExpandArr.push('OperatingSystem'); |
453 | if(arr.length>0){ | 457 | if(arr.length>0){ |
454 | arr.map(item=>{ | 458 | arr.map(item=>{ |
459 | + if(colsArr.indexOf(item.field)==-1){ | ||
455 | let listStr=''; | 460 | let listStr=''; |
456 | if(item.list && item.list.length>0){ | 461 | if(item.list && item.list.length>0){ |
457 | listStr=item.list.join(',') | 462 | listStr=item.list.join(',') |
@@ -468,6 +473,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -468,6 +473,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
468 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 473 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
469 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 474 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
470 | </div></div>`}) | 475 | </div></div>`}) |
476 | + } | ||
477 | + | ||
471 | }) | 478 | }) |
472 | } | 479 | } |
473 | } | 480 | } |
@@ -592,11 +599,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -592,11 +599,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
592 | , done: function (res) { | 599 | , done: function (res) { |
593 | if (res && res.data ) { | 600 | if (res && res.data ) { |
594 | let arr=res.data; | 601 | let arr=res.data; |
602 | + let colsArr=[]; | ||
603 | + cols.map(item=>{ | ||
604 | + colsArr.push(item.field) | ||
605 | + }) | ||
595 | if(fieldExpandArr.indexOf(resType)!=-1){ | 606 | if(fieldExpandArr.indexOf(resType)!=-1){ |
596 | }else{ | 607 | }else{ |
597 | fieldExpandArr.push(resType); | 608 | fieldExpandArr.push(resType); |
598 | if(arr.length>0){ | 609 | if(arr.length>0){ |
599 | arr.map(item=>{ | 610 | arr.map(item=>{ |
611 | + if(colsArr.indexOf(item.field)==-1){ | ||
600 | let listStr=''; | 612 | let listStr=''; |
601 | if(item.list && item.list.length>0){ | 613 | if(item.list && item.list.length>0){ |
602 | listStr=item.list.join(',') | 614 | listStr=item.list.join(',') |
@@ -613,6 +625,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -613,6 +625,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
613 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 625 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
614 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 626 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
615 | </div></div>`}) | 627 | </div></div>`}) |
628 | + } | ||
629 | + | ||
616 | }) | 630 | }) |
617 | } | 631 | } |
618 | } | 632 | } |
@@ -712,11 +726,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -712,11 +726,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
712 | , done: function (res) { | 726 | , done: function (res) { |
713 | if (res && res.data ) { | 727 | if (res && res.data ) { |
714 | let arr=res.data; | 728 | let arr=res.data; |
729 | + let colsArr=[]; | ||
730 | + cols.map(item=>{ | ||
731 | + colsArr.push(item.field) | ||
732 | + }) | ||
715 | if(fieldExpandArr.indexOf(resType)!=-1){ | 733 | if(fieldExpandArr.indexOf(resType)!=-1){ |
716 | }else{ | 734 | }else{ |
717 | fieldExpandArr.push(resType); | 735 | fieldExpandArr.push(resType); |
718 | if(arr.length>0){ | 736 | if(arr.length>0){ |
719 | arr.map(item=>{ | 737 | arr.map(item=>{ |
738 | + if(colsArr.indexOf(item.field)==-1){ | ||
720 | let listStr=''; | 739 | let listStr=''; |
721 | if(item.list && item.list.length>0){ | 740 | if(item.list && item.list.length>0){ |
722 | listStr=item.list.join(',') | 741 | listStr=item.list.join(',') |
@@ -733,6 +752,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -733,6 +752,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
733 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 752 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
734 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 753 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
735 | </div></div>`}) | 754 | </div></div>`}) |
755 | + } | ||
756 | + | ||
736 | }) | 757 | }) |
737 | } | 758 | } |
738 | } | 759 | } |
@@ -845,11 +866,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -845,11 +866,16 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
845 | , done: function (res) { | 866 | , done: function (res) { |
846 | if (res && res.data ) { | 867 | if (res && res.data ) { |
847 | let arr=res.data; | 868 | let arr=res.data; |
869 | + let colsArr=[]; | ||
870 | + cols.map(item=>{ | ||
871 | + colsArr.push(item.field) | ||
872 | + }) | ||
848 | if(fieldExpandArr.indexOf(resType)!=-1){ | 873 | if(fieldExpandArr.indexOf(resType)!=-1){ |
849 | }else{ | 874 | }else{ |
850 | fieldExpandArr.push(resType); | 875 | fieldExpandArr.push(resType); |
851 | if(arr.length>0){ | 876 | if(arr.length>0){ |
852 | arr.map(item=>{ | 877 | arr.map(item=>{ |
878 | + if(colsArr.indexOf(item.field)==-1){ | ||
853 | let listStr=''; | 879 | let listStr=''; |
854 | if(item.list && item.list.length>0){ | 880 | if(item.list && item.list.length>0){ |
855 | listStr=item.list.join(',') | 881 | listStr=item.list.join(',') |
@@ -866,6 +892,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -866,6 +892,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
866 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 892 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
867 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 893 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
868 | </div></div>`}) | 894 | </div></div>`}) |
895 | + } | ||
896 | + | ||
869 | }) | 897 | }) |
870 | } | 898 | } |
871 | } | 899 | } |
@@ -211,11 +211,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -211,11 +211,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
211 | , done: function (res) { | 211 | , done: function (res) { |
212 | if (res && res.data ) { | 212 | if (res && res.data ) { |
213 | let arr=res.data; | 213 | let arr=res.data; |
214 | + let colsArr=[]; | ||
215 | + cols.map(item=>{ | ||
216 | + colsArr.push(item.field) | ||
217 | + }) | ||
214 | if(fieldExpandArr.indexOf(resType)!=-1){ | 218 | if(fieldExpandArr.indexOf(resType)!=-1){ |
215 | }else{ | 219 | }else{ |
216 | fieldExpandArr.push(resType); | 220 | fieldExpandArr.push(resType); |
217 | if(arr.length>0){ | 221 | if(arr.length>0){ |
218 | arr.map(item=>{ | 222 | arr.map(item=>{ |
223 | + if(colsArr.indexOf(item.field)==-1){ | ||
219 | let listStr=''; | 224 | let listStr=''; |
220 | if(item.list && item.list.length>0){ | 225 | if(item.list && item.list.length>0){ |
221 | listStr=item.list.join(',') | 226 | listStr=item.list.join(',') |
@@ -232,6 +237,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -232,6 +237,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
232 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 237 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
233 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 238 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
234 | </div></div>`}) | 239 | </div></div>`}) |
240 | + } | ||
241 | + | ||
235 | }) | 242 | }) |
236 | } | 243 | } |
237 | } | 244 | } |
@@ -839,11 +846,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -839,11 +846,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
839 | , done: function (res) { | 846 | , done: function (res) { |
840 | if (res && res.data ) { | 847 | if (res && res.data ) { |
841 | let arr=res.data; | 848 | let arr=res.data; |
849 | + let colsArr=[]; | ||
850 | + cols.map(item=>{ | ||
851 | + colsArr.push(item.field) | ||
852 | + }) | ||
842 | if(fieldExpandArr.indexOf(resType)!=-1){ | 853 | if(fieldExpandArr.indexOf(resType)!=-1){ |
843 | }else{ | 854 | }else{ |
844 | fieldExpandArr.push(resType); | 855 | fieldExpandArr.push(resType); |
845 | if(arr.length>0){ | 856 | if(arr.length>0){ |
846 | arr.map(item=>{ | 857 | arr.map(item=>{ |
858 | + if(colsArr.indexOf(item.field)==-1){ | ||
847 | let listStr=''; | 859 | let listStr=''; |
848 | if(item.list && item.list.length>0){ | 860 | if(item.list && item.list.length>0){ |
849 | listStr=item.list.join(',') | 861 | listStr=item.list.join(',') |
@@ -860,6 +872,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -860,6 +872,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
860 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 872 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
861 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 873 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
862 | </div></div>`}) | 874 | </div></div>`}) |
875 | + } | ||
876 | + | ||
863 | }) | 877 | }) |
864 | } | 878 | } |
865 | } | 879 | } |
@@ -1076,11 +1090,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1076,11 +1090,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1076 | , done: function (res) { | 1090 | , done: function (res) { |
1077 | if (res && res.data ) { | 1091 | if (res && res.data ) { |
1078 | let arr=res.data; | 1092 | let arr=res.data; |
1093 | + let colsArr=[]; | ||
1094 | + cols.map(item=>{ | ||
1095 | + colsArr.push(item.field) | ||
1096 | + }) | ||
1079 | if(fieldExpandArr.indexOf(resType)!=-1){ | 1097 | if(fieldExpandArr.indexOf(resType)!=-1){ |
1080 | }else{ | 1098 | }else{ |
1081 | fieldExpandArr.push(resType); | 1099 | fieldExpandArr.push(resType); |
1082 | if(arr.length>0){ | 1100 | if(arr.length>0){ |
1083 | arr.map(item=>{ | 1101 | arr.map(item=>{ |
1102 | + if(colsArr.indexOf(item.field)==-1){ | ||
1084 | let listStr=''; | 1103 | let listStr=''; |
1085 | if(item.list && item.list.length>0){ | 1104 | if(item.list && item.list.length>0){ |
1086 | listStr=item.list.join(',') | 1105 | listStr=item.list.join(',') |
@@ -1097,6 +1116,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1097,6 +1116,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1097 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 1116 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
1098 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 1117 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
1099 | </div></div>`}) | 1118 | </div></div>`}) |
1119 | + } | ||
1120 | + | ||
1100 | }) | 1121 | }) |
1101 | } | 1122 | } |
1102 | } | 1123 | } |
@@ -1240,11 +1261,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1240,11 +1261,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1240 | , done: function (res) { | 1261 | , done: function (res) { |
1241 | if (res && res.data ) { | 1262 | if (res && res.data ) { |
1242 | let arr=res.data; | 1263 | let arr=res.data; |
1264 | + let colsArr=[]; | ||
1265 | + cols.map(item=>{ | ||
1266 | + colsArr.push(item.field) | ||
1267 | + }) | ||
1243 | if(fieldExpandArr.indexOf(resType)!=-1){ | 1268 | if(fieldExpandArr.indexOf(resType)!=-1){ |
1244 | }else{ | 1269 | }else{ |
1245 | fieldExpandArr.push(resType); | 1270 | fieldExpandArr.push(resType); |
1246 | if(arr.length>0){ | 1271 | if(arr.length>0){ |
1247 | arr.map(item=>{ | 1272 | arr.map(item=>{ |
1273 | + if(colsArr.indexOf(item.field)==-1){ | ||
1248 | let listStr=''; | 1274 | let listStr=''; |
1249 | if(item.list && item.list.length>0){ | 1275 | if(item.list && item.list.length>0){ |
1250 | listStr=item.list.join(',') | 1276 | listStr=item.list.join(',') |
@@ -1261,6 +1287,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1261,6 +1287,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1261 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> | 1287 | data-expandid="`+item.id+`" data-list="`+listStr+`" data-tpltype="`+item.field+`" data-resid="{{d.resId}}"> |
1262 | {{d.`+item.field+` ? d.`+item.field+` : ''}} | 1288 | {{d.`+item.field+` ? d.`+item.field+` : ''}} |
1263 | </div></div>`}) | 1289 | </div></div>`}) |
1290 | + } | ||
1291 | + | ||
1264 | }) | 1292 | }) |
1265 | } | 1293 | } |
1266 | } | 1294 | } |
-
Please register or login to post a comment