|
@@ -20,7 +20,7 @@ export default {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
activeKey: 0, // 切换显示页面值 0 各分区品类实售明细 1各区域品类实售明细
|
|
|
- tabsList: [{ id: 0, name: '全国销售日报' }, { id: 1, name: '项目销售日报1' }, { id: 2, name: '项目销售日报2' }, { id: 3, name: '分区销售日报' }] // tab切换data
|
|
|
+ tabsList: [] // tab切换data
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -31,6 +31,19 @@ export default {
|
|
|
},
|
|
|
// 初始化
|
|
|
pageInit () {
|
|
|
+ this.tabsList = []
|
|
|
+ if (this.$hasPermissions('M_National_Sales_Daily_Report')) {
|
|
|
+ this.tabsList.push({ id: 0, name: '全国销售日报' })
|
|
|
+ }
|
|
|
+ if (this.$hasPermissions('M_Project_Sales_Daily_Report')) {
|
|
|
+ this.tabsList.push({ id: 1, name: '项目销售日报1' })
|
|
|
+ }
|
|
|
+ if (this.$hasPermissions('M_Project_Sales_Daily_Report_2')) {
|
|
|
+ this.tabsList.push({ id: 2, name: '项目销售日报2' })
|
|
|
+ }
|
|
|
+ if (this.$hasPermissions('M_Regional_Sales_Daily_Report')) {
|
|
|
+ this.tabsList.push({ id: 3, name: '分区销售日报' })
|
|
|
+ }
|
|
|
this.activeKey = 0
|
|
|
this.$refs['table' + this.activeKey][0].pageInit(this.activeKey)
|
|
|
}
|