Commit ec449be9 authored by 华国豪's avatar 华国豪 🙄

no message

parent 3f31f7d9
......@@ -84,6 +84,7 @@
v-model="monthVal"
type="month"
value-format="yyyyM"
@change="init"
placeholder="请选择月">
</el-date-picker>
</div>
......@@ -92,6 +93,7 @@
v-model="yearVal"
align="right"
type="year"
@change="init"
value-format="yyyy"
placeholder="请选择年">
</el-date-picker>
......@@ -157,6 +159,12 @@
<th @click="sort" data-key="SeeOldClient">拜访老客户</th>
<th @click="sort" data-key="ClientSelfOrders">同行自行报名</th>
<th @click="sort" data-key="Balance">幸福存折余额</th>
<th @click="sort" data-key="AppUserActive">激活APP</th>
<th @click="sort" data-key="SuerOrderShare">确认单分享</th>
<th @click="sort" data-key="ShareIdear">分享意见表</th>
<th @click="sort" data-key="UseBankBookCount">客户使用存折</th>
<th @click="sort" data-key="CutCount">预售切位</th>
</tr>
</thead>
</table>
......@@ -389,6 +397,37 @@
@click="chosen(index,34)"
class="even"
>{{item.Balance}}</td>
<td
@mouseleave="outTable"
@mouseover="activeTd(index,35)"
@click="chosen(index,35)"
class="even"
>{{item.AppUserActive}}</td>
<td
@mouseleave="outTable"
@mouseover="activeTd(index,36)"
@click="chosen(index,36)"
class="even"
>{{item.SuerOrderShare}}</td>
<td
@mouseleave="outTable"
@mouseover="activeTd(index,37)"
@click="chosen(index,37)"
class="even"
>{{item.ShareIdear}}</td>
<td
@mouseleave="outTable"
@mouseover="activeTd(index,38)"
@click="chosen(index,38)"
class="even"
>{{item.UseBankBookCount}}</td>
<td
@mouseleave="outTable"
@mouseover="activeTd(index,39)"
@click="chosen(index,39)"
class="even"
>{{item.CutCount}}</td>
</tr>
</tbody>
</table>
......@@ -444,7 +483,7 @@ export default {
this.monthVal = date.getFullYear() + '' + (date.getMonth() + 1);
let Height = document.body.clientHeight;
this.listHeight = Height - 470;
this.getNewWeek(date)
this.getNewWeek(date,0)
},
computed: {
text () {
......@@ -468,7 +507,7 @@ export default {
document.onkeydown=null;
},
methods: {
getNewWeek(time){
getNewWeek(time,temp){
let dateNow = time ? new Date(time) : new Date(this.weekVal);
let dateFirst = new Date(dateNow.getFullYear(), 0, 1);
let dataNumber = Math.round((dateNow.valueOf() - dateFirst.valueOf()) / 86400000);
......@@ -477,6 +516,9 @@ export default {
if(time) {
this.weekVal = time
}
if(!temp){
this.init()
}
},
showCareer(){
let temp=this.tableData[this.chosenTD.row].EmployeeId
......@@ -564,18 +606,31 @@ export default {
},
init() {
this.isLoadingTableData = true;
let period=''
if(this.index1 + 1==1){
period=this.NewWeekVal
}else if(this.index1 + 1==2){
period=this.monthVal
}else if(this.index1 + 1==3){
period=this.yearVal
}
console.log(this.yearVal,this.weekVal,this.monthVal)
let msg = {
timeRange: this.index1 + 1,
userRange: this.index2 + 1
userRange: this.index2 + 1,
period
};
console.log(msg)
this.apipost("user_get_usedsixSatistics", msg, r => {
this.tableData = this.orderBy(
r.data.data,
['SumScore'],
'desc'
).results;
if(this.chosenTD.row>=this.tableData.length){
this.chosen(this.tableData.length - 1, this.chosenTD.col);
if(r.data.data && r.data.data.length>0){
this.tableData = this.orderBy(
r.data.data,
['SumScore'],
'desc'
).results;
if(this.chosenTD.row>=this.tableData.length){
this.chosen(this.tableData.length - 1, this.chosenTD.col);
}
}
this.isLoadingTableData = false;
});
......
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