Refactor project pages and update related docs
This commit is contained in:
@@ -176,7 +176,8 @@ export default {
|
||||
'0': 'primary',
|
||||
'1': 'success',
|
||||
'2': 'info',
|
||||
'3': 'warning'
|
||||
'3': 'warning',
|
||||
'4': 'danger'
|
||||
}
|
||||
return statusMap[status] || 'info'
|
||||
},
|
||||
@@ -185,7 +186,8 @@ export default {
|
||||
'0': '进行中',
|
||||
'1': '已完成',
|
||||
'2': '已归档',
|
||||
'3': '打标中'
|
||||
'3': '打标中',
|
||||
'4': '打标失败'
|
||||
}
|
||||
return statusMap[status] || '未知'
|
||||
},
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.status === '0' || scope.row.status === '3'"
|
||||
v-if="['0', '3', '4'].includes(scope.row.status)"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-right"
|
||||
@@ -199,6 +199,7 @@ export default {
|
||||
1: "#52c41a",
|
||||
2: "#8c8c8c",
|
||||
3: "#fa8c16",
|
||||
4: "#f56c6c",
|
||||
};
|
||||
return colorMap[status] || "#8c8c8c";
|
||||
},
|
||||
|
||||
@@ -40,7 +40,8 @@ export default {
|
||||
'0': 0,
|
||||
'1': 0,
|
||||
'2': 0,
|
||||
'3': 0
|
||||
'3': 0,
|
||||
'4': 0
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -53,7 +54,8 @@ export default {
|
||||
{ label: '进行中', value: '0', count: 0 },
|
||||
{ label: '已完成', value: '1', count: 0 },
|
||||
{ label: '已归档', value: '2', count: 0 },
|
||||
{ label: '打标中', value: '3', count: 0 }
|
||||
{ label: '打标中', value: '3', count: 0 },
|
||||
{ label: '打标失败', value: '4', count: 0 }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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