WXL
2025-01-21 1a090a490d8fc93224a0e3ad0fd7fe16c9fe63a8
src/views/index.vue
@@ -167,7 +167,7 @@
            <div class="empenty">
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" >出院:</div></el-col
                  ><div class="grid-contents bg-purples">出院:</div></el-col
                >
                <el-col :span="7">
                  <div style="display: flex">
@@ -187,13 +187,13 @@
                    <div class="subtitle">复诊通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col> </el-row
              >
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" ></div></el-col
                >
                <el-col :span="7" >
                  ><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>
@@ -212,12 +212,11 @@
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col>
                 </el-row
              >
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" >门诊:</div></el-col
                  ><div class="grid-contents bg-purples">门诊:</div></el-col
                >
                <el-col :span="7">
                  <div style="display: flex">
@@ -237,56 +236,49 @@
                    <div class="subtitle">复诊通知</div>
                    <div class="grid-contents bg-purple-light">0次</div>
                  </div>
                </el-col> </el-row
              >
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3"
                  ><div class="grid-contents bg-purples" ></div></el-col
                >
                  ><div class="grid-contents bg-purples"></div
                ></el-col>
                <el-col :span="7">
                  <div style="display: flex">
                    <div class="subtitle">出院随访</div>
                    <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="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="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>
            </div>
          </div>
        </el-col>
@@ -296,12 +288,12 @@
</template>
<script>
// import {
//   getUserWork,
//   getregionCollect,
//   getregionOrderCount,
// } from "@/api/home";
import {
  getoutpatientamount,
  getInhospital,
  getBarchart,
  getQtemplateobj,
} from "@/api/AiCentre/index";
import dayjs from "dayjs";
export default {
@@ -347,13 +339,11 @@
    },
  },
  created() {
    // this.getoutpatientamount();
    // this.getInhospital();
    // this.getBarchart();
    this.$nextTick(function () {
      this.getregionAmountCollect();
      this.getUserWorks();
      this.getregionCollect();
      this.getregionOrderCount();
      this.getNodeCount();
      this.getPrtnerCount();
      this.getnodeCollect();
      this.getSkuTop();
    });
@@ -378,25 +368,13 @@
        this.dyat = 360;
      }
      this.getregionAmountCollect();
      this.getUserWorks();
      this.getregionCollect();
      this.getregionOrderCount();
      this.getNodeCount();
      this.getPrtnerCount();
      // this.getoutpatientamount();
      // this.getInhospital();
      // this.getBarchart();
      this.getnodeCollect();
      this.getSkuTop();
    },
    // 获取点位总数
    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();
@@ -428,31 +406,22 @@
        { amount: 0, count: 67, skuId: "0", skuName: "放射科" },
      ];
    },
    // 获取工单数量
    async getUserWorks() {
      // const res = await getUserWork(this.atd, this.td);
      // this.ticketStatistics = res.data[0];
    // 获取门诊基础数据
    getoutpatientamount() {
      getoutpatientamount().then((res) => {});
    },
    // 获取就诊数量
    async getregionOrderCount() {
      // const res = await getregionOrderCount({
      //   start: this.atd,
      //   end: this.td,
      // });
      // this.order = res.data;
    getBarchart() {
      getBarchart().then((res) => {});
    },
    // 获取总量数量
    async getregionCollect() {
      // const res = await getregionCollect({
      //   start: this.atd,
      //   end: this.td,
      // });
      // this.Count = (res.data / 1000000).toFixed(2);
    getInhospital() {
      getInhospital().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月"];
@@ -1003,7 +972,7 @@
  line-height: 36px;
  width: 6vw;
}
.subtitle{
.subtitle {
  text-align: center;
  align-items: center;
}