|
@@ -13,12 +13,12 @@
|
|
|
<div class="flex1">
|
|
|
<div>
|
|
|
<div class="num">校招投递简历总数 {{schoolTotal||0}}条</div>
|
|
|
- <div class="num">社招投递简历总数 {{clubTotal}}条</div>
|
|
|
+ <div class="num">社招投递简历总数 {{clubTotal||0}}条</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
<div class="title">本周</div>
|
|
|
- <div class="num">校招投递简历数 {{0}}条</div>
|
|
|
- <div class="num">社招投递简历数 {{0}}条</div>
|
|
|
+ <div class="num">校招投递简历数 {{schoolWeek||0}}条</div>
|
|
|
+ <div class="num">社招投递简历数 {{clubWeek||0}}条</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -37,7 +37,9 @@ export default {
|
|
|
clubRecruit: [],
|
|
|
schoolRecruit: [],
|
|
|
clubTotal: 0,
|
|
|
- schoolTotal: 0
|
|
|
+ schoolTotal: 0,
|
|
|
+ clubWeek: 0,
|
|
|
+ schoolWeek: 0
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
@@ -56,6 +58,7 @@ export default {
|
|
|
this.timeList = res.object.weekList
|
|
|
this.clubRecruit = res.object.countList
|
|
|
this.clubTotal = res.object.countTotal
|
|
|
+ this.clubWeek = this.clubRecruit[this.clubRecruit.length - 1]
|
|
|
this.$api
|
|
|
.post('/chart/getResumeChart', {
|
|
|
reqdata: {
|
|
@@ -63,8 +66,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- this.schoolRecruit = res.object.countList
|
|
|
+ let arr = []
|
|
|
+ arr.length = this.timeList.indexOf(res.object.weekList[0])
|
|
|
+ this.schoolRecruit = [...arr, ...res.object.countList]
|
|
|
this.schoolTotal = res.object.countTotal
|
|
|
+ // console.log(this.schoolTotal)
|
|
|
+ this.schoolWeek = this.schoolRecruit[this.schoolRecruit.length - 1]
|
|
|
this.initChart()
|
|
|
})
|
|
|
})
|