Commit 224d9e1f by 杨明

fixed

2 parents 5bd60c7d d5a92f76
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
} }
&-table { &-table-box {
padding: 20px; padding: 20px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
...@@ -155,6 +155,10 @@ export default { ...@@ -155,6 +155,10 @@ export default {
} }
.btns { .btns {
transition: all 0.25s; transition: all 0.25s;
.el-button {
padding: 8px 15px;
min-width: 60px;
}
} }
} }
.hiddenExport { .hiddenExport {
......
...@@ -2,6 +2,8 @@ let _this = null ...@@ -2,6 +2,8 @@ let _this = null
const defaultFormData = { const defaultFormData = {
requestSource: '0' requestSource: '0'
} }
import * as dayjs from 'dayjs'
export default { export default {
created() { created() {
_this = this _this = this
...@@ -78,7 +80,16 @@ export default { ...@@ -78,7 +80,16 @@ export default {
type: 'datePicker', type: 'datePicker',
labelWidth: 72, labelWidth: 72,
isClear: true, 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: [], stageList: [],
...@@ -87,6 +98,24 @@ export default { ...@@ -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: { methods: {
getStage(e) { getStage(e) {
const step = _this.searchFormData.find(i => i.name === 'sopJourneyStage') const step = _this.searchFormData.find(i => i.name === 'sopJourneyStage')
......
...@@ -18,32 +18,39 @@ ...@@ -18,32 +18,39 @@
<div class="line" :style="[{ width: (100 * (cindex + 1)) / i.length + '%' }]"></div> <div class="line" :style="[{ width: (100 * (cindex + 1)) / i.length + '%' }]"></div>
</div> </div>
</div> </div>
<div class="content"> <el-scrollbar class="content">
<template v-for="(item, ind) in c.list"> <template v-if="c.list.length">
<template> <template v-for="(item, ind) in c.list">
<div :key="ind" class="item"> <template>
<div class="top flex"> <div :key="ind" class="item">
<div class="icon"> <div class="top flex">
<template v-if="item.icon"> <div class="icon">
<img :src="item.icon" /> <template v-if="item.icon">
</template> <img :src="item.icon" />
<template v-else> </template>
<img src="@/assets/icon/default-avatar.png" /> <template v-else>
</template> <img src="@/assets/icon/default-avatar.png" />
</template>
</div>
<div class="text">
<div class="name">微信昵称</div>
18888888888
</div>
</div> </div>
<div class="text"> <div class="bottom flex">
<div class="name">微信昵称</div> <div class="left text-hide">进入该阶段:第1天</div>
18888888888 <div class="right text-hide">跟进人:姓名啊</div>
</div> </div>
</div> </div>
<div class="bottom flex"> </template>
<div class="left text-hide">进入该阶段:第1天</div>
<div class="right text-hide">跟进人:姓名啊</div>
</div>
</div>
</template> </template>
</template> </template>
</div> <template v-else>
<div class="nothing">
<img src="@/assets/icon/nodata.png" />
</div>
</template>
</el-scrollbar>
</div> </div>
</template> </template>
</template> </template>
...@@ -77,56 +84,8 @@ export default { ...@@ -77,56 +84,8 @@ export default {
}, },
data () { data () {
return { return {
viewList: [ dataViewLoading: true,
[ 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%'
}
]
],
viewIndex: 0, viewIndex: 0,
leftIcon: require('@/assets/icon/left.png'), leftIcon: require('@/assets/icon/left.png'),
leftActiveIcon: require('@/assets/icon/left-active.png'), leftActiveIcon: require('@/assets/icon/left-active.png'),
...@@ -177,8 +136,7 @@ export default { ...@@ -177,8 +136,7 @@ export default {
display: flex; display: flex;
gap: 8px; gap: 8px;
.group { .group {
flex: 1; width: 25%;
max-width: 280px;
height: 100%; height: 100%;
background: #f9f9fe; background: #f9f9fe;
border-radius: 4px; border-radius: 4px;
...@@ -216,6 +174,14 @@ export default { ...@@ -216,6 +174,14 @@ export default {
overflow-y: scroll; overflow-y: scroll;
box-sizing: border-box; box-sizing: border-box;
padding: 16px 16px 8px; padding: 16px 16px 8px;
position: relative;
/deep/.el-scrollbar__wrap {
&::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
}
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 0; width: 0;
height: 0; height: 0;
...@@ -261,6 +227,14 @@ export default { ...@@ -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 { ...@@ -283,10 +257,10 @@ export default {
animation: show-arrow 0.25s forwards; animation: show-arrow 0.25s forwards;
} }
.left { .left {
left: -18px; left: -12px;
} }
.right { .right {
right: -18px; right: -12px;
} }
@keyframes show-arrow { @keyframes show-arrow {
to { to {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!