Commit 224d9e1f by 杨明

fixed

2 parents 5bd60c7d d5a92f76
......@@ -135,7 +135,7 @@ export default {
font-weight: 500;
}
}
&-table {
&-table-box {
padding: 20px;
border: 1px solid #e5e5e5;
}
......@@ -155,6 +155,10 @@ export default {
}
.btns {
transition: all 0.25s;
.el-button {
padding: 8px 15px;
min-width: 60px;
}
}
}
.hiddenExport {
......
......@@ -2,6 +2,8 @@ let _this = null
const defaultFormData = {
requestSource: '0'
}
import * as dayjs from 'dayjs'
export default {
created() {
_this = this
......@@ -78,7 +80,16 @@ export default {
type: 'datePicker',
labelWidth: 72,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
customPickerOptions: {
disabledDate(val) {
let disabled = true,
startTime = dayjs().subtract(1, 'year'),
endTime = dayjs(),
date = dayjs(val)
if (startTime < date && dayjs(date) < endTime) disabled = false
return disabled
}
}
}
],
stageList: [],
......@@ -87,6 +98,24 @@ export default {
}
}
},
watch: {
// watchJourney: {
// immediate: true,
// handler (newval) {
// //清空旅程阶段并调用旅程阶段接口
// console.log(newval)
// }
// },
'searchForm.a'(newval) {
//清空旅程阶段并调用旅程阶段接口
console.log(newval, 'a')
}
},
// computed: {
// watchJourney () {
// return this.searchForm.a
// }
// },
methods: {
getStage(e) {
const step = _this.searchFormData.find(i => i.name === 'sopJourneyStage')
......
......@@ -18,32 +18,39 @@
<div class="line" :style="[{ width: (100 * (cindex + 1)) / i.length + '%' }]"></div>
</div>
</div>
<div class="content">
<template v-for="(item, ind) in c.list">
<template>
<div :key="ind" class="item">
<div class="top flex">
<div class="icon">
<template v-if="item.icon">
<img :src="item.icon" />
</template>
<template v-else>
<img src="@/assets/icon/default-avatar.png" />
</template>
<el-scrollbar class="content">
<template v-if="c.list.length">
<template v-for="(item, ind) in c.list">
<template>
<div :key="ind" class="item">
<div class="top flex">
<div class="icon">
<template v-if="item.icon">
<img :src="item.icon" />
</template>
<template v-else>
<img src="@/assets/icon/default-avatar.png" />
</template>
</div>
<div class="text">
<div class="name">微信昵称</div>
18888888888
</div>
</div>
<div class="text">
<div class="name">微信昵称</div>
18888888888
<div class="bottom flex">
<div class="left text-hide">进入该阶段:第1天</div>
<div class="right text-hide">跟进人:姓名啊</div>
</div>
</div>
<div class="bottom flex">
<div class="left text-hide">进入该阶段:第1天</div>
<div class="right text-hide">跟进人:姓名啊</div>
</div>
</div>
</template>
</template>
</template>
</div>
<template v-else>
<div class="nothing">
<img src="@/assets/icon/nodata.png" />
</div>
</template>
</el-scrollbar>
</div>
</template>
</template>
......@@ -77,56 +84,8 @@ export default {
},
data () {
return {
viewList: [
[
{
title: '待跟进',
list: new Array(8).fill({}),
width: '12.5%'
},
{
title: '已成交',
list: new Array(15).fill({}),
width: '25%'
},
{
title: '有意向',
list: new Array(4).fill({}),
width: '37.5%'
},
{
title: '已报价',
list: new Array(5).fill({}),
width: '50%'
},
],
[
{
title: '小熊猫',
list: new Array(115).fill({}),
width: '62.5%'
},
{
title: '啊啊啊',
list: new Array(11).fill({}),
width: '75%'
},
{
title: '恒河猴',
list: new Array(16).fill({}),
width: '87.5%'
},
{
title: '嘻嘻嘻',
list: new Array(3).fill({}),
width: '100%'
}
]
],
dataViewLoading: true,
viewList: [],
viewIndex: 0,
leftIcon: require('@/assets/icon/left.png'),
leftActiveIcon: require('@/assets/icon/left-active.png'),
......@@ -177,8 +136,7 @@ export default {
display: flex;
gap: 8px;
.group {
flex: 1;
max-width: 280px;
width: 25%;
height: 100%;
background: #f9f9fe;
border-radius: 4px;
......@@ -216,6 +174,14 @@ export default {
overflow-y: scroll;
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;
......@@ -261,6 +227,14 @@ export default {
}
}
}
.nothing {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 270px;
height: 112px;
}
}
}
}
......@@ -283,10 +257,10 @@ export default {
animation: show-arrow 0.25s forwards;
}
.left {
left: -18px;
left: -12px;
}
.right {
right: -18px;
right: -12px;
}
@keyframes show-arrow {
to {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!