maoyunfeng 5 vuotta sitten
vanhempi
commit
7386c9fc6b
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12 0
      whepi-ui/templates/home/ribao.js

+ 12 - 0
whepi-ui/templates/home/ribao.js

@@ -1301,6 +1301,12 @@ function updateSuspected(suspectedId) {
             "suspectedId": suspectedId
           },
           success: function (data) {
+            if(data.data.length != 0){
+
+            }
+              listcx.splice(0, listcx.length);
+              $('#tabtr').empty();
+              var person = new Object();
             var xxIds = [];
             var xxName = [
               "序号",
@@ -1323,6 +1329,11 @@ function updateSuspected(suspectedId) {
             html += "</tr>"
             data.data.forEach(function (v) {
               {
+                  person.startLocalStr = getLocalOther(v.startLocal, v.startLocalOther);
+                  person.endlocalStr = getLocalOther(v.endLocal, v.endLocalOther);
+                  person.tripTypeStr = getTripType(v.tripType);
+                  person.tripTypeDesp = v.tripTypeDesp;
+                  listcx.push(person);
                 html += "<tr>";
                 html += "<td style='text-align: center;'>" + v.sort + "</td>";
                 html += "<td style='text-align: center;' >" + getLocalOther(v.startLocal, v.startLocalOther) + " </td>";
@@ -1334,6 +1345,7 @@ function updateSuspected(suspectedId) {
                 $("#tabtr").html(html);
               }
             });
+
           },
         });
       }