|
@@ -106,7 +106,7 @@ export default {
|
|
|
//由于多个图表共用这个操作栏,通过路由判断
|
|
|
isShowBtn(btn){
|
|
|
const {path} = this.$route
|
|
|
- const {statisticPermission,checkPermissionBtn} = this.permissionBtn
|
|
|
+ const {statisticPermission,productPricePermission,checkPermissionBtn} = this.permissionBtn
|
|
|
const chartrelevanceMap = {
|
|
|
share:checkPermissionBtn(statisticPermission.corrAnalysis_share),
|
|
|
addMyChart:checkPermissionBtn(statisticPermission.corrAnalysis_addMyChart),
|
|
@@ -140,6 +140,28 @@ export default {
|
|
|
enNameSetting:checkPermissionBtn(statisticPermission.statisticFeature_enNameSetting),
|
|
|
del:checkPermissionBtn(statisticPermission.statisticFeature_del),
|
|
|
}
|
|
|
+ const priceLineMap = {
|
|
|
+ share:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_share),
|
|
|
+ addMyChart:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_addMyChart),
|
|
|
+ refresh:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_refresh),
|
|
|
+ otherSave:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_otherSave),
|
|
|
+ edit:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_edit),
|
|
|
+ copyOffice:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_copyOffice),
|
|
|
+ copyWechat:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_copyWechat),
|
|
|
+ enNameSetting:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_enNameSetting),
|
|
|
+ del:checkPermissionBtn(productPricePermission.goodsPrice_priceLine_del),
|
|
|
+ }
|
|
|
+ const incomeLine = {
|
|
|
+ share:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_share),
|
|
|
+ addMyChart:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_addMyChart),
|
|
|
+ refresh:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_refresh),
|
|
|
+ otherSave:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_otherSave),
|
|
|
+ edit:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_edit),
|
|
|
+ copyOffice:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_copyOffice),
|
|
|
+ copyWechat:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_copyWechat),
|
|
|
+ enNameSetting:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_enNameSetting),
|
|
|
+ del:checkPermissionBtn(productPricePermission.goodsPrice_incomeLine_del),
|
|
|
+ }
|
|
|
//相关性分析
|
|
|
if(path==='/chartrelevance'){
|
|
|
return chartrelevanceMap[btn]
|
|
@@ -153,7 +175,15 @@ export default {
|
|
|
return statisticFeatureMap[btn]
|
|
|
}
|
|
|
//商品价格曲线
|
|
|
- if(path==='/commordityChartBase'){}
|
|
|
+ if(path==='/commordityChartBase'){
|
|
|
+ const {Source,ChartType} = this.chartInfo
|
|
|
+ if(Source===2&&ChartType===8){//是商品价格曲线
|
|
|
+ return priceLineMap[btn]
|
|
|
+ }else{//是利润曲线
|
|
|
+ return incomeLine[btn]
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
return false
|
|
|
}
|