客户需求修改

This commit is contained in:
“zhuzihan”  2025-07-11 14:46:04 +08:00
parent f549b084a8
commit 7b7496dae1
5 changed files with 34 additions and 12 deletions

21
__unconfig_vite.config.js Normal file
View File

@ -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;

View File

@ -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: {

View File

@ -49,7 +49,7 @@
<div v-for="(lab, index) in filteredLabs" :key="index" class="lab-card" style="height: 440px;" @click="openLabDetail(lab)">
<div class="card-header">
<span class="lab-id">ID: {{ lab.basicInformation.name1 || lab.id }}</span>
<span class="total-score">时间: <span class="score-value">{{ lab.basicInformation.name0 }}</span></span>
<span class="total-score">年份: <span class="score-value">{{ lab.basicInformation.name0 }}</span></span>
</div>
<div class="card-content">
@ -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 {

View File

@ -42,9 +42,8 @@
<div class="detail-sections">
<!-- 新增总分显示 -->
<div class="overall-score-section">
<h3 class="section-title">详细信息</h3>
<div>
<span class="overall-score-label">总分:</span>
<span class="overall-score-label">评估总分:</span>
<span class="overall-score-value">{{ overallTotalScore }}</span>
</div>
</div>
@ -58,7 +57,7 @@
<div v-for="(categoryItem, index) in labData.resultList" :key="index" class="category-section">
<h4 class="category-title">
{{ categoryItem.category }}
<span>: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ labData.scoreList[index] }}</span>
<span>: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ labData.scoreList[index] }}</span>
</h4>
<div class="category-content">
<div v-for="(item, itemIndex) in categoryItem.result" :key="itemIndex" class="category-item">
@ -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{

View File

@ -60,9 +60,8 @@
<!-- 新增总分显示 -->
<div class="overall-score-section">
<h3 class="section-title">详细信息</h3>
<div>
<span class="overall-score-label">总分:</span>
<span class="overall-score-label">评估总分:</span>
<span class="overall-score-value">{{ overallTotalScore }}</span>
</div>
</div>
@ -75,7 +74,7 @@
<div v-for="(categoryItem, index) in teacherData.resultList" :key="index" class="category-section">
<h4 class="category-title">
{{ categoryItem.category }}
<span>: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ teacherData.scoreList[index] }}</span>
<span>: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ teacherData.scoreList[index] }}</span>
</h4>
<div class="category-content">
<div v-for="(item, itemIndex) in categoryItem.result" :key="itemIndex" class="category-item">
@ -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{