diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue
index 2efd092..53eb670 100644
--- a/src/components/Dashboard.vue
+++ b/src/components/Dashboard.vue
@@ -12,7 +12,7 @@
-
+
@@ -42,19 +42,19 @@
科研项目数量
-
国家重点50项
+
国家重点0项
@@ -357,16 +357,12 @@
// 从API获取仪表盘数据
const fetchDashboardData = async () => {
try {
- const response = await fetch(`${getApiBaseUrl()}/dashboard`, {
- headers: {
- 'Authorization': `Bearer ${getToken()}`
- }
- });
+ const response = await fetch(`${getApiBaseUrl()}/admin-api/pg/J-dashboard/dashboard`);
if (response.ok) {
const data = await response.json();
console.log("仪表盘数据:", data);
- dashboardData.value = data;
+ dashboardData.value = data.data;
// 更新相应的UI数据
if (data) {
diff --git a/src/components/LabDetail.vue b/src/components/LabDetail.vue
index cdb8e43..0431de2 100644
--- a/src/components/LabDetail.vue
+++ b/src/components/LabDetail.vue
@@ -241,8 +241,8 @@ function assignUniqueLabImages() {
onMounted(async () => {
try {
// 获取工程研究中心评估维度数据
- const response = await axios.get(`${getApiBaseUrl()}/dimensions/lab`);
- dimensions.value = response.data;
+ const response = await axios.get(`${getApiBaseUrl()}/admin-api/system/dept/list`);
+ dimensions.value = response.data;gang
// 加载工程研究中心数据
await loadLabs();
// 在此不需要调用handleSearch,因为loadLabs中已经调用了
diff --git a/src/components/TalentDetail.vue b/src/components/TalentDetail.vue
index 25d587f..efe2ff1 100644
--- a/src/components/TalentDetail.vue
+++ b/src/components/TalentDetail.vue
@@ -16,7 +16,7 @@
-
@@ -188,19 +188,6 @@ const showAddDimensionDialog = () => {
dimensionDrawerVisible.value = true;
};
-// 处理保存维度
-const handleSaveDimensions = (updatedDimensions) => {
- // 更新维度列表
- dimensions.value = updatedDimensions;
-
- // 重新初始化雷达图
- updateAllRadarCharts();
-
- dimensionDrawerVisible.value = false;
- // 添加保存成功提示
- ElMessage.success('维度设置保存成功');
-};
-
// Function to open the drawer for adding a new evaluation
const openAddEvaluationDrawer = () => {
@@ -267,8 +254,8 @@ onMounted(async () => {
// 加载教师数据
const loadTeachers = async () => {
try {
- const response = await axios.get(`${getApiBaseUrl()}/talents`);
- teachers.value = response.data;
+ const response = await axios.get(`${getApiBaseUrl()}/admin-api/pg/J-talents/talents?name=${searchQuery.value}`);
+ teachers.value = response.data.data;
// 确保每个教师都有照片和教育背景,并重新生成随机评估数据
teachers.value.forEach(teacher => {
diff --git a/src/config.js b/src/config.js
index 237a482..b533f9c 100644
--- a/src/config.js
+++ b/src/config.js
@@ -3,10 +3,10 @@ const env = import.meta.env.MODE || 'development';
const config = {
development: {
- apiBaseUrl: 'http://127.0.0.1:48996',
+ apiBaseUrl: 'http://192.168.18.25:48080',
},
production: {
- apiBaseUrl: 'http://36.103.199.107:48996',
+ apiBaseUrl: 'http://192.168.18.25:48080',
}
};