|
@@ -14,24 +14,31 @@ function getTeamInnerList(queryParam = {}, innerPage = 1) {
|
|
|
|
|
|
let data = result.RESULT;
|
|
let data = result.RESULT;
|
|
let items = '';
|
|
let items = '';
|
|
|
|
+ let items2 = '';
|
|
if (result.totalCount > 0) {
|
|
if (result.totalCount > 0) {
|
|
|
|
+ console.log('arrDelPd')
|
|
|
|
+ console.log(arrDelPd)
|
|
|
|
+
|
|
|
|
+ console.log('arr99-------')
|
|
|
|
+ console.log(arr99)
|
|
|
|
+
|
|
data.forEach(function(item, key) {
|
|
data.forEach(function(item, key) {
|
|
- if (item.pd) {
|
|
|
|
|
|
|
|
- arr99.push(item.id)
|
|
|
|
- arr99 = unique(arr99);
|
|
|
|
|
|
|
|
- arrDelPd.push(item.id);
|
|
|
|
- arrDelPd = unique(arrDelPd);
|
|
|
|
- console.log('arr99')
|
|
|
|
- console.log(arr99)
|
|
|
|
- }
|
|
|
|
- // 如果数组里含有item.id 被选中
|
|
|
|
if (arr99.indexOf(item.id) > -1) {
|
|
if (arr99.indexOf(item.id) > -1) {
|
|
- items += "<tr class='selected'>" + "<td class='status checked' data-id='" + item.id + "'></td>" + "<td>" + item.spot_name + "</td>" + "<td>" + item.spot_address + "</td>" + "<td ><a class='pointDetail' data-id=" + item.id + "><img src='../../images/tupianbtn.png'></a></td>" + "</tr>"
|
|
|
|
|
|
+ items += "<tr class='selected'>" + "<td class='status checked' data-id='" + item.id + "' data-pd='" + item.pd + "'></td>" + "<td>" + item.spot_name + "</td>" + "<td>" + item.spot_address + "</td>" + "<td ><a class='pointDetail' data-id=" + item.id + "><img src='../../images/tupianbtn.png'></a></td>" + "</tr>"
|
|
} else {
|
|
} else {
|
|
items += "<tr>" + "<td class='status' data-id='" + item.id + "'></td>" + "<td>" + item.spot_name + "</td>" + "<td>" + item.spot_address + "</td>" + "<td ><a class='pointDetail' data-id=" + item.id + "><img src='../../images/tupianbtn.png'></a></td>" + "</tr>"
|
|
items += "<tr>" + "<td class='status' data-id='" + item.id + "'></td>" + "<td>" + item.spot_name + "</td>" + "<td>" + item.spot_address + "</td>" + "<td ><a class='pointDetail' data-id=" + item.id + "><img src='../../images/tupianbtn.png'></a></td>" + "</tr>"
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (item.pd) {
|
|
|
|
+ items += "<tr class='selected'>" + "<td class='status checked' data-id='" + item.id + "' data-pd='" + item.pd + "'></td>" + "<td>" + item.spot_name + "</td>" + "<td>" + item.spot_address + "</td>" + "<td ><a class='pointDetail' data-id=" + item.id + "><img src='../../images/tupianbtn.png'></a></td>" + "</tr>"
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
});
|
|
});
|
|
$('#dataList2').html(items);
|
|
$('#dataList2').html(items);
|
|
$('#dataList3').html(items);
|
|
$('#dataList3').html(items);
|