diff --git a/__unconfig_vite.config.js b/__unconfig_vite.config.js new file mode 100644 index 0000000..090c0b2 --- /dev/null +++ b/__unconfig_vite.config.js @@ -0,0 +1,21 @@ + +let __unconfig_data; +let __unconfig_stub = function (data = {}) { __unconfig_data = data }; +__unconfig_stub.default = (data = {}) => { __unconfig_data = data }; +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vite.dev/config/ +const __unconfig_default = defineConfig({ + plugins: [vue()], + define: { + 'import.meta.env.MODE': JSON.stringify(process.env.NODE_ENV || 'development') + }, + server: { + host: '0.0.0.0', // 允许从任何IP访问 + port: 5173, // 前端端口 + strictPort: true + } +}) + +if (typeof __unconfig_default === "function") __unconfig_default(...[{"command":"serve","mode":"development"}]);export default __unconfig_data; \ No newline at end of file diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index b7635a8..8e0120c 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -860,7 +860,7 @@ const initCharts = () => { const labLineChart = echarts.init(labLineChartRef.value) labLineChart.setOption({ title: { - text: '近三年科研成果增长曲线', + text: '科研成果增长曲线', textStyle: { color: 'rgba(255, 255, 255, 0.8)', fontSize: 14, @@ -885,6 +885,7 @@ const initCharts = () => { }, yAxis: { type: 'value', + max: 100, axisLine: { lineStyle: { color: '#fff' } }, axisLabel: { color: '#fff' }, splitLine: { diff --git a/src/components/LabDetail.vue b/src/components/LabDetail.vue index 2669a46..9fdcef8 100644 --- a/src/components/LabDetail.vue +++ b/src/components/LabDetail.vue @@ -49,7 +49,7 @@
ID: {{ lab.basicInformation.name1 || lab.id }} - 时间: {{ lab.basicInformation.name0 }} + 年份: {{ lab.basicInformation.name0 }}
@@ -687,14 +687,16 @@ const openLabDetail = async (lab) => { } .lab-info { - width: 60%; + width: 100%; display: flex; - flex-direction: column; + flex-direction: row; /* 修改为横向排列 */ + flex-wrap: wrap; /* 允许元素换行 */ gap: 10px; } .info-item { margin-bottom: 5px; + width: calc(50% - 5px); /* 每个元素占一半宽度,减去 gap 的一半 */ } .info-label { diff --git a/src/components/LabDrawerDetail.vue b/src/components/LabDrawerDetail.vue index c0f0ddc..a6c892c 100644 --- a/src/components/LabDrawerDetail.vue +++ b/src/components/LabDrawerDetail.vue @@ -42,9 +42,8 @@
-

详细信息

- 总分: + 评估总分: {{ overallTotalScore }}
@@ -58,7 +57,7 @@

{{ categoryItem.category }} - 总分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ labData.scoreList[index] }} + 得分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ labData.scoreList[index] }}

@@ -622,7 +621,7 @@ const handleClose = () => { color: #4986ff; display: flex; align-items: center; - justify-content: space-between; + justify-content: center; margin-bottom: 20px; } .overall-score-section h3{ diff --git a/src/components/TalentDrawerDetail.vue b/src/components/TalentDrawerDetail.vue index b1bb754..db59bf8 100644 --- a/src/components/TalentDrawerDetail.vue +++ b/src/components/TalentDrawerDetail.vue @@ -60,9 +60,8 @@
-

详细信息

- 总分: + 评估总分: {{ overallTotalScore }}
@@ -75,7 +74,7 @@

{{ categoryItem.category }} - 总分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ teacherData.scoreList[index] }} + 得分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ teacherData.scoreList[index] }}

@@ -407,7 +406,7 @@ const handleClose = () => { color: #4986ff; display: flex; align-items: center; - justify-content: space-between; + justify-content: center; margin-bottom: 20px; } .overall-score-section h3{