|
@@ -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()
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|