Commit ef22b7fe by 李伟康

v3.19.0需求开发

1 parent ad6207d6
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
<div class="journey-table"> <div class="journey-table-box">
<journey-table <journey-table
ref="table" ref="table"
:params="tableSearchForm" :params="tableSearchForm"
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
data () { data () {
return { return {
requestSourceList: ['全部', '进行中', '高意向', '成功续保', '战败'], requestSourceList: ['全部', '进行中', '高意向', '成功续保', '战败'],
viewType: 11, viewType: 1,
FormKey: Date.now() FormKey: Date.now()
} }
}, },
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
} }
&-table { &-table-box {
padding: 20px; padding: 20px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
...@@ -166,6 +166,10 @@ export default { ...@@ -166,6 +166,10 @@ export default {
} }
.btns { .btns {
transition: all 0.25s; transition: all 0.25s;
.el-button{
padding: 8px 15px;
min-width: 60px;
}
} }
} }
.hiddenExport { .hiddenExport {
......
...@@ -6,6 +6,8 @@ const defaultFormData = { ...@@ -6,6 +6,8 @@ const defaultFormData = {
d: '', d: '',
requestSource: '0' requestSource: '0'
} }
import * as dayjs from 'dayjs'
export default { export default {
created () { created () {
_this = this _this = this
...@@ -49,7 +51,12 @@ export default { ...@@ -49,7 +51,12 @@ export default {
type: 'select', type: 'select',
labelWidth: 56, labelWidth: 56,
isDisabled: true, isDisabled: true,
optionList: [], optionList: [
{
confId: '',
confName: '全部'
},
],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
}, },
...@@ -92,7 +99,16 @@ export default { ...@@ -92,7 +99,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
}
}
}, },
], ],
tableSearchForm: { tableSearchForm: {
...@@ -100,6 +116,24 @@ export default { ...@@ -100,6 +116,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: {
getSelectInputParams () { getSelectInputParams () {
const list = Object.keys(this.searchSelectObj) const list = Object.keys(this.searchSelectObj)
......
<template> <template>
<div class="data-view"> <div class="data-view">
<div class="title">旅程看板</div> <div class="title">旅程看板</div>
<div class="carousel-box"> <div
class="carousel-box"
v-loading="dataViewLoading"
>
<el-carousel <el-carousel
ref="carousel" ref="carousel"
:autoplay="false" :autoplay="false"
:loop="false" :loop="false"
indicator-position="none"
height="100%" height="100%"
arrow="never" arrow="never"
class="carousel" class="carousel"
...@@ -26,7 +30,8 @@ ...@@ -26,7 +30,8 @@
> >
<div class="title"> <div class="title">
<div class="text flex"> <div class="text flex">
<div class="icon"></div> <div class="icon">
</div>
{{ c.title }} {{ c.title }}
</div> </div>
<div class="line-box"> <div class="line-box">
...@@ -37,33 +42,40 @@ ...@@ -37,33 +42,40 @@
</div> </div>
</div> </div>
<div class="content"> <div 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 <template>
:key="ind" <div
class="item" :key="ind"
> class="item"
<div class="top flex"> >
<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>
<template v-else>
<div class="nothing">
<img src="@/assets/icon/nodata.png" >
</div>
</template>
</div> </div>
</div> </div>
</template> </template>
...@@ -100,9 +112,27 @@ export default { ...@@ -100,9 +112,27 @@ export default {
}, },
data () { data () {
return { return {
viewList: [ dataViewLoading: true,
[ viewList: [],
{ viewIndex: 0,
leftIcon: require('@/assets/icon/left.png'),
leftActiveIcon: require('@/assets/icon/left-active.png'),
rightIcon: require('@/assets/icon/right.png'),
rightActiveIcon: require('@/assets/icon/right-active.png')
}
},
mounted () {
this.refreshTable()
},
methods: {
refreshTable () {
const params = JSON.parse(JSON.stringify(this.params))
params.requestSource = ''
console.log(JSON.parse(JSON.stringify(params)))
this.dataViewLoading = true
setTimeout(() => {
this.viewList = [
[{
title: '待跟进', title: '待跟进',
list: new Array(8).fill({}), list: new Array(8).fill({}),
width: '12.5%' width: '12.5%'
...@@ -115,7 +145,7 @@ export default { ...@@ -115,7 +145,7 @@ export default {
}, },
{ {
title: '有意向', title: '有意向',
list: new Array(4).fill({}), list: [],
width: '37.5%' width: '37.5%'
}, },
...@@ -124,47 +154,33 @@ export default { ...@@ -124,47 +154,33 @@ export default {
list: new Array(5).fill({}), list: new Array(5).fill({}),
width: '50%' width: '50%'
}, },
], ],
[ [
{ {
title: '小熊猫', title: '小熊猫',
list: new Array(115).fill({}), list: new Array(115).fill({}),
width: '62.5%' width: '62.5%'
}, },
{ {
title: '啊啊啊', title: '啊啊啊',
list: new Array(11).fill({}), list: new Array(11).fill({}),
width: '75%' width: '75%'
}, },
{ {
title: '恒河猴', title: '恒河猴',
list: new Array(16).fill({}), list: new Array(16).fill({}),
width: '87.5%' width: '87.5%'
}, },
{ {
title: '嘻嘻嘻', title: '嘻嘻嘻',
list: new Array(3).fill({}), list: new Array(3).fill({}),
width: '100%' width: '100%'
} }]
] ]
], this.dataViewLoading = false
viewIndex: 0, }, 2e3)
leftIcon: require('@/assets/icon/left.png'),
leftActiveIcon: require('@/assets/icon/left-active.png'),
rightIcon: require('@/assets/icon/right.png'),
rightActiveIcon: require('@/assets/icon/right-active.png')
}
},
mounted () {
this.refreshTable()
},
methods: {
refreshTable () {
const params = JSON.parse(JSON.stringify(this.params))
params.requestSource = ''
console.log(JSON.parse(JSON.stringify(params)))
}, },
} }
} }
...@@ -193,7 +209,7 @@ export default { ...@@ -193,7 +209,7 @@ export default {
gap: 8px; gap: 8px;
.group { .group {
flex: 1; flex: 1;
max-width: 280px; // min-width: 280px;
height: 100%; height: 100%;
background: #f9f9fe; background: #f9f9fe;
border-radius: 4px; border-radius: 4px;
...@@ -231,10 +247,11 @@ export default { ...@@ -231,10 +247,11 @@ 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;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 0; // width: 0;
height: 0; // height: 0;
color: transparent; // color: transparent;
} }
.item { .item {
height: 91px; height: 91px;
...@@ -276,6 +293,14 @@ export default { ...@@ -276,6 +293,14 @@ export default {
} }
} }
} }
.nothing{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
width: 270px;
height: 112px;
}
} }
} }
} }
...@@ -298,10 +323,10 @@ export default { ...@@ -298,10 +323,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 {
......
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
} }
}, },
], ],
showDrawer: true, showDrawer: false,
fileObject: [ fileObject: [
{ {
label: '车牌号', label: '车牌号',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!