|
|
@@ -19,7 +19,7 @@
|
|
|
</div>
|
|
|
<div class="mt-10 inline-16">
|
|
|
<label class="search__label">费用类型:</label>
|
|
|
- <el-select v-model="param.content.where.feestype" placeholder="请选择费用类型" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid)" @focus="feesTypeData">
|
|
|
+ <el-select v-model="feestype" placeholder="请选择费用类型" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid)" @focus="feesTypeData">
|
|
|
<el-option
|
|
|
v-for="item in feestypeList"
|
|
|
:key="item.index"
|
|
|
@@ -140,6 +140,7 @@
|
|
|
pageTotal:0,
|
|
|
marginChart:0,
|
|
|
feestypeList:[],
|
|
|
+ feestype:''
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -178,6 +179,7 @@
|
|
|
return {
|
|
|
"totalamount": this.totalamount,//值
|
|
|
"type": item.type,
|
|
|
+ "text": item.text,
|
|
|
"rowindex": item.rowindex,
|
|
|
"ratio": Math.round(((item.ratio * 100)*100)/100) //比例
|
|
|
}
|
|
|
@@ -193,6 +195,7 @@
|
|
|
this.param.content.dataid = val?val : this.dataid
|
|
|
}
|
|
|
this.param.content.where.isleave = isleave
|
|
|
+ this.param.content.where.feestype = this.feestype
|
|
|
this.param.content.dateType = this.dateType === '全部'?'':this.dateType
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
if (res.data.length === 1){
|
|
|
@@ -267,7 +270,7 @@
|
|
|
appendPadding: 10,
|
|
|
data:this.chartData,
|
|
|
angleField: 'ratio',
|
|
|
- colorField: 'text',
|
|
|
+ colorField: 'type',
|
|
|
radius: 1,
|
|
|
innerRadius: 0.6,
|
|
|
legend:{
|
|
|
@@ -322,10 +325,12 @@
|
|
|
if (v.data.data.type != this.param.content.where.feestype) {
|
|
|
this.param.content.pageNumber = 1
|
|
|
this.param.content.where.feestype = v.data.data.type
|
|
|
+ this.feestype = v.data.data.text
|
|
|
this.queryTable(this.param.content.dataid,null,this.param.content.where.isleave)
|
|
|
} else {
|
|
|
this.param.content.pageNumber = 1
|
|
|
this.param.content.where.feestype = ''
|
|
|
+ this.feestype = ''
|
|
|
this.queryTable(this.param.content.dataid,null,this.param.content.where.isleave)
|
|
|
}
|
|
|
})
|