|
|
|
@ -26,14 +26,14 @@
|
|
|
|
|
/>
|
|
|
|
|
<span>本级网评指令比例 </span>
|
|
|
|
|
<span style="margin-left: 20px; color: #71e8fb">
|
|
|
|
|
{{ ((bjNum / (sjNum + bjNum)) * 100) | numFilter }}%
|
|
|
|
|
{{ sjNum }}%
|
|
|
|
|
</span>
|
|
|
|
|
<div class="progress">
|
|
|
|
|
<div
|
|
|
|
|
:style="{
|
|
|
|
|
backgroundColor: '#71e8fb',
|
|
|
|
|
height: 9,
|
|
|
|
|
width: (bjNum / (sjNum + bjNum)) * 100 + '%',
|
|
|
|
|
width: sjNum+'%',
|
|
|
|
|
}"
|
|
|
|
|
></div>
|
|
|
|
|
</div>
|
|
|
|
@ -45,14 +45,14 @@
|
|
|
|
|
/>
|
|
|
|
|
<span>上级网评指令比例</span>
|
|
|
|
|
<span style="margin-left: 20px; color: #79ffd0">
|
|
|
|
|
{{ ((sjNum / (sjNum + bjNum)) * 100) | numFilter }}%
|
|
|
|
|
{{ bjNum}}%
|
|
|
|
|
</span>
|
|
|
|
|
<div class="progress">
|
|
|
|
|
<div
|
|
|
|
|
:style="{
|
|
|
|
|
backgroundColor: '#79ffd0',
|
|
|
|
|
height: 9,
|
|
|
|
|
width: (sjNum / (sjNum + bjNum)) * 100 + '%',
|
|
|
|
|
width: bjNum+'%',
|
|
|
|
|
}"
|
|
|
|
|
></div>
|
|
|
|
|
</div>
|
|
|
|
@ -70,6 +70,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getComplete } from '@/api/common'
|
|
|
|
|
import { networkAppraisercomplete ,networkAppraiser} from '@/api/zongzhi/st.js'
|
|
|
|
|
export default {
|
|
|
|
|
components: {},
|
|
|
|
|
filters: {
|
|
|
|
@ -80,11 +81,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
sjNum: 19.8,
|
|
|
|
|
bjNum: 80.2,
|
|
|
|
|
sjNum: 0,
|
|
|
|
|
bjNum: 0,
|
|
|
|
|
percentageList: null,
|
|
|
|
|
percentageName: null,
|
|
|
|
|
percentageValue: null,
|
|
|
|
|
percentageName: [],
|
|
|
|
|
percentageValue: [],
|
|
|
|
|
sjdata: null,
|
|
|
|
|
bjdata: null
|
|
|
|
|
}
|
|
|
|
@ -98,16 +99,33 @@ export default {
|
|
|
|
|
destroyed() { },
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getpercentageData()
|
|
|
|
|
this.sjdata = Math.round(this.sjNum)
|
|
|
|
|
this.bjdata = Math.round(this.bjNum)
|
|
|
|
|
this.inItCylinder()
|
|
|
|
|
this.getNetworkAppraiser()
|
|
|
|
|
// this.sjdata = Math.round(this.sjNum)
|
|
|
|
|
// this.bjdata = Math.round(this.bjNum)
|
|
|
|
|
// this.inItCylinder()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getNetworkAppraiser(){
|
|
|
|
|
networkAppraiser().then(res=>{
|
|
|
|
|
this.sjNum = res.data[0].pt
|
|
|
|
|
this.bjNum = res.data[1].pt
|
|
|
|
|
this.sjdata = Math.round(this.sjNum)
|
|
|
|
|
this.bjdata = Math.round(this.bjNum)
|
|
|
|
|
this.inItCylinder()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 获取任务完成率data
|
|
|
|
|
getpercentageData() {
|
|
|
|
|
this.percentageName = ['陆渡街道', '港区', '浮桥镇', '编办', '老干部局', '党校', '档案馆']
|
|
|
|
|
this.percentageValue = [80, 90, 60, 90, 90, 70, 50]
|
|
|
|
|
this.inItBar()
|
|
|
|
|
networkAppraisercomplete().then(res=>{
|
|
|
|
|
res.data.forEach(item=>{
|
|
|
|
|
this.percentageName.push(item.name)
|
|
|
|
|
this.percentageValue.push(item.pt)
|
|
|
|
|
this.inItBar()
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
// this.percentageName = ['陆渡街道', '港区', '浮桥镇', '编办', '老干部局', '党校', '档案馆']
|
|
|
|
|
// this.percentageValue = [80, 90, 60, 90, 90, 70, 50]
|
|
|
|
|
// this.inItBar()
|
|
|
|
|
// getComplete().then((res) => {
|
|
|
|
|
// this.percentageName = res['T_DEPT_COMPLETE[]'].map(e => {
|
|
|
|
|
// return e.dept_name
|
|
|
|
@ -137,7 +155,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
xAxis: {
|
|
|
|
|
data: ['陆渡街道', '港区', '浮桥镇', '编办', '老干部局', '党校', '档案馆'],
|
|
|
|
|
data:this.percentageName,
|
|
|
|
|
axisLine: {
|
|
|
|
|
show: true, // 隐藏X轴轴线
|
|
|
|
|
lineStyle: {
|
|
|
|
|