fix(接口管理): 环境组件下拉时进行刷新数据&修复选择框样式问题
This commit is contained in:
parent
6f3b7cb332
commit
cc3dd43dde
|
@ -584,9 +584,6 @@
|
||||||
color: rgb(var(--primary-7)) !important;
|
color: rgb(var(--primary-7)) !important;
|
||||||
background-color: rgb(var(--primary-1)) !important;
|
background-color: rgb(var(--primary-1)) !important;
|
||||||
}
|
}
|
||||||
.arco-select-view-value {
|
|
||||||
@apply !block;
|
|
||||||
}
|
|
||||||
.arco-select-view-suffix {
|
.arco-select-view-suffix {
|
||||||
@apply !pl-0;
|
@apply !pl-0;
|
||||||
}
|
}
|
||||||
|
@ -922,7 +919,6 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: var(--color-text-brand);
|
background: var(--color-text-brand);
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-button {
|
.filter-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<template #label="{ data }">
|
<template #label="{ data }">
|
||||||
<slot name="label" :data="{ ...data, [props.labelKey]: getInputLabel(data) }">
|
<slot name="label" :data="{ ...data, [props.labelKey]: getInputLabel(data) }">
|
||||||
<a-tooltip :content="getInputLabelTooltip(data)" position="top" :mouse-enter-delay="500" mini>
|
<a-tooltip :content="getInputLabelTooltip(data)" position="top" :mouse-enter-delay="500" mini>
|
||||||
<div class="one-line-text inline translate-y-[15%]">
|
<div class="one-line-text inline">
|
||||||
{{ getInputLabel(data) }}
|
{{ getInputLabel(data) }}
|
||||||
</div>
|
</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
:loading="envLoading"
|
:loading="envLoading"
|
||||||
allow-search
|
allow-search
|
||||||
@change="initEnvironment"
|
@change="initEnvironment"
|
||||||
|
@popup-visible-change="popupVisibleChange"
|
||||||
>
|
>
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<div class="flex cursor-pointer p-[8px]" @click.stop="goEnv">
|
<div class="flex cursor-pointer p-[8px]" @click.stop="goEnv">
|
||||||
|
@ -69,14 +70,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function popupVisibleChange(visible: boolean) {
|
||||||
|
if (visible) {
|
||||||
|
await initEnvList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function goEnv() {
|
function goEnv() {
|
||||||
openNewPage(ProjectManagementRouteEnum.PROJECT_MANAGEMENT_ENVIRONMENT_MANAGEMENT);
|
openNewPage(ProjectManagementRouteEnum.PROJECT_MANAGEMENT_ENVIRONMENT_MANAGEMENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
onBeforeMount(() => {
|
|
||||||
initEnvList();
|
|
||||||
});
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
currentEnvConfig,
|
currentEnvConfig,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue