This commit is contained in:
‘937886381’
2024-05-08 16:38:05 +08:00
parent b3578cdd8a
commit 9c9dba5452
31 changed files with 483 additions and 291 deletions

View File

@@ -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 == "周"
? [
{