|
@@ -16,14 +16,26 @@
|
|
|
<!-- Filter Section -->
|
|
<!-- Filter Section -->
|
|
|
<view class="filter-section">
|
|
<view class="filter-section">
|
|
|
<view class="filter-buttons">
|
|
<view class="filter-buttons">
|
|
|
- <view class="filter-btn" @click="selectDateRange">
|
|
|
|
|
|
|
+ <!-- <view class="filter-btn" @click="selectDateRange">
|
|
|
<text class="filter-text">2025.07.30-08.06</text>
|
|
<text class="filter-text">2025.07.30-08.06</text>
|
|
|
<u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
|
|
<u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
|
|
|
- </view>
|
|
|
|
|
- <view class="filter-btn" @click="selectPosition">
|
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ <!-- <view class="filter-btn" @click="selectPosition">
|
|
|
<text class="filter-text">亚马逊运营总监</text>
|
|
<text class="filter-text">亚马逊运营总监</text>
|
|
|
<u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
|
|
<u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ <picker @change="changeDate" :value="weekIndex" :range="weekList" :range-key="'name'">
|
|
|
|
|
+ <view class="filter-btn" >
|
|
|
|
|
+ <text class="filter-text">{{weekList.length?weekList[weekIndex].name:'/'}}</text>
|
|
|
|
|
+ <u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </picker>
|
|
|
|
|
+ <picker @change="changeZw" :value="zwIndex" :range="zwList" :range-key="'name'">
|
|
|
|
|
+ <view class="filter-btn">
|
|
|
|
|
+ <text class="filter-text">{{zwList.length?zwList[zwIndex].name:'/'}}</text>
|
|
|
|
|
+ <u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </picker>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -49,14 +61,14 @@
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">我看过</text>
|
|
<text class="data-label">我看过</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">1120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.iSaw}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">看过我</text>
|
|
<text class="data-label">看过我</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">2120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.sawMe}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -78,14 +90,14 @@
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">我沟通</text>
|
|
<text class="data-label">我沟通</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">1120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{ dataStatics.iCommunicated }}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">求职者</text>
|
|
<text class="data-label">求职者</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">2120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{ dataStatics.candidateCommunicated }}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -107,31 +119,31 @@
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">合计</text>
|
|
<text class="data-label">合计</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">1120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.receivedResumes+dataStatics.exchangedContact}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">获取简历</text>
|
|
<text class="data-label">获取简历</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">2120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.receivedResumes}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
- <text class="data-label">交换电话</text>
|
|
|
|
|
|
|
+ <text class="data-label">交换电话/微信</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">2120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.exchangedContact}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="data-item">
|
|
|
|
|
|
|
+ <!-- <view class="data-item">
|
|
|
<text class="data-label">交换微信</text>
|
|
<text class="data-label">交换微信</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
<text class="data-value">2120</text>
|
|
<text class="data-value">2120</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -150,14 +162,14 @@
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">邀约面试</text>
|
|
<text class="data-label">邀约面试</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">1120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.acceptedInterview}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-item">
|
|
<view class="data-item">
|
|
|
<text class="data-label">接受面试</text>
|
|
<text class="data-label">接受面试</text>
|
|
|
<view class="data-value-wrapper">
|
|
<view class="data-value-wrapper">
|
|
|
- <text class="data-value">2120</text>
|
|
|
|
|
|
|
+ <text class="data-value">{{dataStatics.acceptedInterview}}</text>
|
|
|
<text class="data-unit">人</text>
|
|
<text class="data-unit">人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -170,21 +182,84 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import navBar from "@/components/nav-bar/index.vue";
|
|
import navBar from "@/components/nav-bar/index.vue";
|
|
|
-
|
|
|
|
|
|
|
+import { getPrevious8Weeks } from './dateFormate'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
navBar
|
|
navBar
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- statusBarHeight: 0
|
|
|
|
|
|
|
+ statusBarHeight: 0,
|
|
|
|
|
+ zwList:[],
|
|
|
|
|
+ zwIndex:0,
|
|
|
|
|
+ weekList:[],
|
|
|
|
|
+ weekIndex:0,
|
|
|
|
|
+ dataStatics:{}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
const systemInfo = uni.getSystemInfoSync()
|
|
const systemInfo = uni.getSystemInfoSync()
|
|
|
- this.statusBarHeight = systemInfo.statusBarHeight || 0
|
|
|
|
|
|
|
+ this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
|
|
+ this.getZwList()
|
|
|
|
|
+ this.weekList=[]
|
|
|
|
|
+ getPrevious8Weeks(new Date()).forEach(it=>{
|
|
|
|
|
+ // this.weekList.push([
|
|
|
|
|
+ // it[0],it[1],it.join('~')
|
|
|
|
|
+ // ]),
|
|
|
|
|
+ this.weekList.push({
|
|
|
|
|
+ start:it[0],
|
|
|
|
|
+ end:it[1],
|
|
|
|
|
+ name:it.join('~')
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeDate(e){
|
|
|
|
|
+ this.weekIndex=e.detail.value;
|
|
|
|
|
+ this.getDataStatics()
|
|
|
|
|
+ },
|
|
|
|
|
+ getZwList(){
|
|
|
|
|
+ this.$Request.getT("/app/postPush/getMyPostPush").then(res=>{
|
|
|
|
|
+ res.data.records.forEach(item=>{
|
|
|
|
|
+ this.zwList.push({
|
|
|
|
|
+ name:item.ruleClassifyName,
|
|
|
|
|
+ id:item.postPushId
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ this.getDataStatics()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ changeZw(e){
|
|
|
|
|
+ this.zwIndex=e.detail.value;
|
|
|
|
|
+ this.getDataStatics()
|
|
|
|
|
+ },
|
|
|
|
|
+ getDataStatics(){
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ postPushId:this.zwList[this.zwIndex].id,
|
|
|
|
|
+ todayStart:this.formatDateRange(new Date(),new Date())[0],
|
|
|
|
|
+ todayEnd:this.formatDateRange(new Date(),new Date())[1],
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$Request.getT("/app/user/userYesterdayData",data).then(res=>{
|
|
|
|
|
+ this.dataStatics=res.data;
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ formatDateRange(startDate, endDate) {
|
|
|
|
|
+ // 格式化日期为 YYYY-MM-DD 格式
|
|
|
|
|
+ const formatDate = (date) => {
|
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
|
+ const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
|
|
|
+ const day = String(date.getDate()).padStart(2, '0');
|
|
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ // 创建开始日期的 00:00:00
|
|
|
|
|
+ const startDateTime = `${formatDate(startDate)} 00:00:00`;
|
|
|
|
|
+
|
|
|
|
|
+ // 创建结束日期的 23:59:59
|
|
|
|
|
+ const endDateTime = `${formatDate(endDate)} 23:59:59`;
|
|
|
|
|
+
|
|
|
|
|
+ return [startDateTime, endDateTime];
|
|
|
|
|
+ },
|
|
|
goBack() {
|
|
goBack() {
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
},
|
|
},
|