Przeglądaj źródła

企业-实习情况:接口添加企业id参数

Xiao_123 1 tydzień temu
rodzic
commit
7e7f15ed2d

+ 3 - 2
src/views/recruit/enterprise/student/InternshipSituation/index.vue

@@ -94,7 +94,8 @@ const total = ref(0)
 const query = ref({
 	pageNo: 1,
 	pageSize: 10,
-	startTime: null
+	startTime: null,
+	enterpriseId: JSON.parse(localStorage.getItem('entBaseInfo'))?.enterpriseId
 })
 const tableData = ref([])
 
@@ -129,7 +130,7 @@ const getList = async () => {
 // 数值统计
 const getStatistics = async () => {
 	try {
-		const data = await getRecordStatusCount({ type: '-1' })
+		const data = await getRecordStatusCount({ type: '-1', enterpriseId: JSON.parse(localStorage.getItem('entBaseInfo'))?.enterpriseId })
 		statistics.value.forEach(e => {
 			const obj = data.find(val => val.key === e.value)
 			e.count = obj ? obj.value : 0