diff --git a/web/dashboard/src/business/storage/pv/detail/index.vue b/web/dashboard/src/business/storage/pv/detail/index.vue index 5f1ae66e..590ec637 100644 --- a/web/dashboard/src/business/storage/pv/detail/index.vue +++ b/web/dashboard/src/business/storage/pv/detail/index.vue @@ -87,7 +87,7 @@ {{ this.$t("commons.table.name") }} - {{ item.spec.claimRef.name }} + {{ item.spec.claimRef.name }} {{ this.$t("business.namespace.namespace") }} @@ -184,6 +184,13 @@ export default { const { Base64 } = require("js-base64") return Base64.decode(value) }, + openChaimDetail(name,namespace){ + this.$router.push({ + name: "PersistentVolumeClaimDetail", + params: { name: name ,namespace: namespace }, + query: { yamlShow: false }, + }) + } }, watch: { yamlShow: function (newValue) { diff --git a/web/dashboard/src/business/storage/pv/index.vue b/web/dashboard/src/business/storage/pv/index.vue index b1e08caa..1351ce4f 100644 --- a/web/dashboard/src/business/storage/pv/index.vue +++ b/web/dashboard/src/business/storage/pv/index.vue @@ -58,6 +58,11 @@ {{ row.metadata.creationTimestamp | age }} + + + @@ -198,6 +203,13 @@ export default { query: { yamlShow: false }, }) }, + openChaimDetail(row){ + this.$router.push({ + name: "PersistentVolumeClaimDetail", + params: { name: row.spec.claimRef.name ,namespace: row.spec.claimRef.namespace }, + query: { yamlShow: false }, + }) + } }, created () { this.cluster = this.$route.query.cluster diff --git a/web/dashboard/src/business/storage/pvc/detail/index.vue b/web/dashboard/src/business/storage/pvc/detail/index.vue index 5cb0c52a..da14e1e0 100644 --- a/web/dashboard/src/business/storage/pvc/detail/index.vue +++ b/web/dashboard/src/business/storage/pvc/detail/index.vue @@ -1,5 +1,5 @@