修改
This commit is contained in:
@@ -63,20 +63,22 @@ export default {
|
||||
}
|
||||
},
|
||||
series() {
|
||||
const { ftoInvest } = this.$store.getters.copilot.efficiency.chipOee;
|
||||
// console.log('aaaaaaaa', this.$store.getters.copilot.efficiency.chipOee);
|
||||
const { chipOee } = this.$store.getters.copilot.efficiency;
|
||||
let dataList = null;
|
||||
|
||||
switch (this.period) {
|
||||
case "日":
|
||||
case "周":
|
||||
dataList = ftoInvest?.current;
|
||||
dataList = chipOee?.current;
|
||||
case "周":
|
||||
dataList = chipOee?.current;
|
||||
break;
|
||||
default:
|
||||
dataList = [];
|
||||
dataList[0] = ftoInvest?.pervious;
|
||||
dataList[1] = ftoInvest?.current;
|
||||
dataList[0] = chipOee?.previous;
|
||||
dataList[1] = chipOee?.current;
|
||||
}
|
||||
|
||||
// console.log(dataList)
|
||||
return getTemplate(this.period, dataList);
|
||||
},
|
||||
},
|
||||
@@ -86,6 +88,7 @@ export default {
|
||||
function getTemplate(period, dataList) {
|
||||
const year = new Date().getFullYear();
|
||||
const month = new Date().getMonth() + 1;
|
||||
console.log('11111', dataList);
|
||||
return period == "日" || period == "周"
|
||||
? [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user