From 2bbfac3363d3d5dfca526de3334dcb807182c124 Mon Sep 17 00:00:00 2001
From: gaoyuanwei <2826352639@qq.com>
Date: Wed, 6 Jul 2022 13:16:13 +0800
Subject: [PATCH] bug
---
.../views/detailsAll/ApplicationDetails.vue | 304 ++++++++----------
.../ApplicationDeploymentAndSecurity.vue | 27 +-
2 files changed, 152 insertions(+), 179 deletions(-)
diff --git a/front/src/views/detailsAll/ApplicationDetails.vue b/front/src/views/detailsAll/ApplicationDetails.vue
index 4da1ccb3..262063d5 100644
--- a/front/src/views/detailsAll/ApplicationDetails.vue
+++ b/front/src/views/detailsAll/ApplicationDetails.vue
@@ -8,191 +8,161 @@
-
+
-
-
-
-
-
+
-
+
+
+
+
+
+
+
-
+
+
-
+
+
-
+
+
-
+
-
+
+
diff --git a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue
index 02ac23fc..135cff66 100644
--- a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue
+++ b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue
@@ -39,11 +39,6 @@ let dataFrom = ref({
},
],
})
-let objUrl = {
- attrType: '访问地址',
- attrValue: '' || '------',
-}
-dataFrom.value.content[0].childrenContent.push(objUrl)
//数据初始化
const props = defineProps({
dataList: { type: Object, default: null },
@@ -62,7 +57,11 @@ if (props.dataList.infoList) {
) {
dataFrom.value.content[1].childrenContent.push(item)
} else if (item.attrType === '访问地址') {
- objUrl.value = item.value
+ let obj = {
+ attrType: '访问地址',
+ attrValue: item.attrValue || '------',
+ }
+ dataFrom.value.content[0].childrenContent.push(obj)
}
})
if (dataFrom.value.content[1].childrenContent.length <= 0) {
@@ -85,11 +84,6 @@ watch(
() => props.dataList,
(val) => {
if (val) {
- let obj = {
- attrType: '访问地址',
- attrValue: props.dataList.link || '------',
- }
- dataFrom.value.content[0].childrenContent.push(obj)
dataFrom.value.content[0].childrenContent = []
dataFrom.value.content[1].childrenContent = []
props.dataList.infoList.map((item) => {
@@ -105,7 +99,11 @@ watch(
) {
dataFrom.value.content[1].childrenContent.push(item)
} else if (item.attrType === '访问地址') {
- objUrl.value = item.value
+ let obj = {
+ attrType: '访问地址',
+ attrValue: item.attrValue || '------',
+ }
+ dataFrom.value.content[0].childrenContent.push(obj)
}
})
if (dataFrom.value.content[1].childrenContent.length <= 0) {
@@ -123,6 +121,11 @@ watch(
dataFrom.value.content[1].childrenContent.push(itemContent)
})
}
+ // let obj = {
+ // attrType: '访问地址',
+ // attrValue: props.dataList.link || '------',
+ // }
+ // dataFrom.value.content[0].childrenContent.push(obj)
}
}
)