fix(仪表板): 时间范围规则动态时间设置可以输入小数

This commit is contained in:
dataeaseShu 2024-08-08 17:01:48 +08:00
parent 9dfad79f81
commit d1ccab466e
2 changed files with 14 additions and 2 deletions

View File

@ -508,7 +508,12 @@ defineExpose({
>
<div class="setting-label">开始时间</div>
<div class="setting-input with-date range">
<el-input-number v-model="curComponent.timeNum" :min="0" controls-position="right" />
<el-input-number
step-strictly
v-model="curComponent.timeNum"
:min="0"
controls-position="right"
/>
<el-select @focus="handleDialogClick" v-model="curComponent.relativeToCurrentType">
<el-option
v-for="item in relativeToCurrentTypeList"
@ -542,6 +547,7 @@ defineExpose({
<el-input-number
v-model="curComponent.timeNumRange"
:min="0"
step-strictly
controls-position="right"
/>
<el-select @focus="handleDialogClick" v-model="curComponent.relativeToCurrentTypeRange">

View File

@ -339,7 +339,12 @@ const relativeToCurrentListRange = computed(() => {
>
<div class="setting-label">开始时间</div>
<div class="setting-input range">
<el-input-number v-model="timeRange.timeNum" :min="0" controls-position="right" />
<el-input-number
step-strictly
v-model="timeRange.timeNum"
:min="0"
controls-position="right"
/>
<el-select v-model="timeRange.relativeToCurrentType">
<el-option
v-for="item in relativeToCurrentTypeList"
@ -370,6 +375,7 @@ const relativeToCurrentListRange = computed(() => {
<el-input-number
v-model="timeRange.timeNumRange"
:min="0"
step-strictly
controls-position="right"
/>
<el-select v-model="timeRange.relativeToCurrentTypeRange">