Commit d5a92f76 by 李伟康

3.19.0需求

1 parent ef22b7fe
......@@ -41,7 +41,9 @@
></div>
</div>
</div>
<div class="content">
<!-- <div class="content"> -->
<el-scrollbar class="content">
<template v-if="c.list.length">
<template v-for="(item,ind) in c.list">
<template>
......@@ -73,10 +75,11 @@
</template>
<template v-else>
<div class="nothing">
<img src="@/assets/icon/nodata.png" >
<img src="@/assets/icon/nodata.png">
</div>
</template>
</div>
</el-scrollbar>
<!-- </div> -->
</div>
</template>
</template>
......@@ -84,18 +87,20 @@
</template>
</template>
</el-carousel>
<div
class="arrow left"
@click="$refs.carousel.prev()"
>
<img :src="viewIndex == 0 ? leftIcon:leftActiveIcon" />
</div>
<div
class="arrow right"
@click="$refs.carousel.next()"
>
<img :src="viewIndex < viewList.length - 1 ?rightActiveIcon:rightIcon" />
</div>
<template v-if="viewList.length">
<div
class="arrow left"
@click="$refs.carousel.prev()"
>
<img :src="viewIndex == 0 ? leftIcon:leftActiveIcon" />
</div>
<div
class="arrow right"
@click="$refs.carousel.next()"
>
<img :src="viewIndex < viewList.length - 1 ?rightActiveIcon:rightIcon" />
</div>
</template>
</div>
</div>
</template>
......@@ -131,54 +136,56 @@ export default {
console.log(JSON.parse(JSON.stringify(params)))
this.dataViewLoading = true
setTimeout(() => {
this.viewList = [
[{
let arr = [
{
title: '待跟进',
list: new Array(8).fill({}),
width: '12.5%'
},
{
title: '已成交',
list: new Array(15).fill({}),
width: '25%'
},
{
title: '有意向',
list: [],
width: '37.5%'
},
{
title: '已报价',
list: new Array(5).fill({}),
width: '50%'
},
],
[
{
title: '小熊猫',
list: new Array(115).fill({}),
width: '62.5%'
{
title: '小熊猫',
list: new Array(115).fill({}),
},
{
title: '啊啊啊',
list: new Array(11).fill({}),
width: '75%'
},
{
title: '啊啊啊',
list: new Array(11).fill({}),
},
{
title: '恒河猴',
list: new Array(16).fill({}),
width: '87.5%'
},
{
title: '嘻嘻嘻',
list: new Array(3).fill({}),
width: '100%'
}]
},
{
title: '恒河猴',
list: new Array(16).fill({}),
},
// {
// title: '嘻嘻嘻',
// list: new Array(3).fill({}),
// }
]
function splitArrayIntoChunks (arr, chunkSize) {
const weight = 1 / arr.length
return arr.reduce((result, item, index) => {
const chunkIndex = Math.floor(index / chunkSize)
item.width = `${(weight * index + weight) * 100}%`
result[chunkIndex] = result[chunkIndex] || []
result[chunkIndex].push(item)
return result
}, [])
}
this.viewList = splitArrayIntoChunks(arr, 4)
this.dataViewLoading = false
}, 2e3)
},
......@@ -208,8 +215,7 @@ export default {
display: flex;
gap: 8px;
.group {
flex: 1;
// min-width: 280px;
width: 25%;
height: 100%;
background: #f9f9fe;
border-radius: 4px;
......@@ -248,10 +254,17 @@ export default {
box-sizing: border-box;
padding: 16px 16px 8px;
position: relative;
/deep/.el-scrollbar__wrap{
&::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
}
&::-webkit-scrollbar {
// width: 0;
// height: 0;
// color: transparent;
width: 0;
height: 0;
color: transparent;
}
.item {
height: 91px;
......@@ -293,11 +306,11 @@ export default {
}
}
}
.nothing{
.nothing {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
transform: translate(-50%, -50%);
width: 270px;
height: 112px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!