【修改】收入分类统计增加年份查询条件
This commit is contained in:
@@ -147,7 +147,7 @@ export default {
|
|||||||
.income-sort {
|
.income-sort {
|
||||||
//margin-left: 8px;
|
//margin-left: 8px;
|
||||||
width: 49.6%;
|
width: 49.6%;
|
||||||
min-width: 480px;
|
min-width: 600px;
|
||||||
height: auto;
|
height: auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,12 +10,13 @@
|
|||||||
tree-default-expand-all
|
tree-default-expand-all
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
@change="changeDepart"
|
@change="changeDepart"
|
||||||
style="width:30%"
|
style="width:20%"
|
||||||
:dropdownStyle="{ maxHeight: '200px',maxWidth:'100px','overflow-x':'hidden',' overflo-y': 'auto' }"
|
:dropdownStyle="{ maxHeight: '200px',maxWidth:'100px','overflow-x':'hidden',' overflo-y': 'auto' }"
|
||||||
:treeData="treeDepartData"
|
:treeData="treeDepartData"
|
||||||
v-model="queryParam.departCode"
|
v-model="queryParam.departCode"
|
||||||
placeholder="请选择部门">
|
placeholder="请选择部门">
|
||||||
</a-tree-select>
|
</a-tree-select>
|
||||||
|
<j-year-date style="width:20%" class="year" placeholder="请选择年份" v-model="queryParam.year" @change="loadData"></j-year-date>
|
||||||
</div>
|
</div>
|
||||||
<div class="operator">
|
<div class="operator">
|
||||||
<span @click="toggleEcharts('income')" class="operator-left"
|
<span @click="toggleEcharts('income')" class="operator-left"
|
||||||
@@ -81,6 +82,7 @@ echarts.use([
|
|||||||
import {getAction} from '@api/manage'
|
import {getAction} from '@api/manage'
|
||||||
import {formatMoney} from '@/utils/formatMoney'
|
import {formatMoney} from '@/utils/formatMoney'
|
||||||
import {queryDepartTreeList} from '@api/api'
|
import {queryDepartTreeList} from '@api/api'
|
||||||
|
import JYearDate from '@comp/jero/JYearDate'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -94,6 +96,9 @@ const columns = [
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'IncomeSortEcharts',
|
name: 'IncomeSortEcharts',
|
||||||
|
components:{
|
||||||
|
JYearDate
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeIndex: 'income',
|
activeIndex: 'income',
|
||||||
@@ -158,7 +163,7 @@ export default {
|
|||||||
confirmAmount: 2,
|
confirmAmount: 2,
|
||||||
income: 3
|
income: 3
|
||||||
}
|
}
|
||||||
getAction(this.url.list, {type: typeEnum[this.activeIndex],departCode:this.queryParam.departCode}).then(res => {
|
getAction(this.url.list, {type: typeEnum[this.activeIndex],departCode:this.queryParam.departCode,year:this.queryParam.year}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
let dataSource = res.result
|
let dataSource = res.result
|
||||||
this.initColumns(res.result)
|
this.initColumns(res.result)
|
||||||
@@ -327,6 +332,7 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
min-width: 650px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -410,4 +416,8 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
.year {
|
||||||
|
margin-left: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user