| | |
| | | // typeId: "210000", |
| | | // typeName: "支付宝拉新" |
| | | // }) |
| | | console.log(this.productList) |
| | | if (this.productList.length) { |
| | | let prodId = this.productList[0].prodId; |
| | | this.toggleProduct(this.productList[0],0,true) |
| | |
| | | }, |
| | | // 显示时间选择组件 |
| | | openTimeModal(isB) { |
| | | console.log(111) |
| | | this.setPickerValue() |
| | | this.$nextTick(()=>{ |
| | | this.isShoTime = true; |
| | |
| | | }, |
| | | // 获取折线图统计数据 |
| | | getAmtReport(id, lx) { |
| | | // console.log(lx == 'zfblx') |
| | | if(lx == 210000) { |
| | | this.$api.zfbLxWeekReport().then(res => { |
| | | console.log('zfbLxWeekReport') |
| | | this.opt.series[0].data = [] |
| | | this.opt.series[1].data = [] |
| | | this.opt.series[2].data = [] |
| | |
| | | this.$forceUpdate(); |
| | | let myChart = echarts.init(this.$refs.lineChart); |
| | | myChart.setOption(this.opt); |
| | | console.log(this.opt.series[0].data) |
| | | console.log(this.opt.series[1].data) |
| | | console.log(this.opt.series[2].data) |
| | | }) |
| | | } else { |
| | | this.$api.getAmtReport(id).then((res) => { |
| | |
| | | }, |
| | | //切换产品 |
| | | toggleProduct(item, index,isGetChartData) { |
| | | console.log(item) |
| | | this.zfblxLabel = '' |
| | | this.opt.series[0].data = [] |
| | | this.opt.series[1].data = [] |
| | |
| | | } |
| | | if(item.typeId == 210000) { |
| | | this.zfblxLabel = 'zfblx' |
| | | // console.log(this.zfblxLabel) |
| | | } |
| | | this.navIndex = index; |
| | | // return |
| | |
| | | prodId:item.prodId |
| | | } |
| | | } |
| | | // console.log(this.jumpParams) |
| | | this.getAmtReport(item.prodId, item.typeId) |
| | | this.getOrderReport(this.prodId,this.startDay,this.endDay, item.typeId) |
| | | if(this.isAgent && isGetChartData){ |