Commit b7d15402 authored by danfuman's avatar danfuman

修改

parent 97c9208c
...@@ -53,14 +53,15 @@ ...@@ -53,14 +53,15 @@
:slots="true" :slots="true"
:isExcel="false" :isExcel="false"
></head-form> ></head-form>
<el-row> <skeleton v-if="isSkeleton2" style="padding: 16px"></skeleton>
<el-row v-if="!isSkeleton2">
<el-col :span="12"> <el-col :span="12">
<div id="ndzb-echarts" style="height: 300px;"></div> <div id="ndzb-echarts" style="height: 280px;"></div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<div class="box-right"> <div class="box-right">
<div class="table-item"> <div class="table-item">
<el-table class="fixed-table" :data="ndzbList" border max-height="270"> <el-table class="fixed-table" :data="ndzbList" border max-height="260">
<el-table-column label="年度" prop="type" min-width="70"></el-table-column> <el-table-column label="年度" prop="type" min-width="70"></el-table-column>
<el-table-column label="历史发包数量" prop="count" width="120"> <el-table-column label="历史发包数量" prop="count" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -96,12 +97,14 @@ ...@@ -96,12 +97,14 @@
<el-select <el-select
v-model="year1" v-model="year1"
clearable clearable
@change="changeSelect1"
class="form-content-width" class="form-content-width"
style="width: 80px"> style="width: 80px">
<el-option v-for="(item, index) in yearOptions" :key="index" :label="item.name" :value="item.value"/> <el-option v-for="(item, index) in yearOptions" :key="index" :label="item.name" :value="item.value"/>
</el-select> </el-select>
</div> </div>
<el-row> <skeleton v-if="isSkeleton3" style="padding: 16px"></skeleton>
<el-row v-if="!isSkeleton3">
<el-col :span="12"> <el-col :span="12">
<div id="fbje-echarts" style="height: 280px;"></div> <div id="fbje-echarts" style="height: 280px;"></div>
</el-col> </el-col>
...@@ -133,12 +136,14 @@ ...@@ -133,12 +136,14 @@
<el-select <el-select
v-model="year2" v-model="year2"
clearable clearable
@change="changeSelect2"
class="form-content-width" class="form-content-width"
style="width: 80px"> style="width: 80px">
<el-option v-for="(item, index) in yearOptions" :key="index" :label="item.name" :value="item.value"/> <el-option v-for="(item, index) in yearOptions" :key="index" :label="item.name" :value="item.value"/>
</el-select> </el-select>
</div> </div>
<el-row> <skeleton v-if="isSkeleton4" style="padding: 16px"></skeleton>
<el-row v-if="!isSkeleton4">
<el-col :span="12"> <el-col :span="12">
<div id="lxtj-echarts" style="height: 280px;"></div> <div id="lxtj-echarts" style="height: 280px;"></div>
</el-col> </el-col>
...@@ -181,12 +186,14 @@ ...@@ -181,12 +186,14 @@
<el-select <el-select
v-model="year3" v-model="year3"
clearable clearable
@change="changeSelect3"
class="form-content-width" class="form-content-width"
style="width: 80px"> style="width: 80px">
<el-option v-for="(item, index) in yearOptions" :key="index" :label="item.name" :value="item.value"/> <el-option v-for="(item, index) in yearOptions" :key="index" :label="item.name" :value="item.value"/>
</el-select> </el-select>
</div> </div>
<el-row> <skeleton v-if="isSkeleton5" style="padding: 16px"></skeleton>
<el-row v-if="!isSkeleton5">
<el-col :span="12"> <el-col :span="12">
<div id="xfl-echarts" style="height: 280px;"></div> <div id="xfl-echarts" style="height: 280px;"></div>
</el-col> </el-col>
...@@ -270,14 +277,16 @@ ...@@ -270,14 +277,16 @@
return{ return{
queryParams: { queryParams: {
combineId: this.customerId, combineId: this.customerId,
year:'2023'
}, },
queryParams1: { queryParams1: {
combineId: this.customerId, combineId: this.customerId,
year:'2023'
}, },
formData: [ formData: [
{ type: 4, fieldName: 'type', value: '', placeholder: '项目类型', options: [],width:150}, { type: 4, fieldName: 'type', value: '', placeholder: '项目类型', options: [],width:150},
{ type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110}, { type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110},
{ type: 1, fieldName: 'year', value: '', placeholder: '年份', options: [],width:80}, { type: 1, fieldName: 'year', value: '2023', placeholder: '年份', options: [],width:80},
], ],
cgblList: [ cgblList: [
{name:'100%',value:'100%'}, {name:'100%',value:'100%'},
...@@ -343,6 +352,7 @@ ...@@ -343,6 +352,7 @@
this.formData[2].options=Years this.formData[2].options=Years
}, },
handleQuery(params){ handleQuery(params){
// this.isSkeleton = true
let data = params || this.queryParams; let data = params || this.queryParams;
if(data.cgbl){ if(data.cgbl){
if(data.cgbl === '100%'){ if(data.cgbl === '100%'){
...@@ -378,7 +388,7 @@ ...@@ -378,7 +388,7 @@
}, },
getBidByYear(){ getBidByYear(){
bidByYear({combineId:this.customerId}).then(res=>{ bidByYear({combineId:this.customerId}).then(res=>{
// this.isSkeleton = false this.isSkeleton2 = false
if(res.code === 200){ if(res.code === 200){
this.ndzbList=res.data; this.ndzbList=res.data;
if(res.data.length > 0){ if(res.data.length > 0){
...@@ -390,7 +400,7 @@ ...@@ -390,7 +400,7 @@
getGroupByMoney(){ getGroupByMoney(){
let year=[this.year1.toString()] let year=[this.year1.toString()]
groupByMoney({combineId:this.customerId,year:year}).then(res=>{ groupByMoney({combineId:this.customerId,year:year}).then(res=>{
// this.isSkeleton = false this.isSkeleton3 = false
if(res.code === 200){ if(res.code === 200){
this.jeqjList=res.data; this.jeqjList=res.data;
...@@ -410,7 +420,7 @@ ...@@ -410,7 +420,7 @@
getGroupByType(){ getGroupByType(){
let year=[this.year2.toString()] let year=[this.year2.toString()]
groupByType({combineId:this.customerId,year:year}).then(res=>{ groupByType({combineId:this.customerId,year:year}).then(res=>{
// this.isSkeleton = false this.isSkeleton4 = false
if(res.code === 200){ if(res.code === 200){
this.lxtjList=res.data; this.lxtjList=res.data;
if(res.data.length > 0){ if(res.data.length > 0){
...@@ -422,7 +432,7 @@ ...@@ -422,7 +432,7 @@
getGroupByLowerRate(){ getGroupByLowerRate(){
let year=[this.year3.toString()] let year=[this.year3.toString()]
groupByLowerRate({combineId:this.customerId,year:year}).then(res=>{ groupByLowerRate({combineId:this.customerId,year:year}).then(res=>{
// this.isSkeleton = false this.isSkeleton5 = false
if(res.code === 200){ if(res.code === 200){
this.xflList=res.data; this.xflList=res.data;
if(res.data.length > 0){ if(res.data.length > 0){
...@@ -469,8 +479,14 @@ ...@@ -469,8 +479,14 @@
let params = this.formParams() let params = this.formParams()
this.getPeojectTop(params) this.getPeojectTop(params)
}, },
changeSelect(){ changeSelect1(){
this.getGroupByMoney()
},
changeSelect2(){
this.getGroupByType()
},
changeSelect3(){
this.getGroupByLowerRate()
}, },
initChart(data) { initChart(data) {
this.$nextTick(()=>{ this.$nextTick(()=>{
......
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