获取学历层次

This commit is contained in:
张宁 2024-07-01 14:34:40 +08:00
parent 25c187186f
commit aedcf388e8
5 changed files with 48 additions and 30 deletions

View File

@ -1,10 +1,4 @@
/*
* @Author: daidai
* @Date: 2021-12-23 11:18:37
* @LastEditTime: 2024-03-28 16:07:20
* @FilePath: \web-pc-svn\src\api\modules\index.js
*/
import {GETNOBASE} from "./api";
export * from "./modules/index"

View File

@ -12,3 +12,8 @@ export const WeekPay = (param: any = {}) => {
export const StatisticsReportedRanking = (param: any = {}) => {
return GET("api/TeacherManagement/StatisticsReportedRanking", param);
};
// 学历层次查询
export const GetBatch = (param: any = {}) => {
return GET("api/BasicDataMaintenance/GetBatch", param);
};

View File

@ -1,11 +1,4 @@
/*
* @Author: 18339727226@163.com
* @Date: 2024-05-27 08:45:53
* @LastEditors: 18339727226@163.com
* @LastEditTime: 2024-06-04 09:34:13
* @FilePath: \welcome-system-screen\src\stores\time\time.ts
* @Description: ,`customMade`, koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { ref } from "vue";
import { defineStore } from "pinia";
// import { storeToRefs } from 'pinia';
@ -85,6 +78,14 @@ export const useDataStore = defineStore("data", () => {
totalPay.value = data;
};
// 学历层次
const batchData = ref();
const setBatchData = (data: any) => {
batchData.value = data;
};
return {
allData,
degreeDto,
@ -111,6 +112,8 @@ export const useDataStore = defineStore("data", () => {
forecastRate,
totalRate,
totalPay,
setTotalPay
setTotalPay,
batchData,
setBatchData
};
});

View File

@ -16,10 +16,10 @@ const timeStore = useTimeStore();
const { nowTitle, years, months, days } = storeToRefs(timeStore);
import { AdminPCIndex, WeekPay, StatisticsReportedRanking } from "@/api";
import { AdminPCIndex, WeekPay, StatisticsReportedRanking, GetBatch } from "@/api";
import { useDataStore } from "@/stores/index";
const dataStore = useDataStore();
const { allData, rankingDto, collageId, professionRank } = storeToRefs(dataStore)
const { allData, rankingDto, collageId, professionRank, batchData } = storeToRefs(dataStore)
const rightCenterRef: any = ref(null)
@ -63,7 +63,7 @@ const dealMapData = (data: any) => {
}
})
tableData.value?.sort((a: any, b: any) => {
return b.reported - a.reported
return b.reported - a.reported
})
tableData.value?.forEach((item: any, index: any) => {
item.sort = index + 1
@ -134,6 +134,17 @@ const getAdminPCIndex = () => {
});
})
};
const batchs = ref()
//
const getBatch = () => {
GetBatch().then((res: any) => {
if (res.succeed) {
batchs.value = res.data.item1
dataStore.setBatchData(res.data.item1)
}
})
}
// --
/* const payData = () => {
@ -178,11 +189,16 @@ const getAdminPCIndex = () => {
const payData = () => {
let params: any = {
"CandidateCategory": 0,
"EducationalLevel": 3,
// "EducationalLevel": 3,
"Id": batchs.value[0].id,
"Year": years.value,
"Month": months.value || void 0,
"Day": days.value || void 0,
}
// for (let i = 0; i < batchs.value.length; i++) {
// let id = batchs.value[i].id;
// }
WeekPay(params).then((res: any) => {
const bk = res.data.todayPayDto.batchTodayPays?.find((item: any) => item.name === "统招本科");
const zk = res.data.todayPayDto.batchTodayPays?.find((item: any) => item.name === "统招专科");
@ -210,9 +226,13 @@ const clearTimer = () => {
}
onMounted(() => {
getBatch();
getAdminPCIndex();
payData();
startTimer()
setTimeout(() => {
payData();
startTimer()
},100)
});
</script>
@ -243,7 +263,7 @@ onMounted(() => {
<RightCenter ref="rightCenterRef" />
</zkItem>
<zkItem class="contetn_left-bottom contetn_rb-item" title="报到人数区域排名 ">
<RightBottom ref="rbRef"/>
<RightBottom ref="rbRef" />
</zkItem>
</div>
<div class="contetn_right" v-if="!showRight">

View File

@ -1,11 +1,4 @@
<!--
* @Author: 张宁 18339727226@163.com
* @Date: 2024-05-23 19:38:24
* @LastEditors: 张宁 18339727226@163.com
* @LastEditTime: 2024-05-31 18:55:10
* @FilePath: \welcome-system-screen\src\views\index\right-bottom-two.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup lang="ts">
import { ElMessage } from "element-plus";
const xData:Ref<any> = ref([])
@ -18,6 +11,9 @@ const option = reactive({
axisLabel: {
color: "#fff",
fontWeight: "500",
formatter: function (value:any) {
return value.substring(0, 3) + '..'; //
},
},
},
yAxis: {