新增详情页面

This commit is contained in:
“zhuzihan”  2025-06-27 15:54:55 +08:00
parent 6042e75ae0
commit fa76b4e719
3 changed files with 227 additions and 1069 deletions

View File

@ -45,17 +45,17 @@
<!-- 工程研究中心卡片列表 --> <!-- 工程研究中心卡片列表 -->
<div class="lab-card-grid custom-scrollbar"> <div class="lab-card-grid custom-scrollbar">
<div v-for="(lab, index) in filteredLabs" :key="index" class="lab-card" style="height: 440px;"> <!-- <div v-for="(lab, index) in filteredLabs" :key="index" class="lab-card" style="height: 440px;"> -->
<!-- <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.name0 || lab.id }}</span> <span class="lab-id">ID: {{ lab.basicInformation.name0 || lab.id }}</span>
<!-- <span class="total-score">综合评估分数: <span class="score-value">{{ lab.score }}</span></span> --> <!-- <span class="total-score">综合评估分数: <span class="score-value">{{ lab.score }}</span></span> -->
</div> </div>
<div class="card-content"> <div class="card-content">
<div class="lab-image"> <!-- <div class="lab-image">
<img :src="lab.basicInformation.name5" alt="工程研究中心图片" /> <img :src="lab.basicInformation.name5" alt="工程研究中心图片" />
</div> </div> -->
<div class="lab-info"> <div class="lab-info">
<div class="info-item"> <div class="info-item">
@ -228,14 +228,18 @@ const updateAllRadarCharts = () => {
const chart = echarts.init(chartDom); const chart = echarts.init(chartDom);
// //
// const indicators = lab.dynamicColumns.index; // const indicators = lab.dimension;
const indicators = lab.dynamicColumns.index.map(index => ({ name: index.label})); const indicators = lab.dimension.map(index => ({ name: index}));
// //
let radarData = lab.result; let radarData = lab.result;
console.log('radarData:', indicators,radarData); console.log('radarData:', indicators,radarData);
chart.setOption({ chart.setOption({
// tooltip: {
// trigger: 'item', //
// formatter: '{b}: {c}' // b c
// },
radar: { radar: {
indicator: indicators, indicator: indicators,
splitArea: { splitArea: {
@ -254,7 +258,7 @@ const updateAllRadarCharts = () => {
name: { name: {
textStyle: { textStyle: {
color: '#fff', color: '#fff',
fontSize: 10 fontSize: 11
} }
} }
}, },
@ -274,6 +278,19 @@ const updateAllRadarCharts = () => {
}, },
itemStyle: { itemStyle: {
color: 'rgba(255, 0, 255, 0.8)' color: 'rgba(255, 0, 255, 0.8)'
},
label: {
show: true, //
position: 'top', //
color: '#fff', //
fontSize: 10 //
},
emphasis: {
label: {
show: true, //
fontSize: 12, //
fontWeight: 'bold' //
}
} }
} }
] ]
@ -310,7 +327,9 @@ const handleSearch = () => {
}; };
// //
const openLabDetail = (lab) => { const openLabDetail = async (lab) => {
// const response = await axios.get(`${getApiBaseUrl()}/pg/evaluation-results/get-preview?id=${lab.id}`);
// console.log('responseresponseresponseresponse',response)
selectedLab.value = lab; selectedLab.value = lab;
isEditMode.value = true; isEditMode.value = true;
drawerVisible.value = true; drawerVisible.value = true;

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ const env = import.meta.env.MODE || 'development';
const config = { const config = {
development: { development: {
apiBaseUrl: 'http://192.168.18.25:48080', apiBaseUrl: 'http://192.168.18.9:48080',
}, },
production: { production: {
apiBaseUrl: 'http://36.103.203.89:48089', apiBaseUrl: 'http://36.103.203.89:48089',