Commit e0b66375 authored by zhengke's avatar zhengke

no message

parent 306f707d
...@@ -4,12 +4,15 @@ ...@@ -4,12 +4,15 @@
.el-table__fixed-body-wrapper table { .el-table__fixed-body-wrapper table {
padding-bottom: 8px !important; padding-bottom: 8px !important;
} }
.clueTitle{
padding: 20px 20px 0 20px;
}
</style> </style>
<template> <template>
<div class="customerManage"> <div class="customerManage">
<div class="tools"> <div class="tools">
<div class="tools-item"> <div class="tools-item">
<h1>线索管理</h1> <h1 :class="isDrawer?'clueTitle':''">线索管理</h1>
</div> </div>
<template v-if="!isDrawer"> <template v-if="!isDrawer">
<div style="width: 340px;"> <div style="width: 340px;">
...@@ -110,7 +113,7 @@ ...@@ -110,7 +113,7 @@
<el-table v-if="!loading" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" <el-table v-if="!loading" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
:height="sceneList.length > 0 ? '600' : '660'" border row-class-name="font-size-12" :height="sceneList.length > 0 ? '600' : '660'" border row-class-name="font-size-12"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="40"></el-table-column> <el-table-column v-if="!isDrawer" fixed type="selection" width="40"></el-table-column>
<el-table-column prop="ClueState" label="线索状态" show-overflow-tooltip width="80"> <el-table-column prop="ClueState" label="线索状态" show-overflow-tooltip width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.ClueState==1"> <template v-if="scope.row.ClueState==1">
...@@ -255,7 +258,7 @@ ...@@ -255,7 +258,7 @@
default: false, default: false,
}, },
queryTime:{ queryTime:{
type:String, type:Object,
default: null default: null
} }
}, },
...@@ -438,6 +441,14 @@ ...@@ -438,6 +441,14 @@
this.MsgBus.$off('editScene'); this.MsgBus.$off('editScene');
}, },
methods: { methods: {
handleClose(done) {
done();
},
// 查看详情
seeDetails(row){
this.drawer = true
this.queryTime = this.msg.YearStr+'-'+row.DateStr
},
changeWhere(item) { changeWhere(item) {
this.msg.ID = item.ID this.msg.ID = item.ID
this.sceneID = item.ID this.sceneID = item.ID
...@@ -711,12 +722,9 @@ ...@@ -711,12 +722,9 @@
if(!this.isDrawer){ if(!this.isDrawer){
url = '/api/Customer/GetCustomerCluePage' url = '/api/Customer/GetCustomerCluePage'
}else{ }else{
var d = new Date();
var currentY = this.queryTime.slice(0,4); this.msg.StartTime = this.queryTime.StartTime
var currentM = this.queryTime.slice(5,7); this.msg.EndTime = this.queryTime.StartTime
var MonthDayNum = new Date(currentY,currentM,0).getDate(); //计算当月的天数
this.msg.StartTime = this.queryTime
this.msg.EndTime = currentY+'-'+currentM+'-'+MonthDayNum
url = '/api/Customer/GetCustomerClueAllPage' url = '/api/Customer/GetCustomerClueAllPage'
} }
this.apipost(url, this.msg, res => { this.apipost(url, this.msg, res => {
......
...@@ -81,7 +81,10 @@ export default { ...@@ -81,7 +81,10 @@ export default {
}, },
data() { data() {
return { return {
queryTime:'', queryTime:{
StartTime:'',
EndTime:''
},
drawer: false, drawer: false,
isDrawer: true, isDrawer: true,
msg: { msg: {
...@@ -109,8 +112,13 @@ export default { ...@@ -109,8 +112,13 @@ export default {
}, },
// 查看详情 // 查看详情
seeDetails(row){ seeDetails(row){
var d = new Date();
var currentY = this.msg.YearStr;
var currentM = this.msg.MonthStr;
var MonthDayNum = new Date(currentY,currentM,0).getDate(); //计算当月的天数
this.queryTime.StartTime = this.msg.YearStr+'-'+row.DateStr
this.queryTime.EndTime = currentY+'-'+currentM+'-'+MonthDayNum
this.drawer = true this.drawer = true
this.queryTime = this.msg.YearStr+'-'+row.DateStr
}, },
init() { init() {
if (this.loading) return; if (this.loading) return;
......
...@@ -31,7 +31,10 @@ ...@@ -31,7 +31,10 @@
<el-tab-pane label="月度数据" name="monthdata" style="background:#000"> <el-tab-pane label="月度数据" name="monthdata" style="background:#000">
<div class="data-box-item"> <div class="data-box-item">
<el-table :data="tableData" tooltip-effect="dark" v-loading="loading" style="width: 100%;" height="100%" border :cell-class-name="tableCellClassName" :row-class-name="tableRowClassName"> <el-table :data="tableData" tooltip-effect="dark" v-loading="loading" style="width: 100%;" height="100%" border :cell-class-name="tableCellClassName" :row-class-name="tableRowClassName">
<el-table-column prop="DateStr" label=""> <el-table-column>
<template slot-scope="scope">
<span class="pointer" @click="seeDetails(scope.row)">{{scope.row.DateStr}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="PushCount" label="引流总数"> <el-table-column prop="PushCount" label="引流总数">
</el-table-column> </el-table-column>
...@@ -103,14 +106,26 @@ ...@@ -103,14 +106,26 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose">
<clueComponent :isDrawer="isDrawer" :queryTime="queryTime"></clueComponent>
</el-drawer>
</div> </div>
</template> </template>
<script> <script>
import clueComponent from "@/components/clueManagement/clueComponent";
export default { export default {
components: {
clueComponent
},
data() { data() {
return { return {
queryTime:{
StartTime:'',
EndTime:''
},
drawer:false,
isDrawer:true,
msg: { msg: {
month: "", month: "",
YearStr: "", YearStr: "",
...@@ -133,6 +148,24 @@ export default { ...@@ -133,6 +148,24 @@ export default {
this.initRate(); this.initRate();
}, },
methods: { methods: {
handleClose(done) {
done();
},
// 查看详情
seeDetails(row){
var d = new Date();
var currentY = this.msg.YearStr;
var currentM = this.msg.month;
if(row.DateStr.length==2){
currentM = '0'+row.DateStr.slice(0,1)
}else{
currentM = row.DateStr.slice(0,2)
}
var MonthDayNum = new Date(currentY,currentM,0).getDate(); //计算当月的天数
this.queryTime.StartTime = this.msg.YearStr+'-'+currentM+'-01'
this.queryTime.EndTime = currentY+'-'+currentM+'-'+MonthDayNum
this.drawer = true
},
init() { init() {
if (this.loading) return; if (this.loading) return;
this.loading = true; this.loading = true;
...@@ -174,7 +207,7 @@ export default { ...@@ -174,7 +207,7 @@ export default {
}, },
tableCellClassName({ row, column }) { tableCellClassName({ row, column }) {
if ( if (
row[column.property].toString().indexOf("-") != -1 && row[column.property]&&row[column.property].toString().indexOf("-") != -1 &&
column.property != "DateStr" column.property != "DateStr"
) { ) {
return "warning-col"; return "warning-col";
...@@ -250,4 +283,10 @@ export default { ...@@ -250,4 +283,10 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
} }
.pointer{
cursor: pointer;
}
.pointer:hover{
color: #00b0f0;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment