Refactor project pages and update related docs
This commit is contained in:
@@ -359,7 +359,7 @@ export default {
|
||||
return String(this.projectInfo.projectStatus) === "2";
|
||||
},
|
||||
isReportDisabled() {
|
||||
return ["0", "3"].includes(String(this.projectInfo.projectStatus));
|
||||
return ["0", "3", "4"].includes(String(this.projectInfo.projectStatus));
|
||||
},
|
||||
},
|
||||
created() {
|
||||
@@ -505,7 +505,9 @@ export default {
|
||||
return today;
|
||||
},
|
||||
getPullBankInfoMinSelectableDate() {
|
||||
return new Date(2025, 0, 1);
|
||||
const minSelectableDate = this.getPullBankInfoMaxSelectableDate();
|
||||
minSelectableDate.setFullYear(minSelectableDate.getFullYear() - 1);
|
||||
return minSelectableDate;
|
||||
},
|
||||
getPullBankInfoMaxSelectableDate() {
|
||||
const yesterday = this.getPullBankInfoTodayStart();
|
||||
@@ -546,10 +548,10 @@ export default {
|
||||
},
|
||||
isPullBankInfoDateDisabled(time) {
|
||||
const minSelectableDate = this.getPullBankInfoMinSelectableDate();
|
||||
const todayStart = this.getPullBankInfoTodayStart();
|
||||
const maxSelectableDate = this.getPullBankInfoMaxSelectableDate();
|
||||
return (
|
||||
time.getTime() < minSelectableDate.getTime() ||
|
||||
time.getTime() >= todayStart.getTime()
|
||||
time.getTime() > maxSelectableDate.getTime()
|
||||
);
|
||||
},
|
||||
hasInvalidPullBankInfoDateRange(dateRange) {
|
||||
@@ -590,7 +592,7 @@ export default {
|
||||
}
|
||||
|
||||
if (this.hasInvalidPullBankInfoDateRange([startDate, endDate])) {
|
||||
this.$message.warning("时间跨度仅支持 2025-01-01 至昨天");
|
||||
this.$message.warning("时间跨度仅支持近一年内日期,且最晚只能选择到昨天");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -662,6 +664,7 @@ export default {
|
||||
1: "success",
|
||||
2: "archived",
|
||||
3: "tagging",
|
||||
4: "failed",
|
||||
};
|
||||
return statusMap[status] || "processing";
|
||||
},
|
||||
@@ -673,6 +676,7 @@ export default {
|
||||
1: "已完成",
|
||||
2: "已归档",
|
||||
3: "打标中",
|
||||
4: "打标失败",
|
||||
};
|
||||
return statusMap[status] || "未知";
|
||||
},
|
||||
@@ -1050,6 +1054,11 @@ export default {
|
||||
color: #909399;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-failed {
|
||||
color: #f56c6c;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.update-time {
|
||||
|
||||
Reference in New Issue
Block a user