Merge pull request #1535 from dataease/pr@dev@fix_dynamic_range_time

fix: 时间范围动态时间限制
This commit is contained in:
fit2cloud-chenyw 2021-12-28 11:33:58 +08:00 committed by GitHub
commit 90e584da1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@
v-model="element.options.attrs.default.sDynamicPrefix"
type="number"
size="mini"
:min="1"
:min="0"
:max="10"
@input="sDynamicPrefixChange"
/>
@ -90,7 +90,7 @@
v-model="element.options.attrs.default.eDynamicPrefix"
type="number"
size="mini"
:min="1"
:min="0"
:max="10"
@input="eDynamicPrefixChange"
/>
@ -189,16 +189,16 @@ export default {
},
sDynamicPrefixChange(value) {
if (value < 1) {
value = 1
this.element.options.attrs.default.sDynamicPrefix = 1
if (value < 0) {
value = 0
this.element.options.attrs.default.sDynamicPrefix = 0
}
this.setDval()
},
eDynamicPrefixChange(value) {
if (value < 1) {
value = 1
this.element.options.attrs.default.eDynamicPrefix = 1
if (value < 0) {
value = 0
this.element.options.attrs.default.eDynamicPrefix = 0
}
this.setDval()
},