|
@@ -106,20 +106,26 @@ export default {
|
|
|
|
|
|
this.papers = data;
|
|
|
this.papers.forEach(paper => {
|
|
|
- paper.actionResult = this.IS_MARK_LEADER ? paper.level : paper.result;
|
|
|
+ paper.actionResult = this.IS_MARK_LEADER
|
|
|
+ ? this.getLevelResult(paper)
|
|
|
+ : paper.result;
|
|
|
paper.actionName = this.IS_MARK_LEADER
|
|
|
? this.getLeaderActionName(paper)
|
|
|
: "已评";
|
|
|
});
|
|
|
},
|
|
|
- getLeaderActionName(paper) {
|
|
|
- const names = {
|
|
|
- oneClick: "一键定档",
|
|
|
- sample: "设立标准卷",
|
|
|
- isRejectedByLeader: "打回"
|
|
|
- };
|
|
|
- const typeKey = Object.keys(names).find(key => paper[key]);
|
|
|
- return typeKey && names[typeKey];
|
|
|
+ getLevelResult(paper) {
|
|
|
+ return this.stage === "LEVEL" ? paper.level : paper.roughLevel;
|
|
|
+ },
|
|
|
+ getLeaderActionName(info) {
|
|
|
+ if (
|
|
|
+ (this.stage === "LEVEL" && info.sample) ||
|
|
|
+ (this.stage === "ROUGH_LEVEL" && info.roughSample)
|
|
|
+ )
|
|
|
+ return "设立标准卷";
|
|
|
+ if (info.oneClick) return "一键定档";
|
|
|
+ if (info.isRejectedByLeader) return "打回";
|
|
|
+ return "";
|
|
|
},
|
|
|
updateCachePapers(papers) {
|
|
|
papers.forEach(paper => {
|