Commit 7cc76a7d authored by youjie's avatar youjie

no message

parent d8207d33
This diff is collapsed.
<style scoped>
</style>
<template>
<el-tooltip class="item" effect="dark" content="预期提成详情" placement="top">
<img src="../../../assets/img/xiaosouYQ.png" @click="goDetails"
style="width: 12px;height: auto; cursor: pointer;color: #33B3FF;"></img>
</el-tooltip>
</template>
<script>
export default {
props:['type','obj'],
data() {
return {
};
},
watch: {
obj:{
handler(val, oldVal){
this.obj = val
},
deep: true,
immediate: true
}
},
mounted() {
},
created() {
},
methods: {
goDetails(){
let userInfo = this.getLocalStorage();
console.log(this.type,'======')
return
let name
this.$router.push({
name: name,
query: {
UserId: Number(userInfo.EmployeeId),
isSale: 1,
blank: 'y'
}
});
}
}
};
</script>
......@@ -69,13 +69,8 @@
<template>
<div>
<div class="progress-box">
<!-- {{commissionratioList.AvgLureNum}}-{{commissionratioList.AvfOrderNum}}-
{{commissionratioList.CommissionRate}}-
{{commissionratioList.Commission}}-
{{commissionratioList.CommissionProfit}} -->
<div v-for="(item,index) in commissionratioList.CommissionRateList" :key="index"
class="relative-position">
<!-- :color="commissionratioList.CommissionRate>=item.Rate?colorlists[Math.floor(Math.random()*10)]:colors[Math.floor(Math.random()*10)]" -->
<el-progress :text-inside="true" :stroke-width="20"
:percentage="setItemProgress(item)"
:status="setItemStatus(item)"
......@@ -171,7 +166,7 @@
if(this.commissionratioList.type==2){
this.formatProgress(row)
return () => {
return row.StartValue2 + ' - ' + row.EndValue2+`${row.StartValue>=10000||row.EndValue>=10000?'w':''}`
return row.StartValue2 + ' - ' + `${row.EndValue2>9999?'9999':row.EndValue2}`+`${row.StartValue>=10000||row.EndValue>=10000?'w':''}`
}
}else if(this.commissionratioList.type==1){
return () => {
......@@ -193,7 +188,7 @@
formatProgress(data){
let obj = JSON.parse(JSON.stringify(data))
if(obj.StartValue>=10000) {
data.StartValue2 = obj.StartValue/10000
data.StartValue2 = Math.floor(obj.StartValue/10000)
}else{
data.StartValue2 = obj.StartValue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment