+
+
+
+
@@ -153,6 +169,7 @@
>
+
+
+
+
time[0] || this.isOneDay))
this.element.options.manualModify = false
+ },
+
+ fillEmptySuffixTime() {
+ if (!this.element.options.attrs.default.sDynamicSuffixTime) {
+ this.$set(this.element.options.attrs.default, 'sDynamicSuffixTime', this.baseTime)
+ }
+
+ if (!this.element.options.attrs.default.eDynamicSuffixTime) {
+ this.$set(this.element.options.attrs.default, 'eDynamicSuffixTime', new Date('2022-11-09 23:59:59.999').getTime())
+ }
+ },
+ eDynamicSuffixTimeChange(val) {
+ this.setDval()
+ },
+ sDynamicSuffixTimeChange(val) {
+ this.setDval()
}
}
}
diff --git a/frontend/src/views/panel/filter/filterMain/FilterControl.vue b/frontend/src/views/panel/filter/filterMain/FilterControl.vue
index d4234d9e74..4067341c30 100644
--- a/frontend/src/views/panel/filter/filterMain/FilterControl.vue
+++ b/frontend/src/views/panel/filter/filterMain/FilterControl.vue
@@ -270,7 +270,10 @@ export default {
},
showTimeChange(value) {
this.attrs.accuracy = this.accuracyOptions[1].id
- this.attrs.default.isDynamic = false
+ if (this.widget.name !== 'timeDateRangeWidget') {
+ this.attrs.default.isDynamic = false
+ }
+
this.fillAttrs2Filter()
},
checkedViewsChange(values) {