详情页tab

This commit is contained in:
851673013@qq.com 2022-07-06 09:52:38 +08:00
parent adfc44cc7f
commit 0cab45f228
3 changed files with 8 additions and 9 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {