fix: harden import auth and utility page copy
Some checks failed
CD Pipeline / deploy (push) Failing after 6m19s

This commit is contained in:
ogt
2026-06-26 06:44:51 +08:00
parent fa484893b9
commit c1b375f41c
20 changed files with 130 additions and 131 deletions

View File

@@ -232,7 +232,7 @@ function uploadSalesReport() {
}
if (!file.name.includes('即時業績') || !file.name.includes('全月')) {
if (!confirm('檔名不像「即時業績(全月)」報表,確定要繼續匯入嗎?\n系統會嘗試辨識內容更新業績資料。')) {
if (!confirm('檔名不像「即時業績(全月)」報表,確定要繼續匯入嗎?\n會先辨識內容,再更新業績資料。')) {
return;
}
} else if (!confirm('確定要匯入此份業績報表嗎?\n匯入後會更新月度業績判斷供成長分析與報表使用。')) {
@@ -265,7 +265,7 @@ function uploadSalesReport() {
})
.catch(error => {
console.error('Error:', error);
alert('匯入連線逾時,請稍後查看分析頁是否更新;若沒有更新請重新匯入。');
alert('匯入連線逾時,請稍後查看匯入處理狀態;若沒有更新請重新匯入。');
})
.finally(() => {
btn.innerHTML = originalText;
@@ -282,7 +282,7 @@ function uploadExcel() {
return;
}
if (!confirm('確定要匯入嗎?\n系統會整理成可分析的營運資料集。')) {
if (!confirm('確定要匯入嗎?\n會整理成可分析的營運資料集。')) {
return;
}
@@ -312,7 +312,7 @@ function uploadExcel() {
})
.catch(error => {
console.error('Error:', error);
alert('匯入連線逾時,請稍後查看分析頁是否更新;若沒有更新請重新匯入。');
alert('匯入連線逾時,請稍後查看匯入處理狀態;若沒有更新請重新匯入。');
})
.finally(() => {
btn.innerHTML = originalText;
@@ -330,7 +330,7 @@ function uploadMonthlySummary() {
return;
}
if (!confirm(`確定要匯入「${file.name}」嗎?\n系統會更新對應年月份的業績資料。\n匯入期間請勿關閉視窗。`)) {
if (!confirm(`確定要匯入「${file.name}」嗎?\n會更新對應年月份的業績資料。\n匯入期間請勿關閉視窗。`)) {
return;
}