Commit 533c6dc2 by 前端

Merge branch 'xuyl_dev_2.1.0' into 'v2.1.0'

Xuyl dev 2.1.0

See merge request !54
2 parents 28b04c67 63d72e0f
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
</p> </p>
</div> </div>
<div class="rightWrap" :style="{ 'min-height': heightBox + 'px' }"> <div class="rightWrap" :style="{ 'min-height': heightBox + 'px' }">
<div class="rightWrapBtn" style="display: flex">
<div class="choseRow"> <div class="choseRow">
<div class="choseItem" :class="{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)"> <div class="choseItem" :class="{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span> <span>
...@@ -50,18 +51,21 @@ ...@@ -50,18 +51,21 @@
<template>({{ item.personNum || 0 }})个</template> <template>({{ item.personNum || 0 }})个</template>
</span> </span>
</div> </div>
<el-button style="border: 1px solid #5850ff; color: #5850ff; right: 0px; position: absolute;background:none;" size="small" @click="handleExport(currentIndex)">导出</el-button>
</div> </div>
</div>
<template v-if="currentIndex == 0"> <template v-if="currentIndex == 0">
<client ref="childComp" :url="url" @goDetail="goDetail"></client> <client ref="childCompClient" :url="url" @goDetail="goDetail"></client>
</template> </template>
<template v-if="currentIndex == 1"> <template v-if="currentIndex == 1">
<follow-employee ref="childComp" :url="url"></follow-employee> <follow-employee ref="childCompFollow" :url="url"></follow-employee>
</template> </template>
<template v-if="currentIndex == 2"> <template v-if="currentIndex == 2">
<leave-group-client ref="childComp" :url="url" @goDetail="goDetail"></leave-group-client> <leave-group-client ref="childCompLeave" :url="url" @goDetail="goDetail"></leave-group-client>
</template> </template>
<template v-if="currentIndex == 3"> <template v-if="currentIndex == 3">
<potential-client ref="childComp" :url="url"></potential-client> <potential-client ref="childCompPotential" :url="url"></potential-client>
</template> </template>
<basic-dialog title="" width="547px" :isVisible="dialogVisible" btnOkLabel="我知道了" :isHasCancelBtn="false" @confirmDialog="handleConfirm" @closeDialog="handleClose"> <basic-dialog title="" width="547px" :isVisible="dialogVisible" btnOkLabel="我知道了" :isHasCancelBtn="false" @confirmDialog="handleConfirm" @closeDialog="handleClose">
...@@ -145,6 +149,17 @@ export default { ...@@ -145,6 +149,17 @@ export default {
// this.$set(this.titles[0], 'personNum', num) // this.$set(this.titles[0], 'personNum', num)
// } // }
// }, // },
handleExport(currentIndex) {
if (currentIndex == 0) {
this.$refs.childCompClient.handleExport()
} else if (currentIndex == 1) {
this.$refs.childCompFollow.handleExport()
} else if (currentIndex == 2) {
this.$refs.childCompLeave.handleExport()
} else {
this.$refs.childCompPotential.handleExport()
}
},
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
}, },
...@@ -286,6 +301,8 @@ export default { ...@@ -286,6 +301,8 @@ export default {
background-color: #fff; background-color: #fff;
padding: 20px; padding: 20px;
padding-top: 50px; padding-top: 50px;
.rightWrapBtn {
display: flex;
.choseRow { .choseRow {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -322,6 +339,7 @@ export default { ...@@ -322,6 +339,7 @@ export default {
border-bottom: 0 !important; border-bottom: 0 !important;
} }
} }
}
.el-button + .el-button { .el-button + .el-button {
margin-left: 20px; margin-left: 20px;
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
<div class="sub-container"> <div class="sub-container">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm> <GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 --> <!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<div class="leadList"> <!-- <div class="leadList">
<div> <div>
<span></span> <span></span>
</div> </div>
<el-button size="small" @click="handleExport">导出</el-button> <el-button size="small" @click="handleExport">导出</el-button>
</div> </div> -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url"> <GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" slot-scope="scope"> <span slot="customerName" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top"> <el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
...@@ -45,9 +45,7 @@ export default { ...@@ -45,9 +45,7 @@ export default {
type: 'datePicker', type: 'datePicker',
name: 'daterange', name: 'daterange',
label: '入群时间', label: '入群时间',
datePickerAttrs: { valueFormat: 'yyyy-MM-dd',
'value-format': 'yyyy-MM-dd'
},
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
<template> <template>
<div class="sub-container"> <div class="sub-container">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"> <GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
</GLCombiForm> <!-- <div class="leadList">
<div class="leadList">
<div> <div>
<span></span> <span></span>
</div> </div>
<el-button size="small" @click="handleExport">导出</el-button> <el-button size="small" @click="handleExport">导出</el-button>
</div> </div> -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url"> <GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span> <span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
...@@ -40,9 +39,7 @@ export default { ...@@ -40,9 +39,7 @@ export default {
type: 'datePicker', type: 'datePicker',
name: 'daterange', name: 'daterange',
label: '入群时间', label: '入群时间',
datePickerAttrs: { valueFormat: 'yyyy-MM-dd',
'value-format': 'yyyy-MM-dd'
},
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
<template> <template>
<div class="sub-container"> <div class="sub-container">
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm> <GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList"> <!-- <div class="leadList">
<div> <div>
<span></span> <span></span>
</div> </div>
<el-button size="small" @click="handleExport">导出</el-button> <el-button size="small" @click="handleExport">导出</el-button>
</div> </div> -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url"> <GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope"> <span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top"> <el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
...@@ -44,9 +44,7 @@ export default { ...@@ -44,9 +44,7 @@ export default {
type: 'datePicker', type: 'datePicker',
name: 'daterange', name: 'daterange',
label: '入群时间', label: '入群时间',
datePickerAttrs: { valueFormat: 'yyyy-MM-dd',
'value-format': 'yyyy-MM-dd'
},
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
<template> <template>
<div class="sub-container"> <div class="sub-container">
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">n></GLCombiForm> <GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">n></GLCombiForm>
<div class="leadList"> <!-- <div class="leadList">
<div> <div>
<span></span> <span></span>
</div> </div>
<el-button size="small" @click="handleExport">导出</el-button> <el-button size="small" @click="handleExport">导出</el-button>
</div> </div> -->
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 --> <!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url"> <GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope"> <span slot="customerName" class="flex-center" slot-scope="scope">
...@@ -45,9 +45,7 @@ export default { ...@@ -45,9 +45,7 @@ export default {
type: 'datePicker', type: 'datePicker',
name: 'daterange', name: 'daterange',
label: '入群时间', label: '入群时间',
datePickerAttrs: { valueFormat: 'yyyy-MM-dd',
'value-format': 'yyyy-MM-dd'
},
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
...@@ -50,9 +50,7 @@ export default { ...@@ -50,9 +50,7 @@ export default {
type: 'datePicker', type: 'datePicker',
name: 'daterange', name: 'daterange',
label: '创建时间', label: '创建时间',
datePickerAttrs: { valueFormat: 'yyyy-MM-dd',
'value-format': 'yyyy-MM-dd'
},
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......
...@@ -121,11 +121,12 @@ ...@@ -121,11 +121,12 @@
</div> </div>
<div class="expande-button" v-if="expande" @click="expandeClick(false, 'expande')"> <div class="expande-button" v-if="expande" @click="expandeClick(false, 'expande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-up color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'expande')" v-if="vehicleTableData.length > 1 && !expande"> <div class="expande-button" @click="expandeClick(true, 'expande')" v-if="vehicleTableData.length > 1 && !expande">
<span class="font-14 color-58">更多车辆</span> <span class="font-14 color-58">更多车辆</span>
<i class="el-icon-arrow-up color-58"></i>
<i class="el-icon-arrow-down color-58"></i>
</div> </div>
</div> </div>
<layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams" :isHidden="expande"></layout-row> <layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams" :isHidden="expande"></layout-row>
...@@ -137,11 +138,12 @@ ...@@ -137,11 +138,12 @@
</div> </div>
<div class="expande-button" v-if="deviceExpande" @click="expandeClick(false, 'deviceExpande')"> <div class="expande-button" v-if="deviceExpande" @click="expandeClick(false, 'deviceExpande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-up color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'deviceExpande')" v-if="deviceTableData.length > 1 && !deviceExpande"> <div class="expande-button" @click="expandeClick(true, 'deviceExpande')" v-if="deviceTableData.length > 1 && !deviceExpande">
<span class="font-14 color-58">更多设备</span> <span class="font-14 color-58">更多设备</span>
<i class="el-icon-arrow-up color-58"></i>
<i class="el-icon-arrow-down color-58"></i>
</div> </div>
</div> </div>
<layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams" :isHidden="deviceExpande"></layout-row> <layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams" :isHidden="deviceExpande"></layout-row>
...@@ -154,11 +156,12 @@ ...@@ -154,11 +156,12 @@
</div> </div>
<div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')"> <div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-up color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')" v-if="guaranteeTableData.length > 1 && !guaranteeExpande"> <div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')" v-if="guaranteeTableData.length > 1 && !guaranteeExpande">
<span class="font-14 color-58">更多保单</span> <span class="font-14 color-58">更多保单</span>
<i class="el-icon-arrow-up color-58"></i>
<i class="el-icon-arrow-down color-58"></i>
</div> </div>
</div> </div>
<layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams" :isHidden="guaranteeExpande"></layout-row> <layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams" :isHidden="guaranteeExpande"></layout-row>
......
...@@ -192,9 +192,7 @@ export default { ...@@ -192,9 +192,7 @@ export default {
// prop: 'daterange', // prop: 'daterange',
name: 'daterange', name: 'daterange',
label: '添加时间', label: '添加时间',
datePickerAttrs: { valueFormat: 'yyyy-MM-dd',
'value-format': 'yyyy-MM-dd'
},
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
...@@ -293,7 +291,7 @@ export default { ...@@ -293,7 +291,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '60px', width: '62px',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right'
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" /> <yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div> </div>
<!-- 跟进记录 --> <!-- 跟进记录 -->
<div class="baseTitle"> <div class="baseTitle" >
<p class="title">跟进记录</p> <p class="title">跟进记录</p>
<hr /> <hr />
<div class="timestamp" v-if="this.leadFollowRecord.length > 0"> <div class="timestamp" v-if="this.leadFollowRecord.length > 0">
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>
</div> </div>
<div class="noRecord" v-else> <div :style="{ 'height': clientHeight- 450 + 'px' }" class="noRecord" v-else>
<img src="@/assets/leadManage/noRecord.png" alt="" /> <img src="@/assets/leadManage/noRecord.png" alt="" />
</div> </div>
</div> </div>
...@@ -268,6 +268,8 @@ export default { ...@@ -268,6 +268,8 @@ export default {
.noRecord { .noRecord {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center;
overflow: hidden;//img如果超出这个div会隐藏超出部分
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!