获取学历层次
This commit is contained in:
		
							parent
							
								
									25c187186f
								
							
						
					
					
						commit
						aedcf388e8
					
				|  | @ -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"; | import {GETNOBASE} from "./api"; | ||||||
| export * from "./modules/index" | export * from "./modules/index" | ||||||
|  |  | ||||||
|  | @ -12,3 +12,8 @@ export const WeekPay = (param: any = {}) => { | ||||||
| export const StatisticsReportedRanking = (param: any = {}) => { | export const StatisticsReportedRanking = (param: any = {}) => { | ||||||
|   return GET("api/TeacherManagement/StatisticsReportedRanking", param); |   return GET("api/TeacherManagement/StatisticsReportedRanking", param); | ||||||
| }; | }; | ||||||
|  | 
 | ||||||
|  | // 学历层次查询
 | ||||||
|  | export const GetBatch = (param: any = {}) => { | ||||||
|  |   return GET("api/BasicDataMaintenance/GetBatch", param); | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | @ -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 { ref } from "vue"; | ||||||
| import { defineStore } from "pinia"; | import { defineStore } from "pinia"; | ||||||
| // import { storeToRefs } from 'pinia';
 | // import { storeToRefs } from 'pinia';
 | ||||||
|  | @ -85,6 +78,14 @@ export const useDataStore = defineStore("data", () => { | ||||||
|     totalPay.value = data; |     totalPay.value = data; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |   // 学历层次
 | ||||||
|  |   const batchData = ref(); | ||||||
|  |   const setBatchData = (data: any) => { | ||||||
|  |     batchData.value = data; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   return { |   return { | ||||||
|     allData, |     allData, | ||||||
|     degreeDto, |     degreeDto, | ||||||
|  | @ -111,6 +112,8 @@ export const useDataStore = defineStore("data", () => { | ||||||
|     forecastRate, |     forecastRate, | ||||||
|     totalRate, |     totalRate, | ||||||
|     totalPay, |     totalPay, | ||||||
|     setTotalPay |     setTotalPay, | ||||||
|  |     batchData, | ||||||
|  |     setBatchData | ||||||
|   }; |   }; | ||||||
| }); | }); | ||||||
|  |  | ||||||
|  | @ -16,10 +16,10 @@ const timeStore = useTimeStore(); | ||||||
| 
 | 
 | ||||||
| const { nowTitle, years, months, days } = storeToRefs(timeStore); | 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"; | import { useDataStore } from "@/stores/index"; | ||||||
| const dataStore = useDataStore(); | const dataStore = useDataStore(); | ||||||
| const { allData, rankingDto, collageId, professionRank } = storeToRefs(dataStore) | const { allData, rankingDto, collageId, professionRank, batchData } = storeToRefs(dataStore) | ||||||
| 
 | 
 | ||||||
| const rightCenterRef: any = ref(null) | const rightCenterRef: any = ref(null) | ||||||
| 
 | 
 | ||||||
|  | @ -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 = () => { | /* const payData = () => { | ||||||
|  | @ -178,11 +189,16 @@ const getAdminPCIndex = () => { | ||||||
| const payData = () => { | const payData = () => { | ||||||
|   let params: any = { |   let params: any = { | ||||||
|     "CandidateCategory": 0, |     "CandidateCategory": 0, | ||||||
|     "EducationalLevel": 3, |     // "EducationalLevel": 3, | ||||||
|  |     "Id": batchs.value[0].id, | ||||||
|     "Year": years.value, |     "Year": years.value, | ||||||
|     "Month": months.value || void 0, |     "Month": months.value || void 0, | ||||||
|     "Day": days.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) => { |   WeekPay(params).then((res: any) => { | ||||||
|     const bk = res.data.todayPayDto.batchTodayPays?.find((item: any) => item.name === "统招本科"); |     const bk = res.data.todayPayDto.batchTodayPays?.find((item: any) => item.name === "统招本科"); | ||||||
|     const zk = 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(() => { | onMounted(() => { | ||||||
|  |   getBatch(); | ||||||
|   getAdminPCIndex(); |   getAdminPCIndex(); | ||||||
|  |   setTimeout(() => { | ||||||
|     payData(); |     payData(); | ||||||
|     startTimer() |     startTimer() | ||||||
|  |   },100) | ||||||
|  | 
 | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| </script> | </script> | ||||||
|  | @ -243,7 +263,7 @@ onMounted(() => { | ||||||
|         <RightCenter ref="rightCenterRef" /> |         <RightCenter ref="rightCenterRef" /> | ||||||
|       </zkItem> |       </zkItem> | ||||||
|       <zkItem class="contetn_left-bottom contetn_rb-item" title="报到人数区域排名 "> |       <zkItem class="contetn_left-bottom contetn_rb-item" title="报到人数区域排名 "> | ||||||
|         <RightBottom ref="rbRef"/> |         <RightBottom ref="rbRef" /> | ||||||
|       </zkItem> |       </zkItem> | ||||||
|     </div> |     </div> | ||||||
|     <div class="contetn_right" v-if="!showRight"> |     <div class="contetn_right" v-if="!showRight"> | ||||||
|  |  | ||||||
|  | @ -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"> | <script setup lang="ts"> | ||||||
| import { ElMessage } from "element-plus"; | import { ElMessage } from "element-plus"; | ||||||
| const xData:Ref<any> = ref([]) | const xData:Ref<any> = ref([]) | ||||||
|  | @ -18,6 +11,9 @@ const option = reactive({ | ||||||
|       axisLabel: { |       axisLabel: { | ||||||
|         color: "#fff", |         color: "#fff", | ||||||
|         fontWeight: "500", |         fontWeight: "500", | ||||||
|  |         formatter: function (value:any) { | ||||||
|  |             return value.substring(0, 3) + '..'; // 取每个字符串的前三个字符 | ||||||
|  |         }, | ||||||
|       }, |       }, | ||||||
|     }, |     }, | ||||||
|     yAxis: { |     yAxis: { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue