소스 검색

修改bug

test
douzhuo 2 년 전
부모
커밋
40983a8bd5
2개의 변경된 파일169개의 추가작업 그리고 148개의 파일을 삭제
  1. +99
    -93
      pages/center/Piabodata/Theteamcompared.vue
  2. +70
    -55
      pages/center/Piabodata/TrendAnalysis.vue

+ 99
- 93
pages/center/Piabodata/Theteamcompared.vue 파일 보기

@@ -38,122 +38,128 @@
</view>

<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>

<template v-if="false">
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">接待量</view>
<view class="title3" style="flex: 1;">
<view class="title3-box" @click="tabtimetap1(0)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active1 == 0 }">排名</view>
</view>
<view class="title3-box" @click="tabtimetap1(1)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active1 == 1 }">趋势</view>
</view>
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">接待量</view>
<view class="title3" style="flex: 1;">
<view class="title3-box" @click="tabtimetap1(0)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active1 == 0 }">排名</view>
</view>
</view>
<view class="hejibox">
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam1||0}}</view>
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg1||0}}</view>
</view>
<view class="" v-if=" eharTab.active1 == 1 ">
<view class="danwei">接待量</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect1" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyibbb" :canvas2d="true" />
<view class="title3-box" @click="tabtimetap1(1)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active1 == 1 }">趋势</view>
</view>
<!-- <view class="title3-box">
<view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 2 }">表格</view>
</view> -->
</view>
<view class="jindu" v-if=" eharTab.active1 == 0 ">
<view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index">
<view class="jindu-boxche">
<view class="jindu-name">{{item.name.substring(0, 4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
<u-line-progress height="24" :show-percent="false" active-color="#FBA448"
:percent="item.zxl1"></u-line-progress>
</view>
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
</view>
<view class="hejibox">
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam1||0}}</view>
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg1||0}}</view>
</view>
<view class="" v-if=" eharTab.active1 == 1 ">
<view class="danwei">接待量</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect1" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyibbb" :canvas2d="true" />
</view>
</view>
<view class="jindu" v-if=" eharTab.active1 == 0 ">
<view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index">
<view class="jindu-boxche">
<view class="jindu-name">{{item.name.substring(0, 4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
<u-line-progress height="24" :show-percent="false" active-color="#FBA448"
:percent="item.zxl1"></u-line-progress>
</view>
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
</view>
</view>
</view>
</template>
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
</view>

<template v-if="false">
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">接待时长</view>
<view class="title3" style="flex: 1;">
<view class="title3-box" @click="tabtimetap2(0)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active2 == 0 }">排名</view>
</view>
<view class="title3-box" @click="tabtimetap2(1)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active2 == 1 }">趋势</view>
</view>
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">接待时长</view>
<view class="title3" style="flex: 1;">
<view class="title3-box" @click="tabtimetap2(0)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active2 == 0 }">排名</view>
</view>
</view>
<view class="hejibox">
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam2||0}}</view>
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg2||0}}</view>
</view>
<view class="" v-if=" eharTab.active2 == 1 ">
<view class="danwei">录音时长</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect2" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyibb" :canvas2d="true" />
<view class="title3-box" @click="tabtimetap2(1)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active2 == 1 }">趋势</view>
</view>
<!-- <view class="title3-box">
<view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 2 }">表格</view>
</view> -->
</view>
<view class="jindu" v-if=" eharTab.active2 == 0 ">
<view class="jindu-box" v-for="(item,index) in newlisttabinfo2" :key="index">
<view class="jindu-boxche">
<view class="jindu-name">{{item.name.substring(0, 4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
<u-line-progress height="24" :show-percent="false" active-color="#FBA448"
:percent="item.zxl1"></u-line-progress>
</view>
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
</view>
<view class="hejibox">
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam2||0}}</view>
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg2||0}}</view>
</view>
<view class="" v-if=" eharTab.active2 == 1 ">
<view class="danwei">录音时长</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect2" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyibb" :canvas2d="true" />
</view>
</view>
<view class="jindu" v-if=" eharTab.active2 == 0 ">
<view class="jindu-box" v-for="(item,index) in newlisttabinfo2" :key="index">
<view class="jindu-boxche">
<view class="jindu-name">{{item.name.substring(0, 4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
<u-line-progress height="24" :show-percent="false" active-color="#FBA448"
:percent="item.zxl1"></u-line-progress>
</view>
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
</view>
</view>
</view>
</template>
</view>

<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>

<template v-if="false">
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">销讲执行率</view>
<view class="title3" style="flex: 1;">
<view class="title3-box" @click="tabtimetap3(0)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active3 == 0 }">排名</view>
</view>
<view class="title3-box" @click="tabtimetap3(1)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active3 == 1 }">趋势</view>
</view>
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">销讲执行率</view>
<view class="title3" style="flex: 1;">
<view class="title3-box" @click="tabtimetap3(0)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active3 == 0 }">排名</view>
</view>
</view>
<view class="" v-if=" eharTab.active3 == 1 ">
<view class="danwei">执行率</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect3" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyib" :canvas2d="true" />
<view class="title3-box" @click="tabtimetap3(1)">
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active3 == 1 }">趋势</view>
</view>
<!-- <view class="title3-box">
<view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 2 }">表格</view>
</view> -->
</view>
<view class="jindu" v-if=" eharTab.active3 == 0 ">
<view class="jindu-box" v-for="(item,index) in newlisttabinfo3" :key="index">
<view class="jindu-boxche">
<view class="jindu-name">{{item.name.substring(0, 4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
<u-line-progress height="24" :show-percent="false" active-color="#FBA448"
:percent="item.zxl1"></u-line-progress>
</view>
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view>
</view>
<!-- <view class="hejibox">
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam3||0}}</view>
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg3||0}}</view>
</view> -->
<view class="" v-if=" eharTab.active3 == 1 ">
<view class="danwei">执行率</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect3" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyib" :canvas2d="true" />
</view>
</view>
<view class="jindu" v-if=" eharTab.active3 == 0 ">
<view class="jindu-box" v-for="(item,index) in newlisttabinfo3" :key="index">
<view class="jindu-boxche">
<view class="jindu-name">{{item.name.substring(0, 4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
<u-line-progress height="24" :show-percent="false" active-color="#FBA448"
:percent="item.zxl1"></u-line-progress>
</view>
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view>
</view>
</view>
</view>
</template>
</view>

<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<!-- <view class="single">
<view class="title">
@@ -451,7 +457,7 @@
max: 100
}
}
},
}
};
},
onLoad() {


+ 70
- 55
pages/center/Piabodata/TrendAnalysis.vue 파일 보기

@@ -44,17 +44,19 @@
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="boxzonglan" style="min-height: 100rpx;">
<view class="zonglantit">简报</view>
<view class="zonglanbox" >
<view class="grid" v-for="(item,index) in numlist" :key="index" style="height: auto;padding-bottom: 20rpx;">
<view class="zonglanbox">
<view class="grid" v-for="(item,index) in numlist" :key="index"
style="height: auto;padding-bottom: 20rpx;">
<view class="audonum" v-if="item.name=='平均接待时长'">{{item.name}}/分</view>
<view class="audonum" v-else>{{item.name}}</view>
<view class="num" >
<view class="num">
<view class="" style="width: 35%;">
{{index==1?item.num+'%':item.num}}
</view>
<view class="comparesize" v-if="compareFlag&&timepickpickisshow">
<text style="margin-right: 10rpx;">对比:{{index==1?item.num1+'%':item.num1}} </text>
<text :style="{color:item.num2*1>0?'red':'green'}">{{item.num2+'%'}} {{item.num2*1>0?'↑':'↓'}}</text>
<text :style="{color:item.num2*1>0?'red':'green'}">{{item.num2+'%'}}
{{item.num2*1>0?'↑':'↓'}}</text>
</view>
</view>
</view>
@@ -81,7 +83,8 @@


<view class="chart">
<view style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;margin-top: 16rpx;"
<view
style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;margin-top: 16rpx;"
v-if="guwenshow&&lopanobj.name" @click="oninputtap()">
<view class="title2-che" style="width: 220rpx;">{{lopanobj.name}}
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
@@ -106,7 +109,7 @@
</view>
</view> -->
</view>

<view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
<view>选择二级:</view>
@@ -127,8 +130,8 @@
</view>
</view>

<view style="display: flex;align-items: center;height: 80rpx;justify-content: center;" v-if="Selecttuandui&&Selecttuanduiobj.name"
@click="oninputtap4()">
<view style="display: flex;align-items: center;height: 80rpx;justify-content: center;"
v-if="Selecttuandui&&Selecttuanduiobj.name" @click="oninputtap4()">
<view class="title2-che" style="width: 220rpx;">{{Selecttuanduiobj.name}}
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view>
@@ -166,20 +169,25 @@
style="border-right:1px solid #E0E0E0;">{{item1}}</view>
<view v-if="index>0 && index1==item.length-1" class="td"
style="border-right:1px solid #E0E0E0;" :style="{color:item1*1>0?'red':'green'}">
{{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}</view>
{{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
</view>
</view>
</view>
</view>
</view>
<view class="table" v-if="guwenFlag" style="width: 100%;">
<scroll-view scroll-x="true" style="white-space: nowrap;">
<view v-for="(item,index) in tableDate" :key="index" :style="{display:index==0?'inline-block':'block'}">
<scroll-view scroll-x="true" style="white-space: nowrap;">
<view v-for="(item,index) in tableDate" :key="index"
:style="{display:index==0?'inline-block':'block'}">
<view class="tr" style="display: inline-block;">
<view v-for="(item1,index1) in item" :key="index1" class="trd" style="display: inline-block;">
<view v-for="(item1,index1) in item" :key="index1" class="trd"
style="display: inline-block;">
<view v-if="index==1&&index1>0" class="td" :style="{color:item1*1>0?'red':'green'}"
style="border-right:1px solid #E0E0E0;">{{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}</view>
style="border-right:1px solid #E0E0E0;">
{{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}</view>
<view v-else-if="index>1&&index1>0" class="td" style="border-right:1px solid #E0E0E0;">
{{item1+'%'}}</view>
{{item1+'%'}}
</view>
<view v-else class="td" style="border-right:1px solid #E0E0E0;">{{item1}}</view>
</view>
</view>
@@ -189,22 +197,18 @@

</view>
<view style="width: 100%;height: 60rpx;"></view>
<view v-if="Showhiddenunits">
<u-select v-model="Showhiddenunits" mode="single-column" :list="selectlist" @confirm="confirm">
</u-select>
</view>
<view v-if="Showhiddenunits2">
<u-select v-model="Showhiddenunits2" mode="single-column" :list="selectlist2" @confirm="confirm2">
</u-select>
</view>
<view v-if="Showhiddenunits3">
<u-select v-model="Showhiddenunits3" mode="single-column" :list="selectlist3" @confirm="confirm3">
</u-select>
</view>
<view v-if="Showhiddenunits4">
<u-select v-model="Showhiddenunits4" mode="single-column" :list="selectlist4" @confirm="confirm4">
</u-select>
</view>
<u-select v-model="Showhiddenunits" mode="single-column" :list="selectlist" @confirm="confirm"
:default-value="selindex">
</u-select>
<u-select v-model="Showhiddenunits2" mode="single-column" :list="selectlist2" @confirm="confirm2"
:default-value="selindex">
</u-select>
<u-select v-model="Showhiddenunits3" mode="single-column" :list="selectlist3" @confirm="confirm3"
:default-value="selindex">
</u-select>
<u-select v-model="Showhiddenunits4" mode="single-column" :list="selectlist4" @confirm="confirm4"
:default-value="selindex">
</u-select>
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
<newcalendar v-model="totalTimeShow2" :planNum='intervaltime' mode="date" @change="totalTimeChange2">
</newcalendar>
@@ -368,7 +372,7 @@
}
this.activeTotal = 8;
},
init() {
this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => {
this.pamect.lastStartDate = data.lastStartDate;
@@ -385,7 +389,7 @@
this.numlist[2].num1 = data.endSumDuration || 0;
this.numlist[0].num2 = data.contrastSumCustomer
this.numlist[1].num2 = data.contrastFraction;
this.numlist[2].num2 = data.contrastSumDuration|| 0;
this.numlist[2].num2 = data.contrastSumDuration || 0;
} else {
this.compareFlag = false
}
@@ -546,7 +550,7 @@
this.guwenshow = false;
this.Selectlevel = false;
this.Selecttuandui = false;
this.tableDate=[]
this.tableDate = []
this.pamect.showStatus = 0;
this.pamect.timeType = "4";
this.pamect.firstStartDate = '';
@@ -605,7 +609,8 @@
data.endList.forEach((child, zxc) => {
if (sdf == zxc) {
that.lineOptsect.categories.push(
child.statDate.substring(5,10) + 'vs' + item.statDate.substring(5, 10)
child.statDate.substring(5, 10) + 'vs' + item.statDate
.substring(5, 10)
)
}
})
@@ -624,7 +629,8 @@
// },
]
that.lineOptsect.categories.map((item, index) => {
let newarr = [item, data.endList[index].fraction, data.startList[index].fraction,data.comparedList[index].fraction
let newarr = [item, data.endList[index].fraction, data.startList[index]
.fraction, data.comparedList[index].fraction
]
// obj.time=item
// obj.time1=data.firstValue[index].fraction
@@ -809,9 +815,10 @@
data.firstList.forEach((item, sdf) => {
data.lastList.forEach((child, zxc) => {
if (sdf == zxc) {
this.lineOptsect.categories.push(
child.statDate.substring(5,10) + 'vs' + item.statDate.substring(5, 10)
)
this.lineOptsect.categories.push(
child.statDate.substring(5, 10) + 'vs' + item.statDate
.substring(5, 10)
)
}
})
})
@@ -825,7 +832,9 @@
]
that.lineOptsect.categories.map((item, index) => {
let newarr = [item, data.lastList[
index].avgExecutionRate, data.firstList[index].avgExecutionRate, data.contrast[index].data]
index].avgExecutionRate, data.firstList[index].avgExecutionRate,
data.contrast[index].data
]
arr.push(newarr)
})
// console.log(arr)
@@ -936,11 +945,11 @@
//获取团队列表
getuanduilist() {
uni.request({
url: config.service.findListByUser + "?houseId=" +this.pamect.houseId,
url: config.service.findListByUser + "?houseId=" + this.pamect.houseId,
method: "GET",
header: {
'content-type': 'application/json',
'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
},
success: (data) => {
if (data.data.data.length == 0) {
@@ -964,8 +973,8 @@
this.TeamCompared()
}
}
})
})
// this.$u.post("/cusLvStatistics/findAllDeptIdByHouseId ", {
// houseId: this.pamect.houseId
// }).then(data => {
@@ -1069,7 +1078,8 @@
data.lastValue.receptionStatList.forEach((child, zxc) => {
if (sdf == zxc) {
that.lineOptsect.categories.push(
child.statDate.substring(5,10) + 'vs' + item.statDate.substring(5, 10)
child.statDate.substring(5, 10) + 'vs' + item
.statDate.substring(5, 10)
)
}
})
@@ -1085,8 +1095,9 @@
['时间', '时段一', '时段二', '变化']
]
that.lineOptsect.categories.map((item, index) => {
let newarr = [item, data
.lastValue.receptionStatList[index].fraction, data.firstValue.receptionStatList[index].fraction,data.contrast
let newarr = [item, data
.lastValue.receptionStatList[index].fraction, data.firstValue
.receptionStatList[index].fraction, data.contrast
.receptionStatList[index].data
]
arr.push(newarr)
@@ -1145,7 +1156,7 @@
align-items: center;
border-bottom: 1px solid #E0E0E0;
flex-wrap: nowrap;
.td {
text-align: center;
font-size: 24rpx;
@@ -1155,11 +1166,13 @@
line-height: 64rpx;
// flex-shrink: 0;
}
.trd{
flex-shrink: 0;
min-width: 300rpx;
// border-bottom: 1px solid #ccc;

.trd {
flex-shrink: 0;
min-width: 300rpx;
// border-bottom: 1px solid #ccc;
}

.th {
height: 64rpx;
text-align: center;
@@ -1345,11 +1358,13 @@
color: #666666;
margin-top: 10rpx;
}
.grid:nth-child(1){
border-right:none ;
border-bottom:none ;

.grid:nth-child(1) {
border-right: none;
border-bottom: none;
}
.grid:nth-child(3){

.grid:nth-child(3) {
width: 50.5%;
}
</style>

불러오는 중...
취소
저장