فهرست منبع

优化缺陷创建完成刷新列表

qinzhipeng_v 5 سال پیش
والد
کامیت
6520847068

+ 1 - 1
src/views/projectManage/bugList/bugindex.vue

@@ -178,7 +178,7 @@
         </el-col>
       </el-row>
     </el-main>
-    <createdBug v-if="modalShow" ref="createdBug" />
+    <createdBug v-if="modalShow" ref="createdBug" :get-bug-list="getBugList" />
     <el-drawer
       :visible.sync="drawerShow"
       :modal="false"

+ 1 - 1
src/views/projectManage/bugList/css/index.css

@@ -58,7 +58,7 @@
 
 .table_v .div_priority {
   color: #ffffff;
-  width:fit-content;
+  width: 35px;
   padding: 0 12px;
   border-radius: 4px;
   margin: auto;

+ 9 - 3
src/views/projectManage/bugList/file/createdBug.vue

@@ -177,6 +177,12 @@ import { settingGetTypeMap } from '@/api/taskIndex' // 所属模块
 import '@/views/projectManage/bugList/css/index.css'
 export default {
   name: 'Createdbug',
+  props: {
+    getBugList: {
+      type: Function,
+      default: null
+    }
+  },
   data() {
     return {
       dd: `P0:阻塞进程的bug,如新功能未实现、app启动失败、如接单crash、开单crash 
@@ -247,7 +253,6 @@ export default {
       this.modalShow = true
       if (e === 1) {
         this.titleName = '新建缺陷'
-        console.log(ele)
         if (ele !== undefined) {
           this.$set(this.formInline, 'taskId', ele.id)
           this.$set(this.formInline, 'cliType', [ele.bizId, ele.type, ele.clientType])
@@ -264,7 +269,6 @@ export default {
       this.editorRemark.create()
     },
     getcurrentHandler(e) {
-      console.log(e)
       this.$set(this.formInline, 'currentHandler', e)
     },
     getClient(e) { // 获取版本号
@@ -276,7 +280,6 @@ export default {
       this.formInline = {}
       this.editorRemark.txt.clear()
       this.modalShow = false
-      window.location.reload(true)
     },
     // 上传成功回调
     handleChange(response, file, fileList) {
@@ -307,6 +310,9 @@ export default {
             this.bugListSelect()
             this.modalShow = false
             this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
+            if (this.getBugList) {
+              this.getBugList()
+            }
           })
         }
       })