ソースを参照

优化bug详情页

qinzhipeng_v@didiglobal.com 4 年 前
コミット
9c0a7c78e9
1 ファイル変更7 行追加3 行削除
  1. 7 3
      src/views/projectManage/bugList/details/index.vue

+ 7 - 3
src/views/projectManage/bugList/details/index.vue

@@ -661,7 +661,9 @@ export default {
       formHeight: '',
       formHeight1: '',
       statusDialogVisible: false,
-      bug: {},
+      bug: {
+        id: analysisBizId_id(this.$route.query.bizId_id)
+      },
       bugModel: {},
       bugRemark: '',
       describeEditorVisible: false,
@@ -955,7 +957,8 @@ export default {
       a.click()
     },
     getCommentList() {
-      getCommentList({ type: 2, joinId: this.id }).then(res => {
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      getCommentList({ type: 2, joinId: bizId_id }).then(res => {
         this.comments = res.data
         this.commentContent = ''
       })
@@ -965,7 +968,8 @@ export default {
         this.$message.warning('评论不能为空')
         return
       }
-      addComment({ commentInfo: { joinId: this.id, type: 2, content: this.commentContent }, user: { ename: this.userInformation }}).then(res => {
+      const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
+      addComment({ commentInfo: { joinId: bizId_id, type: 2, content: this.commentContent }, user: { ename: this.userInformation }}).then(res => {
         if (res.code === 200) {
           this.getCommentList()
         }