Commit 43636fd3 by Lin

feat: 下载报表提示修改

1 parent 50a1f04e
...@@ -101,15 +101,15 @@ ...@@ -101,15 +101,15 @@
@dialogClose="closePushDialog" /> @dialogClose="closePushDialog" />
<!-- 导入更新 --> <!-- 导入更新 -->
<d2-file-import-dialog :is-visible="fileVisible" <d2-file-import-dialog title="导入"
title="导入" :is-visible="fileVisible"
@closeDialog="handleImport" @closeDialog="handleImport"
@confirmDialog="handleConfirmImport" /> @confirmDialog="handleConfirmImport" />
<el-dialog :close-on-click-modal="false" <el-dialog title="提示"
width="30%"
:close-on-click-modal="false"
:show-close="false" :show-close="false"
title="提示" :visible.sync="dialogVisible">
:visible.sync="dialogVisible"
width="30%">
<div v-if="updateStatus === ''" <div v-if="updateStatus === ''"
class="dialog-content"> class="dialog-content">
<div> <div>
...@@ -283,13 +283,15 @@ export default { ...@@ -283,13 +283,15 @@ export default {
* 是否展示「自定义周期」按钮(与 common/constants.js downloadReportManage_reportType 中报表名称一致) * 是否展示「自定义周期」按钮(与 common/constants.js downloadReportManage_reportType 中报表名称一致)
*/ */
isCustomPeriodReportType(reportType) { isCustomPeriodReportType(reportType) {
if (!reportType || typeof reportType !== "string") return false; if (!reportType || typeof reportType !== "string") {
return false;
}
const keywords = [ const keywords = [
"门店产值及个人成交排名", "门店产值及个人成交排名",
"BI数据分析表", "BI数据分析表",
"无日报门店产值表", "无日报门店产值表",
]; ];
return keywords.some((k) => reportType.includes(k)); return keywords.some(k => reportType.includes(k));
}, },
async getBaseData() { async getBaseData() {
...@@ -362,7 +364,8 @@ export default { ...@@ -362,7 +364,8 @@ export default {
// 重新生成 // 重新生成
handleGenerate(row) { handleGenerate(row) {
this.$confirm( this.$confirm(
"系统将自动按照对应的报表及统计时间重新生成,生成过程中不可下载,请耐心等待。是否确认重新生成?", // "系统将自动按照对应的报表及统计时间重新生成,生成过程中不可下载,请耐心等待。是否确认重新生成?",
"将基于 T-1 天(YYYY-MM-DD)重新生成报表,是否继续?",
"提示", "提示",
{ {
confirmButtonText: "确定", confirmButtonText: "确定",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!