소스 검색

缺陷状态fix bug

wangziqian 5 년 전
부모
커밋
d8b622a477
2개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      src/views/projectManage/bugList/details/bugTableDialog.vue
  2. 6 4
      src/views/projectManage/bugList/details/statusChange.vue

+ 1 - 1
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -41,7 +41,7 @@
       />
     </div>
 
-    <el-drawer :visible.sync="drawerShow" :modal="false" :with-header="false" size="50%" class="bug_manage_drawer" @click.stop>
+    <el-drawer v-if="drawerShow" :visible.sync="drawerShow" :modal="false" :with-header="false" size="50%" class="bug_manage_drawer" @click.stop>
       <div @click.stop>
         <bug-details
           :id="bugQuery.id+''"

+ 6 - 4
src/views/projectManage/bugList/details/statusChange.vue

@@ -99,10 +99,12 @@ export default {
     },
     statusObj: {
       handler(newV) {
-        this.bugEnumList = newV.bugEnumList || []// status
-        this.repairResultEnumList = newV.repairResultEnumList || []// 修复结果
-        this.bugReasonEnumList = newV.bugReasonEnumList || []// 缺陷原因
-        this.bugStatusList(this.status)
+        if (newV) {
+          this.bugEnumList = newV.bugEnumList || []// status
+          this.repairResultEnumList = newV.repairResultEnumList || []// 修复结果
+          this.bugReasonEnumList = newV.bugReasonEnumList || []// 缺陷原因
+          this.bugStatusList(this.status)
+        }
       },
       deep: true,
       immediate: true