客户需求修改
This commit is contained in:
parent
f549b084a8
commit
7b7496dae1
21
__unconfig_vite.config.js
Normal file
21
__unconfig_vite.config.js
Normal 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;
|
@ -860,7 +860,7 @@ const initCharts = () => {
|
|||||||
const labLineChart = echarts.init(labLineChartRef.value)
|
const labLineChart = echarts.init(labLineChartRef.value)
|
||||||
labLineChart.setOption({
|
labLineChart.setOption({
|
||||||
title: {
|
title: {
|
||||||
text: '近三年科研成果增长曲线',
|
text: '科研成果增长曲线',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: 'rgba(255, 255, 255, 0.8)',
|
color: 'rgba(255, 255, 255, 0.8)',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
@ -885,6 +885,7 @@ const initCharts = () => {
|
|||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
|
max: 100,
|
||||||
axisLine: { lineStyle: { color: '#fff' } },
|
axisLine: { lineStyle: { color: '#fff' } },
|
||||||
axisLabel: { color: '#fff' },
|
axisLabel: { color: '#fff' },
|
||||||
splitLine: {
|
splitLine: {
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<div v-for="(lab, index) in filteredLabs" :key="index" class="lab-card" style="height: 440px;" @click="openLabDetail(lab)">
|
<div v-for="(lab, index) in filteredLabs" :key="index" class="lab-card" style="height: 440px;" @click="openLabDetail(lab)">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span class="lab-id">ID: {{ lab.basicInformation.name1 || lab.id }}</span>
|
<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>
|
||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
@ -687,14 +687,16 @@ const openLabDetail = async (lab) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lab-info {
|
.lab-info {
|
||||||
width: 60%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row; /* 修改为横向排列 */
|
||||||
|
flex-wrap: wrap; /* 允许元素换行 */
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-item {
|
.info-item {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
width: calc(50% - 5px); /* 每个元素占一半宽度,减去 gap 的一半 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-label {
|
.info-label {
|
||||||
|
@ -42,9 +42,8 @@
|
|||||||
<div class="detail-sections">
|
<div class="detail-sections">
|
||||||
<!-- 新增:总分显示 -->
|
<!-- 新增:总分显示 -->
|
||||||
<div class="overall-score-section">
|
<div class="overall-score-section">
|
||||||
<h3 class="section-title">详细信息</h3>
|
|
||||||
<div>
|
<div>
|
||||||
<span class="overall-score-label">总分:</span>
|
<span class="overall-score-label">评估总分:</span>
|
||||||
<span class="overall-score-value">{{ overallTotalScore }}</span>
|
<span class="overall-score-value">{{ overallTotalScore }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -58,7 +57,7 @@
|
|||||||
<div v-for="(categoryItem, index) in labData.resultList" :key="index" class="category-section">
|
<div v-for="(categoryItem, index) in labData.resultList" :key="index" class="category-section">
|
||||||
<h4 class="category-title">
|
<h4 class="category-title">
|
||||||
{{ categoryItem.category }}
|
{{ categoryItem.category }}
|
||||||
<span>总分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ labData.scoreList[index] }}</span>
|
<span>得分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ labData.scoreList[index] }}</span>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="category-content">
|
<div class="category-content">
|
||||||
<div v-for="(item, itemIndex) in categoryItem.result" :key="itemIndex" class="category-item">
|
<div v-for="(item, itemIndex) in categoryItem.result" :key="itemIndex" class="category-item">
|
||||||
@ -622,7 +621,7 @@ const handleClose = () => {
|
|||||||
color: #4986ff;
|
color: #4986ff;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.overall-score-section h3{
|
.overall-score-section h3{
|
||||||
|
@ -60,9 +60,8 @@
|
|||||||
|
|
||||||
<!-- 新增:总分显示 -->
|
<!-- 新增:总分显示 -->
|
||||||
<div class="overall-score-section">
|
<div class="overall-score-section">
|
||||||
<h3 class="section-title">详细信息</h3>
|
|
||||||
<div>
|
<div>
|
||||||
<span class="overall-score-label">总分:</span>
|
<span class="overall-score-label">评估总分:</span>
|
||||||
<span class="overall-score-value">{{ overallTotalScore }}</span>
|
<span class="overall-score-value">{{ overallTotalScore }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -75,7 +74,7 @@
|
|||||||
<div v-for="(categoryItem, index) in teacherData.resultList" :key="index" class="category-section">
|
<div v-for="(categoryItem, index) in teacherData.resultList" :key="index" class="category-section">
|
||||||
<h4 class="category-title">
|
<h4 class="category-title">
|
||||||
{{ categoryItem.category }}
|
{{ categoryItem.category }}
|
||||||
<span>总分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ teacherData.scoreList[index] }}</span>
|
<span>得分: {{ calculateCategoryTotal(categoryItem.result) }} / 满分: {{ teacherData.scoreList[index] }}</span>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="category-content">
|
<div class="category-content">
|
||||||
<div v-for="(item, itemIndex) in categoryItem.result" :key="itemIndex" class="category-item">
|
<div v-for="(item, itemIndex) in categoryItem.result" :key="itemIndex" class="category-item">
|
||||||
@ -407,7 +406,7 @@ const handleClose = () => {
|
|||||||
color: #4986ff;
|
color: #4986ff;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.overall-score-section h3{
|
.overall-score-section h3{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user