fix: 优化SAMPLE选择菜单中,样本列表样式,右侧图表Energy改为保留三位小数
This commit is contained in:
parent
124b9ea0ac
commit
ac4c9c7302
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<a-menu class="spectra-list-in-menu">
|
<a-menu class="spectra-list-in-menu">
|
||||||
<a-menu-item v-for="item in list" :key="item.sampleId" @click="handleClick(item)">
|
<a-menu-item class="spectra-list-in-menu-item" v-for="item in list" :key="item.sampleId" @click="handleClick(item)">
|
||||||
<span class="checkbox">
|
<span class="checkbox">
|
||||||
<a-icon v-if="item.checked" type="check" style="color: #0de30d" />
|
<a-icon v-if="item.checked" type="check" style="color: #0de30d" />
|
||||||
</span>
|
</span>
|
||||||
|
@ -65,19 +65,18 @@ export default {
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.spectra-list-in-menu {
|
.spectra-list-in-menu {
|
||||||
|
&-item {
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.checkbox {
|
.checkbox {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
display: inline-block;
|
flex: 1;
|
||||||
width: 300px;
|
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -166,7 +166,7 @@ export default {
|
||||||
}
|
}
|
||||||
const energy = this.energy[xAxis]
|
const energy = this.energy[xAxis]
|
||||||
if(energy) {
|
if(energy) {
|
||||||
this.summary.energy = energy[0].toFixed(2)
|
this.summary.energy = energy[0].toFixed(3)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.option.series.markLine.data = []
|
this.option.series.markLine.data = []
|
||||||
|
|
|
@ -329,13 +329,6 @@ export default {
|
||||||
statisticsParamerHistoryModalVisible: false // beta-gamma Statistics Paramer History 弹窗
|
statisticsParamerHistoryModalVisible: false // beta-gamma Statistics Paramer History 弹窗
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.loadSelectedSample({
|
|
||||||
sampleId: 426120,
|
|
||||||
dbName: 'auto',
|
|
||||||
sampleType: 'B'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* 从数据库加载-选择完成
|
* 从数据库加载-选择完成
|
||||||
|
|
Loading…
Reference in New Issue
Block a user