12 changed files with 303 additions and 2 deletions
@ -0,0 +1,53 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Coldairarrow.Entity.DTO |
|||
{ |
|||
public class TaskInfoDto:HuiYan.pricetasklog |
|||
{ |
|||
/// <summary>
|
|||
/// 是否通过
|
|||
/// </summary>
|
|||
public bool IsPass { get; set; } |
|||
|
|||
public string TeamId { get; set; } |
|||
|
|||
public string TeamUserId { get; set; } |
|||
|
|||
public DateTime? TeamDate { get; set; } |
|||
|
|||
public DateTime? TeamOverDate { get; set; } |
|||
} |
|||
|
|||
|
|||
public class PriceTaskInfo |
|||
{ |
|||
/// <summary>
|
|||
/// 待审核任务数量
|
|||
/// </summary>
|
|||
public int AuditCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 完成任务数量
|
|||
/// </summary>
|
|||
public int OverCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 合格任务数量
|
|||
/// </summary>
|
|||
public int PassCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 发布任务数
|
|||
/// </summary>
|
|||
public int PublishCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 合格率
|
|||
/// </summary>
|
|||
public decimal PassRate { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
<template> |
|||
<a-card> |
|||
<a-row> |
|||
<a-col :span="8"> |
|||
时间: |
|||
<a-date-picker v-model="startDate" /> |
|||
~ |
|||
<a-date-picker v-model="endDate" /> |
|||
</a-col> |
|||
<a-col :span="4"> |
|||
<a-button style="margin-left:15px;" @click="getInfoData">查询</a-button> |
|||
</a-col> |
|||
</a-row> |
|||
<div style="margin-top:10px"> |
|||
<a-tag @click="changeDate(item.value)" style="width:73px;text-align: center;" color="#02A7F0" v-for="item in timeTypes" :key="item.value">{{item.name}}</a-tag> |
|||
</div> |
|||
</a-card> |
|||
</template> |
|||
|
|||
<script> |
|||
import moment from "moment" |
|||
|
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
infoData:{}, |
|||
startDate:undefined, |
|||
endDate:undefined, |
|||
isPriceTaskUser:false, |
|||
//0,1,3,7,15,30 |
|||
timeTypes:[{name:'今天',value:0},{name:'昨天',value:1},{name:'近3天',value:3},{name:'近7天',value:7},{name:'近15天',value:15},{name:'近30天',value:30}] |
|||
} |
|||
}, |
|||
mounted() { |
|||
if(hyCoreModel){ |
|||
hyCoreModel.getType().then(type=>{ |
|||
this.isPriceTaskUser=type |
|||
console.log(this.isPriceTaskUser,'this.isPriceTaskUser') |
|||
}) |
|||
} |
|||
}, |
|||
methods: { |
|||
changeDate(day){ |
|||
//.format('YYYY-MM-DD'), |
|||
this.endDate=moment() |
|||
this.startDate=moment().add(day*-1,'days') |
|||
}, |
|||
getInfoData(){ |
|||
var start=this.startDate.format('YYYY-MM-DD') |
|||
var end=this.endDate.format('YYYY-MM-DD') |
|||
this.http.get(`/HuiYan/teamitems/GetMyTaskInfo?type=${this.isPriceTaskUser?1:0}&start=${start}&end=${end}`).then(res=>{ |
|||
console.log(res) |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
Loading…
Reference in new issue