重庆大屏顶部增加生成报告按钮
This commit is contained in:
parent
a3ff5082a6
commit
7987d7ead8
BIN
packages/screen/src/assets/RiskWarning_img/按钮bg-1@2x.png
Normal file
BIN
packages/screen/src/assets/RiskWarning_img/按钮bg-1@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@ -11,6 +11,9 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_line">生成报告</div>
|
||||
|
||||
<!-- 四个角的装饰 -->
|
||||
<div class="corner corner-top-left"></div>
|
||||
<div class="corner corner-top-right"></div>
|
||||
@ -849,4 +852,20 @@ onMounted(() => {
|
||||
}
|
||||
}
|
||||
}
|
||||
.title_line {
|
||||
position: fixed;
|
||||
top: vw(0);
|
||||
right: 2%;
|
||||
width: vw(100);
|
||||
height: vw(40);
|
||||
z-index: 100;
|
||||
text-align: center;
|
||||
line-height: vw(40);
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
background-image: url('../../assets/RiskWarning_img/按钮bg-1@2x.png');
|
||||
background-size: contain;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -679,9 +679,10 @@ const getBarHeight = value => {
|
||||
const actualValue = value.count || value.value;
|
||||
if (!actualValue || actualValue == 0) return '0';
|
||||
// 确保最小高度为10%,最大高度为100%
|
||||
const height = (actualValue / totalValue.value) * 200;
|
||||
const height = (actualValue / totalValue.value) * 300;
|
||||
// 确保高度差异明显,至少有3%的最小差异
|
||||
// 最大高度为100% 最新高度为3%的最小差异
|
||||
console.log(height);
|
||||
return Math.min(100, Math.max(3, Math.round(height)));
|
||||
};
|
||||
const handleAIClick = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user