diff --git a/src/frontend/devops-atomstore/src/components/detailInfo.vue b/src/frontend/devops-atomstore/src/components/detailInfo.vue
index 92cdfb2e539..4a62ddb0ee0 100644
--- a/src/frontend/devops-atomstore/src/components/detailInfo.vue
+++ b/src/frontend/devops-atomstore/src/components/detailInfo.vue
@@ -40,7 +40,7 @@
{{ $t('store.适用机器') }} :
- {{ agent | agentFilter }}
+ {{ agent }}
@@ -123,24 +123,9 @@
diff --git a/src/frontend/devops-atomstore/src/components/labelList.vue b/src/frontend/devops-atomstore/src/components/labelList.vue
index 4e4e4db824c..c6ca8e2c63f 100644
--- a/src/frontend/devops-atomstore/src/components/labelList.vue
+++ b/src/frontend/devops-atomstore/src/components/labelList.vue
@@ -1,6 +1,6 @@
- - {{ label | formatter }}
+ - {{ label }}
- --
@@ -8,11 +8,7 @@
diff --git a/src/frontend/devops-atomstore/src/components/manage/detail/image-detail/show.vue b/src/frontend/devops-atomstore/src/components/manage/detail/image-detail/show.vue
index dc83f6bdc00..994078837b5 100644
--- a/src/frontend/devops-atomstore/src/components/manage/detail/image-detail/show.vue
+++ b/src/frontend/devops-atomstore/src/components/manage/detail/image-detail/show.vue
@@ -24,7 +24,7 @@
{{ $t('store.适用机器') }}:
-
+
{{ $t('store.简介') }}:
@@ -83,6 +83,7 @@
diff --git a/src/frontend/devops-atomstore/src/components/transition-tab.vue b/src/frontend/devops-atomstore/src/components/transition-tab.vue
index d7562874ada..5dfb55325a0 100644
--- a/src/frontend/devops-atomstore/src/components/transition-tab.vue
+++ b/src/frontend/devops-atomstore/src/components/transition-tab.vue
@@ -98,13 +98,16 @@
}
/deep/ .bk-tab-header {
background-color: #fff;
- height: 6.4vh;
- line-height: 6.4vh;
- background-image: linear-gradient(transparent 6.3vh,#dcdee5 0);
+ height: 6.4vh !important;
+ line-height: 6.4vh !important;
+ background-image: linear-gradient(transparent 6.3vh !important,#dcdee5 0);
+ .bk-tab-label-wrapper {
+ background-color: #fff;
+ }
.bk-tab-label-wrapper .bk-tab-label-list {
- height: 6.4vh;
+ height: 6.4vh !important;
.bk-tab-label-item {
- line-height: 6.4vh;
+ line-height: 6.4vh !important;
color: #666;
&::after {
height: 3px;
@@ -118,8 +121,9 @@
}
}
.bk-tab-header-setting {
- height: 6.4vh;
- line-height: 6.4vh;
+ background-color: #fff;
+ height: 6.4vh !important;
+ line-height: 6.4vh !important;
}
}
/deep/ .bk-tab-section {
diff --git a/src/frontend/devops-atomstore/src/store/image.js b/src/frontend/devops-atomstore/src/store/image.js
index 0699abe51fd..51e02008f02 100644
--- a/src/frontend/devops-atomstore/src/store/image.js
+++ b/src/frontend/devops-atomstore/src/store/image.js
@@ -265,6 +265,11 @@ export const actions = {
updateImageMemInfo ({ commit }, res) {
commit('updateImageMemInfo', res)
+ },
+
+ // 获取适用机器
+ fetchAgentTypes ({ commit }) {
+ return vue.$ajax.get(`${prefix}/user/market/image/agentType/list`)
}
}
diff --git a/src/frontend/devops-atomstore/src/views/edit_image.vue b/src/frontend/devops-atomstore/src/views/edit_image.vue
index 405410659d5..1b20bb02e7b 100644
--- a/src/frontend/devops-atomstore/src/views/edit_image.vue
+++ b/src/frontend/devops-atomstore/src/views/edit_image.vue
@@ -63,10 +63,14 @@
v-if="needAgentType"
error-display-type="normal"
>
-
+
@@ -266,11 +270,7 @@
classifys: [],
labelList: [],
categoryList: [],
- agentTypes: [
- { name: this.$t('store.Devnet 物理机'), id: 'DOCKER' },
- { name: 'IDC CVM', id: 'IDC' },
- { name: 'DevCloud', id: 'PUBLIC_DEVCLOUD' }
- ],
+ agentTypes: [],
imageList: [],
imageVersionList: [],
isLoading: false,
@@ -333,7 +333,8 @@
'requestImageList',
'requestImageTagList',
'requestTicketList',
- 'requestReleaseImage'
+ 'requestReleaseImage',
+ 'fetchAgentTypes'
]),
changeShowAgentType (option) {
@@ -411,10 +412,12 @@
this.requestImageClassifys(),
this.requestImageLabel(),
this.requestTicketList({ projectCode: res.projectCode }),
- this.requestImageCategorys()]).then(([classifys, labels, ticket, categorys]) => {
+ this.fetchAgentTypes(),
+ this.requestImageCategorys()]).then(([classifys, labels, ticket, agents, categorys]) => {
this.classifys = classifys
this.labelList = labels
this.categoryList = categorys
+ this.agentTypes = agents
this.ticketList = ticket.records || []
const currentCategory = categorys.find((category) => (res.category === category.categoryCode)) || {}
const settings = currentCategory.settings || {}
diff --git a/src/frontend/devops-pipeline/src/mixins/pipeline-operate-mixin.js b/src/frontend/devops-pipeline/src/mixins/pipeline-operate-mixin.js
index 9b361fc8fe0..7514742996e 100755
--- a/src/frontend/devops-pipeline/src/mixins/pipeline-operate-mixin.js
+++ b/src/frontend/devops-pipeline/src/mixins/pipeline-operate-mixin.js
@@ -530,7 +530,6 @@ export default {
data: responses
}
} catch (e) {
-
this.handleError(e, [{
actionId: this.$permissionActionMap.edit,
resourceId: this.$permissionResourceMap.pipeline,