+ -
-
+
+
ID: {{ lab.idcode || lab.id }} @@ -241,8 +240,18 @@ function assignUniqueLabImages() { onMounted(async () => { try { // 获取工程研究中心评估维度数据 - const response = await axios.get(`${getApiBaseUrl()}/admin-api/system/dept/list`); - dimensions.value = response.data;gang + const response = await axios.get(`${getApiBaseUrl()}/admin-api/pg/J-dimensions/lab`); + dimensions.value = response.data.data; + dimensions.value.forEach(dim => { + if (typeof dim.subDimensions === 'string') { + try { + dim.subDimensions = JSON.parse(dim.subDimensions); + } catch (error) { + console.error(`解析 subDimensions 失败: ${dim.name}`, error); + dim.subDimensions = []; // 解析失败时设为空数组 + } + } + }); // 加载工程研究中心数据 await loadLabs(); // 在此不需要调用handleSearch,因为loadLabs中已经调用了 @@ -255,8 +264,8 @@ onMounted(async () => { // 加载工程研究中心数据 const loadLabs = async () => { try { - const response = await axios.get(`${getApiBaseUrl()}/labs`); - labs.value = response.data; + const response = await axios.get(`${getApiBaseUrl()}/admin-api/pg/J-labs/labs`); + labs.value = response.data.data; // 为工程研究中心分配唯一的图片 assignUniqueLabImages(); diff --git a/src/components/TalentDetail.vue b/src/components/TalentDetail.vue index efe2ff1..d18da06 100644 --- a/src/components/TalentDetail.vue +++ b/src/components/TalentDetail.vue @@ -17,11 +17,6 @@
+ @@ -70,7 +66,8 @@
-
+
@@ -86,7 +83,7 @@
教育背景: - + {{ teacher.education }}
@@ -110,7 +107,8 @@
- + @@ -128,19 +126,10 @@ - - + +