Merge pull request #562 from veops/fix_ui_2.4.6

fix(ui): some bugs
This commit is contained in:
Leo Song 2024-06-21 11:49:53 +08:00 committed by GitHub
commit 3401fb6ac3
7 changed files with 18 additions and 9 deletions

View File

@ -59,7 +59,7 @@
"vue-template-compiler": "2.6.11", "vue-template-compiler": "2.6.11",
"vuedraggable": "^2.23.0", "vuedraggable": "^2.23.0",
"vuex": "^3.1.1", "vuex": "^3.1.1",
"vxe-table": "3.6.9", "vxe-table": "3.7.10",
"vxe-table-plugin-export-xlsx": "2.0.0", "vxe-table-plugin-export-xlsx": "2.0.0",
"xe-utils": "3", "xe-utils": "3",
"xlsx": "0.15.0", "xlsx": "0.15.0",

View File

@ -214,10 +214,10 @@ export default {
} }
} }
} }
}
.corporate-tip { .corporate-tip {
margin-top: 20px; margin-top: 20px;
}
} }
} }
</style> </style>

View File

@ -243,6 +243,7 @@ const cmdb_en = {
relationADTip2: 'When an auto-discovered attribute matches an associated model attribute, the two instance models are automatically associated', relationADTip2: 'When an auto-discovered attribute matches an associated model attribute, the two instance models are automatically associated',
relationADTip3: 'If the value of the auto-discovered attribute is a list, multiple relationships are established with the association model', relationADTip3: 'If the value of the auto-discovered attribute is a list, multiple relationships are established with the association model',
deleteRelationAdTip: 'Cannot be deleted again', deleteRelationAdTip: 'Cannot be deleted again',
cronTips: 'The format is the same as crontab, for example: 0 15 * * 1-5',
}, },
components: { components: {
unselectAttributes: 'Unselected', unselectAttributes: 'Unselected',

View File

@ -243,6 +243,7 @@ const cmdb_zh = {
relationADTip2: '当自动发现属性与关联模型属性一致时,两实例模型则自动关联', relationADTip2: '当自动发现属性与关联模型属性一致时,两实例模型则自动关联',
relationADTip3: '如果自动发现的属性值是列表,则会和关联模型建立多个关系', relationADTip3: '如果自动发现的属性值是列表,则会和关联模型建立多个关系',
deleteRelationAdTip: '不可再删除', deleteRelationAdTip: '不可再删除',
cronTips: '格式同crontab, 例如0 15 * * 1-5',
}, },
components: { components: {
unselectAttributes: '未选属性', unselectAttributes: '未选属性',

View File

@ -98,7 +98,7 @@
<a-input <a-input
v-model="cron" v-model="cron"
slot="reference" slot="reference"
:placeholder="$t('cmdb.reconciliation.cronTips')" :placeholder="$t('cmdb.ciType.cronTips')"
/> />
</el-popover> </el-popover>
</a-form-model-item> </a-form-model-item>

View File

@ -339,6 +339,10 @@ export default {
&-text { &-text {
margin-top: 20px; margin-top: 20px;
} }
&-img {
width: 100px;
}
} }
} }

View File

@ -32,8 +32,11 @@
ghost ghost
@click="handleClickAddGroup" @click="handleClickAddGroup"
class="ops-button-ghost" class="ops-button-ghost"
><ops-icon type="veops-increase" />{{ $t('cmdb.ciType.group') }}</a-button v-if="permissions.includes('admin') || permissions.includes('cmdb_admin')"
> >
<ops-icon type="veops-increase" />
{{ $t('cmdb.ciType.group') }}
</a-button>
</div> </div>
<draggable class="topo-left-content" :list="computedTopoGroups" @end="handleChangeGroups" filter=".undraggable"> <draggable class="topo-left-content" :list="computedTopoGroups" @end="handleChangeGroups" filter=".undraggable">
<div v-for="group in computedTopoGroups" :key="group.id || group.name"> <div v-for="group in computedTopoGroups" :key="group.id || group.name">
@ -56,16 +59,16 @@
<a-space> <a-space>
<a-tooltip> <a-tooltip>
<template slot="title">{{ $t('cmdb.topo.addTopoViewInGroup') }}</template> <template slot="title">{{ $t('cmdb.topo.addTopoViewInGroup') }}</template>
<a><ops-icon type="veops-increase" @click="handleCreate(group)"/></a> <a v-if="permissions.includes('admin') || permissions.includes('cmdb_admin')"><ops-icon type="veops-increase" @click="handleCreate(group)"/></a>
</a-tooltip> </a-tooltip>
<template v-if="group.id"> <template v-if="group.id">
<a-tooltip > <a-tooltip >
<template slot="title">{{ $t('cmdb.ciType.editGroup') }}</template> <template slot="title">{{ $t('cmdb.ciType.editGroup') }}</template>
<a><a-icon type="edit" @click="handleEditGroup(group)"/></a> <a v-if="permissions.includes('admin') || permissions.includes('cmdb_admin')"><a-icon type="edit" @click="handleEditGroup(group)"/></a>
</a-tooltip> </a-tooltip>
<a-tooltip> <a-tooltip>
<template slot="title">{{ $t('cmdb.ciType.deleteGroup') }}</template> <template slot="title">{{ $t('cmdb.ciType.deleteGroup') }}</template>
<a :style="{color: 'red'}"><a-icon type="delete" @click="handleDeleteGroup(group)"/></a> <a v-if="permissions.includes('admin') || permissions.includes('cmdb_admin')" :style="{color: 'red'}"><a-icon type="delete" @click="handleDeleteGroup(group)"/></a>
</a-tooltip> </a-tooltip>
</template> </template>
</a-space> </a-space>