feat(performanceEchart): 移除无用组件
This commit is contained in:
parent
4bc1929b30
commit
b6fe04ea07
|
@ -1,19 +1,22 @@
|
|||
<template>
|
||||
<view class="main">
|
||||
|
||||
<view class="top-lists">
|
||||
<view v-for="(item, index) in navList" v-show="item.menuKey!=''" :key="index"
|
||||
:class="navIndex == index ? 'styles' : ''" class="nav-view" @click="clickHref(index)">
|
||||
<view
|
||||
v-for="(item, index) in navList"
|
||||
v-show="item.menuKey != ''"
|
||||
:key="index"
|
||||
:class="navIndex == index ? 'styles' : ''"
|
||||
class="nav-view"
|
||||
@click="clickHref(index)"
|
||||
>
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
<view> </view>
|
||||
<!-- 业绩分布 !-->
|
||||
<template>
|
||||
<view v-if="navIndex == 0 && navList[0].menuKey != ''">
|
||||
<view v-if='ifDetail==0'>
|
||||
<view v-if="ifDetail == 0">
|
||||
<view>
|
||||
<performanceDistribution />
|
||||
</view>
|
||||
|
@ -25,9 +28,8 @@
|
|||
<view v-else>
|
||||
<!-- 月度业绩详情 -->
|
||||
<view>
|
||||
<monthPvDetail :placeDept='ifDetail' />
|
||||
<monthPvDetail :placeDept="ifDetail" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -46,7 +48,7 @@
|
|||
</template>
|
||||
<!-- 月度新增业绩 / 数据查询 !-->
|
||||
<template>
|
||||
<view v-if="navIndex==1" style="padding-bottom: 20rpx;">
|
||||
<view v-if="navIndex == 1" style="padding-bottom: 20rpx">
|
||||
<!-- 首购新增业绩 !-->
|
||||
<view>
|
||||
<fistAddPv />
|
||||
|
@ -80,18 +82,15 @@
|
|||
<activeMembers></activeMembers>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 推荐小区分布 !-->
|
||||
<!-- <view>
|
||||
<recommendedCommunity />
|
||||
</view> -->
|
||||
|
||||
|
||||
<!-- 推荐平均用时 -->
|
||||
<!-- <view>
|
||||
<recommendTime />
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -99,11 +98,18 @@
|
|||
<template>
|
||||
<view v-if="navIndex == 2">
|
||||
<view class="height-auto-s">
|
||||
<view style="font-size: 28rpx;">{{'直推业绩'}}</view>
|
||||
<view style="font-size: 28rpx">{{ '直推业绩' }}</view>
|
||||
<view class="flex-ss">
|
||||
<view class="time1">
|
||||
<picker :value="query.startDate" fields='month' mode="date" @change="bindDateChange">
|
||||
<view v-if="query.startDate!=''" class="uni-inputs">{{query.startDate}}</view>
|
||||
<picker
|
||||
:value="query.startDate"
|
||||
fields="month"
|
||||
mode="date"
|
||||
@change="bindDateChange"
|
||||
>
|
||||
<view v-if="query.startDate != ''" class="uni-inputs">{{
|
||||
query.startDate
|
||||
}}</view>
|
||||
<view v-else class="uni-input">{{ '开始日期' }}</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
@ -132,16 +138,13 @@
|
|||
<directList ref="sgsyData" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as api from '@/config/login.js'
|
||||
import * as apis from '@/config/market.js'
|
||||
import {
|
||||
setToken
|
||||
} from '@/config/auth.js'
|
||||
import { setToken } from '@/config/auth.js'
|
||||
import store from '@/store'
|
||||
import placement from '@/components/distribution/placement.vue'
|
||||
import placementPerformance from '@/components/distribution/placementPerformance.vue'
|
||||
|
@ -153,7 +156,7 @@
|
|||
import firstPv from '@/components/distribution/firstPv.vue'
|
||||
import secondPv from '@/components/distribution/secondPv.vue'
|
||||
import realPerformances from '@/components/distribution/realPerformances.vue'
|
||||
import realPerformance from '@/components/distribution/realPerformance.vue'
|
||||
// import realPerformance from '@/components/distribution/realPerformance.vue'
|
||||
import directList from '@/components/distribution/directList.vue'
|
||||
import recommendTime from '@/components/distribution/recommendTime.vue'
|
||||
import gradePerformance from '@/components/distribution/gradePerformance.vue'
|
||||
|
@ -161,12 +164,11 @@
|
|||
import performanceDistribution from '@/components/distribution/performanceDistribution.vue'
|
||||
import monthPvDetail from '@/components/distribution/monthPvDetail.vue'
|
||||
export default {
|
||||
|
||||
components: {
|
||||
placement,
|
||||
realPerformances,
|
||||
placementPerformance,
|
||||
realPerformance,
|
||||
// realPerformance,
|
||||
directList,
|
||||
recommendTime,
|
||||
gradePerformance,
|
||||
|
@ -179,7 +181,7 @@
|
|||
secondPv,
|
||||
mounthPvCompare,
|
||||
activeMembers,
|
||||
monthPvDetail
|
||||
monthPvDetail,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -188,32 +190,35 @@
|
|||
query: {
|
||||
startDate: '',
|
||||
},
|
||||
marketList: [{
|
||||
marketList: [
|
||||
{
|
||||
text: '奖金来源',
|
||||
id: 3,
|
||||
path: "/marketDynamics",
|
||||
path: '/marketDynamics',
|
||||
name: 'bonusSource',
|
||||
isShow: false,
|
||||
}, ],
|
||||
navList: [{
|
||||
},
|
||||
],
|
||||
navList: [
|
||||
{
|
||||
name: '月度业绩',
|
||||
menuKey: "",
|
||||
value: "ConsanguinityCheck"
|
||||
menuKey: '',
|
||||
value: 'ConsanguinityCheck',
|
||||
},
|
||||
{
|
||||
name: '数据查询',
|
||||
menuKey: "",
|
||||
value: "monthlyPerformance"
|
||||
menuKey: '',
|
||||
value: 'monthlyPerformance',
|
||||
},
|
||||
{
|
||||
name: '直推业绩',
|
||||
menuKey: "",
|
||||
value: "recommendPerformance"
|
||||
menuKey: '',
|
||||
value: 'recommendPerformance',
|
||||
},
|
||||
{
|
||||
name: '推荐列表',
|
||||
menuKey: "",
|
||||
value: "recommendList"
|
||||
menuKey: '',
|
||||
value: 'recommendList',
|
||||
},
|
||||
|
||||
// {
|
||||
|
@ -232,20 +237,18 @@
|
|||
// menuKey: "",
|
||||
// value: "recommendTime"
|
||||
// },
|
||||
|
||||
],
|
||||
navIndex: 0,
|
||||
page: {
|
||||
pageSize: 50,
|
||||
pageNum: 1,
|
||||
},
|
||||
ifDetail: "0"
|
||||
ifDetail: '0',
|
||||
}
|
||||
},
|
||||
onLoad(val) {
|
||||
|
||||
this.query.startDate = this.getStartTime()
|
||||
this.ifDetail = val.ifDetail || "0"
|
||||
this.ifDetail = val.ifDetail || '0'
|
||||
// this.query.endDate = this.getEndTime()
|
||||
this.getMenuLists()
|
||||
},
|
||||
|
@ -257,7 +260,7 @@
|
|||
let month = date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
|
||||
month = month > 9 ? month : '0' + month // 补零
|
||||
// return year + '-' + month + '-' + day
|
||||
return year + "-" + month
|
||||
return year + '-' + month
|
||||
},
|
||||
// getEndTime() {
|
||||
// var date = new Date();
|
||||
|
@ -295,7 +298,7 @@
|
|||
async onReachBottom() {
|
||||
if (this.navIndex == 6) {
|
||||
this.page.pageNum + 1
|
||||
this.$refs.sgsyData.getDataList(this.page.pageNum += 1);
|
||||
this.$refs.sgsyData.getDataList((this.page.pageNum += 1))
|
||||
}
|
||||
},
|
||||
bindPickerChange(e) {
|
||||
|
@ -304,12 +307,12 @@
|
|||
clickHref(index) {
|
||||
// let that= this;
|
||||
this.navIndex = index
|
||||
this.ifDetail = "0"
|
||||
this.ifDetail = '0'
|
||||
},
|
||||
getMenuLists() {
|
||||
api.menuList().then((res) => {
|
||||
res.data.forEach((item) => {
|
||||
this.navList.forEach((items) => {
|
||||
api.menuList().then(res => {
|
||||
res.data.forEach(item => {
|
||||
this.navList.forEach(items => {
|
||||
if (item.menuKey == items.value) {
|
||||
items.menuKey = item.menuKey
|
||||
}
|
||||
|
@ -357,8 +360,6 @@
|
|||
/* margin-bottom: 30rpx; */
|
||||
}
|
||||
|
||||
|
||||
|
||||
.texts {
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
|
|
Loading…
Reference in New Issue