Commit 716416c7 by 匡雅琴

接口传参调整

1 parent b0f6e301
......@@ -161,6 +161,12 @@ export default {
this.$refs.merchantChartRef.drawBar(_dataList)
},
selectPrice(val) {
if (val.label === '全部') {
this.startPrice = ''
this.endPrice = ''
this.getMarketingCrowdFundingDistr()
return
}
this.startPrice = val.startPrice
this.endPrice = val.endPrice
this.getMarketingCrowdFundingDistr()
......
......@@ -91,7 +91,8 @@ export default {
serviceList,
ratio: '',
rationality: rationalityList[0].value,
price: {},
startPrice: '',
endPrice: '',
manageClueSalesAmountRationalityList: []
}
},
......@@ -114,8 +115,8 @@ export default {
},
async getManageClueSalesAmountRationality(queryItem) {
const params = {
startPrice: this.price.startPrice || '',
endPrice: this.price.endPrice || ''
startPrice: this.startPrice,
endPrice: this.endPrice
}
const _data = await this.api.internal.getManageClueSalesAmountRationality(params)
const _queryItem = queryItem || this.rationality
......@@ -138,8 +139,14 @@ export default {
},
// 只有当是销售数(output)时才会触发此事件
selectPrice(val) {
console.log(val)
this.price = val
if (val.label === '全部') {
this.startPrice = ''
this.endPrice = ''
this.getManageClueSalesAmountRationality()
return
}
this.startPrice = val.startPrice
this.endPrice = val.endPrice
this.getManageClueSalesAmountRationality()
},
selectCorrelation(val) {
......
......@@ -60,7 +60,12 @@ export default {
this.$refs.edunChartRef.drawBar(_dataList)
},
selectPrice(val) {
console.log(val)
if (val.label === '全部') {
this.startPrice = ''
this.endPrice = ''
this.getManageESalesAmountRationality()
return
}
this.startPrice = val.startPrice
this.endPrice = val.endPrice
this.getManageESalesAmountRationality()
......
......@@ -81,6 +81,12 @@ export default {
this.$refs.equityLineChartRef.drawLine(_dataList)
},
selectPrice(price) {
if (price.label === '全部') {
this.startPrice = ''
this.endPrice = ''
this.getManageMemberSalesAmountRationality()
return
}
this.startPrice = price.startPrice
this.endPrice = price.endPrice
this.getManageMemberSalesAmountRationality()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!