diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 69bf8836..2025422e 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -52,7 +52,7 @@ @@ -337,12 +337,20 @@ export default { this.echartsOptions = JSON.parse(res.echart_options); } }) + }else if(that.params.type==30){ + this.$API.bi.dataset.exec.req("materialCount2", {query:query2 }).then((res) => { + if (res.echart_options) { + this.echartsOptions = JSON.parse(res.echart_options); + } + }) }else if(that.params.type==40){ this.$API.bi.dataset.exec.req("helpso_cate", {}).then((res) => { if (res.echart_options) { this.echartsOptions = JSON.parse(res.echart_options); } }) + }else{ + that.echartsOptions = null; } }, //更改周预估用量