|
@@ -1,5 +1,5 @@
|
|
|
<script lang="ts" setup>
|
|
|
-import {monthCompareMetricsEnum} from '/src/views/reportManage/dataCenter/utils/enum';
|
|
|
+import { monthCompareMetricsEnum } from '/src/views/reportManage/dataCenter/utils/enum';
|
|
|
import {
|
|
|
getCardDayData,
|
|
|
getCardMonthData,
|
|
@@ -72,45 +72,50 @@ function handleButtonClick(tableName) {
|
|
|
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-card body-style="padding: 10px" class="mb-3.5 mt-3.5">
|
|
|
- <div class="custom-card-style flex gap-1.5 justify-between my-1.5 mx-2"
|
|
|
- style="display: flex; align-items: center;" >
|
|
|
- <Selector ref="selectorRef" @update:updateData="updateDataChange" />
|
|
|
- <MonthlyDatePicker v-if="showTable === 'monthlyComparativeData'" @monthDateChange="handelDateChange"></MonthlyDatePicker>
|
|
|
- </div>
|
|
|
- <div v-if="showTable === 'mainData'">
|
|
|
- <DataPicker style="display: flex; align-items: center; gap: 16px" @changeDate="processingDateChange" />
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
-
|
|
|
- <el-card v-if="showTable === 'monthlyComparativeData'" class="mb-1.5">
|
|
|
- <chartDateTendency
|
|
|
- :fetch-line-month="getLineForMonth"
|
|
|
- :fetch-line-week="getLineForWeek"
|
|
|
- :fetchLine="getLineData"
|
|
|
- :metricEnum="monthCompareMetricsEnum"
|
|
|
- :query="monthQueryParams"
|
|
|
- >
|
|
|
- </chartDateTendency>
|
|
|
- </el-card>
|
|
|
- <el-card class="mt-3">
|
|
|
- <div class="custom-button my">
|
|
|
- <el-button
|
|
|
- v-for="pane in panes"
|
|
|
- :key="pane.name"
|
|
|
- :type="showTable === pane.name ? 'primary' : 'default'"
|
|
|
- @click="handleButtonClick(pane.name)">
|
|
|
- {{ pane.label }}
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- <component :is="currentTable[showTable]"
|
|
|
- :dayDate="dayDate"
|
|
|
- :monthCurrentDate="monthCurrentDate"
|
|
|
- :monthDate="monthDate"
|
|
|
- :taskIds="taskIds"
|
|
|
- :weekDate="weekDate">
|
|
|
- </component>
|
|
|
- </el-card>
|
|
|
+ <div class="px-3.5">
|
|
|
+ <el-card body-style="padding: 10px" class="mb-3.5 mt-3.5">
|
|
|
+ <div class="custom-card-style flex gap-1.5 justify-between my-1.5 mx-2"
|
|
|
+ style="display: flex; align-items: center;">
|
|
|
+ <Selector ref="selectorRef" @update:updateData="updateDataChange" />
|
|
|
+ <MonthlyDatePicker v-if="showTable === 'monthlyComparativeData'"
|
|
|
+ @monthDateChange="handelDateChange"></MonthlyDatePicker>
|
|
|
+ </div>
|
|
|
+ <div v-if="showTable === 'mainData'">
|
|
|
+ <DataPicker style="display: flex; align-items: center; gap: 16px" @changeDate="processingDateChange" />
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card v-if="showTable === 'monthlyComparativeData'" class="mb-1.5">
|
|
|
+ <chartDateTendency
|
|
|
+ :fetch-line-month="getLineForMonth"
|
|
|
+ :fetch-line-week="getLineForWeek"
|
|
|
+ :fetchLine="getLineData"
|
|
|
+ :metricEnum="monthCompareMetricsEnum"
|
|
|
+ :query="monthQueryParams"
|
|
|
+ >
|
|
|
+ </chartDateTendency>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+ <div class="px-3.5">
|
|
|
+ <el-card class="mt-3">
|
|
|
+ <div class="custom-button my">
|
|
|
+ <el-button
|
|
|
+ v-for="pane in panes"
|
|
|
+ :key="pane.name"
|
|
|
+ :type="showTable === pane.name ? 'primary' : 'default'"
|
|
|
+ @click="handleButtonClick(pane.name)">
|
|
|
+ {{ pane.label }}
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <component :is="currentTable[showTable]"
|
|
|
+ :dayDate="dayDate"
|
|
|
+ :monthCurrentDate="monthCurrentDate"
|
|
|
+ :monthDate="monthDate"
|
|
|
+ :taskIds="taskIds"
|
|
|
+ :weekDate="weekDate">
|
|
|
+ </component>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|