Compare commits
8 Commits
prod-25-10
...
6a8b6b7730
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a8b6b7730 | |||
| bdc78351e4 | |||
| 25cc195f1e | |||
| 97ba1500ff | |||
| 93f0e9317c | |||
| 2c83b1ea60 | |||
| 872021eca5 | |||
| 6beda9f6f1 |
@ -101,7 +101,7 @@ export default {
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
this.driverId = urlParams.get('driverId');
|
this.driverId = urlParams.get('driverId');
|
||||||
this.time=timeFormat(Date.now())
|
this.time=timeFormat(Date.now())
|
||||||
this.keyword=urlParams.get('keyWord') || ''
|
this.keyword=urlParams.get('keyword') || ''
|
||||||
this.getTrainingList();
|
this.getTrainingList();
|
||||||
document.addEventListener('visibilitychange', async ( ) => {
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
let state = document.visibilityState
|
let state = document.visibilityState
|
||||||
|
|||||||
@ -36,9 +36,6 @@
|
|||||||
v-model="keyword"
|
v-model="keyword"
|
||||||
placeholder="名称/关键词/简介"
|
placeholder="名称/关键词/简介"
|
||||||
>
|
>
|
||||||
<!-- <template #button>
|
|
||||||
<van-icon class="search" name="search" size="20" @click="getTrainingList"/>
|
|
||||||
</template>-->
|
|
||||||
</van-field>
|
</van-field>
|
||||||
</template>
|
</template>
|
||||||
<template slot="left">
|
<template slot="left">
|
||||||
@ -104,32 +101,34 @@ export default {
|
|||||||
this.supplierId = urlParams.get('supplierId');
|
this.supplierId = urlParams.get('supplierId');
|
||||||
this.driverId = urlParams.get('driverId');
|
this.driverId = urlParams.get('driverId');
|
||||||
if(this.driverId){
|
if(this.driverId){
|
||||||
this.keyword=urlParams.get('keyWord') || ''
|
this.keyword=urlParams.get('keyword') || ''
|
||||||
}
|
}
|
||||||
this.getNormalList()
|
this.getNormalList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
this.getNormalList()
|
this.getNormalList()
|
||||||
setTimeout(() => {
|
if(!this.isLoading){
|
||||||
|
this.$toast('刷新成功');
|
||||||
|
}
|
||||||
|
/* setTimeout(() => {
|
||||||
this.$toast('刷新成功');
|
this.$toast('刷新成功');
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
}, 1000);
|
}, 1000);*/
|
||||||
},
|
},
|
||||||
async changeTab(index) {
|
async changeTab(index) {
|
||||||
this.activeIndex = index
|
this.activeIndex = index
|
||||||
await this.getNormalList()
|
await this.getNormalList()
|
||||||
},
|
},
|
||||||
async getNormalList(){
|
async getNormalList(){
|
||||||
let res= await getNormalList({
|
this.isLoading = true;
|
||||||
type:this.supplierId ? 2 : 1,
|
|
||||||
// type:2,
|
|
||||||
id: this.supplierId ? this.supplierId : this.driverId,
|
|
||||||
// id:this.supplierId,//33041,
|
|
||||||
text:this.keyword || '',
|
|
||||||
})
|
|
||||||
this.totalList=[]
|
this.totalList=[]
|
||||||
this.pageList=[]
|
this.pageList=[]
|
||||||
|
let res= await getNormalList({
|
||||||
|
type:this.supplierId ? 2 : 1,
|
||||||
|
id: this.supplierId ? this.supplierId : this.driverId,
|
||||||
|
text:this.keyword || '',
|
||||||
|
})
|
||||||
this.totalList=res.data.list
|
this.totalList=res.data.list
|
||||||
let result=[]
|
let result=[]
|
||||||
if(this.activeIndex === 0){
|
if(this.activeIndex === 0){
|
||||||
@ -149,6 +148,7 @@ export default {
|
|||||||
}else {
|
}else {
|
||||||
this.showEmpty = false
|
this.showEmpty = false
|
||||||
}
|
}
|
||||||
|
this.isLoading = false
|
||||||
},
|
},
|
||||||
initShow(){
|
initShow(){
|
||||||
this.keyword= '',
|
this.keyword= '',
|
||||||
|
|||||||
@ -65,8 +65,8 @@
|
|||||||
<div class="reciceOrderIWrap" v-if="indexData">
|
<div class="reciceOrderIWrap" v-if="indexData">
|
||||||
<circle-char ref="Doughnut1" :data="indexData && indexData.complainOrderRate" :title-text="'投诉率'" :bg-color="Number(indexData?.complainOrderRate || 0) <= 0.1 ? 'green' : 'red'"
|
<circle-char ref="Doughnut1" :data="indexData && indexData.complainOrderRate" :title-text="'投诉率'" :bg-color="Number(indexData?.complainOrderRate || 0) <= 0.1 ? 'green' : 'red'"
|
||||||
:is-store="false" @clickComplain="clickJumpHandle(7)"></circle-char>
|
:is-store="false" @clickComplain="clickJumpHandle(7)"></circle-char>
|
||||||
<circle-char ref="Doughnut2" :data="indexData && indexData.customerSatisfaction" :title-text="'平安好评率'"
|
<circle-char ref="Doughnut2" :data="indexData && indexData.pinganFavorableRate" :title-text="'平安好评率'" :is-store="false"
|
||||||
:bg-color="Number(indexData?.customerSatisfaction || 0) >= 99.4 ? 'green' : 'red'"></circle-char>
|
:bg-color="Number(indexData?.pinganFavorableRate || 0) >= 99.4 ? 'green' : 'red'"></circle-char>
|
||||||
<circle-char ref="Doughnut3" :data="indexData && indexData.urgeRate" :title-text="'催促率'"
|
<circle-char ref="Doughnut3" :data="indexData && indexData.urgeRate" :title-text="'催促率'"
|
||||||
:bg-color="Number(indexData?.urgeRate || 0) >= 3 ? 'red' : 'green'"></circle-char>
|
:bg-color="Number(indexData?.urgeRate || 0) >= 3 ? 'red' : 'green'"></circle-char>
|
||||||
</div>
|
</div>
|
||||||
@ -78,7 +78,7 @@
|
|||||||
:is-store="false"
|
:is-store="false"
|
||||||
@clickUse="clickJumpHandle(8)"></circle-char>
|
@clickUse="clickJumpHandle(8)"></circle-char>
|
||||||
<circle-char ref="Doughnut5" :data="indexData && indexData.threeMinutesContactRate" :title-text="'3′联系客户率'" :bg-color="Number(indexData?.threeMinutesContactRate || 0) >= 90 ? 'green' : 'red'"></circle-char>
|
<circle-char ref="Doughnut5" :data="indexData && indexData.threeMinutesContactRate" :title-text="'3′联系客户率'" :bg-color="Number(indexData?.threeMinutesContactRate || 0) >= 90 ? 'green' : 'red'"></circle-char>
|
||||||
<circle-char ref="Doughnut6" :data="indexData && indexData.polymerizationSuccessRate" :title-text="'总聚合成功率'" :bg-color="Number(indexData?.polymerizationSuccessRate || 0) >= 80 ? 'green' : 'red'"></circle-char>
|
<circle-char ref="Doughnut6" :data="indexData && indexData.wholeJuheSuccessRate" :title-text="'总聚合成功率'" :is-store="false" :bg-color="Number(indexData?.wholeJuheSuccessRate || 0) >= 80 ? 'green' : 'red'"></circle-char>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="{'reciceOrder':true,'webCom':!isMobile}">
|
<div :class="{'reciceOrder':true,'webCom':!isMobile}">
|
||||||
@ -90,8 +90,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="center common">
|
<div class="center common">
|
||||||
<div class="num" :class="{'numRed': Number(indexData?.polymerizationSuccessArriving) > 22, 'numGreen': Number(indexData?.polymerizationSuccessArriving) <= 22 }">{{ indexData && indexData.polymerizationSuccessArriving }}</div>
|
<div class="num" :class="{'numRed': Number(indexData?.pinganJuheSuccessArriving) > 22, 'numGreen': Number(indexData?.pinganJuheSuccessArriving) <= 22 }">{{ indexData && indexData.pinganJuheSuccessArriving }}</div>
|
||||||
<div class="itemTitle">集合成功到达时效(分)</div>
|
<div class="itemTitle">平安聚合成功到达时效(分)</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="right common">
|
<div class="right common">
|
||||||
@ -1007,7 +1007,9 @@ export default {
|
|||||||
'threeMinutesContactRate',
|
'threeMinutesContactRate',
|
||||||
'urgeRate',
|
'urgeRate',
|
||||||
'appRate',
|
'appRate',
|
||||||
'polymerizationSuccessRate'
|
'polymerizationSuccessRate',
|
||||||
|
'pinganFavorableRate',
|
||||||
|
'wholeJuheSuccessRate',
|
||||||
];
|
];
|
||||||
for (let key in this.indexData){
|
for (let key in this.indexData){
|
||||||
if (propertiesToProcess.includes(key)) {
|
if (propertiesToProcess.includes(key)) {
|
||||||
@ -1399,7 +1401,7 @@ export default {
|
|||||||
if (this.value == 1) {
|
if (this.value == 1) {
|
||||||
this.detailList?.map(item => {
|
this.detailList?.map(item => {
|
||||||
this.v1.push(item.receiving)
|
this.v1.push(item.receiving)
|
||||||
this.v2.push(item.threeMinutesReceivingRate.replace('%', ''))
|
this.v2.push(item.threeMinutesContactRate.replace('%', ''))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.detailList?.map(item => {
|
this.detailList?.map(item => {
|
||||||
@ -1413,7 +1415,7 @@ export default {
|
|||||||
columnObj.label = item.month // 每一列的标题的名称
|
columnObj.label = item.month // 每一列的标题的名称
|
||||||
columnObj.prop = props + index //自定义每一列标题字段名称
|
columnObj.prop = props + index //自定义每一列标题字段名称
|
||||||
this.etlLabelList.push(columnObj)
|
this.etlLabelList.push(columnObj)
|
||||||
let mappings = [ 'receiving', 'threeMinutesReceivingRate', 'arriving','fortyMinutesArrivalRate','polymerizationSuccessArriving'];
|
let mappings = [ 'receiving', 'threeMinutesContactRate', 'arriving','fortyMinutesArrivalRate','polymerizationSuccessArriving'];
|
||||||
for (let i = 0; i < mappings.length; i++) {
|
for (let i = 0; i < mappings.length; i++) {
|
||||||
this.$set(this.etlDetailList[i], columnObj.prop, item[mappings[i]]);
|
this.$set(this.etlDetailList[i], columnObj.prop, item[mappings[i]]);
|
||||||
}
|
}
|
||||||
@ -1421,7 +1423,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.detailList?.map(item => {
|
this.detailList?.map(item => {
|
||||||
this.v1.push(item.receiving)
|
this.v1.push(item.receiving)
|
||||||
this.v2.push(item.threeMinutesReceivingRate.replace('%', ''))
|
this.v2.push(item.threeMinutesContactRate.replace('%', ''))
|
||||||
})
|
})
|
||||||
if (this.swithVal) {
|
if (this.swithVal) {
|
||||||
this.detailList?.map(item => {
|
this.detailList?.map(item => {
|
||||||
@ -1440,7 +1442,7 @@ export default {
|
|||||||
this.labelList = [
|
this.labelList = [
|
||||||
{label: '月份', prop: 'month'},
|
{label: '月份', prop: 'month'},
|
||||||
{label: '接单时效', prop: 'receiving'},
|
{label: '接单时效', prop: 'receiving'},
|
||||||
{label: '3分钟联系客户率', prop: 'threeMinutesReceivingRate'},
|
{label: '3分钟联系客户率', prop: 'threeMinutesContactRate'},
|
||||||
{label: '到达时效', prop: 'arriving'},
|
{label: '到达时效', prop: 'arriving'},
|
||||||
{label: '平安聚合成功到达时效', prop: 'pinganJuheSuccessArriving'},
|
{label: '平安聚合成功到达时效', prop: 'pinganJuheSuccessArriving'},
|
||||||
]
|
]
|
||||||
@ -1463,8 +1465,8 @@ export default {
|
|||||||
{label: '日', prop: 'date'},
|
{label: '日', prop: 'date'},
|
||||||
{label: '投诉量', prop: 'complainOrderCount'},
|
{label: '投诉量', prop: 'complainOrderCount'},
|
||||||
{label: '投诉率', prop: 'complainOrderRate'},
|
{label: '投诉率', prop: 'complainOrderRate'},
|
||||||
{label: '好评量', prop: 'favorableCount'},
|
/* {label: '好评量', prop: 'favorableCount'},
|
||||||
{label: '好评率', prop: 'favorableRate'},
|
{label: '好评率', prop: 'favorableRate'},*/
|
||||||
{label: '平安评价率', prop: 'pinganEvaluateRate'},
|
{label: '平安评价率', prop: 'pinganEvaluateRate'},
|
||||||
{label: '平安好评率', prop: 'pinganFavorableRate'},
|
{label: '平安好评率', prop: 'pinganFavorableRate'},
|
||||||
]
|
]
|
||||||
@ -1484,7 +1486,7 @@ export default {
|
|||||||
this.labelList = [
|
this.labelList = [
|
||||||
{label: '日', prop: 'date'},
|
{label: '日', prop: 'date'},
|
||||||
{label: '接单时效(分)', prop: 'receiving'},
|
{label: '接单时效(分)', prop: 'receiving'},
|
||||||
{label: '3分钟联系客户率', prop: 'threeMinutesReceivingRate'},
|
{label: '3分钟联系客户率', prop: 'threeMinutesContactRate'},
|
||||||
{label: '到达时效(分)', prop: 'arriving'},
|
{label: '到达时效(分)', prop: 'arriving'},
|
||||||
{label: '平安聚合成功到达时效(分)', prop: 'pinganJuheSuccessArriving'},
|
{label: '平安聚合成功到达时效(分)', prop: 'pinganJuheSuccessArriving'},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user