Commit 3547ce08 by 任建

youhuabiaoge

parent 2f49180e
......@@ -536,7 +536,6 @@
}
var num2 = this.province_counts_t.length;
for(var j = 0; j < 5 - num2; j++){
console.log(j);
this.province_counts_t.push({
count: "-",
index: "-",
......@@ -553,6 +552,26 @@
item.index = index + 6;
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 @@
that.tms = rows;
that.total = d.data.count;
}
}).catch(function (e) {
console.log(e,"lslslslls");
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