|
@@ -1,5 +1,8 @@
|
|
|
<template>
|
|
|
<div class="statistic-container">
|
|
|
+ <div class="tabs-content">
|
|
|
+ <span @click="tabsHandler(item)" :class="['item',departmentAct==item.val && 'item-act']" v-for="item in departmentTabs" :key="item.val">{{item.label}}</span>
|
|
|
+ </div>
|
|
|
<div class="frequency-cont">
|
|
|
<ul class="frequency-ul">
|
|
|
<li v-for="tab in staticTabs" :key="tab" :class="{act: tab=== default_tab}" @click="changeTabHandle(tab)">{{ tab }}</li>
|
|
@@ -14,45 +17,14 @@
|
|
|
placeholder="请选择统计时间"/>
|
|
|
</div>
|
|
|
<div class="table-cont" v-show="dataLoading">
|
|
|
- <!-- <table>
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <td rowspan="2" class="thead-rs">组别</td>
|
|
|
- <td rowspan="2" class="thead-rs">销售</td>
|
|
|
- <td
|
|
|
- :colspan="['周度统计表','月度统计表'].includes(default_tab) ? 3 : 1"
|
|
|
- v-for="item in tableTheadColumns"
|
|
|
- :key="item"
|
|
|
- class="head-column"
|
|
|
- >
|
|
|
- {{item}}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr v-if="['月度统计表'].includes(default_tab)">
|
|
|
- <template v-for="(item,index) in new Array(4)">
|
|
|
- <td :key="index+'_0'">试用路演</td>
|
|
|
- <td :key="index+'_1'">正式路演</td>
|
|
|
- <td :key="index+'_2'">公开会议</td>
|
|
|
- </template>
|
|
|
- </tr>
|
|
|
- <tr v-if="['周度统计表'].includes(default_tab)">
|
|
|
- <template v-for="(item,index) in new Array(3)">
|
|
|
- <td :key="index+'_0'">试用路演</td>
|
|
|
- <td :key="index+'_1'">正式路演</td>
|
|
|
- <td :key="index+'_2'">公开会议</td>
|
|
|
- </template>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- </table> -->
|
|
|
-
|
|
|
<div class="table-body-wrapper">
|
|
|
<table>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <td rowspan="2" class="thead-rs">组别</td>
|
|
|
- <td rowspan="2" class="thead-rs">销售</td>
|
|
|
+ <td rowspan="2" :class="['thead-rs',departmentAct == '权益' && !['周度统计表','月度统计表'].includes(default_tab) && 'rai_thead-rs']">组别</td>
|
|
|
+ <td rowspan="2" :class="['thead-rs',departmentAct == '权益' && !['周度统计表','月度统计表'].includes(default_tab) && 'rai_thead-rs']">销售</td>
|
|
|
<td
|
|
|
- :colspan="['周度统计表','月度统计表'].includes(default_tab) ? 3 : 1"
|
|
|
+ :colspan="departmentAct == '权益' && ['周度统计表','月度统计表'].includes(default_tab) ? 2 : ['周度统计表','月度统计表'].includes(default_tab) ? 3 : 1"
|
|
|
v-for="item in tableTheadColumns"
|
|
|
:key="item"
|
|
|
class="head-column"
|
|
@@ -62,16 +34,12 @@
|
|
|
</tr>
|
|
|
<tr v-if="['月度统计表'].includes(default_tab)">
|
|
|
<template v-for="(item,index) in new Array(6)">
|
|
|
- <td :key="index+'_0'">试用路演</td>
|
|
|
- <td :key="index+'_1'">正式路演</td>
|
|
|
- <td :key="index+'_2'">公开会议</td>
|
|
|
+ <td v-for="(tdItem,inx) in departmentTheadColumns" :key="index+'_'+inx">{{tdItem}}</td>
|
|
|
</template>
|
|
|
</tr>
|
|
|
<tr v-if="['周度统计表'].includes(default_tab)">
|
|
|
<template v-for="(item,index) in new Array(6)">
|
|
|
- <td :key="index+'_0'">试用路演</td>
|
|
|
- <td :key="index+'_1'">正式路演</td>
|
|
|
- <td :key="index+'_2'">公开会议</td>
|
|
|
+ <td v-for="(tdItem,inx) in departmentTheadColumns" :key="index+'_'+inx">{{tdItem}}</td>
|
|
|
</template>
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -99,7 +67,7 @@
|
|
|
</tbody>
|
|
|
<tfoot>
|
|
|
<tr>
|
|
|
- <td colspan="2">ficc总合计</td>
|
|
|
+ <td colspan="2">{{departmentAct}}总合计</td>
|
|
|
<td v-for="(total_data,total_data_key) in totalGroupArr" :key="total_data_key">
|
|
|
{{ total_data.value !== 0 ? total_data.value : '' }}
|
|
|
</td>
|
|
@@ -131,6 +99,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
Role:localStorage.getItem('Role') || '',
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -141,6 +110,8 @@ export default {
|
|
|
DataType: this.default_tab === '周度统计表' ? 'week' : this.default_tab === '月度统计表' ? 'month' : 'time_interval',
|
|
|
StartDate: this.select_date ? this.select_date[0] : '',
|
|
|
EndDate: this.select_date ? this.select_date[1] : '',
|
|
|
+ CompanyType: this.departmentAct,
|
|
|
+ DimensionType: 'roadshow_rai'
|
|
|
}).then(res => {
|
|
|
|
|
|
const { Data,Ret } = res;
|
|
@@ -153,7 +124,7 @@ export default {
|
|
|
//处理数据结构
|
|
|
let data = _.cloneDeep(Data.List);
|
|
|
data.forEach(item => {
|
|
|
- item.showDetail=false
|
|
|
+ item.showDetail = this.departmentAct == '权益' ? true : false;
|
|
|
let groupDataArr = this.filterTableData(item.RsReportRecordNumList);
|
|
|
this.$set(item,'subGroupArr',groupDataArr)
|
|
|
|
|
@@ -168,7 +139,8 @@ export default {
|
|
|
this.datalist = data;
|
|
|
this.dataLoading = true;
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getTableData();
|
|
@@ -178,4 +150,5 @@ export default {
|
|
|
<style lang='scss' scoped>
|
|
|
*{ box-sizing: border-box;}
|
|
|
@import './index.scss';
|
|
|
+
|
|
|
</style>
|