|
@@ -3,7 +3,7 @@
|
|
<div class="page_week_main">
|
|
<div class="page_week_main">
|
|
<!-- 选择周报时间 -->
|
|
<!-- 选择周报时间 -->
|
|
<div class="week_time">
|
|
<div class="week_time">
|
|
- <SelectMonth ref="selectMonth" :queryDate="getQueryTime" @selectYm="getSelectTime"></SelectMonth>
|
|
|
|
|
|
+ <SelectMonth v-if="!nonereport" ref="selectMonth" @noReport="noReport" :queryDate="getQueryTime" @selectYm="getSelectTime"></SelectMonth>
|
|
<div class="select_report">
|
|
<div class="select_report">
|
|
<div class="week_report" v-for="(item, index) in weekList" :key="index" @click="selectWeek(index, item)" :class="{weekActive:index==isWeekIndex}">
|
|
<div class="week_report" v-for="(item, index) in weekList" :key="index" @click="selectWeek(index, item)" :class="{weekActive:index==isWeekIndex}">
|
|
<div class="week_report_main">
|
|
<div class="week_report_main">
|
|
@@ -24,11 +24,12 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <Empty tip="暂无数据" v-if="!nodata"></Empty>
|
|
|
|
|
|
+ <bmEmpty v-if="nonereport" functype="week" tip="本周结束后,将为您推送周报,敬请期待~"></bmEmpty>
|
|
|
|
+ <Empty tip="暂无数据" v-if="!nodata && !nonereport"></Empty>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 数据报告-周报 -->
|
|
<!-- 数据报告-周报 -->
|
|
- <div class="dataReport" v-if="nodata">
|
|
|
|
|
|
+ <div class="dataReport" v-if="nodata && !nonereport">
|
|
<div class="dataReport_main">
|
|
<div class="dataReport_main">
|
|
<div class="data_r_head">
|
|
<div class="data_r_head">
|
|
<div class="data_r_title">数据报告-周报</div>
|
|
<div class="data_r_title">数据报告-周报</div>
|
|
@@ -99,6 +100,7 @@ import { getReportDetail, getReportIndex } from '@/api/modules'
|
|
import { dateFormatter } from '@/utils/globalFunctions'
|
|
import { dateFormatter } from '@/utils/globalFunctions'
|
|
import DuoToneChart from '@/components/chart/DuoToneChart'
|
|
import DuoToneChart from '@/components/chart/DuoToneChart'
|
|
import BarLineChart from '@/components/chart/BarLineChart'
|
|
import BarLineChart from '@/components/chart/BarLineChart'
|
|
|
|
+import bmEmpty from '@/components/common/BigMemberEmpty'
|
|
import Empty from '@/components/common/Empty'
|
|
import Empty from '@/components/common/Empty'
|
|
export default {
|
|
export default {
|
|
name: 'page_week',
|
|
name: 'page_week',
|
|
@@ -108,6 +110,7 @@ export default {
|
|
ProjectTop,
|
|
ProjectTop,
|
|
DuoToneChart,
|
|
DuoToneChart,
|
|
BarLineChart,
|
|
BarLineChart,
|
|
|
|
+ bmEmpty,
|
|
Empty,
|
|
Empty,
|
|
Layout
|
|
Layout
|
|
},
|
|
},
|
|
@@ -120,6 +123,7 @@ export default {
|
|
keywordsGroup: '',
|
|
keywordsGroup: '',
|
|
weekList: [],
|
|
weekList: [],
|
|
nodata: false, // ,没有周报列表显示空组件
|
|
nodata: false, // ,没有周报列表显示空组件
|
|
|
|
+ nonereport: false, // ,没有周报列表显示空组件
|
|
// 本周新增招标项目数量
|
|
// 本周新增招标项目数量
|
|
newDrawCount: {
|
|
newDrawCount: {
|
|
show: false,
|
|
show: false,
|
|
@@ -206,6 +210,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
dateFormatter,
|
|
dateFormatter,
|
|
|
|
+ // 没有一条数据显示bmEmpty空状态组件
|
|
|
|
+ noReport () {
|
|
|
|
+ this.nonereport = true
|
|
|
|
+ },
|
|
// 周报列表
|
|
// 周报列表
|
|
getReportList (time) {
|
|
getReportList (time) {
|
|
getReportIndex({ ym: time }).then((res) => {
|
|
getReportIndex({ ym: time }).then((res) => {
|
|
@@ -511,7 +519,7 @@ export default {
|
|
}
|
|
}
|
|
.select_report{
|
|
.select_report{
|
|
padding: 0 40px;
|
|
padding: 0 40px;
|
|
- margin: 24px auto;
|
|
|
|
|
|
+ margin: 0 auto;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-content: space-between;
|
|
align-content: space-between;
|