保存进度!
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<!--
|
||||
* @Author: Kane
|
||||
* @Date: 2023-08-30 14:08:57
|
||||
* @LastEditors: Kane
|
||||
* @FilePath: /task_schedule/src/components/CallerArchievementComponent.vue
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
-->
|
||||
<template>
|
||||
<div class="caller-archievment-wrapper" >
|
||||
<table>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<script lang="ts">
|
||||
interface CallerArchievementComponentUI
|
||||
{
|
||||
callerName: string,
|
||||
thisMonthPremium: number,
|
||||
attachingRate: string,
|
||||
renewalRate: string,
|
||||
}
|
||||
|
||||
export default {
|
||||
name: "CallerArchievmentComponent",
|
||||
props:{
|
||||
thisMonthPremium: {
|
||||
type: Number,
|
||||
require: true,
|
||||
default:()=>0,
|
||||
},
|
||||
},
|
||||
setup()
|
||||
{
|
||||
const ui:CallerArchievementComponentUI = {
|
||||
callerName: "",
|
||||
thisMonthPremium: 0,
|
||||
attachingRate: "0.0",
|
||||
renewalRate: "0.0",
|
||||
};
|
||||
|
||||
return {ui,};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
</style>
|
@@ -136,7 +136,7 @@ export default {
|
||||
setup()
|
||||
{
|
||||
const monthIndex = new Date();
|
||||
const thisMonth: number = monthIndex.getMonth();
|
||||
const thisMonth: number = monthIndex.getMonth() + 1; // getMonth返回值从0开始。
|
||||
const thisMonthString = thisMonth > 10 ? String( thisMonth ): "0" + String( thisMonth );
|
||||
const thisYear: number = monthIndex.getFullYear();
|
||||
const thisYearString: string = String( thisYear );
|
||||
@@ -235,10 +235,11 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
ui.chartData = data.mensual_archievement_list.slice( 0, thisMonth-1 );
|
||||
ui.chartData = data.mensual_archievement_list.slice( 0, thisMonth );
|
||||
ui.totalArchievement = data.total_archievement;
|
||||
|
||||
console.log( "业绩清单", ui.chartData );
|
||||
console.log( "当月", data.mensual_archievement_list );
|
||||
|
||||
ui.showUI = false;
|
||||
setTimeout(() =>
|
||||
|
Reference in New Issue
Block a user