bfg-common 1.4.251 → 1.4.253
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.
- package/components/common/pages/scheduledTasks/modals/common/frequency/Frequency.vue +1 -1
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/AfterStartup.vue +19 -6
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/On.vue +7 -0
- package/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask.ts +1 -1
- package/package.json +1 -1
package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/AfterStartup.vue
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
</span>
|
|
6
6
|
|
|
7
7
|
<label
|
|
8
|
-
for="
|
|
8
|
+
for="minute-delay-field"
|
|
9
9
|
class="tooltip tooltip-validation tooltip-xs tooltip-top-left"
|
|
10
10
|
:class="timeIntervalErrorText && 'invalid'"
|
|
11
11
|
>
|
|
12
12
|
<input
|
|
13
|
-
id="
|
|
14
|
-
v-model="
|
|
13
|
+
id="minute-delay-field"
|
|
14
|
+
v-model="modelFrequencyLocal.frg_after_startup"
|
|
15
15
|
data-id="edit-lockout-policy-time-interval-input"
|
|
16
16
|
type="text"
|
|
17
17
|
@input="onInitTimeIntervalValidation"
|
|
@@ -30,10 +30,13 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<script lang="ts" setup>
|
|
33
|
-
import type { UI_I_Localization } from '
|
|
33
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
34
|
+
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
|
34
35
|
import { validateField } from '~/components/common/pages/scheduledTasks/modals/common/frequency/lib/utils'
|
|
35
36
|
|
|
36
|
-
const
|
|
37
|
+
const modelFrequencyLocal = defineModel<UI_I_ScheduleNewTasksForm>({
|
|
38
|
+
required: true,
|
|
39
|
+
})
|
|
37
40
|
|
|
38
41
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
39
42
|
|
|
@@ -45,8 +48,18 @@ const onInitTimeIntervalValidation = (): void => {
|
|
|
45
48
|
const timeIntervalErrorText = computed<string>(() => {
|
|
46
49
|
if (!isInitTimeIntervalValidation.value) return ''
|
|
47
50
|
|
|
48
|
-
return validateField(
|
|
51
|
+
return validateField(
|
|
52
|
+
localization.value,
|
|
53
|
+
modelFrequencyLocal.value.frg_after_startup
|
|
54
|
+
)
|
|
49
55
|
})
|
|
56
|
+
watch(
|
|
57
|
+
timeIntervalErrorText,
|
|
58
|
+
(newValue: string) => {
|
|
59
|
+
modelFrequencyLocal.value.isValid = newValue !== ''
|
|
60
|
+
},
|
|
61
|
+
{ immediate: true }
|
|
62
|
+
)
|
|
50
63
|
</script>
|
|
51
64
|
|
|
52
65
|
<style lang="scss" scoped>
|
|
@@ -139,6 +139,13 @@ const timeIntervalErrorText = computed<string>(() => {
|
|
|
139
139
|
const schedulerAtOnceErrorText = computed<string>(() => {
|
|
140
140
|
return !model.value.frg_on_time ? localization.value.common.fieldRequired : ''
|
|
141
141
|
})
|
|
142
|
+
watch(
|
|
143
|
+
schedulerAtOnceErrorText,
|
|
144
|
+
(newValue: string) => {
|
|
145
|
+
model.value.isValid = !!newValue
|
|
146
|
+
},
|
|
147
|
+
{ immediate: true }
|
|
148
|
+
)
|
|
142
149
|
|
|
143
150
|
// const calendarDefaultDate = ref<number>(new Date().getTime())
|
|
144
151
|
// const currentDateLocal = ref<string>('')
|