Compare commits

..

1 Commits

Author SHA1 Message Date
w940853815
b11f99345f feat: Add permission check for reading account secrets based on system settings 2025-11-26 15:52:05 +08:00
2 changed files with 48 additions and 50 deletions

View File

@@ -146,7 +146,7 @@ export default {
}) })
}, },
showSecretDialog() { showSecretDialog() {
return this.$axios.get(this.url, { disableFlashErrorMsg: true }).then((res) => { return this.$axios.get(this.url).then((res) => {
this.secretInfo = res this.secretInfo = res
this.sshKeyFingerprint = res?.spec_info?.ssh_key_fingerprint || '-' this.sshKeyFingerprint = res?.spec_info?.ssh_key_fingerprint || '-'
this.showSecret = true this.showSecret = true
@@ -167,54 +167,54 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.item-textarea ::v-deep .el-textarea__inner { .item-textarea ::v-deep .el-textarea__inner {
height: 110px; height: 110px;
}
.el-form-item {
border-bottom: 1px solid #EBEEF5;
padding: 5px 0;
margin-bottom: 0;
&:last-child {
border-bottom: none;
} }
.el-form-item { ::v-deep .el-form-item__label {
border-bottom: 1px solid #EBEEF5; display: flex;
padding: 5px 0; align-items: center;
margin-bottom: 0; justify-content: flex-start;
padding-right: 20px;
&:last-child { line-height: 30px;
border-bottom: none; word-break: keep-all;
} overflow-wrap: break-word;
white-space: normal;
::v-deep .el-form-item__label {
display: flex;
align-items: center;
justify-content: flex-start;
padding-right: 20px;
line-height: 30px;
word-break: keep-all;
overflow-wrap: break-word;
white-space: normal;
}
::v-deep .el-form-item__content {
line-height: 30px;
pre {
margin: 0;
}
}
} }
ul { ::v-deep .el-form-item__content {
margin: 0; line-height: 30px;
}
li { pre {
display: block; margin: 0;
font-size: 13px;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.title {
color: #303133;
font-weight: 500;
} }
} }
}
ul {
margin: 0;
}
li {
display: block;
font-size: 13px;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.title {
color: #303133;
font-weight: 500;
}
}
</style> </style>

View File

@@ -243,12 +243,10 @@ export default {
delete routeFilter.search delete routeFilter.search
} }
const asFilterTags = _.cloneDeep(this.filterTags) const asFilterTags = _.cloneDeep(this.filterTags)
setTimeout(() => { this.filterTags = {
this.filterTags = { ...asFilterTags,
...asFilterTags, ...routeFilter
...routeFilter }
}
}, 100)
}, },
getValueLabel(key, value) { getValueLabel(key, value) {
for (const field of this.options) { for (const field of this.options) {