| | |
| | | <div class="home" style="margin-top: 40px; margin-left: 20px"> |
| | | <!-- 头部两个 --> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="10"> |
| | | <el-col :span="11"> |
| | | <!-- 就诊统计盒子 --> |
| | | <div class="grid-content bg-purple headerBox bgc1"> |
| | | <div class="title"> |
| | | 就诊统计 |
| | | 门诊服务<span |
| | | style=" |
| | | font-size: 25px; |
| | | font-weight: 600; |
| | | text-shadow: 2px 4px 7px rgb(85 132 255 / 50%); |
| | | color: black; |
| | | " |
| | | ></span> |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | </div> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <el-col :span="10"> |
| | | <div class="home-user-task-stats"> |
| | | <p>{{ 12322 }}</p> |
| | | </div> |
| | | <div class="text-color2"> |
| | | <p>就诊总数(个)</p> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <div class="home-user-task-stats"> |
| | | <p>{{ 1231 }}</p> |
| | | <p>{{ 11231 }}</p> |
| | | <div class="text-color2"> |
| | | <p>在院总数(人)</p> |
| | | <p>门诊就诊量(人次)</p> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-col :span="10"> |
| | | <div class="home-user-task-stats"> |
| | | <p>{{ ticketStatistics.progressTotal || "0" }}</p> |
| | | <p>{{ 9207 }}</p> |
| | | <div class="text-color2"> |
| | | <p>离院总数(人)</p> |
| | | <p>门诊服务量(人次)</p> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <!-- <el-col :span="7"> |
| | | <div class="home-user-task-stats"> |
| | | <p>{{ 12 }}</p> |
| | | <p>{{ 1209 }}</p> |
| | | <div class="text-color2"> |
| | | <p>投诉总数</p> |
| | | <p>体检总数(人)</p> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-col :span="9"> |
| | | <div class="grid-content bg-purple headerBox bgc2"> |
| | | <div class="title"> |
| | | 医务人员数量 |
| | | 出院服务 |
| | | <span |
| | | style=" |
| | | font-size: 25px; |
| | | text-shadow: 2px 4px 7px rgb(255 99 85 / 50%); |
| | | font-weight: 600; |
| | | color: red; |
| | | " |
| | | ></span> |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | </div> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-col :span="10"> |
| | | <div class="home-user-task-stats"> |
| | | <p style="color: red">{{ 3453 }}</p> |
| | | </div> |
| | | <div class="text-color2"> |
| | | <p>医师</p> |
| | | <p>出院就诊量(人次)</p> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="10"> |
| | | <div class="home-user-task-stats"> |
| | | <p style="color: red">{{ 4213 }}</p> |
| | | <div class="text-color2"> |
| | | <p>护士</p> |
| | | <p>出院服务量(人次)</p> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | |
| | | </el-row> |
| | | <!-- 中间和右边 --> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="17"> |
| | | <el-col :span="20"> |
| | | <!-- echars数据可视化 --> |
| | | <div class="grid-content bg-purple" style="min-height: 365px"> |
| | | <div class="title"> |
| | | 就诊统计 |
| | | 服务统计 |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | <el-radio-group |
| | | v-model="radio1" |
| | |
| | | <!-- 中间echars --> |
| | | <div class="boxEchars"> |
| | | <div class="echars1" id="echars"></div> |
| | | <div class="echars2" id="echars2"></div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <!-- 中间和右边 --> |
| | | <el-col :span="6" class="aside"> |
| | | <div |
| | | class="grid-content bg-purple" |
| | | style="height: 560px; margin-top: -180px" |
| | | > |
| | | <el-col :span="4" class="aside"> |
| | | <div class="grid-content bg-purple" style="margin-top: -180px"> |
| | | <div class="title"> |
| | | 接诊排行 |
| | | 科室服务量 |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | </div> |
| | | <el-table style="width: 100%" :data="SkuTop"> |
| | | <template v-for="(item, index) in SkuTop"></template> |
| | | <el-table-column |
| | | prop="order" |
| | | width="30" |
| | | style="background: url(~@/assets/order/4.png)" |
| | | type="index" |
| | | |
| | | ></el-table-column> |
| | | <el-table-column |
| | | prop="skuName" |
| | | width="124" |
| | | class-name="name" |
| | | |
| | | ></el-table-column> |
| | | <el-table-column |
| | | prop="count" |
| | | class-name="count" |
| | | |
| | | ></el-table-column> |
| | | </el-table> |
| | | <div style="max-height: 690px; width: 100%; overflow: auto"> |
| | | <el-table style="width: 100%" :data="SkuTop"> |
| | | <template v-for="(item, index) in SkuTop"></template> |
| | | <el-table-column |
| | | prop="order" |
| | | width="30" |
| | | style="background: url(~@/assets/order/4.png)" |
| | | type="index" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | prop="skuName" |
| | | width="88" |
| | | class-name="name" |
| | | ></el-table-column> |
| | | |
| | | <el-table-column prop="count" class-name="count"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.count }}次 |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- 底部一个 --> |
| | | <el-row :gutter="20" style="margin-bottom: 20px"> |
| | | <el-col :span="13"> |
| | | <el-col :span="24"> |
| | | <div class="grid-content bg-purple" style="min-height: 300px"> |
| | | <div class="title"> |
| | | 合作商点位数Top5 |
| | | 宣教统计 |
| | | <span class="el-icon-s-unfold moreIcon"></span> |
| | | </div> |
| | | <div class="cooperate"> |
| | | <!-- 合作区域 --> |
| | | <div class="pieChart" id="pieCharts"></div> |
| | | <div class="Points"> |
| | | <p>{{ 122 }}</p> |
| | | <span>点位数</span> |
| | | <p>{{ 18 }}</p> |
| | | <span>合作商</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <!-- <el-col :span="9"> |
| | | <div class="grid-content bg-purple" style="min-height: 300px"> |
| | | <div class="title"> |
| | | 异常设备监控 |
| | | 各项服务统计 |
| | | <span class="el-icon-s-unfold moreIcon2"></span> |
| | | </div> |
| | | <div class="empenty"></div> |
| | | <div class="empenty"> |
| | | <el-row> |
| | | <el-col :span="3" |
| | | ><div class="grid-contents bg-purples">出院:</div></el-col |
| | | > |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">出院随访</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">出院宣教</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">复诊通知</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="3" |
| | | ><div class="grid-contents bg-purples"></div |
| | | ></el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">出院评估</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">满意度调查</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">其他通知</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="3" |
| | | ><div class="grid-contents bg-purples">门诊:</div></el-col |
| | | > |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">影像随访</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">门诊宣教</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">复诊通知</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="3" |
| | | ><div class="grid-contents bg-purples"></div |
| | | ></el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">满意度调查</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">其他通知</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="3" |
| | | ><div class="grid-contents bg-purples">在院:</div></el-col |
| | | > |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">在院宣教</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">在院评估</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | |
| | | <el-col :span="7"> |
| | | <div style="display: flex"> |
| | | <div class="subtitle">其他通知</div> |
| | | <div class="grid-contents bg-purple-light">0次</div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // import { |
| | | // getUserWork, |
| | | // getregionCollect, |
| | | // getregionOrderCount, |
| | | // getregionAmountCollect, |
| | | // getNodeCount, |
| | | // getPrtnerCount, |
| | | // getnodeCollect, |
| | | // getSkuTop, |
| | | // getOrderAmount, |
| | | // } from "@/api/home"; |
| | | import { |
| | | getEChartsPatMedOuthospCount, |
| | | getechartsListCountdata, |
| | | getechartsMedOuthospList, |
| | | getechartsMedInhospList, |
| | | getechartsandData, |
| | | getDeptRanking, |
| | | } from "@/api/AiCentre/index"; |
| | | import dayjs from "dayjs"; |
| | | |
| | | export default { |
| | |
| | | NodeCount: "", |
| | | PrtnerCount: "", |
| | | NodeCount: "", |
| | | myChart2: null, |
| | | mypPieCharts: null, |
| | | lastWidth: window.innerWidth, |
| | | lastHeight: window.innerHeight, |
| | | radio1: "周", |
| | | ticketStatistics: {}, |
| | | order: "", |
| | |
| | | cylinderSeries: [], |
| | | cylinderXAxis: [], |
| | | dyat: 30, |
| | | intervalId: null, |
| | | }; |
| | | }, |
| | | |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | // this.getTopdata(); |
| | | // this.getgraphdata(); |
| | | // this.getranking(); |
| | | this.$nextTick(function () { |
| | | this.getregionAmountCollect(); |
| | | this.getUserWorks(); |
| | | this.getregionCollect(); |
| | | this.getregionOrderCount(); |
| | | this.getNodeCount(); |
| | | this.getPrtnerCount(); |
| | | this.getnodeCollect(); |
| | | this.getSkuTop(); |
| | | this.getOrderAmount(); |
| | | }) |
| | | }); |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | this.setInterval(); |
| | | // window.addEventListener("resize", this.handleResize()); |
| | | }, |
| | | beforeDestroy() { |
| | | if (this.intervalId) { |
| | | clearInterval(this.intervalId); // 清除定时器 |
| | | } |
| | | }, |
| | | methods: { |
| | | // 改变时间事件 |
| | | changes() { |
| | |
| | | } else { |
| | | this.dyat = 360; |
| | | } |
| | | this.getgraphdata(); |
| | | this.getranking(); |
| | | this.getTopdata(); |
| | | this.getregionAmountCollect(); |
| | | this.getUserWorks(); |
| | | this.getregionCollect(); |
| | | this.getregionOrderCount(); |
| | | this.getNodeCount(); |
| | | this.getPrtnerCount(); |
| | | this.getnodeCollect(); |
| | | this.getSkuTop(); |
| | | this.getOrderAmount(); |
| | | }, |
| | | // 柱状图 |
| | | async getOrderAmount() { |
| | | // const res = await getOrderAmount(this.endatd, this.statd); |
| | | // this.cylinderXAxis = res.data.xAxis; |
| | | // this.cylinderSeries = res.data.series; |
| | | this.cylinderXAxis = [ |
| | | "1月", |
| | | "2月", |
| | | "3月", |
| | | "4月", |
| | | "5月", |
| | | "6月", |
| | | "7月", |
| | | "8月", |
| | | ]; |
| | | this.cylinderSeries = [123, 123, 223, 212, 432, 123, 442, 234]; |
| | | this.myEcharts(); |
| | | }, |
| | | // 获取点位总数 |
| | | async getNodeCount() { |
| | | // const res = await getNodeCount(); |
| | | // this.NodeCount = res.data; |
| | | }, |
| | | // 获取合作商总数 |
| | | async getPrtnerCount() { |
| | | // const res = await getPrtnerCount(); |
| | | // this.PrtnerCount = res.data; |
| | | }, |
| | | |
| | | // 合作商点位汇总统计饼状图 |
| | | async getnodeCollect() { |
| | | // const res = await getnodeCollect(); |
| | | // this.nodeCollect = res.data; |
| | | this.nodeCollect = [ |
| | | { name: "浙大一院", value: 12 }, |
| | | { name: "浙大二院", value: 8 }, |
| | | { name: "金兰医院", value: 8 }, |
| | | { name: "邵逸夫医院", value: 6 }, |
| | | { name: "省人民医院", value: 5 }, |
| | | { name: "朝晖院区", value: 4 }, |
| | | { name: "影像随访", value: 1232 }, |
| | | { name: "出院随访", value: 342 }, |
| | | ]; |
| | | this.myPieChart(); |
| | | }, |
| | |
| | | // const res = await getSkuTop(10, this.endatd, this.statd); |
| | | // this.SkuTop = res.data; |
| | | this.SkuTop = [ |
| | | { amount: 0, count: 123, skuId: "0", skuName: "王大夫" }, |
| | | { amount: 0, count: 122, skuId: "0", skuName: "吴大夫" }, |
| | | { amount: 0, count: 112, skuId: "0", skuName: "李主任" }, |
| | | { amount: 0, count: 111, skuId: "0", skuName: "张护士" }, |
| | | { amount: 0, count: 102, skuId: "0", skuName: "李护士" }, |
| | | { amount: 0, count: 98, skuId: "0", skuName: "刘护士" }, |
| | | { amount: 0, count: 89, skuId: "0", skuName: "马大夫" }, |
| | | { amount: 0, count: 88, skuId: "0", skuName: "马大夫" }, |
| | | { amount: 0, count: 87, skuId: "0", skuName: "马大夫" }, |
| | | { amount: 0, count: 67, skuId: "0", skuName: "马大夫" }, |
| | | { amount: 0, count: 123, skuId: "0", skuName: "心肺科" }, |
| | | { amount: 0, count: 122, skuId: "0", skuName: "肾脏科" }, |
| | | { amount: 0, count: 112, skuId: "0", skuName: "泌尿科" }, |
| | | { amount: 0, count: 111, skuId: "0", skuName: "男科" }, |
| | | { amount: 0, count: 102, skuId: "0", skuName: "妇产科" }, |
| | | { amount: 0, count: 98, skuId: "0", skuName: "外科" }, |
| | | { amount: 0, count: 89, skuId: "0", skuName: "急诊" }, |
| | | { amount: 0, count: 88, skuId: "0", skuName: "器械科" }, |
| | | { amount: 0, count: 87, skuId: "0", skuName: "骨科" }, |
| | | { amount: 0, count: 67, skuId: "0", skuName: "放射科" }, |
| | | { amount: 0, count: 89, skuId: "0", skuName: "急诊" }, |
| | | { amount: 0, count: 88, skuId: "0", skuName: "器械科" }, |
| | | { amount: 0, count: 87, skuId: "0", skuName: "骨科" }, |
| | | { amount: 0, count: 67, skuId: "0", skuName: "放射科1" }, |
| | | { amount: 0, count: 67, skuId: "0", skuName: "放射科2" }, |
| | | ]; |
| | | }, |
| | | // 获取工单数量 |
| | | async getUserWorks() { |
| | | // const res = await getUserWork(this.atd, this.td); |
| | | // this.ticketStatistics = res.data[0]; |
| | | // 获取头部数据 |
| | | getTopdata() { |
| | | let hospCountdata = { |
| | | startDate: this.endatd, |
| | | endDate: this.statd, |
| | | cy: 1, |
| | | }; |
| | | let Countdata = { |
| | | startDate: this.endatd, |
| | | endDate: this.statd, |
| | | cy: 1, |
| | | }; |
| | | getEChartsPatMedOuthospCount(hospCountdata).then((res) => {}); |
| | | getechartsListCountdata(Countdata).then((res) => {}); |
| | | }, |
| | | // 获取就诊数量 |
| | | async getregionOrderCount() { |
| | | // const res = await getregionOrderCount({ |
| | | // start: this.atd, |
| | | // end: this.td, |
| | | // }); |
| | | |
| | | // this.order = res.data; |
| | | }, |
| | | // 获取总量数量 |
| | | async getregionCollect() { |
| | | // const res = await getregionCollect({ |
| | | // start: this.atd, |
| | | // end: this.td, |
| | | // }); |
| | | // this.Count = (res.data / 1000000).toFixed(2); |
| | | }, |
| | | |
| | | // 柱状图 |
| | | myEcharts() { |
| | | // 基于准备好的dom,初始化echarts实例 |
| | | var echarts = require("echarts"); |
| | | var myChart = echarts.init(document.getElementById("echars2")); |
| | | |
| | | // 指定图表的配置项和数据 |
| | | var option = { |
| | | title: { |
| | | text: "就诊分布", |
| | | left: "center", |
| | | }, |
| | | grid: { top: "18%", left: "19%", right: "0%", bottom: "24%" }, |
| | | xAxis: { |
| | | type: "category", |
| | | data: this.cylinderXAxis, |
| | | }, |
| | | yAxis: { |
| | | type: "value", |
| | | name: "单位/元", |
| | | }, |
| | | series: [ |
| | | { |
| | | data: this.cylinderSeries, |
| | | barWidth: "5%", |
| | | type: "bar", |
| | | }, |
| | | ], |
| | | getranking() { |
| | | let Rankingdata = { |
| | | startDate: this.endatd, |
| | | endDate: this.statd, |
| | | cy: 1, |
| | | }; |
| | | |
| | | // 使用刚指定的配置项和数据显示图表。 |
| | | myChart.setOption(option); |
| | | getDeptRanking(Rankingdata).then((res) => {}); |
| | | }, |
| | | // 获取中部线柱图数据 |
| | | getgraphdata() { |
| | | let Outhospdata = { |
| | | startDate: this.endatd, |
| | | endDate: this.statd, |
| | | cy: 1, |
| | | }; |
| | | let Inhospdata = { |
| | | startDate: this.endatd, |
| | | endDate: this.statd, |
| | | cy: 1, |
| | | }; |
| | | getechartsMedOuthospList(Outhospdata).then((res) => {}); |
| | | getechartsMedInhospList(Inhospdata).then((res) => {}); |
| | | }, |
| | | |
| | | // 获取线状图时间 |
| | | async getregionAmountCollect() { |
| | | // const res = await getregionAmountCollect(1, this.endatd, this.statd); |
| | | //getregionAmountCollect(1, this.endatd, this.statd); |
| | | // this.xAxis = res.data.xAxis; |
| | | // this.series = res.data.series; |
| | | this.xAxis = [ |
| | | "1月", |
| | | "2月", |
| | | "3月", |
| | | "4月", |
| | | "5月", |
| | | "6月", |
| | | "7月", |
| | | "8月", |
| | | ]; |
| | | this.xAxis = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月"]; |
| | | this.series = [123, 123, 223, 212, 432, 123, 442, 234]; |
| | | this.myEcharts2(); |
| | | }, |
| | |
| | | myEcharts2() { |
| | | var echarts = require("echarts"); |
| | | var myChart2 = echarts.init(document.getElementById("echars")); |
| | | this.myChart2 = myChart2; |
| | | var option2 = { |
| | | color: ["red"], |
| | | title: { |
| | | text: "就诊趋势图", |
| | | left: "center", |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "cross", |
| | | crossStyle: { |
| | | color: "#999", |
| | | }, |
| | | }, |
| | | }, |
| | | grid: { top: "18%", left: "17%", right: "0%", bottom: "24%" }, |
| | | xAxis: { |
| | | type: "category", |
| | | data: this.xAxis, |
| | | boundaryGap: true, |
| | | toolbox: { |
| | | feature: { |
| | | dataView: { show: true, readOnly: false }, |
| | | magicType: { show: true, type: ["line", "bar"] }, |
| | | restore: { show: true }, |
| | | saveAsImage: { show: true }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | name: "单位/元", |
| | | type: "value", |
| | | legend: { |
| | | data: [ |
| | | "出院随访量", |
| | | "门诊随访量", |
| | | // "在院随访量", |
| | | // "门诊复诊通知", |
| | | "出院服务人次", |
| | | "门诊服务人次", |
| | | ], |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | type: "category", |
| | | data: [ |
| | | "一月", |
| | | "二月", |
| | | "三月", |
| | | "四月", |
| | | "五月", |
| | | "六月", |
| | | "七月", |
| | | "八月", |
| | | "九月", |
| | | "十月", |
| | | ], |
| | | axisPointer: { |
| | | type: "shadow", |
| | | }, |
| | | }, |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: "value", |
| | | name: "随访量", |
| | | min: 0, |
| | | max: 250, |
| | | interval: 50, |
| | | axisLabel: { |
| | | formatter: "{value} 人", |
| | | }, |
| | | }, |
| | | { |
| | | type: "value", |
| | | name: "复诊/评估次数", |
| | | min: 0, |
| | | max: 250, |
| | | interval: 50, |
| | | axisLabel: { |
| | | formatter: "{value} 次", |
| | | }, |
| | | }, |
| | | ], |
| | | grid: { top: "35%" }, |
| | | series: [ |
| | | { |
| | | data: this.series, |
| | | name: "出院随访量", |
| | | type: "bar", |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 人"; |
| | | }, |
| | | }, |
| | | data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160], |
| | | }, |
| | | // { |
| | | // name: "影像随访量", |
| | | // type: "bar", |
| | | // tooltip: { |
| | | // valueFormatter: function (value) { |
| | | // return value + " 人"; |
| | | // }, |
| | | // }, |
| | | // data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180], |
| | | // }, |
| | | { |
| | | name: "门诊随访量", |
| | | type: "bar", |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 人"; |
| | | }, |
| | | }, |
| | | data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145], |
| | | }, |
| | | |
| | | // { |
| | | // name: "出院复诊通知", |
| | | // type: "line", |
| | | // smooth: 0.3, |
| | | // yAxisIndex: 1, |
| | | // tooltip: { |
| | | // valueFormatter: function (value) { |
| | | // return value + " 次"; |
| | | // }, |
| | | // }, |
| | | // data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175], |
| | | // }, |
| | | { |
| | | name: "出院服务人次", |
| | | type: "line", |
| | | smooth: 0.3, |
| | | yAxisIndex: 1, |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 次"; |
| | | }, |
| | | }, |
| | | data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180], |
| | | }, |
| | | { |
| | | name: "门诊服务人次", |
| | | type: "line", |
| | | smooth: 0.3, |
| | | yAxisIndex: 1, |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 次"; |
| | | }, |
| | | }, |
| | | data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160], |
| | | }, |
| | | ], |
| | | }; |
| | | myChart2.on("updateAxisPointer", function (event) { |
| | | const xAxisInfo = event.axesInfo[0]; |
| | | if (xAxisInfo) { |
| | | const dimension = xAxisInfo.value + 1; |
| | | myChart2.setOption({ |
| | | series: { |
| | | id: "pie", |
| | | label: { |
| | | formatter: "{b}: {@[" + dimension + "]} ", |
| | | }, |
| | | encode: { |
| | | value: dimension, |
| | | tooltip: dimension, |
| | | }, |
| | | }, |
| | | }); |
| | | } |
| | | }); |
| | | myChart2.setOption(option2); |
| | | }, |
| | | // 饼状图 |
| | |
| | | // 基于准备好的dom,初始化echarts实例 |
| | | var echarts = require("echarts"); |
| | | var mypPieCharts = echarts.init(document.getElementById("pieCharts")); |
| | | |
| | | this.mypPieCharts = mypPieCharts; |
| | | // 指定图表的配置项和数据 |
| | | var optionPie = { |
| | | title: { |
| | | left: "left", |
| | | }, |
| | | |
| | | legend: {}, |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{b}<br/>总占比 : {d}% ", |
| | | trigger: "axis", |
| | | showContent: true, |
| | | }, |
| | | toolbox: { |
| | | show: true, |
| | | feature: { |
| | | mark: { show: true }, |
| | | }, |
| | | dataset: { |
| | | source: [ |
| | | ["product", "2012", "2013", "2014", "2015", "2016", "2017"], |
| | | ["出院宣教", 56, 82, 88, 70, 53, 85], |
| | | ["在院宣教", 51, 51, 55, 53, 73, 68], |
| | | ["门诊宣教", 40, 62, 69, 36, 45, 32], |
| | | ], |
| | | }, |
| | | xAxis: { type: "category" }, |
| | | yAxis: { gridIndex: 0 }, |
| | | grid: { top: "25%", left: "10%", right: "40%", bottom: "10%" }, |
| | | series: [ |
| | | { |
| | | name: "合作商点位数Top5", |
| | | name: "出院宣教", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | }, |
| | | { |
| | | name: "在院宣教", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | }, |
| | | { |
| | | name: "门诊宣教", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | }, |
| | | { |
| | | type: "pie", |
| | | radius: ["10%", "70%"], |
| | | center: ["50%", "50%"], |
| | | roseType: "radius", |
| | | data: this.nodeCollect, |
| | | id: "pie", |
| | | radius: ["40%", "70%"], |
| | | center: ["80%", "50%"], |
| | | emphasis: { |
| | | focus: "self", |
| | | }, |
| | | itemStyle: { |
| | | borderRadius: 10, |
| | | borderColor: "#fff", |
| | | borderWidth: 2, |
| | | }, |
| | | label: { |
| | | formatter: "{b}: {@2012}", |
| | | }, |
| | | encode: { |
| | | itemName: "product", |
| | | value: "2012", |
| | | tooltip: "2012", |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | mypPieCharts.on("updateAxisPointer", function (event) { |
| | | const xAxisInfo = event.axesInfo[0]; |
| | | if (xAxisInfo) { |
| | | const dimension = xAxisInfo.value + 1; |
| | | mypPieCharts.setOption({ |
| | | series: { |
| | | id: "pie", |
| | | label: { |
| | | formatter: "{b}: {@[" + dimension + "]} ", |
| | | }, |
| | | encode: { |
| | | value: dimension, |
| | | tooltip: dimension, |
| | | }, |
| | | }, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | // 使用刚指定的配置项和数据显示图表。 |
| | | mypPieCharts.setOption(optionPie); |
| | | }, |
| | | // 页面变化调整大小 |
| | | handleResize() { |
| | | console.log(111); |
| | | // 调整 ECharts 图表大小 |
| | | if (this.myChart2) { |
| | | this.myChart2.resize(); |
| | | } |
| | | if (this.mypPieCharts) { |
| | | this.mypPieCharts.resize(); |
| | | } |
| | | }, |
| | | setInterval() { |
| | | this.intervalId = setInterval(() => { |
| | | if (window.innerWidth != this.lastWidth) { |
| | | this.lastWidth = window.innerWidth; |
| | | console.log("窗口大小可能被手动调整了"); |
| | | this.handleResize(); |
| | | } |
| | | }, 1000); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | padding: 0; |
| | | margin: 0; |
| | | } |
| | | |
| | | .boxEchars { |
| | | width: 100%; |
| | | height: 280px; |
| | | height: 40vh; |
| | | margin-top: 45px; |
| | | display: flex; |
| | | .echars1 { |
| | | flex: 1; |
| | | } |
| | | .echars2 { |
| | | flex: 1; |
| | | } |
| | | } |
| | |
| | | } |
| | | .empenty { |
| | | width: 100%; |
| | | height: 280px; |
| | | padding: 20px 0; |
| | | min-height: 280px; |
| | | } |
| | | .cooperate { |
| | | width: 100%; |
| | |
| | | margin-top: 25px; |
| | | display: flex; |
| | | .pieChart { |
| | | flex: 3; |
| | | flex: 1; |
| | | } |
| | | .Points { |
| | | width: 154px; |
| | | height: 230px; |
| | | padding-top: 47px; |
| | | padding-left: 38px; |
| | | text-align: center; |
| | | padding: 20px 0; |
| | | background: linear-gradient(135deg, transparent, #f8f8f9 0) 0 0, |
| | | linear-gradient(-135deg, transparent 12px, #f8f8f9 0) 100% 0, |
| | | linear-gradient(-45deg, transparent, #f8f8f9 0) 100% 100%, |
| | |
| | | line-height: 17px; |
| | | } |
| | | } |
| | | ::v-deep.aside .el-table__header-wrapper { |
| | | overflow: hidden; |
| | | display: none; |
| | | } |
| | | .headerBox { |
| | | height: 150px; |
| | | padding: 25px; |
| | |
| | | .bg-purple { |
| | | background: #fff; |
| | | } |
| | | .bg-purples { |
| | | color: #206abe; |
| | | font-size: 18px; |
| | | } |
| | | .bg-purple-light { |
| | | background: #e5e9f2; |
| | | text-align: center; |
| | | align-items: center; |
| | | line-height: 36px; |
| | | width: 6vw; |
| | | } |
| | | .subtitle { |
| | | text-align: center; |
| | | align-items: center; |
| | | } |
| | | .grid-content { |
| | | min-height: 36px; |
| | | border-radius: 20px; |
| | | padding: 0 20px; |
| | | padding: 0 10px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .grid-contents { |
| | | min-height: 36px; |
| | | border-radius: 20px; |
| | | padding: 0 10px; |
| | | padding-right: 0; |
| | | } |
| | | .row-bg { |
| | | padding: 10px 0; |