fix: 修复首页方法

This commit is contained in:
wupeng 2025-05-22 10:41:36 +08:00
parent de61271048
commit 8a930b40d6
2 changed files with 5 additions and 3 deletions

View File

@ -104,6 +104,7 @@ export default {
stack = null, stack = null,
...rest ...rest
} = options || this.options; } = options || this.options;
console.log(1111, stack);
this.chartInstance.setOption({ this.chartInstance.setOption({
color: ["#409bc7", "#a5edeb"], color: ["#409bc7", "#a5edeb"],
xAxis: { xAxis: {

View File

@ -23,7 +23,7 @@
range-separator="|" range-separator="|"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
@change="changeTime" @change="changeTime()"
> >
</el-date-picker> </el-date-picker>
<el-select <el-select
@ -31,7 +31,7 @@
style="width: 100px; padding-left: 10px" style="width: 100px; padding-left: 10px"
v-model="typeSelected" v-model="typeSelected"
placeholder="请选择" placeholder="请选择"
@change="changeType" @change="changeType()"
> >
<el-option <el-option
v-for="item in typeOption" v-for="item in typeOption"
@ -58,7 +58,7 @@
</div> </div>
<el-radio-group <el-radio-group
v-if="typeSelected === 'bar'" v-if="typeSelected === 'bar'"
@change="changeStack" @change="changeStack()"
v-model="stack" v-model="stack"
size="mini" size="mini"
> >
@ -227,6 +227,7 @@ export default {
() => Math.floor(Math.random() * 100) + 1 () => Math.floor(Math.random() * 100) + 1
), ),
}; };
console.log(222, this.stack);
this.chartOptions = { this.chartOptions = {
xData, xData,
yData, yData,