mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 22:17:37 +08:00
version: 2.3.1
This commit is contained in:
@@ -287,7 +287,7 @@ export default {
|
||||
item.description += str
|
||||
} else {
|
||||
const str = ` 【 ${key} : 由 ${oldVal} 改为 ${newVal} 】 `
|
||||
item.description += ` 【 ${key} : 由 ${oldVal} 改为 ${newVal} 】 `
|
||||
item.description += str
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -238,7 +238,7 @@ export default {
|
||||
item.changeDescription += str
|
||||
} else {
|
||||
const str = ` 【 ${key} : 由 ${oldVal} 改为 ${newVal} 】 `
|
||||
item.changeDescription += ` 【 ${key} : 由 ${oldVal} 改为 ${newVal} 】 `
|
||||
item.changeDescription += str
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -286,7 +286,7 @@ export default {
|
||||
item.changeDescription += str
|
||||
} else {
|
||||
const str = ` 【 ${key} : 由 ${oldVal} 改为 ${newVal} 】 `
|
||||
item.changeDescription += ` 【 ${key} : 由 ${oldVal} 改为 ${newVal} 】 `
|
||||
item.changeDescription += str
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -550,7 +550,7 @@ export default {
|
||||
.then(() => {
|
||||
successNum += 1
|
||||
})
|
||||
.catch((err) => {
|
||||
.catch(() => {
|
||||
errorNum += 1
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -584,7 +584,7 @@ export default {
|
||||
.then(() => {
|
||||
successNum += 1
|
||||
})
|
||||
.catch((err) => {
|
||||
.catch(() => {
|
||||
errorNum += 1
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -685,7 +685,7 @@ export default {
|
||||
},
|
||||
onEnd: (params) => {
|
||||
// 由于开启了虚拟滚动,newIndex和oldIndex是虚拟的
|
||||
const { newIndex, oldIndex, from, to } = params
|
||||
const { newIndex, oldIndex } = params
|
||||
// 从tableDragClassName拿到colid
|
||||
const fromColid = this.tableDragClassName[oldIndex]
|
||||
const toColid = this.tableDragClassName[newIndex]
|
||||
|
@@ -31,7 +31,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getDiscovery, deleteDiscovery, downloadADR } from '../../api/discovery'
|
||||
import { getDiscovery, deleteDiscovery } from '../../api/discovery'
|
||||
import DiscoveryCard from './discoveryCard.vue'
|
||||
import EditDrawer from './editDrawer.vue'
|
||||
export default {
|
||||
|
@@ -66,7 +66,7 @@ import ModelRelationTable from './modules/modelRelationTable.vue'
|
||||
import { searchResourceType } from '@/modules/acl/api/resource'
|
||||
import { getCITypeGroupsConfig } from '@/modules/cmdb/api/ciTypeGroup'
|
||||
import { getCITypes } from '@/modules/cmdb/api/CIType'
|
||||
import { createRelation, deleteRelation, getCITypeChildren, getRelationTypes } from '@/modules/cmdb/api/CITypeRelation'
|
||||
import { createRelation, deleteRelation, getRelationTypes } from '@/modules/cmdb/api/CITypeRelation'
|
||||
export default {
|
||||
name: 'Index',
|
||||
components: {
|
||||
|
@@ -594,7 +594,7 @@ export default {
|
||||
|
||||
this.calcColumns()
|
||||
if (refreshType === 'refreshNumber') {
|
||||
const promises = this.treeKeys.map((key, index) => {
|
||||
this.treeKeys.map((key, index) => {
|
||||
statisticsCIRelation({
|
||||
root_ids: key.split('%')[0],
|
||||
level: this.treeKeys.length - index,
|
||||
|
@@ -802,7 +802,6 @@
|
||||
import { mapState } from 'vuex'
|
||||
import { getDepartmentName, getDirectorName } from '@/utils/util'
|
||||
import Bus from '../companyStructure/eventBus/bus'
|
||||
import appConfig from '@/config/app'
|
||||
import Sortable from 'sortablejs'
|
||||
import XEUtils from 'xe-utils'
|
||||
import { ops_move_icon as OpsMoveIcon } from '@/core/icons'
|
||||
@@ -1179,7 +1178,7 @@ export default {
|
||||
},
|
||||
onEnd: (params) => {
|
||||
// 由于开启了虚拟滚动,newIndex和oldIndex是虚拟的
|
||||
const { newIndex, oldIndex, from, to } = params
|
||||
const { newIndex, oldIndex } = params
|
||||
// 从tableDragClassName拿到colid
|
||||
const fromColid = this.tableDragClassName[oldIndex]
|
||||
const toColid = this.tableDragClassName[newIndex]
|
||||
|
Reference in New Issue
Block a user