-
- {{ dataListitem.name }}
-
-
-
- {{ dataListitem.description }}
+
+ {{ dataListitem.name }}
+
+ {{ dataListitem.name }}
+
+
+
+ {{ dataListitem.description }}
+
+ {{ dataListitem.description }}
+
+
@@ -34,17 +40,19 @@
const oldid = router.currentRoute.value.query.id
//点击查看详情
const switchFunction = (id) => {
- router.push({
- path: '/details',
- query: {
- id: id,
- },
- })
+ // router.push({
+ // path: '/details',
+ // query: {
+ // id: id,
+ // },
+ // })
+ window.open(window.SITE_CONFIG.previewUrl + '#/details?id=' + id)
+ // alert(id)
}
if (props.associatedComponents[0].dataList.length != 0) {
+ console.log('这个是空值', props.associatedComponents)
flag.value = true
dataFrom.value = props.associatedComponents
- debugger
console.log('dataFrom.value', dataFrom.value)
} else {
flag.value = false
@@ -52,7 +60,7 @@
watch(
() => props.associatedComponents,
(val) => {
- if (val) {
+ if (val.length != 0) {
flag.value = true
dataFrom.value = props.associatedComponents
console.log('dataFrom.value', dataFrom.value)
@@ -63,7 +71,7 @@
)
watch(
() => router.currentRoute.value.query.id,
- () => {
+ (newValue, oldValue) => {
if (oldid != router.currentRoute.value.query.id) {
window.location.reload()
}
@@ -82,21 +90,29 @@
.application-associated-ability-main {
margin-top: 0.4rem;
width: 13.3rem;
- display: flex;
- justify-content: space-between;
+ display: grid;
+ grid-template-columns: repeat(4, 25%);
.associated-ability-card {
width: 3.2rem;
+ height: 2.78rem;
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid #e4e6f5;
border-radius: 0.1rem;
padding-bottom: 0.3rem;
+ margin-right: 0.2rem;
+ margin-top: 0.2rem;
cursor: pointer;
.associated-ability-card-title {
+ width: 2.2rem;
padding-top: 0.3rem;
font-size: 0.22rem;
text-align: center;
+ display: -webkit-box;
+ overflow: hidden;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
}
.associated-ability-card-content {
width: 100%;
@@ -107,6 +123,11 @@
color: #999;
margin-right: 0.15rem;
margin-top: 0.15rem;
+ text-align: center;
+ display: -webkit-box;
+ overflow: hidden;
+ -webkit-line-clamp: 5;
+ -webkit-box-orient: vertical;
}
}
}
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue
index dcc3f48c..50082f81 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue
@@ -60,7 +60,7 @@
const props = defineProps({
selectNow: { type: String, default: '' },
dataList: { type: Object, default: null },
- associatedComponents: { type: Array, default: null },
+ associatedComponents: { type: Object, default: null },
})
const select = ref('algorithm-display')
const list = ref([])
@@ -85,13 +85,14 @@
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- if (item.name == '关联应用') {
- if (props.associatedComponents[0].dataList.length != 0) {
- item.show = true
- }
- } else {
- item.show = true
- }
+ // if (item.name == '关联应用') {
+ // debugger
+ // if (props.associatedComponents[0].dataList.length != 0) {
+ // item.show = true
+ // }
+ // } else {
+ item.show = true
+ // }
}
})
select.value = navList.value.filter(
@@ -128,13 +129,13 @@
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- if (item.name == '关联应用') {
- if (props.associatedComponents[0].dataList.length != 0) {
- item.show = true
- }
- } else {
- item.show = true
- }
+ // if (item.name == '关联应用') {
+ // if (props.associatedComponents[0].dataList.length != 0) {
+ // item.show = true
+ // }
+ // } else {
+ item.show = true
+ // }
}
})
if (list.value.length > 0) {