WXL
2025-04-30 6be49398a90a339a6c72ac9ea7a09fc368acda87
src/views/index.vue
@@ -14,8 +14,7 @@
                  text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
                  color: black;
                "
                ></span
              >
              ></span>
              <span>{{ endatd }} ~ {{ statd }}</span>
            </div>
            <el-row :gutter="20">
@@ -49,7 +48,7 @@
        <el-col :span="9">
          <div class="grid-content bg-purple headerBox bgc2">
            <div class="title">
              门诊服务
              出院服务
              <span
                style="
                  font-size: 25px;
@@ -57,8 +56,7 @@
                  font-weight: 600;
                  color: red;
                "
                ></span
              >
              ></span>
              <span>{{ endatd }} ~ {{ statd }}</span>
            </div>
            <el-row :gutter="20">
@@ -69,7 +67,6 @@
                <div class="text-color2">
                  <p>出院就诊量(人次)</p>
                </div>
              </el-col>
              <el-col :span="10">
                <div class="home-user-task-stats">
@@ -291,10 +288,12 @@
<script>
import {
  getoutpatientamount,
  getInhospital,
  getBarchart,
  getQtemplateobj,
  getEChartsPatMedOuthospCount,
  getechartsListCountdata,
  getechartsMedOuthospList,
  getechartsMedInhospList,
  getechartsandData,
  getDeptRanking,
} from "@/api/AiCentre/index";
import dayjs from "dayjs";
@@ -341,9 +340,9 @@
    },
  },
  created() {
    // this.getoutpatientamount();
    // this.getInhospital();
    // this.getBarchart();
    // this.getTopdata();
    // this.getgraphdata();
    // this.getranking();
    this.$nextTick(function () {
      this.getregionAmountCollect();
      this.getnodeCollect();
@@ -369,10 +368,10 @@
      } else {
        this.dyat = 360;
      }
      this.getgraphdata();
      this.getranking();
      this.getTopdata();
      this.getregionAmountCollect();
      // this.getoutpatientamount();
      // this.getInhospital();
      // this.getBarchart();
      this.getnodeCollect();
      this.getSkuTop();
    },
@@ -409,17 +408,44 @@
        { amount: 0, count: 67, skuId: "0", skuName: "放射科2" },
      ];
    },
    // 获取门诊基础数据
    getoutpatientamount() {
      getoutpatientamount().then((res) => {});
    // 获取头部数据
    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) => {});
    },
    // 获取就诊数量
    getBarchart() {
      getBarchart().then((res) => {});
    getranking() {
      let Rankingdata = {
        startDate: this.endatd,
        endDate: this.statd,
        cy: 1,
      };
      getDeptRanking(Rankingdata).then((res) => {});
    },
    // 获取总量数量
    getInhospital() {
      getInhospital().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) => {});
    },
    // 获取线状图时间