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

no message

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