@@ -78,16 +83,16 @@
{{ $t('cmdb.ciType.addCITypeInGroup') }}
-
+
{{ $t('cmdb.ciType.editGroup') }}
-
+
{{ $t('cmdb.ciType.deleteGroup') }}
-
+
@@ -130,14 +135,15 @@
{{ ci.alias || ci.name }}
- handlePerm(e, ci)" />
- handleEdit(e, ci)" />
+ handlePerm(e, ci)"/>
+ handleEdit(e, ci)"/>
handleDownloadCiType(e, ci)">
-
+ @click="(e) => handleDownloadCiType(e, ci)"
+ >
+
- handleDelete(e, ci)">
+ handleDelete(e, ci)">
@@ -242,6 +248,11 @@
:filter-method="filterOption"
v-decorator="['unique_key', { rules: [{ required: true, message: $t('cmdb.ciType.uniqueKeySelect') }] }]"
:placeholder="$t('placeholder2')"
+ @visible-change="
+ () => {
+ filterInput = ''
+ }
+ "
>
- {{ $t('create') }}
+ {{
+ $t('create')
+ }}
@@ -135,7 +131,7 @@
{{ col.title }}
-
+
-
-
(
-
- {that.$t('confirmDelete2', { name: Object.values(firstCIObj)[0] })}
-
- ),
+ content: (h) => {that.$t('confirmDelete2', { name: Object.values(firstCIObj)[0] })}
,
onOk() {
deleteCIRelationView(_tempTreeParent[0], _tempTree[0], { ancestor_ids }).then((res) => {
that.$message.success(that.$t('deleteSuccess'))
@@ -1048,7 +1028,7 @@ export default {
title: that.$t('warning'),
content: (h) => (
- {that.$t('cmdb.serviceTreedeleteRelationConfirm', { name: currentShowType.alias || currentShowType.name })}
+ {that.$t('cmdb.serviceTree.deleteRelationConfirm', { name: currentShowType.alias || currentShowType.name })}
),
onOk() {
diff --git a/cmdb-ui/src/modules/cmdb/views/tree_views/index.vue b/cmdb-ui/src/modules/cmdb/views/tree_views/index.vue
index 9be9e28..b11650c 100644
--- a/cmdb-ui/src/modules/cmdb/views/tree_views/index.vue
+++ b/cmdb-ui/src/modules/cmdb/views/tree_views/index.vue
@@ -182,7 +182,7 @@
{{ col.title }}
-
+
-
-
{
successNum += 1
})
- .catch(() => {
+ .catch((error) => {
+ errorMsg = errorMsg + '\n' + `${this.selectedRowKeys[i]}:${error.response?.data?.message ?? ''}`
+ this.$notification.warning({
+ key,
+ message: this.$t('warning'),
+ description: errorMsg,
+ duration: 0,
+ style: { whiteSpace: 'break-spaces' },
+ })
errorNum += 1
})
.finally(() => {