|
|
@@ -4,21 +4,18 @@
|
|
|
:navsHeight="navsHeight" :opacity="scrollTop" :justify="'left'" :color="'#fff'" :fixedHeight="160">
|
|
|
<view class="task-tabs m-t20" :style="{top:`${$tools.topHeight()}px`}">
|
|
|
<HeadFilter @onTopSelect="onTopSelect" :user-status-list="userStatusList"></HeadFilter>
|
|
|
- <view class="m-lr30 m-tb30 bor-255 r-100" v-if="statType === 7">
|
|
|
+ <view class="m-lr30 m-tb30 bor-255 r-100" v-if="statType === 3">
|
|
|
<uv-subsection :list="list" :bgColor="'rgba(255,255,255,0.1)'" :activeColor="'#0FB160'"
|
|
|
:inactiveColor="'#004615'" :fontSize="14" custom-style="height: 70rpx;border-radius: 30rpx;"
|
|
|
custom-item-style="border-radius: 30rpx;" :current="current" @change="onChange"></uv-subsection>
|
|
|
</view>
|
|
|
</view>
|
|
|
</Nav>
|
|
|
- <!-- <view class="m-t30 stat_blank" style="z-index: 999999999;" :style="{minHeight:`calc(100% - ${$tools.topHeight()}px)`}">
|
|
|
- 内容
|
|
|
- </view> -->
|
|
|
<view class="statistics_content" :style="[{top:`${$tools.topHeight() + positionHeight}px`}]">
|
|
|
|
|
|
<view class="">
|
|
|
- <HeadData v-if="statType === 3"></HeadData>
|
|
|
- <view class="tabs page-box-bg-fff m-lr30 r-30" v-if="statType ===7"
|
|
|
+ <HeadData v-if="statType === 0 || statType === 1"></HeadData>
|
|
|
+ <view class="tabs page-box-bg-fff m-lr30 r-30" v-if="statType === 2 || statType === 3"
|
|
|
:style="[{position:is_fixed?'absolute':''},{top:`${$tools.topHeight() + 85}px`}]"
|
|
|
style="height: 100rpx;">
|
|
|
<z-tabs ref="tabs" :list="tabsList"
|
|
|
@@ -30,53 +27,17 @@
|
|
|
<StatSingleData :is_fixed="is_tabs_fixed" v-if="is_single_data"></StatSingleData>
|
|
|
<view class="sys-list-background-color p-lr30">
|
|
|
<!-- 汇总统计-公司 -->
|
|
|
- <view v-if="statType === 3">
|
|
|
- <StatFinanceChart></StatFinanceChart>
|
|
|
- <StatFinance></StatFinance>
|
|
|
- <StatCapital :leftColor="0" :rightColor="1" :leftText="'任务资金汇总'">
|
|
|
- </StatCapital>
|
|
|
- <StatCapital :leftColor="1" :rightColor="2" :leftText="'在途资金汇总'">
|
|
|
- </StatCapital>
|
|
|
- <StatIndustry></StatIndustry>
|
|
|
- <StatAgeChart></StatAgeChart>
|
|
|
- </view>
|
|
|
+ <GeneralStat v-if="statType === 0"></GeneralStat>
|
|
|
<!-- 资金统计-部门 -->
|
|
|
- <view v-if="statType === 4">
|
|
|
- <StatLoanChart :genre="1" :leftText="'放款汇总占比'"></StatLoanChart>
|
|
|
- <StatLoanChart :genre="2" :leftText="'回款汇总占比'"></StatLoanChart>
|
|
|
- <StatRanking is_group :leftText="'汇总明细'"></StatRanking>
|
|
|
- <view class="sys-background-fff r-30">
|
|
|
- <StatCapital :leftColor="0" :rightColor="1" :leftText="'任务资金汇总'">
|
|
|
- </StatCapital>
|
|
|
- <view class="view_line"></view>
|
|
|
- <StatRanking :is_margin_top="false" :leftText="'个人业绩排行'"></StatRanking>
|
|
|
- </view>
|
|
|
- <StatSituation :type="1"></StatSituation>
|
|
|
- </view>
|
|
|
+ <CapitalStat v-if="statType === 1"></CapitalStat>
|
|
|
<!-- 提放统计-部门 -->
|
|
|
- <view class="" v-if="statType === 6">
|
|
|
- <StatLoanChart :genre="1" :leftText="'提放汇总占比'"></StatLoanChart>
|
|
|
- <StatRanking :leftText="'提放汇总明细'"></StatRanking>
|
|
|
- <StatRanking :is_type='2' :leftText="'个人业绩排行'"></StatRanking>
|
|
|
- <StatSituation :type="1" :leftText="'情况说明'"></StatSituation>
|
|
|
- </view>
|
|
|
+ <DrawingsStat v-if="statType === 2"></DrawingsStat>
|
|
|
<!-- 消金统计-部门 -->
|
|
|
- <view class="" v-if="statType === 7">
|
|
|
- <StatLoanChart :genre="3" :leftText="'消金汇总占比'"></StatLoanChart>
|
|
|
- <StatRanking :genre="3" :leftText="'消金汇总明细'"></StatRanking>
|
|
|
- <StatRanking :genre="3" :is_type='2' :leftText="'个人业绩排行'"></StatRanking>
|
|
|
- <StatSituation :type="1" :genre="3" :leftText="'情况说明'"></StatSituation>
|
|
|
- </view>
|
|
|
+ <ConsumeStat v-if="statType === 3"></ConsumeStat>
|
|
|
<!-- 任务统计-个人 -->
|
|
|
- <view class="" v-if="statType === 1">
|
|
|
- <StatLoanChart :leftText="'任务汇总占比'"></StatLoanChart>
|
|
|
- <StatRanking :is_type="3" :leftText="'任务明细'"></StatRanking>
|
|
|
- </view>
|
|
|
+ <TaskStat v-if="statType === 4"></TaskStat>
|
|
|
<!-- 业绩统计-个人 -->
|
|
|
- <view class="" v-if="statType === 2">
|
|
|
- <StatLoanChart :leftText="'任务汇总占比'"></StatLoanChart>
|
|
|
- <StatRanking :is_type="1" :leftText="'放款汇总明细'"></StatRanking>
|
|
|
- </view>
|
|
|
+ <PerformanceStat v-if="statType === 5"></PerformanceStat>
|
|
|
<view class="bottom_view"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -85,45 +46,53 @@
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
+
|
|
|
+<!--
|
|
|
+财务汇总占比 stat_finance_chart
|
|
|
+放款汇总占比 stat_loan_chart
|
|
|
+财务汇总明细 stat_finance
|
|
|
+任务资金汇总 stat_capital
|
|
|
+行业占比 stat_industry
|
|
|
+年龄分布 stat_age_chart
|
|
|
+情况说明 stat_situation
|
|
|
+排名 stat_rankin
|
|
|
+-->
|
|
|
+
|
|
|
<script>
|
|
|
- import HeadFilter from "@/common/statistics/head_filter.vue"
|
|
|
- import HeadData from "@/common/statistics/head_data.vue"
|
|
|
+ // 顶部筛选
|
|
|
+ import HeadFilter from "./module/head_filter.vue"
|
|
|
+ // 顶部左右统计数据
|
|
|
+ import HeadData from "./module/head_data.vue"
|
|
|
// 顶部单统计数据
|
|
|
- import StatSingleData from "@/common/statistics/stat_single_data.vue"
|
|
|
- // 模块标题
|
|
|
- import StatisticsTitle from "@/common/statistics/statistics_title.vue"
|
|
|
- // 财务汇总占比
|
|
|
- import StatFinanceChart from "@/common/statistics/stat_finance_chart.vue"
|
|
|
- // 放款汇总占比
|
|
|
- import StatLoanChart from "@/common/statistics/stat_loan_chart.vue"
|
|
|
- // 财务汇总明细
|
|
|
- import StatFinance from "@/common/statistics/stat_finance.vue"
|
|
|
- // 任务资金汇总
|
|
|
- import StatCapital from "@/common/statistics/stat_capital.vue"
|
|
|
- // 行业占比
|
|
|
- import StatIndustry from "@/common/statistics/stat_industry.vue"
|
|
|
- // 年龄分布
|
|
|
- import StatAgeChart from "@/common/statistics/stat_age_chart.vue"
|
|
|
- // 情况说明
|
|
|
- import StatSituation from "@/common/statistics/stat_situation.vue"
|
|
|
- // 排名
|
|
|
- import StatRanking from "@/common/statistics/stat_ranking.vue"
|
|
|
- import {getUserType} from "@/api/statistics";
|
|
|
+ import StatSingleData from "./module/stat_single_data.vue"
|
|
|
+ // 汇总统计
|
|
|
+ import GeneralStat from "./components/general_stat.vue"
|
|
|
+ // 资金统计
|
|
|
+ import CapitalStat from "./components/capital_stat.vue"
|
|
|
+ // 提放统计
|
|
|
+ import DrawingsStat from "./components/drawings_stat.vue"
|
|
|
+ // 消金统计
|
|
|
+ import ConsumeStat from "./components/consume_stat.vue"
|
|
|
+ // 任务统计
|
|
|
+ import TaskStat from "./components/task_stat.vue"
|
|
|
+ // 业绩统计
|
|
|
+ import PerformanceStat from "./components/performance_stat.vue"
|
|
|
+
|
|
|
+ import {
|
|
|
+ getUserType
|
|
|
+ } from "@/api/statistics";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
HeadFilter,
|
|
|
HeadData,
|
|
|
StatSingleData,
|
|
|
- StatFinanceChart,
|
|
|
- StatFinance,
|
|
|
- StatCapital,
|
|
|
- StatLoanChart,
|
|
|
- StatisticsTitle,
|
|
|
- StatIndustry,
|
|
|
- StatAgeChart,
|
|
|
- StatSituation,
|
|
|
- StatRanking
|
|
|
+ CapitalStat,
|
|
|
+ GeneralStat,
|
|
|
+ ConsumeStat,
|
|
|
+ DrawingsStat,
|
|
|
+ PerformanceStat,
|
|
|
+ TaskStat
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -145,7 +114,7 @@
|
|
|
navsHeight: 65,
|
|
|
positionHeight: 50,
|
|
|
list: ['中银消费', '中邮消费', '新网车抵'],
|
|
|
- userStatusList:[]
|
|
|
+ userStatusList: []
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
@@ -155,7 +124,7 @@
|
|
|
this.scrollTop = res.scrollTop / 120
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getUserType()
|
|
|
+ // this.getUserType()
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
@@ -174,15 +143,15 @@
|
|
|
// },
|
|
|
},
|
|
|
methods: {
|
|
|
- getUserType(){
|
|
|
- getUserType().then((res)=>{
|
|
|
- if(res.code===1){
|
|
|
- this.userStatusList=res.data
|
|
|
- this.statType=this.userStatusList[0].id
|
|
|
- console.log(this.statType)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ getUserType() {
|
|
|
+ getUserType().then((res) => {
|
|
|
+ if (res.code === 1) {
|
|
|
+ this.userStatusList = res.data
|
|
|
+ this.statType = this.userStatusList[0].id
|
|
|
+ console.log(this.statType)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onChange(e) {
|
|
|
this.current = e
|
|
|
},
|