|
|
@@ -23,13 +23,13 @@
|
|
|
<el-divider/>
|
|
|
<ElTabs v-model="activeTab">
|
|
|
<ElTabPane :label="'评审意见'" name="comments">
|
|
|
- <div v-for="comment in commentList" :key="comment.id" class="comment-line">
|
|
|
- <div>
|
|
|
- <i class="el-icon-plus"/>{{comment.creatorName}}
|
|
|
- <span class="vice-comment"> @ {{comment.creatorName}} {{comment.commentType}}ed at {{comment.time}}</span>
|
|
|
- </div>
|
|
|
- <div class="comment-content">{{comment.content}}</div>
|
|
|
- </div>
|
|
|
+<!-- <div v-for="comment in commentList" :key="comment.id" class="comment-line">-->
|
|
|
+<!-- <div>-->
|
|
|
+<!-- <i class="el-icon-plus"/>{{comment.creatorName}}-->
|
|
|
+<!-- <span class="vice-comment"> @ {{comment.creatorName}} {{comment.commentType}}ed at {{comment.time}}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="comment-content">{{comment.content}}</div>-->
|
|
|
+<!-- </div>-->
|
|
|
<el-timeline reverse = "true">
|
|
|
<el-timeline-item v-for="(item, index) in commentList" :key="index" :timestamp="formatTime(item.time)" class="comment-item">
|
|
|
<el-row>
|
|
|
@@ -187,6 +187,7 @@ export default {
|
|
|
this.newComment.creatorName = this.currentUser.username;
|
|
|
this.codeReviewDetail = await CodeReviewAPI.getCodeReviewDetail(this.codeReviewId);
|
|
|
this.commentList = await CodeReviewAPI.getComment(this.codeReviewId);
|
|
|
+
|
|
|
this.codeDiffMsg = await CodeReviewAPI.compareBranch(this.codeReviewDetail.projectId, this.codeReviewDetail.targetBranch, this.codeReviewDetail.sourceBranch);
|
|
|
},
|
|
|
};
|