Compare commits
4 Commits
c5e48f69f5
...
b61722857d
Author | SHA1 | Date |
---|---|---|
guoyue | b61722857d | |
guoyue | 6b509a61d2 | |
guoyue | 355ee77e79 | |
guoyue | fef67d9cc4 |
|
@ -190,7 +190,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block">
|
<div class="block" v-if="!detailFlag">
|
||||||
<el-pagination @current-change="handleCurrentChange" layout="total, prev, pager, next, jumper"
|
<el-pagination @current-change="handleCurrentChange" layout="total, prev, pager, next, jumper"
|
||||||
:total="total" :page-size="pageSize" :current-page="currentPage">
|
:total="total" :page-size="pageSize" :current-page="currentPage">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
|
|
||||||
<div class="algorithm-class">
|
<div class="algorithm-class">
|
||||||
<div v-for="(item, index) in dataList" :key="`algorithm-${index}`" class="algorithm-card">
|
<div v-for="(item, index) in dataList" :key="`algorithm-${index}`" class="algorithm-card">
|
||||||
<a-image :src="algorithmCardPhoto(item.infoList, item)" :width="525" :height="275" :fallback="imgSrc"
|
<a-image :src="algorithmCardPhoto(item)" :width="525" :height="275" :fallback="imgSrc" :preview="false">
|
||||||
:preview="false"></a-image>
|
</a-image>
|
||||||
|
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>{{ item.name }}</template>
|
<template #title>{{ item.name }}</template>
|
||||||
|
@ -100,13 +100,10 @@ const pageWithAttrsFunction = () => {
|
||||||
pageWithAttrsFunction()
|
pageWithAttrsFunction()
|
||||||
|
|
||||||
//图片显示
|
//图片显示
|
||||||
const algorithmCardPhoto = (List, item) => {
|
const algorithmCardPhoto = (item) => {
|
||||||
let _arr = List && item && List.filter((item) => item.attrType === '应用场景') || []
|
let _arr = item.pic && JSON.parse(item.pic)
|
||||||
let obj = _arr[0]
|
let _img = _arr[0] && _arr[0].img || ''
|
||||||
if (obj && obj.attrValue != '') {
|
return _img
|
||||||
obj = JSON.parse(obj.attrValue)[0].img
|
|
||||||
}
|
|
||||||
return obj || ''
|
|
||||||
}
|
}
|
||||||
//跳转详情页
|
//跳转详情页
|
||||||
const detailFunction = (id) => {
|
const detailFunction = (id) => {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="algorithm-class">
|
<div class="algorithm-class">
|
||||||
<div v-for="(item, index) in dataList" :key="`algorithm-${index}`" class="algorithm-card">
|
<div v-for="(item, index) in dataList" :key="`algorithm-${index}`" class="algorithm-card">
|
||||||
<a-image :src="algorithmCardPhoto(item.infoList)" :width="525" :height="275" :fallback="imgSrc"
|
<a-image :src="item.pic" :width="525" :height="275" :fallback="imgSrc"
|
||||||
:preview="false"></a-image>
|
:preview="false"></a-image>
|
||||||
|
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
|
@ -96,16 +96,7 @@ const pageWithAttrsFunction = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
pageWithAttrsFunction()
|
pageWithAttrsFunction()
|
||||||
//图片显示
|
|
||||||
const algorithmCardPhoto = (List = []) => {
|
|
||||||
let url = ''
|
|
||||||
List.map((item) => {
|
|
||||||
if (item.attrType === '图层缩略图') {
|
|
||||||
url = item.attrValue
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return url
|
|
||||||
}
|
|
||||||
//跳转详情页
|
//跳转详情页
|
||||||
const detailFunction = (id) => {
|
const detailFunction = (id) => {
|
||||||
window.open(window.SITE_CONFIG.previewUrl + `#/details?id=${id}`)
|
window.open(window.SITE_CONFIG.previewUrl + `#/details?id=${id}`)
|
||||||
|
|
|
@ -267,9 +267,12 @@
|
||||||
})
|
})
|
||||||
window.open(newpage.href, '_blank')
|
window.open(newpage.href, '_blank')
|
||||||
} else if (data === '资源下架') {
|
} else if (data === '资源下架') {
|
||||||
window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle'))
|
window.sessionStorage.setItem('type', JSON.stringify('apply'))
|
||||||
const newpage = router.resolve({
|
const newpage = router.resolve({
|
||||||
path: '/personalCenter',
|
path: '/personalCenter',
|
||||||
|
query: {
|
||||||
|
tabTypeName: '能力上架'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
window.location.href = newpage.href
|
window.location.href = newpage.href
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue