forked from TencentBlueKing/bk-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request TencentBlueKing#11463 from vhwweng/issue_11444
feat:环境-节点管理列表增加执行信息并支持排序 TencentBlueKing#11444
- Loading branch information
Showing
10 changed files
with
772 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/frontend/devops-environment/src/components/empty-table-status.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<bk-exception | ||
:type="type" | ||
scene="part" | ||
> | ||
<div style="font-size: 14px;">{{ typeMap[type] }}</div> | ||
<template v-if="type === 'search-empty'"> | ||
<div class="empty-tips"> | ||
{{ $t('environment.可以尝试 调整关键词 或') }} | ||
<button | ||
class="bk-text-button" | ||
@click="handleClear" | ||
> | ||
{{ $t('environment.清空筛选条件') }} | ||
</button> | ||
</div> | ||
</template> | ||
</bk-exception> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'EmptyTableStatus', | ||
props: { | ||
type: { | ||
type: String, | ||
default: 'empty' | ||
} | ||
}, | ||
data () { | ||
return { | ||
typeMap: { | ||
empty: this.$t('environment.暂无数据'), | ||
'search-empty': this.$t('environment.搜索结果为空') | ||
} | ||
} | ||
}, | ||
methods: { | ||
handleClear () { | ||
this.$emit('clear') | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
::v-deep .bk-exception-img.part-img { | ||
margin-top: 15%; | ||
} | ||
.empty-tips { | ||
margin-top: 8px; | ||
font-size: 12px; | ||
color: #979BA5; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.