189189 <a-tab-pane key =" tab_5" >
190190 <span slot =" tab" ><ops-icon type =" itsm-association" />{{ $t('cmdb.ci.relITSM') }}</span >
191191 <div :style =" { padding: '24px', height: '100%' }" >
192- <RelatedItsmTable ref="relatedITSMTable" : ci_id = " ci . _id " : ciHistory = " ciHistory " : itsmInstalled = " itsmInstalled " : attrList = " attrList " />
192+ <RelatedItsm ref="relatedITSM " />
193193 </div >
194194 </a-tab-pane >
195195 </a-tabs >
209209<script >
210210import _ from ' lodash'
211211import { getCITypeGroupById , getCITypes } from ' @/modules/cmdb/api/CIType'
212- import { getCIHistory , judgeItsmInstalled } from ' @/modules/cmdb/api/history'
212+ import { getCIHistory } from ' @/modules/cmdb/api/history'
213213import { getCIById , searchCI } from ' @/modules/cmdb/api/ci'
214214
215215import RelationMixin from ' ./ciDetailMixin/relationMixin.js'
@@ -220,7 +220,7 @@ import CIDetailAttrContent from './ciDetailAttrContent.vue'
220220import CIRelationTable from ' ./ciDetailComponent/ciRelationTable.vue'
221221import CIDetailRelation from ' ./ciDetailRelation.vue'
222222import TriggerTable from ' ../../operation_history/modules/triggerTable.vue'
223- import RelatedItsmTable from ' ./ciDetailRelatedItsmTable .vue'
223+ import RelatedItsm from ' ./ciDetailRelatedItsm .vue'
224224import CIRollbackForm from ' ./ciRollbackForm.vue'
225225import OperateTypeTag from ' ../../operation_history/components/OperateTypeTag.vue'
226226
@@ -231,7 +231,7 @@ export default {
231231 CIDetailAttrContent,
232232 CIDetailRelation,
233233 TriggerTable,
234- RelatedItsmTable ,
234+ RelatedItsm ,
235235 CIRollbackForm,
236236 CIDetailTitle,
237237 CIDetailTableTitle,
@@ -263,7 +263,6 @@ export default {
263263 ciId: null ,
264264 ci_types: [],
265265 hasPermission: true ,
266- itsmInstalled: true ,
267266 tableHeight: this .attributeHistoryTableHeight || (this .$store .state .windowHeight - 130 ),
268267 initQueryLoading: true ,
269268 ciHistoryStatsList: [
@@ -334,7 +333,6 @@ export default {
334333 this .ciId = ciId
335334
336335 await this .getCI ()
337- await this .judgeItsmInstalled ()
338336 if (this .hasPermission ) {
339337 this .getAttributes ()
340338 this .getCIHistory ()
@@ -430,16 +428,6 @@ export default {
430428 this .hasPermission = false
431429 }
432430 })
433- .catch ((e ) => {
434- if (e .response .status === 404 ) {
435- this .itsmInstalled = false
436- }
437- })
438- },
439- async judgeItsmInstalled () {
440- await judgeItsmInstalled ().catch ((e ) => {
441- this .itsmInstalled = false
442- })
443431 },
444432
445433 getCIHistory () {
0 commit comments