Commit 3547ce08 by 任建

youhuabiaoge

parent 2f49180e
...@@ -536,7 +536,6 @@ ...@@ -536,7 +536,6 @@
} }
var num2 = this.province_counts_t.length; var num2 = this.province_counts_t.length;
for(var j = 0; j < 5 - num2; j++){ for(var j = 0; j < 5 - num2; j++){
console.log(j);
this.province_counts_t.push({ this.province_counts_t.push({
count: "-", count: "-",
index: "-", index: "-",
...@@ -553,6 +552,26 @@ ...@@ -553,6 +552,26 @@
item.index = index + 6; item.index = index + 6;
return item; return item;
}); });
if(d.data.ncl_counts.length){
var num1 = this.ncl_counts_o.length;
for(var i = 0; i < 5 - num1; i++){
this.ncl_counts_o.push({
code: "-",
count: "-",
index: "-",
percent: "-"
})
}
var num2 = this.ncl_counts_t.length;
for(var j = 0; j < 5 - num2; j++){
this.ncl_counts_t.push({
code: "-",
count: "-",
index: "-",
percent: "-"
})
}
}
} }
}); });
}, },
......
...@@ -155,8 +155,6 @@ ...@@ -155,8 +155,6 @@
that.tms = rows; that.tms = rows;
that.total = d.data.count; that.total = d.data.count;
} }
}).catch(function (e) { }).catch(function (e) {
console.log(e,"lslslslls"); console.log(e,"lslslslls");
that.$root.loading = false; that.$root.loading = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment