|
|
@ -298,7 +298,6 @@ export default { |
|
|
|
}) |
|
|
|
if (this.$route.query.id) { |
|
|
|
const ApprovalComment = await getV2Yh(this.$route.query.id) |
|
|
|
console.log(ApprovalComment) |
|
|
|
this.form.time[0] = ApprovalComment.data.startDate |
|
|
|
this.form.time[1] = ApprovalComment.data.endDate |
|
|
|
this.form.describe = ApprovalComment.data.content |
|
|
@ -382,11 +381,17 @@ export default { |
|
|
|
handleSave(commit) { |
|
|
|
const data = { |
|
|
|
name: this.form.checkingName, |
|
|
|
dikeCode: this.form.dikeCode, |
|
|
|
dikeType: this.form.dikeType, |
|
|
|
dikeName: this.form.dikeName, |
|
|
|
status: this.form.status, |
|
|
|
type: this.form.type, |
|
|
|
category: this.form.category, |
|
|
|
checkingId: this.form.checkingId, |
|
|
|
content: this.form.describe, |
|
|
|
dutyHolderId: this.form.userId, |
|
|
|
dutyHolderName: this.form.userName, |
|
|
|
issueLevel: this.form.problemLevel, |
|
|
|
problemLevel: this.form.problemLevel, |
|
|
|
problemId: this.$route.query.defectId, |
|
|
|
recordId: this.$route.query.recordId, |
|
|
|
doc: { |
|
|
@ -396,7 +401,6 @@ export default { |
|
|
|
startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '', |
|
|
|
endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '', |
|
|
|
} |
|
|
|
console.log(data) |
|
|
|
if (this.$route.query.id) { |
|
|
|
data.id = this.$route.query.id |
|
|
|
} |
|
|
|