fixbug
This commit is contained in:
@ -14,9 +14,13 @@
|
|||||||
">
|
">
|
||||||
<el-date-picker v-model="month" value-format="yyyy-MM" v-if="index == 0" type="month" size="mini" placeholder="选择月">
|
<el-date-picker v-model="month" value-format="yyyy-MM" v-if="index == 0" type="month" size="mini" placeholder="选择月">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
<div class="box"><span style="font-size: 25px">·</span><span style="font-size: 18px">总体完成率</span></div>
|
<div class="box"><span style="font-size: 25px">·</span><span style="font-size: 18px">综合完成率</span></div>
|
||||||
<progressBar :percentage="rate.comprehensiveRate" style="margin: 10px 0 20px" />
|
<progressBar :percentage="rate.comprehensiveRate" style="margin: 10px 0 20px" />
|
||||||
<i class="num">{{rate.comprehensiveRate.toFixed(2) || 0}}%</i>
|
<i class="num">{{rate.comprehensiveRate.toFixed(2) || 0}}%</i>
|
||||||
|
<div style="height:10px"></div>
|
||||||
|
<div class="box"><span style="font-size: 25px">·</span><span style="font-size: 18px">绩效完成率</span></div>
|
||||||
|
<progressBar :percentage="rate.performanceRate" style="margin: 10px 0 20px" />
|
||||||
|
<i class="num">{{rate.performanceRate.toFixed(2) || 0}}%</i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; height: 100%" v-else>
|
<div style="display: flex; height: 100%" v-else>
|
||||||
@ -203,7 +207,7 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (200 == res.code) {
|
if (200 == res.code) {
|
||||||
let { rate, list } = res.data;
|
let { rate, list } = res.data;
|
||||||
if(rate) {
|
if (rate) {
|
||||||
this.rate = rate;
|
this.rate = rate;
|
||||||
}
|
}
|
||||||
this.chart = echarts.init(this.$refs.chart)
|
this.chart = echarts.init(this.$refs.chart)
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<container3>
|
<container3>
|
||||||
<img class="img" src="./center.png" style="width: 100%; height: 100%" />
|
<img v-if="pic.length" class="img" :src="pic" style="width: 100%; height: 100%">
|
||||||
|
<img v-else class="img" src="./center.png" style="width: 100%; height: 100%" />
|
||||||
<section v-for="(v,index) in points" :key="index">
|
<section v-for="(v,index) in points" :key="index">
|
||||||
<div v-if="v.level == '一级'" class="con_right" :style="{top: v.ordinate +' %',left: v.abscissa + '%'}">
|
<div v-if="v.level == '一级'" class="con_right" :style="{top: v.ordinate +' %',left: v.abscissa + '%'}">
|
||||||
<div class="con_title con_title_bg1">
|
<div class="con_title con_title_bg1">
|
||||||
@ -89,6 +90,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
pic: '',
|
||||||
pointLevelCount: [
|
pointLevelCount: [
|
||||||
{
|
{
|
||||||
"name": "二级",
|
"name": "二级",
|
||||||
@ -151,6 +153,15 @@ export default {
|
|||||||
this.points = res.data.points;
|
this.points = res.data.points;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.request({
|
||||||
|
url: '/hx/bigPic/getByType',
|
||||||
|
method: 'get',
|
||||||
|
params: { type: 1}
|
||||||
|
}).then(res => {
|
||||||
|
if (200 == res.code) {
|
||||||
|
this.pic = res.data.pic;
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user