|
@@ -38,13 +38,15 @@
|
|
|
<div class="handle-events"> <HandleEvents /> </div>
|
|
|
</div>
|
|
|
<div class="card-item-common card-flex-col">
|
|
|
- <CardTitle title="日报统计" showMore @moreClick="moreClick" />
|
|
|
- <!-- <CardTitle title="周报统计" showMore @moreClick="moreClick" /> -->
|
|
|
+ <CardTitle
|
|
|
+ :title="isWeeklySummary ? '周报统计' : '日报统计'"
|
|
|
+ showMore
|
|
|
+ @moreClick="moreClick"
|
|
|
+ />
|
|
|
<!-- <div>
|
|
|
<el-input style="width: calc(100% - 60px); color: #f7f7f7" placeholder="输入关键字搜索" />
|
|
|
</div> -->
|
|
|
<div style="flex: 1">
|
|
|
- <!-- <BarList :list="barListData" unit="条" /> -->
|
|
|
<!-- 首页显示周报 -->
|
|
|
<WeeklySummary v-if="isWeeklySummary" />
|
|
|
<!-- 首页显示日报 -->
|
|
@@ -60,11 +62,9 @@ import CardTitle from './components/CardTitle.vue'
|
|
|
import CardItemSeven3 from './components/CardItemSeven3.vue'
|
|
|
import HandleEvents from './components/HandleEvents.vue'
|
|
|
import ProjectTimeChart from './components/TimeChart.vue'
|
|
|
-// import BarList from './components/BarList.vue'
|
|
|
import WeeklySummary from './components/weekly/index.vue'
|
|
|
import dailySummary from './components/daily/index.vue'
|
|
|
import PubsubService from '@/utils/PubsubService'
|
|
|
-// import BarList from './components/BarList.vue'
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
|
|
import { useQuery } from '@tanstack/vue-query'
|
|
|
import { getRecordsDetail } from '@/api/oa/staffRecords'
|
|
@@ -85,28 +85,6 @@ const moreClick = () => {
|
|
|
// 发布点击更多事件
|
|
|
PubsubService.publish('homepage-click-weeklyAndDaily-more', {})
|
|
|
}
|
|
|
-const barListData = [
|
|
|
- {
|
|
|
- name: '规划类',
|
|
|
- value: '280'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '软件类',
|
|
|
- value: '132'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '行政类',
|
|
|
- value: '214'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '市场类',
|
|
|
- value: '127'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '财务类',
|
|
|
- value: '15'
|
|
|
- }
|
|
|
-]
|
|
|
|
|
|
const panelList = reactive([
|
|
|
{
|