|
|
@ -215,7 +215,7 @@ function tongbiChartFun(){ |
|
|
|
tongbiChart = echarts.init(chartDom); |
|
|
|
tongbiChart = echarts.init(chartDom); |
|
|
|
const option = { |
|
|
|
const option = { |
|
|
|
legend: { |
|
|
|
legend: { |
|
|
|
data: ["本期","同期"], |
|
|
|
data: [dateValue1.value,dateValue1.value - 1], |
|
|
|
// selectedMode: 'single', |
|
|
|
// selectedMode: 'single', |
|
|
|
textStyle: { |
|
|
|
textStyle: { |
|
|
|
color: "#f3ffff" |
|
|
|
color: "#f3ffff" |
|
|
@ -284,7 +284,7 @@ function tongbiChartFun(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "本期", |
|
|
|
name: dateValue1.value, |
|
|
|
data: tongbiBenqi.value, |
|
|
|
data: tongbiBenqi.value, |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
@ -329,7 +329,7 @@ function tongbiChartFun(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "同期", |
|
|
|
name: dateValue1.value - 1, |
|
|
|
data: tongbiTongqi.value, |
|
|
|
data: tongbiTongqi.value, |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
@ -505,8 +505,12 @@ function close(){ |
|
|
|
let huanbiChart; |
|
|
|
let huanbiChart; |
|
|
|
function huanbiChartFun(){ |
|
|
|
function huanbiChartFun(){ |
|
|
|
dateValue2.value = dateValue2.value.toString() |
|
|
|
dateValue2.value = dateValue2.value.toString() |
|
|
|
console.log('X轴:',dateValue2.value) |
|
|
|
// console.log('X轴:',dateValue2.value) |
|
|
|
console.log('本月:',thisMonthData.value,'上月:',lastMonthData.value) |
|
|
|
// console.log('本月:',thisMonthData.value,'上月:',lastMonthData.value) |
|
|
|
|
|
|
|
let thisMonthDataArr = [] |
|
|
|
|
|
|
|
let lastMonthDataArr = [] |
|
|
|
|
|
|
|
thisMonthDataArr.push(thisMonthData.value) |
|
|
|
|
|
|
|
lastMonthDataArr.push(lastMonthData.value) |
|
|
|
const chartDom = document.getElementById('huanbiChart') |
|
|
|
const chartDom = document.getElementById('huanbiChart') |
|
|
|
tongbiChart = echarts.init(chartDom); |
|
|
|
tongbiChart = echarts.init(chartDom); |
|
|
|
const option = { |
|
|
|
const option = { |
|
|
@ -581,7 +585,7 @@ function huanbiChartFun(){ |
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: echartLegend.value[0], |
|
|
|
name: echartLegend.value[0], |
|
|
|
data: thisMonthData.value, |
|
|
|
data: thisMonthDataArr, |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
|
symbol: "none", //去掉圆点 |
|
|
|
symbol: "none", //去掉圆点 |
|
|
@ -591,7 +595,7 @@ function huanbiChartFun(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: echartLegend.value[1], |
|
|
|
name: echartLegend.value[1], |
|
|
|
data: lastMonthData.value, |
|
|
|
data: lastMonthDataArr, |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
|
symbol: "none", //去掉圆点 |
|
|
|
symbol: "none", //去掉圆点 |
|
|
|