bfg-common 1.4.249 → 1.4.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,20 +74,23 @@
|
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
76
76
|
|
|
77
|
-
<
|
|
77
|
+
<label
|
|
78
|
+
v-if="props.type === 'once'"
|
|
79
|
+
for="frequency-on-date"
|
|
80
|
+
class="tooltip tooltip-validation tooltip-xs tooltip-top-left"
|
|
81
|
+
:class="schedulerAtOnceErrorText && 'invalid'"
|
|
82
|
+
>
|
|
78
83
|
<input
|
|
79
84
|
id="frequency-on-date"
|
|
80
|
-
v-model.lazy="
|
|
85
|
+
v-model.lazy="model.frg_on_time"
|
|
81
86
|
data-id="frequency-on-date-input"
|
|
82
|
-
|
|
83
|
-
type="text"
|
|
87
|
+
type="datetime-local"
|
|
84
88
|
/>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</div>
|
|
89
|
+
|
|
90
|
+
<span class="tooltip-content">
|
|
91
|
+
{{ schedulerAtOnceErrorText }}
|
|
92
|
+
</span>
|
|
93
|
+
</label>
|
|
91
94
|
</div>
|
|
92
95
|
</template>
|
|
93
96
|
|
|
@@ -133,23 +136,27 @@ const timeIntervalErrorText = computed<string>(() => {
|
|
|
133
136
|
return validateField(localization.value, model.value.frg_monthly_day)
|
|
134
137
|
})
|
|
135
138
|
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const language = computed<string>(() => $store.getters['main/getInterfaceLang'])
|
|
140
|
-
const onUpdateDateTo = (val: number): void => {
|
|
141
|
-
if (!val) return
|
|
142
|
-
|
|
143
|
-
model.value.frg_on_time = val // milliseconds
|
|
144
|
-
|
|
145
|
-
currentDateLocal.value = $formattedDate(new Date(val), 'MM.dd.yyyy, hh:mm')
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
watch(currentDateLocal, (newValue) => {
|
|
149
|
-
$isDate(newValue) &&
|
|
150
|
-
(calendarDefaultDate.value = model.value.frg_on_time =
|
|
151
|
-
$getUnixByDate(newValue))
|
|
139
|
+
const schedulerAtOnceErrorText = computed<string>(() => {
|
|
140
|
+
return !model.value.frg_on_time ? localization.value.common.fieldRequired : ''
|
|
152
141
|
})
|
|
142
|
+
|
|
143
|
+
// const calendarDefaultDate = ref<number>(new Date().getTime())
|
|
144
|
+
// const currentDateLocal = ref<string>('')
|
|
145
|
+
|
|
146
|
+
// const language = computed<string>(() => $store.getters['main/getInterfaceLang'])
|
|
147
|
+
// const onUpdateDateTo = (val: number): void => {
|
|
148
|
+
// if (!val) return
|
|
149
|
+
//
|
|
150
|
+
// model.value.frg_on_time = val // milliseconds
|
|
151
|
+
//
|
|
152
|
+
// currentDateLocal.value = $formattedDate(new Date(val), 'MM.dd.yyyy, hh:mm')
|
|
153
|
+
// }
|
|
154
|
+
|
|
155
|
+
// watch(currentDateLocal, (newValue) => {
|
|
156
|
+
// $isDate(newValue) &&
|
|
157
|
+
// (calendarDefaultDate.value = model.value.frg_on_time =
|
|
158
|
+
// $getUnixByDate(newValue))
|
|
159
|
+
// })
|
|
153
160
|
</script>
|
|
154
161
|
|
|
155
162
|
<style lang="scss" scoped>
|
|
@@ -187,11 +194,6 @@ watch(currentDateLocal, (newValue) => {
|
|
|
187
194
|
width: 200px;
|
|
188
195
|
}
|
|
189
196
|
}
|
|
190
|
-
.datepicker {
|
|
191
|
-
&__input-inner {
|
|
192
|
-
@include flex($align: center);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
197
|
input[type='radio']:focus:checked + label::before,
|
|
196
198
|
input[type='radio']:focus + label::before {
|
|
197
199
|
box-shadow: inset 0 0 0 0.25rem #0094d2;
|