|
|
@ -173,7 +173,7 @@ |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-plus" |
|
|
|
@click="handleAdd(scope.row, 'SA')" |
|
|
|
@click="handleUpdate(scope.row, 'SA')" |
|
|
|
v-hasPermi="[`warn:${auth}:childEdit`]" |
|
|
|
>修改检查/新增问题</el-button |
|
|
|
> |
|
|
@ -726,27 +726,29 @@ export default { |
|
|
|
handleAdd(row, keyType) { |
|
|
|
this.reset(); |
|
|
|
this.keyType = keyType; |
|
|
|
if (this.keyType === "SA") { |
|
|
|
const id = row.id; |
|
|
|
getInspections(id).then((response) => { |
|
|
|
this.form = response.data; |
|
|
|
this.form.projectName = |
|
|
|
this.form.projectName + "[" + this.form.proCode + "]"; |
|
|
|
if (this.form.noticeAttachment) { |
|
|
|
this.fileList1 = JSON.parse(this.form.noticeAttachment); |
|
|
|
} |
|
|
|
if (this.form.checklist) { |
|
|
|
this.fileList2 = JSON.parse(this.form.checklist); |
|
|
|
} |
|
|
|
if (this.form.rectificationReport) { |
|
|
|
this.fileList3 = JSON.parse(this.form.rectificationReport); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (this.keyType === "FA") { |
|
|
|
// if (this.keyType === "SA") { |
|
|
|
// const id = row.id; |
|
|
|
// getInspections(id).then((response) => { |
|
|
|
// this.form = response.data; |
|
|
|
// this.form.projectName = |
|
|
|
// this.form.projectName + "[" + this.form.proCode + "]"; |
|
|
|
// if (this.form.noticeAttachment) { |
|
|
|
// this.fileList1 = JSON.parse(this.form.noticeAttachment); |
|
|
|
// } |
|
|
|
// if (this.form.checklist) { |
|
|
|
// this.fileList2 = JSON.parse(this.form.checklist); |
|
|
|
// } |
|
|
|
// if (this.form.rectificationReport) { |
|
|
|
// this.fileList3 = JSON.parse(this.form.rectificationReport); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } else if (this.keyType === "FA") { |
|
|
|
if (this.keyType === "FA") { |
|
|
|
this.form.projectName = row.projectName + "[" + row.proCode + "]"; |
|
|
|
this.form.proNo = row.proNo; |
|
|
|
this.form.proCode = row.proCode; |
|
|
|
} |
|
|
|
// } |
|
|
|
this.open = true; |
|
|
|
this.title = "添加" + this.memuTitle; |
|
|
|
}, |
|
|
|