Commit 63938118 authored by mengzixuan's avatar mengzixuan

feat(确认试验方案): 图片回显

parent 1fe73e5b
......@@ -196,7 +196,7 @@
{{ keyPoint.requirements }}
</td>
<td rowspan="1">
{{ '' }}
{{ keyPoint.status }}
</td>
</tr>
</template>
......@@ -280,7 +280,7 @@ export default {
},
taskDetail: {},
ruleForm: {
enterpriseLeader: '',
// enterpriseLeader: '',
inspectionLeader: '',
result: []
},
......@@ -316,24 +316,26 @@ export default {
goToProcessedReview() {
// this.ruleForm.taskId = '1771093631118106626'
const formData = {
// imagesUrl: [
// this.ruleForm.enterpriseLeader,
// this.ruleForm.inspectionLeader
// ],
imagesUrl: [{}],
imagesUrl: [
// this.ruleForm.enterpriseLeader,
this.ruleForm.inspectionLeader
],
// imagesUrl: [{}],
taskId: this.$route.query.id
}
console.log('formData', formData)
taskImageSubmit(formData).then(res => {
if (res.code === 200) {
this.$modal.msgSuccess('确认提交成功')
this.$router.push({
path: '/processing/unprocessed-review'
})
} else {
this.$modal.msgError(res.msg)
}
})
if (formData.imagesUrl.length > 0) {
taskImageSubmit(formData).then(res => {
if (res.code === 200) {
this.$modal.msgSuccess('确认提交成功')
this.$router.push({
path: '/processing/unprocessed-review'
})
} else {
this.$modal.msgError(res.msg)
}
})
}
},
/** 获取任务详情 */
getTest() {
......@@ -352,6 +354,7 @@ export default {
testDetail({ taskId: this.$route.query.id }).then(res => {
this.taskDetail = res.data
this.tableData = res.data.modelTestTaskViewResponseList
this.ruleForm.inspectionLeader = res.data.imgUrl
this.loading = false
this.openAll()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment