| | |
| | | </el-col> |
| | | <!-- 右边列表 --> |
| | | <el-col :span="4" class="aside"> |
| | | <div class="grid-content bg-purple" style="margin-top: -180px"> |
| | | <div class="grid-contentsa bg-purple" style="margin-top: -180px"> |
| | | <div class="title"> |
| | | 科室服务量 |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | </div> |
| | | <div class="dept-table-container"> |
| | | <el-table v-if="SkuTop.length > 0" style="width: 100%" :data="SkuTop" :height="tableHeight"> |
| | | <el-table |
| | | v-if="SkuTop.length > 0" |
| | | style="width: 100%" |
| | | :data="SkuTop" |
| | | :height="tableHeight" |
| | | > |
| | | <template v-for="(item, index) in SkuTop"></template> |
| | | <el-table-column |
| | | prop="order" |
| | |
| | | |
| | | const calculatedHeight = this.SkuTop.length * rowHeight + headerHeight; |
| | | return Math.min(Math.max(calculatedHeight, minHeight), maxHeight); |
| | | } |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getTopdata(); |
| | |
| | | let params = { |
| | | startDate: this.endatd, |
| | | endDate: this.statd, |
| | | timeType: this.getTimeType() |
| | | timeType: this.getTimeType(), |
| | | }; |
| | | |
| | | try { |
| | |
| | | if (this.radio1 === "自定义" && this.customDateRange.length === 2) { |
| | | const start = dayjs(this.customDateRange[0]); |
| | | const end = dayjs(this.customDateRange[1]); |
| | | const diffDays = end.diff(start, 'day'); |
| | | const diffDays = end.diff(start, "day"); |
| | | |
| | | return diffDays > 60 ? "month" : "day"; |
| | | } |
| | |
| | | sortedData.forEach((item) => { |
| | | // 根据时间类型格式化显示 |
| | | const timeType = this.getTimeType(); |
| | | const timeLabel = timeType === "day" |
| | | const timeLabel = |
| | | timeType === "day" |
| | | ? dayjs(item.timePeriod).format("MM-DD") |
| | | : dayjs(item.timePeriod).format("YYYY-MM"); |
| | | |
| | |
| | | padding: 0 10px; |
| | | text-align: center; |
| | | } |
| | | .grid-contentsa { |
| | | min-height: 600px; |
| | | border-radius: 20px; |
| | | padding: 0 10px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .grid-contents { |
| | | min-height: 36px; |