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