qinzhipeng_v@didiglobal.com 4 年之前
父节点
当前提交
51cb9453ce
共有 1 个文件被更改,包括 16 次插入15 次删除
  1. 16 15
      src/views/projectManage/requirement/requirementDetail.vue

+ 16 - 15
src/views/projectManage/requirement/requirementDetail.vue

@@ -619,22 +619,23 @@ export default {
         requirementInfo.referredClientType = requirementInfo.referredClientType.join()
       }
       requirementInfo.status = this.statusValue
-      if (e === 1) {
-        const res = await updateRequirementStatus(requirementInfo)
-        if (res.code === 200) {
-          this.dialogStatusVisible = false
-          this.getRequirementById()
-          this.$refs.timeLine1.taskGetWorkFlow()
-          this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
-        }
-      } else {
-        const res = await updateRequirement(requirementInfo)
-        if (res.code === 200) {
-          this.dialogStatusVisible = false
-          this.getRequirementById()
-          this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
-        }
+      // if (e === 1) {
+      //   const res = await updateRequirementStatus(requirementInfo)
+      //   if (res.code === 200) {
+      //     this.dialogStatusVisible = false
+      //     this.getRequirementById()
+      //     this.$refs.timeLine1.taskGetWorkFlow()
+      //     this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
+      //   }
+      // } else {
+      const res = await updateRequirement(requirementInfo)
+      if (res.code === 200) {
+        this.dialogStatusVisible = false
+        this.getRequirementById()
+        this.$refs.timeLine1.taskGetWorkFlow()
+        this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
       }
+      // }
       this.getRequirementById()
     },
     async getBelongProject() { // 获取所属项目列表