【update】-首页前3个统计图增加年份的查询
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
<!--科室总体统计-->
|
<!--科室总体统计-->
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="title">科室总体统计</div>
|
<div class="title">
|
||||||
|
科室总体统计
|
||||||
|
<j-year-date style="width:250px" class="year" placeholder="请选择年份" v-model="queryParam.year" @change="loadData"></j-year-date>
|
||||||
|
</div>
|
||||||
<div class="echarts-box" id="departmentTotal"></div>
|
<div class="echarts-box" id="departmentTotal"></div>
|
||||||
|
|
||||||
<!-- 表格区域beign -->
|
<!-- 表格区域beign -->
|
||||||
@@ -65,6 +68,7 @@ echarts.use([
|
|||||||
import {JeroListMixin} from '@/mixins/JeroListMixin'
|
import {JeroListMixin} from '@/mixins/JeroListMixin'
|
||||||
import {getAction} from '@api/manage'
|
import {getAction} from '@api/manage'
|
||||||
import {formatMoney} from '@/utils/formatMoney'
|
import {formatMoney} from '@/utils/formatMoney'
|
||||||
|
import JYearDate from '@comp/jero/JYearDate'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -78,6 +82,9 @@ const columns = [
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DepartmentTotalEcharts',
|
name: 'DepartmentTotalEcharts',
|
||||||
|
components:{
|
||||||
|
JYearDate
|
||||||
|
},
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -85,6 +92,7 @@ export default {
|
|||||||
url: {
|
url: {
|
||||||
list: '/index/overallDepartmentStatistics',
|
list: '/index/overallDepartmentStatistics',
|
||||||
},
|
},
|
||||||
|
queryParam:{},
|
||||||
echartsData: {
|
echartsData: {
|
||||||
allMoney: [],
|
allMoney: [],
|
||||||
confirmAmount: [],
|
confirmAmount: [],
|
||||||
@@ -107,6 +115,7 @@ export default {
|
|||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
let params = this.getQueryParams()//查询条件
|
let params = this.getQueryParams()//查询条件
|
||||||
|
params = Object.assign({}, params, {year: this.queryParam.year})
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- echarts-->
|
<!-- echarts-->
|
||||||
<div class="title">全院经营数据统计(单月)</div>
|
<div class="title">全院经营数据统计(单月)
|
||||||
|
<j-year-date style="width:250px" class="year" placeholder="请选择年份" v-model="queryParam.year" @change="loadData"></j-year-date>
|
||||||
|
</div>
|
||||||
<div class="echarts-box" id="singleMonthEcharts"></div>
|
<div class="echarts-box" id="singleMonthEcharts"></div>
|
||||||
<!-- echarts-->
|
<!-- echarts-->
|
||||||
|
|
||||||
@@ -69,6 +71,7 @@ import {JeroListMixin} from '@/mixins/JeroListMixin'
|
|||||||
import {MonthData} from '@views/statisticalReport/statisticData'
|
import {MonthData} from '@views/statisticalReport/statisticData'
|
||||||
import {getAction} from '@api/manage'
|
import {getAction} from '@api/manage'
|
||||||
import {formatMoney} from '@/utils/formatMoney'
|
import {formatMoney} from '@/utils/formatMoney'
|
||||||
|
import JYearDate from '@comp/jero/JYearDate'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -100,6 +103,9 @@ columns.push({
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SingleMonthEcharts',
|
name: 'SingleMonthEcharts',
|
||||||
|
components:{
|
||||||
|
JYearDate
|
||||||
|
},
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -107,6 +113,7 @@ export default {
|
|||||||
url: {
|
url: {
|
||||||
list: '/index/lineChartList'
|
list: '/index/lineChartList'
|
||||||
},
|
},
|
||||||
|
queryParam:{},
|
||||||
disableMixinCreated:true,
|
disableMixinCreated:true,
|
||||||
echartsData:{
|
echartsData:{
|
||||||
// allMoney:[],
|
// allMoney:[],
|
||||||
@@ -132,6 +139,7 @@ export default {
|
|||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
let params = this.getQueryParams()//查询条件
|
let params = this.getQueryParams()//查询条件
|
||||||
|
params = Object.assign({}, params, {year: this.queryParam.year})
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- echarts-->
|
<!-- echarts-->
|
||||||
<div class="title">全院经营数据统计 (累计)</div>
|
<div class="title">全院经营数据统计 (累计)
|
||||||
|
<j-year-date style="width:250px" class="year" placeholder="请选择年份" v-model="queryParam.year" @change="loadData"></j-year-date>
|
||||||
|
</div>
|
||||||
<div class="echarts-box" id="singleMonthTotalEcharts"></div>
|
<div class="echarts-box" id="singleMonthTotalEcharts"></div>
|
||||||
<!-- echarts-->
|
<!-- echarts-->
|
||||||
|
|
||||||
@@ -69,6 +71,7 @@ import {JeroListMixin} from '@/mixins/JeroListMixin'
|
|||||||
import {MonthDataTotal} from '@views/statisticalReport/statisticData'
|
import {MonthDataTotal} from '@views/statisticalReport/statisticData'
|
||||||
import {getAction} from '@api/manage'
|
import {getAction} from '@api/manage'
|
||||||
import {formatMoney} from '@/utils/formatMoney'
|
import {formatMoney} from '@/utils/formatMoney'
|
||||||
|
import JYearDate from '@comp/jero/JYearDate'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -92,6 +95,9 @@ MonthDataTotal.map(tt => {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SingleMonthEcharts',
|
name: 'SingleMonthEcharts',
|
||||||
|
components:{
|
||||||
|
JYearDate
|
||||||
|
},
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -124,6 +130,7 @@ export default {
|
|||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
let params = this.getQueryParams()//查询条件
|
let params = this.getQueryParams()//查询条件
|
||||||
|
params = Object.assign({}, params, {year: this.queryParam.year})
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user