|
@@ -137,13 +137,12 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
templateId: {
|
|
templateId: {
|
|
handler(newV) {
|
|
handler(newV) {
|
|
- console.log(newV, '更新')
|
|
|
|
if (newV === '新建模版') {
|
|
if (newV === '新建模版') {
|
|
this.releaseType = true
|
|
this.releaseType = true
|
|
} else {
|
|
} else {
|
|
this.releaseType = false
|
|
this.releaseType = false
|
|
if (newV.id) {
|
|
if (newV.id) {
|
|
- console.log(newV, '有数据')
|
|
|
|
|
|
+ this.tpltId = newV.moduleId
|
|
this.reportdelivertestGetReportById(newV.id)
|
|
this.reportdelivertestGetReportById(newV.id)
|
|
} else {
|
|
} else {
|
|
console.log(newV, 'tmepId')
|
|
console.log(newV, 'tmepId')
|
|
@@ -156,7 +155,6 @@ export default {
|
|
},
|
|
},
|
|
taskIds: {
|
|
taskIds: {
|
|
handler(newV) {
|
|
handler(newV) {
|
|
- console.log(newV, ' taskids')
|
|
|
|
if (newV) {
|
|
if (newV) {
|
|
this.taskId = newV
|
|
this.taskId = newV
|
|
this.reportdelivertestInitReportRelease(newV)
|
|
this.reportdelivertestInitReportRelease(newV)
|
|
@@ -173,6 +171,7 @@ export default {
|
|
const res = await reportdelivertestGetReportById(val)
|
|
const res = await reportdelivertestGetReportById(val)
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
const from = res.data
|
|
const from = res.data
|
|
|
|
+ this.from.id = from.id
|
|
this.$set(this.from, 'reportName', from.reportName) // 报告名称
|
|
this.$set(this.from, 'reportName', from.reportName) // 报告名称
|
|
this.$set(this.fromCreateData, 'content', from.content) // 报告名称
|
|
this.$set(this.fromCreateData, 'content', from.content) // 报告名称
|
|
this.$set(this.from, 'deliverTestPlanTime', from.deliverTestPlanTime) // 计划提测时间
|
|
this.$set(this.from, 'deliverTestPlanTime', from.deliverTestPlanTime) // 计划提测时间
|
|
@@ -215,20 +214,27 @@ export default {
|
|
this.$refs.fromCreateData.validate((valid) => {
|
|
this.$refs.fromCreateData.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (val) {
|
|
if (val) {
|
|
- const data = this.fromCreateData
|
|
|
|
- data.deliverTestPlanTime = this.from.deliverTestPlanTime
|
|
|
|
- data.delayReason = this.from.delayReason
|
|
|
|
- data.deliverTestActualTime = this.from.deliverTestActualTime
|
|
|
|
- data.devActualTimeStart = this.from.devActualTimeStart
|
|
|
|
-
|
|
|
|
- data.followVersion = this.from.followVersion
|
|
|
|
- data.involveAppString = this.from.involveAppString
|
|
|
|
-
|
|
|
|
- data.isCodeReview = this.from.isCodeReview
|
|
|
|
- data.codeReviewExecutor = this.from.codeReviewExecutor
|
|
|
|
|
|
+ const data = {}
|
|
|
|
+ data.id = this.from.id
|
|
|
|
+ data.reportName = this.from.reportName
|
|
|
|
+ data.content = this.fromCreateData.content
|
|
data.taskIds = this.taskId
|
|
data.taskIds = this.taskId
|
|
data.bizId = localStorage.getItem('bizId')
|
|
data.bizId = localStorage.getItem('bizId')
|
|
data.moduleId = this.tpltId
|
|
data.moduleId = this.tpltId
|
|
|
|
+ data.deliverTestPlanTime = this.from.deliverTestPlanTime // 计划提测时间
|
|
|
|
+ data.deliverTestActualTime = this.from.deliverTestActualTime // 实际提测时间
|
|
|
|
+ if (this.from.devPlanTimeStart) {
|
|
|
|
+ data.devPlanTimeStart = this.from.devPlanTimeStart[0] // 计划开发开始时间
|
|
|
|
+ data.devPlanTimeEnd = this.from.devPlanTimeStart[1] // 计划开发结束时间
|
|
|
|
+ }
|
|
|
|
+ if (this.from.devActualTimeStart) {
|
|
|
|
+ data.devActualTimeStart = this.from.devActualTimeStart[0] // 实际开发开始时间
|
|
|
|
+ data.devActualTimeEnd = this.from.devActualTimeStart[1] // 实际开发结束时间
|
|
|
|
+ }
|
|
|
|
+ data.involveAppString = this.from.involveAppString // 跟版客户端
|
|
|
|
+ data.followVersion = this.from.followVersion // 是否跟版1 跟版 2 不跟版
|
|
|
|
+ data.isCodeReview = this.from.isCodeReview // 是否code review 0:否 1:是
|
|
|
|
+ data.codeReviewExecutor = this.from.codeReviewExecutor ? this.from.codeReviewExecutor.toString() : '' // 执行人
|
|
reportdelivertestUpdate(data).then(res => {
|
|
reportdelivertestUpdate(data).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
this.$message({ type: 'success', message: '更新成功' })
|