|
@ -155,7 +155,7 @@ |
|
|
<template #default="{ node, data }"> |
|
|
<template #default="{ node, data }"> |
|
|
<div class="flex justify-between items-center w-full pr-8"> |
|
|
<div class="flex justify-between items-center w-full pr-8"> |
|
|
<div>{{ data.value }}</div> |
|
|
<div>{{ data.value }}</div> |
|
|
<div v-if="node.isLeaf && data.nodeLink.hasProblem"> |
|
|
<div v-if="node.isLeaf && data.nodeLink.status"> |
|
|
<img |
|
|
<img |
|
|
class="w-16 h-16" |
|
|
class="w-16 h-16" |
|
|
src="@/assets/common/icon-checked.png" |
|
|
src="@/assets/common/icon-checked.png" |
|
@ -173,13 +173,15 @@ |
|
|
@change="$forceUpdate()" |
|
|
@change="$forceUpdate()" |
|
|
:disabled="!canEdit" |
|
|
:disabled="!canEdit" |
|
|
size="small" |
|
|
size="small" |
|
|
v-model="currentItem.hasProblem" |
|
|
v-model="currentItem.status" |
|
|
> |
|
|
> |
|
|
<el-radio label="0">无</el-radio> |
|
|
<el-radio label="0">无</el-radio> |
|
|
<el-radio label="1">有</el-radio> |
|
|
<el-radio label="1">一般隐患</el-radio> |
|
|
|
|
|
<el-radio label="2">较大至重大</el-radio> |
|
|
|
|
|
<el-radio label="3">重大隐患</el-radio> |
|
|
</el-radio-group> |
|
|
</el-radio-group> |
|
|
</div> |
|
|
</div> |
|
|
<template v-if="currentItem.hasProblem === '1'"> |
|
|
<template v-if="currentItem.status && currentItem.status != '0'"> |
|
|
<div> |
|
|
<div> |
|
|
<span class="label">隐患描述:</span> |
|
|
<span class="label">隐患描述:</span> |
|
|
<el-input |
|
|
<el-input |
|
@ -210,11 +212,11 @@ |
|
|
<div class="mt-10 img-list-box"> |
|
|
<div class="mt-10 img-list-box"> |
|
|
<div |
|
|
<div |
|
|
class="img-box" |
|
|
class="img-box" |
|
|
v-for="(item, index) in this.currentItem.problemImages" |
|
|
v-for="(url, index) in this.currentItem.problemImages" |
|
|
:key="item" |
|
|
:key="url" |
|
|
> |
|
|
> |
|
|
<el-image |
|
|
<el-image |
|
|
:src="item" |
|
|
:src="url" |
|
|
class="w-240 h-124" |
|
|
class="w-240 h-124" |
|
|
:preview-src-list="[url]" |
|
|
:preview-src-list="[url]" |
|
|
></el-image> |
|
|
></el-image> |
|
@ -355,9 +357,6 @@ export default { |
|
|
getRecordDetails(id).then((res) => { |
|
|
getRecordDetails(id).then((res) => { |
|
|
this.formData = res.data; |
|
|
this.formData = res.data; |
|
|
this.items = [...res.data.items]; |
|
|
this.items = [...res.data.items]; |
|
|
this.items?.forEach((v) => { |
|
|
|
|
|
v.hasProblem = !!v.problem ? "1" : "0"; |
|
|
|
|
|
}); |
|
|
|
|
|
if (res.data.subPlanStartDate && res.data.subPlanEndDate) { |
|
|
if (res.data.subPlanStartDate && res.data.subPlanEndDate) { |
|
|
this.subPlanDateArr = [ |
|
|
this.subPlanDateArr = [ |
|
|
res.data.subPlanStartDate, |
|
|
res.data.subPlanStartDate, |
|
@ -548,8 +547,7 @@ export default { |
|
|
handleContent: "", |
|
|
handleContent: "", |
|
|
handleImages: [], |
|
|
handleImages: [], |
|
|
problemImages: [], |
|
|
problemImages: [], |
|
|
hasProblem: "", |
|
|
status: "", |
|
|
status: "0", |
|
|
|
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
this.items = items; |
|
|
this.items = items; |
|
@ -721,7 +719,11 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
this.items?.forEach((v) => { |
|
|
this.items?.forEach((v) => { |
|
|
if (v.hasProblem != "1") { |
|
|
if (v.status == "0") { |
|
|
|
|
|
v.problem = ""; |
|
|
|
|
|
v.problemImages = []; |
|
|
|
|
|
} else if (!v.status) { |
|
|
|
|
|
v.status = "0"; |
|
|
v.problem = ""; |
|
|
v.problem = ""; |
|
|
v.problemImages = []; |
|
|
v.problemImages = []; |
|
|
} |
|
|
} |
|
|