|
@@ -69,7 +69,8 @@ export default {
|
|
|
numList: [],
|
|
|
bugName: [],
|
|
|
statusMap: [],
|
|
|
- statusList: []
|
|
|
+ statusList: [],
|
|
|
+ dailys: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -131,11 +132,12 @@ export default {
|
|
|
})
|
|
|
}, 500)
|
|
|
},
|
|
|
- parentHandleclick(e, task) {
|
|
|
+ parentHandleclick(e, task, id) {
|
|
|
if (e === 1) {
|
|
|
this.ids = task
|
|
|
this.getCreateData(this.fromCreateData)
|
|
|
} else {
|
|
|
+ this.dailys = id
|
|
|
this.getQueryData(this.fromCreateData)
|
|
|
}
|
|
|
},
|
|
@@ -154,8 +156,6 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg)
|
|
|
this.$emit('daily', res.data)
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -168,6 +168,7 @@ export default {
|
|
|
getQueryData(ele) {
|
|
|
this.fromCreateData = ele
|
|
|
this.fromCreateData.testExplain = this.editor.editor.innerHTML
|
|
|
+ this.fromCreateData.id === undefined ? this.fromCreateData.id = this.dailys : ''
|
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
this.objData = { dailyTestReport: this.fromCreateData, user: this.userData }
|
|
|
dailyReportUpdate(this.objData).then(res => {
|