详情页tab
This commit is contained in:
parent
adfc44cc7f
commit
0cab45f228
|
@ -60,7 +60,7 @@
|
||||||
selectNow: { type: String, default: '' },
|
selectNow: { type: String, default: '' },
|
||||||
dataList: { type: Object, default: null },
|
dataList: { type: Object, default: null },
|
||||||
})
|
})
|
||||||
const select = ref('business-presentation')
|
const select = ref('business-associated-ability')
|
||||||
const list = ref([])
|
const list = ref([])
|
||||||
// 根据能力id查询是否存在关联应用
|
// 根据能力id查询是否存在关联应用
|
||||||
if (keyId) {
|
if (keyId) {
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
dataList: { type: Object, default: null },
|
dataList: { type: Object, default: null },
|
||||||
associatedComponents: { type: Object, default: null },
|
associatedComponents: { type: Object, default: null },
|
||||||
})
|
})
|
||||||
const select = ref('algorithm-display')
|
const select = ref('developer-associated-ability')
|
||||||
const list = ref([])
|
const list = ref([])
|
||||||
// 根据能力id查询是否存在关联应用
|
// 根据能力id查询是否存在关联应用
|
||||||
if (keyId) {
|
if (keyId) {
|
||||||
|
|
|
@ -63,7 +63,6 @@
|
||||||
dataList: { type: Object, default: null },
|
dataList: { type: Object, default: null },
|
||||||
associatedComponents: { type: Array, default: null },
|
associatedComponents: { type: Array, default: null },
|
||||||
})
|
})
|
||||||
const select = ref('service-presentation')
|
|
||||||
const list = ref([])
|
const list = ref([])
|
||||||
// 根据能力id查询是否存在关联应用
|
// 根据能力id查询是否存在关联应用
|
||||||
if (keyId) {
|
if (keyId) {
|
||||||
|
@ -73,14 +72,14 @@
|
||||||
// 存在关联应用时在导航栏加入关联应用
|
// 存在关联应用时在导航栏加入关联应用
|
||||||
navList.value.unshift({
|
navList.value.unshift({
|
||||||
name: '关联应用',
|
name: '关联应用',
|
||||||
key: 'service-associated-ability',
|
key: 'layer-service-associated-ability',
|
||||||
show: true,
|
show: true,
|
||||||
})
|
})
|
||||||
// list.value.push('关联应用')
|
list.value.unshift('关联应用')
|
||||||
console.log('navList', navList)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const select = ref('layer-service-associated-ability')
|
||||||
const selectNav = (key) => {
|
const selectNav = (key) => {
|
||||||
select.value = key
|
select.value = key
|
||||||
console.log(key, select.value)
|
console.log(key, select.value)
|
||||||
|
@ -139,7 +138,7 @@
|
||||||
list.value.push('使用方式')
|
list.value.push('使用方式')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
list.value.push('关联应用')
|
list.value.unshift('关联应用')
|
||||||
navList.value.forEach((item) => {
|
navList.value.forEach((item) => {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
if (list.value.indexOf(item.name) > -1) {
|
if (list.value.indexOf(item.name) > -1) {
|
||||||
|
@ -147,7 +146,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
select.value = navList.value.filter(
|
select.value = navList.value.filter(
|
||||||
(item) => item.name === '图层展示'
|
(item) => item.name === '关联应用'
|
||||||
)[0].key
|
)[0].key
|
||||||
console.log('11111111111111111111111111', list.value, navList.value)
|
console.log('11111111111111111111111111', list.value, navList.value)
|
||||||
}
|
}
|
||||||
|
@ -214,7 +213,7 @@
|
||||||
list.value.push('使用方式')
|
list.value.push('使用方式')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
list.value.push('关联应用')
|
list.value.unshift('关联应用')
|
||||||
navList.value.forEach((item) => {
|
navList.value.forEach((item) => {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
if (list.value.indexOf(item.name) > -1) {
|
if (list.value.indexOf(item.name) > -1) {
|
||||||
|
|
Loading…
Reference in New Issue