|
@@ -206,6 +206,13 @@ export default {
|
|
if (route.query.id) {
|
|
if (route.query.id) {
|
|
new siteInspectionService().queryById(route.query.id).then((data) => {
|
|
new siteInspectionService().queryById(route.query.id).then((data) => {
|
|
siteInspection.value = data;
|
|
siteInspection.value = data;
|
|
|
|
+
|
|
|
|
+ if(siteInspection.value.assessment=='1'){
|
|
|
|
+ siteInspection.value.assessmentName="正常";
|
|
|
|
+ }else{
|
|
|
|
+ siteInspection.value.assessmentName="异常";
|
|
|
|
+ }
|
|
|
|
+
|
|
//附件处理
|
|
//附件处理
|
|
siteInspection.value.enclosure.split("|").forEach((item) => {
|
|
siteInspection.value.enclosure.split("|").forEach((item) => {
|
|
if (item.trim().length > 0) {
|
|
if (item.trim().length > 0) {
|
|
@@ -213,7 +220,7 @@ export default {
|
|
name: decodeURIComponent(
|
|
name: decodeURIComponent(
|
|
item.substring(item.lastIndexOf("/") + 1)
|
|
item.substring(item.lastIndexOf("/") + 1)
|
|
),
|
|
),
|
|
- url: $base + item.replace('程序附件//','程序附件/'),
|
|
|
|
|
|
+ url: $base +"/"+ item.replace('程序附件//','程序附件/'),
|
|
});
|
|
});
|
|
fileupList.value.push({
|
|
fileupList.value.push({
|
|
name: decodeURIComponent(
|
|
name: decodeURIComponent(
|