|
|
@@ -5,27 +5,23 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-loading="isProcessLoading" class="hc-round-chart mt-14px flex">
|
|
|
- <div class="open-btn" @click="toggleShowAll">
|
|
|
- <HcTooltip keys="schedule-data-hide">
|
|
|
- <el-link type="primary">
|
|
|
- <HcIcon :name="isShowAll ? 'arrow-left-s' : 'arrow-right-s'" />
|
|
|
- </el-link>
|
|
|
- </HcTooltip>
|
|
|
+ <div v-if="isHideBtn" class="open-btn" @click="toggleShowAll">
|
|
|
+ <el-link type="primary">
|
|
|
+ <HcIcon :name="isShowAll ? 'arrow-left-s' : 'arrow-right-s'" />
|
|
|
+ </el-link>
|
|
|
</div>
|
|
|
- <el-row :gutter="30" class="flex-1">
|
|
|
+ <el-row v-if="filteredProcessList.length > 0" :gutter="30" class="flex-1">
|
|
|
<template v-for="(item, index) in filteredProcessList" :key="index">
|
|
|
<el-col :span="isProcessSpan">
|
|
|
<div class="hc-round-chart-card-box position-relative">
|
|
|
<div class="hc-card-content-box">
|
|
|
<div class="card-title flex">
|
|
|
{{ item.title }}
|
|
|
- <div class="eye-icon-container pos-absolute">
|
|
|
- <HcTooltip keys="schedule-data-hide">
|
|
|
- <el-link type="warning" @click="hideData(item)">
|
|
|
- <HcIcon v-if="item.isHide === 0" name="eye-off" />
|
|
|
- <HcIcon v-else name="eye" />
|
|
|
- </el-link>
|
|
|
- </HcTooltip>
|
|
|
+ <div v-if="isHideBtn" class="eye-icon-container pos-absolute">
|
|
|
+ <el-link type="warning" @click="hideData(item)">
|
|
|
+ <HcIcon v-if="item.isHide === 0" name="eye-off" />
|
|
|
+ <HcIcon v-else name="eye" />
|
|
|
+ </el-link>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card-ratio-box mt-1">
|
|
|
@@ -55,6 +51,9 @@
|
|
|
</el-col>
|
|
|
</template>
|
|
|
</el-row>
|
|
|
+ <div v-else class="w-full">
|
|
|
+ <hc-empty title="暂无数据" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="hc-chart-flex">
|
|
|
<el-row :gutter="30" class="h-full">
|
|
|
@@ -111,6 +110,7 @@ import RoundChart from './components/echarts/RoundChart.vue'
|
|
|
import ReportChart from './components/echarts/ReportChart.vue'
|
|
|
import MediaChart from './components/echarts/MediaChart.vue'
|
|
|
import DataApi from '~api/schedule/data'
|
|
|
+import { btnAuth } from '~uti/btn-auth'
|
|
|
|
|
|
//变量
|
|
|
const router = useRouter()
|
|
|
@@ -118,7 +118,7 @@ const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId)
|
|
|
const contractId = ref(useAppState.getContractId)
|
|
|
const contractInfo = ref(useAppState.getContractInfo)
|
|
|
-const isCollapse = ref(useAppState.getCollapse)
|
|
|
+const isHideBtn = btnAuth('schedule-data-hide')
|
|
|
|
|
|
//渲染完成
|
|
|
onActivated(async () => {
|