Commit a5cc55a5 by 匡雅琴

删除控制台打印

1 parent 17897fd7
......@@ -118,13 +118,11 @@ export default {
// 获取总产值、总场次、总订单数
async getAllOverview() {
const _result = await this.api.crowdFunding.getAllOverview()
console.log(_result)
const _data = _result.data.dataList[0]
this.outputvalue = _data.outputvalue
this.orderNum = _data.orderNum
this.activityNum = _data.activityNum
this.dataList.amountDataList = _data.trend
console.log(this.dataList.amountDataList)
this.$nextTick(() => {
this.$refs.amountChartRef.drawBar()
this.$refs.sessionChartRef.drawBar()
......
......@@ -8,14 +8,10 @@
<template>
<div class="right">
<MainTab class="main-tab" :tabList="tabList" @tabChange="tabChange"></MainTab>
<template v-if="currentTab == 0">
<!-- 广联维度 -->
<GlDemension></GlDemension>
</template>
<template v-else>
<!-- 品牌维度 -->
<BrandDimension></BrandDimension>
</template>
<!-- 广联维度 -->
<GlDemension v-show="currentTab == 0"></GlDemension>
<!-- 品牌维度 -->
<BrandDimension v-show="currentTab == 1"></BrandDimension>
</div>
</template>
......
......@@ -57,7 +57,6 @@ export default {
methods: {
async getActivityTrend() {
const _result = await this.api.crowdFunding.getActivityTrend()
console.log(_result)
const _data = _result.data.dataList
this.dataList = _data
this.$nextTick(() => {
......
......@@ -72,7 +72,6 @@ export default {
return _html
},
drawBar() {
console.log(this.dataList, this.tooltipFormatterObj)
this.barOptions.xAxis.data = this.dataList.map(item => item.statMonth)
this.barOptions.series[0].data = this.dataList.map(item => item[this.tooltipFormatterObj.attrName])
this[this.domId].setOption(this.barOptions)
......
......@@ -107,7 +107,6 @@ export default {
queryItem
}
const _result = await this.api.crowdFunding.getBrandRank(_params)
console.log(_result, '555555555')
const { actiRank, avgChargebackRank, avgTransRank, outputRank } = _result.data.dataList[0]
this.sessionRankList = actiRank
this.productionRankList = outputRank
......@@ -116,7 +115,6 @@ export default {
},
// tab切换
changeTab(val) {
console.log(val);
switch (val) {
case 0:
this.getBrandRank('AR')
......
......@@ -95,7 +95,6 @@ export default {
methods: {
async getGLOverview(Month) {
const _result = await this.api.crowdFunding.getGLOverview({ Month })
console.log(_result, '999')
const _dataList = _result.data.dataList[0]
this.crowdfundList.forEach(item => {
item.value = _dataList[item.valueName]
......
......@@ -53,10 +53,8 @@ export default {
methods: {
async getMonth() {
const _result = await this.api.crowdFunding.getMonth()
console.log(_result, '===')
this.dataList = _result.data.dataList
this.defaultMonth = this.month = this.dataList[0].statMonth
console.log(this.defaultMonth, '+++++')
this.$bus.$emit('crowdFundingMonth', this.defaultMonth)
},
// tab切换
......@@ -68,7 +66,6 @@ export default {
this.isShow = !this.isShow
},
selectVal(val) {
console.log(val)
this.defaultMonth = this.month = val.statMonth
this.$bus.$emit('crowdFundingMonth', this.defaultMonth)
this.switchMonth()
......
......@@ -49,13 +49,11 @@ export default {
// 获取 产值、转换率、退单率 门店排名
async getMerchantRank(Month) {
const _result = await this.api.crowdFunding.getMerchantRank({ Month })
console.log(_result, '121212')
this.dataList = _result.data.dataList[0]
this.merchantRankList = this.dataList.outputRank
},
// 跳转售后众筹二级页面
goDetailPage(item) {
console.log(item);
const routeData = this.$router.resolve({
name: 'crowdfundingDetail',
query: {
......@@ -67,7 +65,6 @@ export default {
},
// tab切换
changeTab(val) {
console.log(val)
switch (val) {
case 0:
this.merchantRankList = this.dataList.outputRank
......
......@@ -44,7 +44,6 @@ export default {
methods: {
async getMerchantActivityRank() {
const _result = await this.api.crowdFunding.getMerchantActivityRank()
console.log(_result, '22222');
this.dataList = _result.data.dataList[0]
this.merchantRankList = this.dataList.activityRank
},
......
......@@ -59,7 +59,6 @@ export default {
// 获取 产值、转换率、退单率 门店排名
async getPaymentModel(Month) {
const _result = await this.api.crowdFunding.getPaymentModel({ Month })
console.log(_result, '4545455')
this.dataList = _result.data.dataList[0]
this.paymentData = this.dataList.totalData
},
......
......@@ -41,13 +41,11 @@ export default {
},
mounted() {
},
methods: {
// 快捷切换日期
changeDate(val) {
console.log(val)
if (val === 3) {
this.showCalendar = true
return
......@@ -70,13 +68,10 @@ export default {
start = this.formatDate(start)
this.start = start
this.end = end
console.log(start, 'start')
console.log(end, 'end')
this.getActivityDetail()
},
// 自定义日期选择
customerSelect(val) {
console.log(val, 'val');
this.start = val[0]
this.end = val[1]
this.getActivityDetail()
......@@ -91,7 +86,6 @@ export default {
pageSize: this.pageSize
}
const _result = await this.api.crowdFunding.getActivityDetail(_params)
console.log(_result, '66666');
const _data = _result.data.dataList[0]
this.dataTotal = _data.totalNum
this.tableData = _data.details
......
......@@ -59,12 +59,10 @@ export default {
}
},
handleSizeChange(e) {
console.log(e)
this.curPageSize = e
this.$emit('sizeChange', e)
},
handleCurrentChange(e) {
console.log(e)
this.currentPage = e
this.$emit('pageChange', e)
}
......
......@@ -99,7 +99,6 @@ export default {
},
created() {
this.tabObject = this.$route.query
console.log(this.tabObject, 'this.tabObject');
const { merchantid, merchantName } = this.$route.query
this.merchantName = merchantName
this.merchantid = merchantid
......@@ -107,7 +106,6 @@ export default {
this.getMerchantOverview(merchantid)
this.$bus.$on('selectVal', data => {
console.log(data, 'dta');
this.$router.replace({
path: '/crowdfundingDetail',
query: {
......@@ -125,12 +123,10 @@ export default {
methods: {
async getMerchant() {
const _result = await this.api.crowdFunding.getMerchant()
console.log(_result, '888')
this.merchantList = _result.data.dataList
},
async getMerchantOverview(MerchantId) {
const _result = await this.api.crowdFunding.getMerchantOverview({ MerchantId })
console.log(_result, '999')
const _dataList = _result.data.dataList[0]
this.crowdfundingDetailList.forEach(item => {
item.value = _dataList[item.valueName]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!