Commit ef22b7fe by 李伟康

v3.19.0需求开发

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