fix(系统设置): 选择项目筛选后再删除环境,列表筛选失效
--bug=1010596 --user=李玉号 【系统设置】环境管理,选择项目筛选后,删除一个环境,筛选失效了 https://www.tapd.cn/55049933/s/1109969
This commit is contained in:
parent
3710188d32
commit
ba0ca5a7dc
|
@ -274,10 +274,10 @@ export default {
|
||||||
value: project.id,
|
value: project.id,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.getEnvironments();
|
this.getEnvironments(this.condition.projectIds);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getEnvironments();
|
this.getEnvironments(this.condition.projectIds);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getEnvironments(projectIds) {
|
getEnvironments(projectIds) {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-tabs class="system-setting" v-model="activeName">
|
<el-tabs class="system-setting" v-model="activeName" @tab-click="handleClick">
|
||||||
|
|
||||||
<el-tab-pane :label="$t('api_test.environment.environment_list')" name="list">
|
<el-tab-pane :label="$t('api_test.environment.environment_list')" name="list">
|
||||||
<environment-list v-if="activeName === 'list'"/>
|
<environment-list ref="environmentList"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('workspace.env_group.name')" name="group">
|
<el-tab-pane :label="$t('workspace.env_group.name')" name="group" lazy>
|
||||||
<environment-group-list v-if="activeName === 'group'"/>
|
<environment-group-list ref="environmentGroupList"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -15,6 +14,7 @@
|
||||||
<script>
|
<script>
|
||||||
import EnvironmentList from "@/business/components/settings/workspace/environment/EnvironmentList";
|
import EnvironmentList from "@/business/components/settings/workspace/environment/EnvironmentList";
|
||||||
import EnvironmentGroupList from "@/business/components/settings/workspace/environment/EnvironmentGroupList";
|
import EnvironmentGroupList from "@/business/components/settings/workspace/environment/EnvironmentGroupList";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "EnvironmentManage",
|
name: "EnvironmentManage",
|
||||||
components: {
|
components: {
|
||||||
|
@ -26,6 +26,17 @@ export default {
|
||||||
activeName: 'list',
|
activeName: 'list',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
handleClick({paneName}) {
|
||||||
|
if (paneName === 'list') {
|
||||||
|
this.$refs.environmentList.list();
|
||||||
|
} else if (paneName === 'group') {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.environmentGroupList.init();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue