Skip to content

Commit

Permalink
fix: 4.15 体验问题
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 6225
  • Loading branch information
leafage-collb committed Apr 18, 2024
1 parent ccff5ba commit dc61757
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 41 deletions.
3 changes: 3 additions & 0 deletions webfe/package_vue/src/components/paas-module-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
<div slot="footer">
<bk-button
theme="primary"
:loading="delAppDialog.isLoading"
:disabled="!formRemoveValidated"
@click="submitRemoveModule"
>
Expand Down Expand Up @@ -260,6 +261,7 @@ export default defineComponent({
};
const submitRemoveModule = async () => {
delAppDialog.isLoading = true;
try {
await store.dispatch('module/deleteModule', {
appCode: props.appCode,
Expand Down Expand Up @@ -289,6 +291,7 @@ export default defineComponent({
});
} finally {
delAppDialog.visiable = false;
delAppDialog.isLoading = false;
}
};
Expand Down
6 changes: 3 additions & 3 deletions webfe/package_vue/src/language/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -2578,11 +2578,11 @@ export default {
预览: 'Preview',
禁用成功: 'Disabled successfully',
启用成功: 'Enabled successfully',
全部应用: 'All Applications',
我创建的: 'Created by Me',
全部应用: 'All APP',
我创建的: 'My APP',
模块数量: 'Number of Modules',
正常: 'Normal',
访问预发布环境: 'Access Pre-release Environment',
访问生产环境: 'Access Production Environment',
旧版应用迁移: 'Legacy Application Migration',
旧版应用迁移: 'Legacy APP Migration',
};
3 changes: 3 additions & 0 deletions webfe/package_vue/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ const router = new Router({
path: '/developer-center/apps/:id/cloud-module/create',
component: appCreateCloudModule,
name: 'appCreateCloudModule',
meta: {
isDefaultBackgroundColor: true,
},
},
{
path: '/developer-center/apps/migration/',
Expand Down
114 changes: 76 additions & 38 deletions webfe/package_vue/src/views/dev-center/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,27 +144,17 @@
</div>
</div>
<!-- 筛选 -->
<section class="app-filter-module">
<section :class="['app-filter-module', { 'en': isEnglishEnv }]">
<bk-popover
theme="light navigation-message"
ext-cls="app-filter-popover-cls"
:ext-cls="`app-filter-popover-cls ${isEnglishEnv ? 'en' : ''}`"
placement="bottom"
:arrow="false"
offset="-14, 2"
:tippy-options="{ 'hideOnClick': false }"
offset="1, 2"
trigger="click"
>
<div class="filter-view">
<div class="text">{{ $t(curFilterValue) }}</div>
<div
:class="[
'filter-right-icon',
{ active: sortValue.indexOf('-') !== -1 }
]"
v-bk-tooltips="{ content: filterTips }"
@click.stop="handleTtogleOrder"
>
<i :class="['paasng-icon', sortValue.indexOf('-') !== -1 ? 'paasng-shengxu' : 'paasng-jiangxu']" />
</div>
</div>
<template #content>
<ul class="filter-navigation-list">
Expand All @@ -179,8 +169,18 @@
</ul>
</template>
</bk-popover>
<div
:class="[
'filter-right-icon',
{ active: sortValue.indexOf('-') !== -1 }
]"
v-bk-tooltips="{ content: filterTips }"
@click.stop="handleTtogleOrder"
>
<i :class="['paasng-icon', sortValue.indexOf('-') !== -1 ? 'paasng-shengxu' : 'paasng-jiangxu']" />
</div>
</section>
<div class="paas-search">
<div :class="['app-list-search', { 'en': isEnglishEnv }]">
<bk-input
v-model="filterKey"
:clearable="true"
Expand Down Expand Up @@ -265,7 +265,11 @@
</span>
</template>
</bk-table-column>
<bk-table-column prop="language" :label="$t('语言')"></bk-table-column>
<bk-table-column prop="language" :label="$t('语言')">
<template slot-scope="{ row }">
{{ row.language || '--' }}
</template>
</bk-table-column>
<bk-table-column prop="created" :label="$t('创建时间')"></bk-table-column>
<bk-table-column :label="$t('操作')">
<template slot-scope="{ row }">
Expand Down Expand Up @@ -384,7 +388,7 @@
</span>
</template>
</bk-table-column>
<bk-table-column label="" :width="localLanguage === 'en' ? 440 : 260">
<bk-table-column label="" :width="isEnglishEnv ? 440 : 260">
<template slot-scope="{ row }">
<div
v-if="!Object.keys(row.application.deploy_info).length"
Expand Down Expand Up @@ -627,7 +631,7 @@ export default {
isFilterConditionPresent: false,
filterRegion: [],
appExtraData: {},
tableHeaderFilterValue: 'all',
tableHeaderFilterValue: 'normal',
};
},
computed: {
Expand All @@ -646,6 +650,9 @@ export default {
localLanguage() {
return this.$store.state.localLanguage;
},
isEnglishEnv() {
return this.localLanguage === 'en';
},
isShowNotice() {
return this.$store.state.isShowNotice;
},
Expand Down Expand Up @@ -741,7 +748,7 @@ export default {
addModule(appItem) {
this.$router.push({
name: 'appCreateModule',
name: appItem.application.type === 'cloud_native' ? 'appCreateCloudModule' : 'appCreateModule',
params: {
id: appItem.application.code,
},
Expand Down Expand Up @@ -1013,6 +1020,25 @@ export default {
<style lang="scss" scoped>
$customize-disabled-color: #C4C6CC;
.app-list-search {
width: 320px;
}
@media (max-width: 1350px) {
.app-list-search {
width: 300px;
}
.app-list-search.en {
width: 260px;
}
}
@media (max-width: 1300px) {
.app-list-search.en {
width: 220px;
}
}
.bk-apps-wrapper {
width: calc(100% - 48px);
}
Expand Down Expand Up @@ -1179,10 +1205,6 @@ export default {
right: 482px;
}
.paas-search {
width: 320px;
}
.choose-box {
position: absolute;
right: -2px;
Expand Down Expand Up @@ -1461,49 +1483,62 @@ export default {
<style lang="scss">
section.app-filter-module {
display: flex;
margin: 3px 16px 0;
width: 117px;
height: 32px;
background: #EAEBF0;
border-radius: 2px;
&.en {
width: 135px;
}
.bk-tooltip {
flex: 1;
white-space: nowrap;
display: block;
}
.tippy-active {
background: #FFFFFF;
border: 1px solid #3A84FF;
border-radius: 2px 0 0 2px;
.filter-view {
width: 100%;
display: flex;
}
}
.text {
position: relative;
padding-left: 8px;
padding: 0 8px;
font-size: 12px;
color: #63656E;
flex: 1;
line-height: 32px;
cursor: pointer;
&::after {
content: "";
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
height: 14px;
width: 1px;
background-color: #DCDEE5;
}
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
&:hover {
background: #DCDEE5;
border-radius: 2px 0 0 2px;
}
}
.filter-right-icon {
position: relative;
cursor: pointer;
width: 30px;
display: flex;
align-items: center;
justify-content: center;
&::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
height: 14px;
width: 1px;
background-color: #DCDEE5;
}
i {
color: #979BA5;
}
Expand All @@ -1530,6 +1565,9 @@ section.app-filter-module {
border-radius: 2px;
height: 104px;
padding: 4px 0;
&.en {
width: 105px;
}
.tippy-tooltip.light-theme {
height: 100%;
transform: translateY(0px) !important;
Expand Down

0 comments on commit dc61757

Please sign in to comment.