驾驶舱
This commit is contained in:
@@ -59,7 +59,7 @@ export default {
|
||||
},
|
||||
valueTuple() {
|
||||
const getter = this.chipRate;
|
||||
console.log(getter)
|
||||
// console.log(getter)
|
||||
if (this.period === "日" || this.period === "周") {
|
||||
return [
|
||||
getter.previous[this.factoryId],
|
||||
@@ -111,11 +111,11 @@ export default {
|
||||
this.period == "月"
|
||||
? `${year - 1}年${month}月良率`
|
||||
: `${year - 1}年良率`,
|
||||
value: (this.valueTuple[0] * 100).toFixed(0) + "%",
|
||||
value: isNaN((this.valueTuple[0] * 100).toFixed(0)) ? 0 + "%" : (this.valueTuple[0] * 100).toFixed(0) + "%"
|
||||
},
|
||||
{
|
||||
label: this.period == "月" ? `${month}月良率` : `${year}年良率`,
|
||||
value: (this.valueTuple[1] * 100).toFixed(0) + "%",
|
||||
value: isNaN((this.valueTuple[1] * 100).toFixed(0)) ? 0 + "%" : (this.valueTuple[1] * 100).toFixed(0) + "%"
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user