@@ -135,6 +150,7 @@
import detailContract from "@/views/contract/components/detailContract"
import LxHeader from '@/components/LxHeader/index.vue'
import Pagination from '@/components/Pagination'
+ import PieChart from "./components/PieChart.vue"
import {
adminDepartmentList
} from '../../api/system/department.js'
@@ -159,12 +175,14 @@
components: {
LxHeader,
Pagination,
- detailContract
+ detailContract,
+ PieChart
},
data() {
return {
value2: 12,
split: 0.5,
+ rptChartData: [],
select: {
year: ''
},
@@ -191,9 +209,10 @@
departmentProgress: [],
departmentTable: [{
label: '科室',
- width: 80,
+ minWidth: 180,
prop: 'plan_department.name',
- sortable: false,
+ sortable: false,
+ align:"left",
fixed: "left"
},
{
@@ -222,7 +241,7 @@
},
{
label: '年初预算合计金额(元)',
- width: 160,
+ width: 260,
align: 'right',
sortable: false,
prop: 'money_total_1',
@@ -232,7 +251,7 @@
},
{
label: '调整后预算合计金额(元)',
- width: 160,
+ width: 260,
align: 'right',
sortable: false,
prop: 'money_total_2',
@@ -284,7 +303,7 @@
},
{
label: '年初预算合计金额(元)',
- width: 160,
+ width: 260,
align: 'right',
sortable: false,
prop: 'money_total_1',
@@ -294,7 +313,7 @@
},
{
label: '调整后预算合计金额(元)',
- width: 160,
+ width: 260,
align: 'right',
sortable: false,
prop: 'money_total_2',
@@ -335,7 +354,23 @@
async getStatistic() {
const res = await statistic(this.select)
console.log(res)
- this.statistic = res
+ this.statistic = res;
+
+ this.rptChartData = {
+ xArr: ["预算合计金额","预算已执行金额"],
+ radiusArr: '50%',
+ yArr: [{ value: res.progress.money_total_1, name: '预算合计金额',
+ label:{
+ show:false//这个数据高亮时不显示label,就不会显示替遮住第一个数据的label值了
+ },
+ emphasis:{
+ label:{
+ show:false//这个数据高亮时不显示label,就不会显示替遮住第一个数据的label值了
+ }
+ } },
+ { value: res.progress.use_money_total, name: '预算已执行金额' }]
+ }
+
},
toContract(row) {