Browse Source

优化缺陷状态

qinzhipeng_v 5 years ago
parent
commit
dee923a4f3
1 changed files with 7 additions and 5 deletions
  1. 7 5
      src/views/projectManage/bugList/details/statusChange.vue

+ 7 - 5
src/views/projectManage/bugList/details/statusChange.vue

@@ -101,11 +101,13 @@ export default {
     statusDialogConfirm() { // 点击确定 验证 修改
       this.$refs.statusDialogForm.validate((valid) => {
         if (valid) {
-          this.bugData.status = this.status
-          this.bugData.reasonOrDesc = this.statusDialogForm.reasonOrDesc
-          this.bugData.repairResult = this.statusDialogForm.repairResult
-          this.bugData.bugReason = this.statusDialogForm.bugReason
-          const objData = { bugBaseInfo: this.bugData, user: this.userData }
+          const data = {}
+          data.id = this.bugData.id
+          data.status = this.status
+          data.reasonOrDesc = this.statusDialogForm.reasonOrDesc
+          data.repairResult = this.statusDialogForm.repairResult
+          data.bugReason = this.statusDialogForm.bugReason
+          const objData = { bugBaseInfo: data, user: this.userData }
           bugUpdate(objData).then(res => {
             if (res.code === 200) {
               this.statusDialogVisible = false