|
@@ -10,7 +10,7 @@
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-button icon="Search" type="success" @click="fetchSetlinfos">查询</el-button>
|
|
<el-button icon="Search" type="success" @click="fetchSetlinfos">查询</el-button>
|
|
<el-button icon="Download" type="primary" @click="exportSetlinfoExcel">导出Excel</el-button>
|
|
<el-button icon="Download" type="primary" @click="exportSetlinfoExcel">导出Excel</el-button>
|
|
- <el-button type="primary" @click="selectChart">图形</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="selectChart">分析图</el-button>
|
|
</el-header>
|
|
</el-header>
|
|
<el-main>
|
|
<el-main>
|
|
<el-tabs type="border-card" v-model="setlCondition.selectType" @tab-click="handleClick">
|
|
<el-tabs type="border-card" v-model="setlCondition.selectType" @tab-click="handleClick">
|
|
@@ -126,8 +126,26 @@
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</el-main>
|
|
</el-main>
|
|
- <el-drawer :title="titleChart" v-model="qxtDrawer" size="70%">
|
|
|
|
- <div style="width: 100%; height: 90%" id="ybChart"></div>
|
|
|
|
|
|
+ <el-drawer :title="titleChart" v-model="qxtDrawer" size="80%">
|
|
|
|
+ <!-- <div style="width: 100%; height: 90%" id="ybChart"></div> -->
|
|
|
|
+ <el-main>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <div style="width: 100%; height: 400px" id="zfyDst"></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <div style="width: 100%; height: 400px" id="zjjDst"></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <div style="width: 100%; height: 400px" id="ypfDst"></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <div style="width: 100%; height: 400px" id="clfDst"></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-main>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
</el-container>
|
|
</el-container>
|
|
</template>
|
|
</template>
|
|
@@ -144,7 +162,7 @@ import { clone } from '@/utils/clone'
|
|
import { Export } from '@/utils/ExportExcel'
|
|
import { Export } from '@/utils/ExportExcel'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { downloadExcel } from '@/utils/excel'
|
|
import { downloadExcel } from '@/utils/excel'
|
|
-import { barUtilsOne } from '@/utils/echarts-utils'
|
|
|
|
|
|
+import { barUtilsOne, barUtilsTwo } from '@/utils/echarts-utils'
|
|
import Setlinfo from '../../../components/medical-insurance/setlinfo/Index.vue'
|
|
import Setlinfo from '../../../components/medical-insurance/setlinfo/Index.vue'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -380,11 +398,11 @@ export default {
|
|
} else {
|
|
} else {
|
|
nameText = '门诊'
|
|
nameText = '门诊'
|
|
}
|
|
}
|
|
- nameText = titleChart.value + '(' + nameText + ')'
|
|
|
|
- let yAxisName = '单位:元'
|
|
|
|
|
|
+ nameText = titleChart.value + '(' + nameText + ')-'
|
|
|
|
+ let yAxisName = '单位:百万元'
|
|
|
|
+ let tipUnit = '元'
|
|
|
|
|
|
let echartsXdata = []
|
|
let echartsXdata = []
|
|
- let echartsYdatas = []
|
|
|
|
let zfy = []
|
|
let zfy = []
|
|
let zjj = []
|
|
let zjj = []
|
|
let ypf = []
|
|
let ypf = []
|
|
@@ -392,15 +410,18 @@ export default {
|
|
chartData.value.forEach((item) => {
|
|
chartData.value.forEach((item) => {
|
|
zfy.push(item.zfy_jn)
|
|
zfy.push(item.zfy_jn)
|
|
zjj.push(item.zjj_jn)
|
|
zjj.push(item.zjj_jn)
|
|
- ypf.push(item.ypf_jn)
|
|
|
|
- clf.push(item.clf_jn)
|
|
|
|
|
|
+ if (item.ypf_jn > 0.00) {
|
|
|
|
+ ypf.push(item.ypf_jn)
|
|
|
|
+ }
|
|
|
|
+ if (item.clf_jn > 0.00) {
|
|
|
|
+ clf.push(item.clf_jn)
|
|
|
|
+ }
|
|
echartsXdata.push(item.month)
|
|
echartsXdata.push(item.month)
|
|
})
|
|
})
|
|
- echartsYdatas.push(zfy)
|
|
|
|
- echartsYdatas.push(zjj)
|
|
|
|
- echartsYdatas.push(ypf)
|
|
|
|
- echartsYdatas.push(clf)
|
|
|
|
- barUtilsOne(ybChart, nameText, echartsXdata, echartsYdatas, barTitles, yAxisName)
|
|
|
|
|
|
+ barUtilsTwo(zfyDst, nameText + barTitles[0], echartsXdata, zfy, barTitles[0], yAxisName, tipUnit)
|
|
|
|
+ barUtilsTwo(zjjDst, nameText + barTitles[1], echartsXdata, zjj, barTitles[1], yAxisName, tipUnit)
|
|
|
|
+ barUtilsTwo(ypfDst, nameText + barTitles[2], echartsXdata, ypf, barTitles[2], yAxisName, tipUnit)
|
|
|
|
+ barUtilsTwo(clfDst, nameText + barTitles[3], echartsXdata, clf, barTitles[3], yAxisName, tipUnit)
|
|
})
|
|
})
|
|
|
|
|
|
const handleClick = (tab, event) => {
|
|
const handleClick = (tab, event) => {
|