refactor(项目管理): 环境管理环境组host查看
This commit is contained in:
parent
6f26800fd8
commit
1e6e480259
|
@ -338,16 +338,17 @@
|
|||
<span v-else></span>
|
||||
</template>
|
||||
<template #host="{ record }">
|
||||
<!-- TODO: 等接口 -->
|
||||
<!-- <span v-if="record.host.length === 1" class="text-[var(--color-text-4)]">{{ record.host }}</span>
|
||||
<span v-if="!record.domain || record.domain.length === 0"></span>
|
||||
<span v-else-if="Array.isArray(record.domain) && record.domain.length === 1" class="text-[var(--color-text-4)]">{{
|
||||
record.domain
|
||||
}}</span>
|
||||
<span
|
||||
v-if="record.host.length > 1"
|
||||
v-if="Array.isArray(record.domain) && record.domain.length > 1"
|
||||
class="cursor-pointer text-[var(--color-text-4)]"
|
||||
@click="showHostModal(record)"
|
||||
>
|
||||
{{ t('common.more') }}
|
||||
</span> -->
|
||||
<span v-if="record.host">{{ record.host }}</span>
|
||||
</span>
|
||||
</template>
|
||||
<template #operation="{ record, rowIndex, columnConfig }">
|
||||
<div class="flex flex-row items-center" :class="{ 'justify-end': columnConfig.align === 'right' }">
|
||||
|
@ -442,7 +443,7 @@
|
|||
:max-length="1000"
|
||||
></a-textarea>
|
||||
</a-modal>
|
||||
<a-modal v-model:visible="hostVisible" :title="t('apiTestDebug.host')" @close="hostModalClose">
|
||||
<a-modal v-model:visible="hostVisible" :title="t('project.environmental.host')" @close="hostModalClose">
|
||||
<a-table :columns="hostColumn" :data="hostData"> </a-table>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
@ -728,7 +729,7 @@
|
|||
|
||||
const showHostModal = (record: Record<string, any>) => {
|
||||
hostVisible.value = true;
|
||||
hostData.value = record.hostList || [];
|
||||
hostData.value = record.domain || [];
|
||||
};
|
||||
|
||||
const hostModalClose = () => {
|
||||
|
@ -781,7 +782,7 @@
|
|||
}
|
||||
return item;
|
||||
});
|
||||
if (!filterKeyValParams(arr, props.defaultParamItem).lastDataIsDefault) {
|
||||
if (!filterKeyValParams(arr, props.defaultParamItem).lastDataIsDefault && !props.isTreeTable) {
|
||||
addTableLine(arr.length - 1);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<template #first>
|
||||
<div class="p-[24px]">
|
||||
<a-radio-group v-model:model-value="showType" type="button" class="file-show-type" @change="changeShowType">
|
||||
<a-radio value="PROJECT">{{ t('project.environmental.project') }}</a-radio>
|
||||
<a-radio value="PROJECT_GROUP">{{ t('project.environmental.projectGroup') }}</a-radio>
|
||||
<a-radio value="PROJECT">{{ t('project.environmental.env') }}</a-radio>
|
||||
<a-radio value="PROJECT_GROUP">{{ t('project.environmental.envGroup') }}</a-radio>
|
||||
</a-radio-group>
|
||||
<template v-if="showType === 'PROJECT'">
|
||||
<a-input-search
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export default {
|
||||
'project.environmental.title': 'Environmental management',
|
||||
'project.environmental.project': 'Project',
|
||||
'project.environmental.projectGroup': 'Project Group',
|
||||
'project.environmental.envGroup': 'Environmental group',
|
||||
'project.environmental.searchHolder': 'Please enter the environment name',
|
||||
'project.environmental.allParam': 'All Parameters',
|
||||
'project.environmental.env': 'Environment',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export default {
|
||||
'project.environmental.title': '环境管理',
|
||||
'project.environmental.project': '项目',
|
||||
'project.environmental.projectGroup': '项目组',
|
||||
'project.environmental.envGroup': '环境组',
|
||||
'project.environmental.searchHolder': '请输入环境名称',
|
||||
'project.environmental.allParam': '全局参数',
|
||||
'project.environmental.env': '环境',
|
||||
|
|
Loading…
Reference in New Issue