Compare commits

..

No commits in common. "27642b9964d50d6f3755c1460dab224f7160205f" and "e64bd190cc8605ade05908175493c63117b5f7c8" have entirely different histories.

3 changed files with 59 additions and 119 deletions

View File

@ -687,7 +687,7 @@
} }
} }
} }
.item:nth-(2n) { .item:nth-child(2n) {
margin-left: 0.4rem; margin-left: 0.4rem;
} }
} }

View File

@ -4,11 +4,7 @@
<div class="main"> <div class="main">
<div class="left"> <div class="left">
<a-layout-sider> <a-layout-sider>
<a-menu <a-menu v-model:selectedKeys="selectedKeys" mode="inline" @click="handleClick">
v-model:selectedKeys="selectedKeys"
mode="inline"
@click="handleClick"
>
<a-menu-item v-for="item in menuList" :key="item.key"> <a-menu-item v-for="item in menuList" :key="item.key">
<img :src="item.img" alt="" style="margin-right: 10px" /> <img :src="item.img" alt="" style="margin-right: 10px" />
<span>{{ item.title }}</span> <span>{{ item.title }}</span>
@ -18,45 +14,31 @@
</div> </div>
<div class="right"> <div class="right">
<!-- <div class="title">数据需求</div> --> <!-- <div class="title">数据需求</div> -->
<a-list <a-list class="demo-loadmore-list" :loading="initLoading" item-layout="horizontal" :data-source="list"
class="demo-loadmore-list" :key="showKey">
:loading="initLoading"
item-layout="horizontal"
:data-source="list"
:key="showKey"
>
<template #renderItem="{ item }"> <template #renderItem="{ item }">
<a-list-item> <a-list-item>
<div class="toptitle"> <a-skeleton avatar :title="false" :loading="!!item.loading" active>
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft" arrow-point-at-center mouseEnterDelay="1"
<template #title>{{ item.demandSubject }}</template> overlayClassName="demandCenter-tooltip-card">
<span <template #title>
@click="showDetail(item)" <div class="tooltip-desc">{{ item.demandDetails || '--' }}</div>
style="cursor: pointer" </template>
class="name" <a-list-item-meta :description="'描述:' + (item.demandDetails || '--')">
> <template #title>
<span @click="showDetail(item)" style="cursor: pointer" class="name">
{{ item.demandSubject }} {{ item.demandSubject }}
</span> </span>
</a-tooltip>
<span class="time">{{ item.createDate }}</span> <span class="time">{{ item.createDate }}</span>
</div> </template>
<a-tooltip placement="topLeft"> </a-list-item-meta>
<template #title>描述 {{ item.demandDetails }}</template>
<div class="bottomdesc">
描述 {{ item.demandDetails || '--' }}
</div>
</a-tooltip> </a-tooltip>
</a-skeleton>
</a-list-item> </a-list-item>
</template> </template>
</a-list> </a-list>
<a-pagination <a-pagination v-model:current="pageNum" v-model:page-size="pageSize" :total="total" @change="pageChange"
v-model:current="pageNum" :key="showKey">
v-model:page-size="pageSize"
:total="total"
@change="pageChange"
:key="showKey"
>
<template #buildOptionText="props"> <template #buildOptionText="props">
<span>{{ props.value }}/</span> <span>{{ props.value }}/</span>
</template> </template>
@ -90,8 +72,10 @@ const whoShow1 = ref(whoShow)
const selectedKeys = ref(['0']) const selectedKeys = ref(['0'])
const menuList = [ const menuList = [
{ {
key: '0', key: '0',
title: '全部需求', title: '全部需求',
num: '0', num: '0',
@ -140,7 +124,7 @@ const handleClick = (item) => {
detailsType.value = '应用资源' detailsType.value = '应用资源'
} else if (item.key === '5') { } else if (item.key === '5') {
detailsType.value = '知识库' detailsType.value = '知识库'
} else { }else{
detailsType.value = '' detailsType.value = ''
} }
pageNum.value = 1 pageNum.value = 1
@ -167,6 +151,7 @@ const getApplyList = () => {
} }
const showDetail = (item) => { const showDetail = (item) => {
router.push({ router.push({
path: '/demandDetails', path: '/demandDetails',
query: { query: {
@ -191,6 +176,7 @@ onMounted(() => {
list.value = res.data.data.list list.value = res.data.data.list
total.value = res.data.data.total total.value = res.data.data.total
}) })
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -259,45 +245,6 @@ onMounted(() => {
background-color: #ffffff; background-color: #ffffff;
box-shadow: 10px 8px 10px 3px #9dc6ea; box-shadow: 10px 8px 10px 3px #9dc6ea;
padding: 20px; padding: 20px;
.toptitle {
margin-bottom: 10px;
& > span:first-child {
display: -webkit-box;
/*设置为弹性盒子*/
-webkit-line-clamp: 1;
/*最多显示2行*/
overflow: hidden;
/*超出隐藏*/
text-overflow: ellipsis;
/*超出显示为省略号*/
-webkit-box-orient: vertical;
word-break: break-all;
width: 600px;
font-size: 14px;
color: #1492ff;
font-size: 18px;
}
& > span:first-child:hover {
color: #0b5392;
}
& > span:last-child {
float: right;
}
}
.bottomdesc {
display: -webkit-box;
/*设置为弹性盒子*/
-webkit-line-clamp: 1;
/*最多显示2行*/
overflow: hidden;
/*超出隐藏*/
text-overflow: ellipsis;
/*超出显示为省略号*/
-webkit-box-orient: vertical;
word-break: break-all;
width: 800px;
font-size: 14px;
}
.title { .title {
font-size: 22px; font-size: 22px;
@ -308,42 +255,40 @@ onMounted(() => {
.ant-list { .ant-list {
height: 730px; height: 730px;
overflow-y: scroll; overflow-y: scroll;
.ant-list-item {
display: list-item; :deep(.ant-list-item-meta-title) {
display: flex;
justify-content: space-between;
.name {
width: 800px;
font-size: 18px;
color: #1492ff;
display: -webkit-box;
/*设置为弹性盒子*/
-webkit-line-clamp: 1;
/*最多显示2行*/
overflow: hidden;
/*超出隐藏*/
text-overflow: ellipsis;
/*超出显示为省略号*/
-webkit-box-orient: vertical;
word-break: break-all;
}
} }
// :deep(.ant-list-item-meta-title) {
// // display: flex;
// justify-content: space-between;
// .name { :deep(.ant-list-item-meta-description) {
// width: 800px; display: -webkit-box;
// font-size: 18px; /*设置为弹性盒子*/
// color: #1492ff; -webkit-line-clamp: 2;
// display: -webkit-box; /*最多显示2行*/
// /**/ overflow: hidden;
// -webkit-line-clamp: 1; /*超出隐藏*/
// /*2*/ text-overflow: ellipsis;
// overflow: hidden; /*超出显示为省略号*/
// /**/ -webkit-box-orient: vertical;
// text-overflow: ellipsis; word-break: break-all;
// /**/ }
// -webkit-box-orient: vertical;
// word-break: break-all;
// }
// }
// :deep(.ant-list-item-meta-description) {
// display: -webkit-box;
// /**/
// -webkit-line-clamp: 2;
// /*2*/
// overflow: hidden;
// /**/
// text-overflow: ellipsis;
// /**/
// -webkit-box-orient: vertical;
// word-break: break-all;
// }
} }
// //

View File

@ -152,7 +152,6 @@
> >
查看详情 查看详情
</a-button> </a-button>
<!-- <div class="btn" v-if="val.type == '组件服务'">技术文档</div> --> <!-- <div class="btn" v-if="val.type == '组件服务'">技术文档</div> -->
</div> </div>
<div class="ability-bottom"> <div class="ability-bottom">
@ -175,11 +174,9 @@
</a-button> </a-button>
</div> </div>
</div> </div>
<div v-if="item.approveStatus === '通过'" style=" margin-top: 15px;font-size: 16px; color: #ee4457;font-weight: bold;">说明已申请成功使用方式及联系人请点击"查看详情"按钮查看</div>
</div> </div>
</div> </div>
</div> </div>
<div class="box" v-if="item.list2.length > 0"> <div class="box" v-if="item.list2.length > 0">
<div class="ability" v-for="val in item.list2" :key="val.channelId"> <div class="ability" v-for="val in item.list2" :key="val.channelId">
<div class="left sxt"></div> <div class="left sxt"></div>
@ -280,9 +277,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 单个预览弹窗 --> <!-- 单个预览弹窗 -->