保存进度!

This commit is contained in:
Kane Wang 2023-11-10 18:09:10 +08:00
parent d202d976a3
commit 237cc350be
4 changed files with 55 additions and 7 deletions

View File

@ -143,11 +143,11 @@ type QueryBIDepartmentAttachingRateDataHandler = ( response: QueryBIDepartmentAt
type QueryBIDepartmentRenewalRateDataHandler = ( response: QueryBIDepartmentRenewalRateResponse, error: any ) => void;
/**
*
* BI报表
* @param request
* @param handler
*/
function importBIReport( request: ImportBIReportRequest, handler: any ): void
function importBIReport( request: ImportBIReportRequest, handler: ImportBIReportResponseHandler ): void
{
const importResponse: ImportBIReportResponse = {
success: false,
@ -165,7 +165,7 @@ function importBIReport( request: ImportBIReportRequest, handler: any ): void
const data: ImportBIReportResponse = response.data;
importResponse.success = data.success ?? false;
importResponse.message = data.message ?? "";
importResponse.message = data.message ?? "请求完成,但服务器未返回请求结果消息!";
importResponse.importedCount = data.importedCount ?? 0;
handler( importResponse, null );
@ -179,6 +179,10 @@ function importBIReport( request: ImportBIReportRequest, handler: any ): void
});
}
/**
* BI坐席渗透率数据
* @param handler handler函数
*/
function queryBITelsalerAttachingRateData( handler: QueryBITelsalerAttachingRateDataHandler ): void
{
const queryResponse: QueryBITelsalerAttachingRateReportResponse = {
@ -251,6 +255,10 @@ function queryBITelsalerRenewalData( handler: QueryBITelsalerRenewalRateDataHand
});
}
/**
*
* @param handler
*/
function queryDepartmentAttachingRateData( handler: QueryBIDepartmentAttachingRateDataHandler ): void
{
const queryResponse: QueryBIDepartmentAttachingRateResponse = {
@ -285,6 +293,10 @@ function queryDepartmentAttachingRateData( handler: QueryBIDepartmentAttachingRa
});
}
/**
* BI机构续保率数据
* @param handler
*/
function queryDepartmentRenewalRateData( handler: QueryBIDepartmentRenewalRateDataHandler ): void
{
const queryResponse: QueryBIDepartmentRenewalRateResponse = {

View File

@ -16,8 +16,11 @@
<el-tab-pane label="坐席续保率">
<TelsalerRenewalRateView />
</el-tab-pane>
<el-tab-pane label="机构">
坐席车非渗透率
<el-tab-pane label="机构渗透率">
<DepartmentAttachingRateView />
</el-tab-pane>
<el-tab-pane label="机构续保率">
<DepartmentRenewalRateView />
</el-tab-pane>
</el-tabs>
</div>
@ -27,9 +30,12 @@ import { ref, reactive } from "vue";
import { ElMessage, ElMessageBox, type UploadFile, type UploadFiles, type UploadProps, type UploadUserFile } from "element-plus";
import TelsalerAttachingRateView from "@/views/data/bi/TelsalerAttachingRateView.vue";
import TelsalerRenewalRateView from "@/views/data/bi/TelsalerRenewalRateView.vue";
import DepartmentRenewalRateView from "@/views/data/bi/DepartmentRenewalRateView.vue";
import DepartmentAttachingRateView from "@/views/data/bi/DepartmentAttachingRateView.vue";
export default {
name: "DataManagement",
components: { TelsalerAttachingRateView, TelsalerRenewalRateView, },
components: { TelsalerAttachingRateView, TelsalerRenewalRateView, DepartmentRenewalRateView, DepartmentAttachingRateView, },
setup()
{
const ui = reactive({

View File

@ -15,7 +15,7 @@
import { reactive } from "vue";
export default {
name: "DepartmentArchievementView",
name: "DepartmentAttachingRateView",
setup()
{
const ui = reactive({

View File

@ -0,0 +1,30 @@
<!--
* @Author: Kane
* @Date: 2023-11-10 17:48:01
* @LastEditors: Kane
* @FilePath: /task_schedule/src/views/data/bi/DepartmentAttachingRateView copy.vue
* @Description:
*
* Copyright (c) ${2023} by Kane, All Rights Reserved.
-->
<template>
<div class="wrapper" />
</template>
<script lang="ts">
import { reactive } from "vue";
export default {
name: "DepartmentRenewalRateView",
setup()
{
const ui = reactive({
showUI: true,
});
},
};
</script>
<style lang="scss" scoped>
.wrapper {
margin: 10px;
}
</style>