Browse Source

首页

master
songguoqiang 7 months ago
parent
commit
6b62821fa3
  1. 8
      src/views/home/index.vue

8
src/views/home/index.vue

@ -324,7 +324,7 @@ const lineOptionsData = reactive<EChartsOption>(lineOptions) as EChartsOption
const getInvoiceCharts = async (factory, data) => { const getInvoiceCharts = async (factory, data) => {
console.log( data) console.log( data)
if (factory == 'ZS') { if (factory == 'ZS') {
let ZSTJAGOAL = data.TJACT.map((item) => data.TJAGOAL) let ZSTJAGOAL = data.TJACT.map((item) => data.TJAGOAL+'%')
let ZSHFGOAL = data.HFACT.map((item) => data.HFGOAL) let ZSHFGOAL = data.HFACT.map((item) => data.HFGOAL)
let ZSJGGOAL = data.JGACT.map((item) => data.JGGOAL) let ZSJGGOAL = data.JGACT.map((item) => data.JGGOAL)
set(lineOptionsData1, 'series', [{ set(lineOptionsData1, 'series', [{
@ -398,7 +398,7 @@ const getInvoiceCharts = async (factory, data) => {
]) ])
}else if(factory == 'ZP'){ }else if(factory == 'ZP'){
let ZPTJAGOAL = data.TJACT.map((item) => data.TJAGOAL) let ZPTJAGOAL = data.TJACT.map((item) => data.TJAGOAL+'%')
let ZPHFGOAL = data.HFACT.map((item) => data.HFGOAL) let ZPHFGOAL = data.HFACT.map((item) => data.HFGOAL)
let ZPJGGOAL = data.JGACT.map((item) => data.JGGOAL) let ZPJGGOAL = data.JGACT.map((item) => data.JGGOAL)
set(lineOptionsData2, 'series', [{ set(lineOptionsData2, 'series', [{
@ -473,7 +473,7 @@ const getInvoiceCharts = async (factory, data) => {
]) ])
}else if(factory == 'TZ'){ }else if(factory == 'TZ'){
let TZTJAGOAL = data.TJACT.map((item) => data.TJAGOAL) let TZTJAGOAL = data.TJACT.map((item) => data.TJAGOAL+'%')
let TZHFGOAL = data.HFACT.map((item) => data.HFGOAL) let TZHFGOAL = data.HFACT.map((item) => data.HFGOAL)
let TZJGGOAL = data.JGACT.map((item) => data.JGGOAL) let TZJGGOAL = data.JGACT.map((item) => data.JGGOAL)
set(lineOptionsData3, 'series', [{ set(lineOptionsData3, 'series', [{
@ -530,7 +530,7 @@ const getInvoiceCharts = async (factory, data) => {
itemStyle: {}, itemStyle: {},
animationDuration: 2800, animationDuration: 2800,
animationEasing: 'quadraticOut', animationEasing: 'quadraticOut',
data: data.HFACT data: data.JGACT
}, { }, {
name: '目标', name: '目标',
smooth: true, smooth: true,

Loading…
Cancel
Save