|
@@ -663,6 +663,7 @@ export default {
|
|
|
this.taskScheduleEvent = res.data.taskScheduleEvent
|
|
|
this.taskStatus = res.data.taskStatus
|
|
|
this.bugStatus = res.data.bugStatus
|
|
|
+ this.bugStatus.unshift({ code: -1, msg: '全部' })
|
|
|
})
|
|
|
taskGet(this.taskId[1]).then(res => {
|
|
|
this.pauseName = res.data.involveAppString
|
|
@@ -675,21 +676,15 @@ export default {
|
|
|
this.launchTestInfoDOS = res.data.launchTestInfoDOS // 提测
|
|
|
this.dailyTestReports = res.data.dailyTestReports // 测试
|
|
|
this.projectTestReportDOS = res.data.projectTestReportDOS // 准出
|
|
|
- bugList({
|
|
|
- taskId: this.taskId[1],
|
|
|
- pageSize: this.pageSize,
|
|
|
- curIndex: this.curIndex
|
|
|
- }).then(res => {
|
|
|
+ bugList({ taskId: this.taskId[1], pageSize: this.pageSize, curIndex: this.curIndex }).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- if (!res.data) {
|
|
|
+ if (res.data) {
|
|
|
this.bugBaseInfoDOList = res.data
|
|
|
this.total = res.total
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- this.task_form.bugBaseInfoDOList !== null
|
|
|
- ? (this.bugBaseInfoDOList = res.date.bugBaseInfoDOList)
|
|
|
- : (this.bugBaseInfoDOList = []) // bug
|
|
|
+ this.task_form.bugBaseInfoDOList !== null ? (this.bugBaseInfoDOList = res.date.bugBaseInfoDOList) : (this.bugBaseInfoDOList = []) // bug
|
|
|
const param = {
|
|
|
appType: Number(res.data.involveApp),
|
|
|
startTime: res.data.scheduleListResponse.startTime,
|
|
@@ -1004,16 +999,27 @@ export default {
|
|
|
},
|
|
|
bug_list(e) {
|
|
|
// bug查询
|
|
|
- bugList({ status: e, taskId: Number(this.taskId[1]) }).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- if (res.data !== null) {
|
|
|
- this.bugBaseInfoDOList = res.data
|
|
|
- this.total = res.total
|
|
|
- } else {
|
|
|
- this.bugBaseInfoDOList = []
|
|
|
+ if (e === -1) {
|
|
|
+ bugList({ taskId: this.taskId[1], pageSize: this.pageSize, curIndex: this.curIndex }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ if (res.data) {
|
|
|
+ this.bugBaseInfoDOList = res.data
|
|
|
+ this.total = res.total
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ bugList({ status: e, taskId: Number(this.taskId[1]) }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ if (res.data !== null) {
|
|
|
+ this.bugBaseInfoDOList = res.data
|
|
|
+ this.total = res.total
|
|
|
+ } else {
|
|
|
+ this.bugBaseInfoDOList = []
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
comment(e) {
|
|
|
this.content = ''
|