@sigmaott/base-next 1.4.27 → 1.4.29
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/package.json +1 -1
- package/src/components/Channel/ProfileConfigItem.vue +1 -1
- package/src/components/QueryBuilder/components/inputs/DateInputField.vue +1 -1
- package/src/components/QueryBuilder/components/inputs/logics.ts +7 -1
- package/src/components/QueryBuilder/components/item/QueryRule.vue +3 -3
package/package.json
CHANGED
|
@@ -165,7 +165,7 @@ function addEmptyPreset(type: 'video' | 'audio' | 'data') {
|
|
|
165
165
|
audioCodec: undefined,
|
|
166
166
|
dataCodec: undefined,
|
|
167
167
|
encoderType: defaultEncoderType.value ? defaultEncoderType.value : (encoderIdValue.value !== -1 && encoderIdValue.value !== null && encoderIdValue.value !== undefined && encoderIdValue.value !== '') ? 'nvenc' : 'open_h264',
|
|
168
|
-
videoPreset: (encoderIdValue.value !== -1 && encoderIdValue.value !== null && encoderIdValue.value !== undefined && encoderIdValue.value !== '') ? 'llhp' : 'veryfast',
|
|
168
|
+
videoPreset: (encoderIdValue.value !== -1 && encoderIdValue.value !== 'cpu' && encoderIdValue.value !== null && encoderIdValue.value !== undefined && encoderIdValue.value !== '') ? 'llhp' : 'veryfast',
|
|
169
169
|
option: undefined,
|
|
170
170
|
description: undefined,
|
|
171
171
|
videoBitrate: 4000000,
|
|
@@ -59,7 +59,7 @@ const proxyValue = computed({
|
|
|
59
59
|
<el-form-item class="!mb-0" :rules="_rule">
|
|
60
60
|
<el-date-picker
|
|
61
61
|
v-if="inputLength === 2"
|
|
62
|
-
v-model="rule.value
|
|
62
|
+
v-model="rule.value.value"
|
|
63
63
|
:type="dateTypePicker"
|
|
64
64
|
class="!w-380px"
|
|
65
65
|
:placeholder="t('placeholder')"
|
|
@@ -5,7 +5,13 @@ export function getOperator(field: Ref<string>, config: Config) {
|
|
|
5
5
|
if (
|
|
6
6
|
config.fields
|
|
7
7
|
&& config.operators[operator].apply_to.findIndex(
|
|
8
|
-
value =>
|
|
8
|
+
value => {
|
|
9
|
+
if (!field.value)
|
|
10
|
+
return false
|
|
11
|
+
const rawInput = config.fields[field.value]?.input
|
|
12
|
+
const normalizedInput = rawInput === 'date' ? 'datetime' : rawInput
|
|
13
|
+
return value === normalizedInput
|
|
14
|
+
},
|
|
9
15
|
) !== -1
|
|
10
16
|
)
|
|
11
17
|
return true
|
|
@@ -36,7 +36,7 @@ watch(
|
|
|
36
36
|
rule.value.input = fieldConfig.input
|
|
37
37
|
rule.value.value = []
|
|
38
38
|
const operatorOptions = getOperator({ value: newField }, config.value)
|
|
39
|
-
rule.value.operator = operatorOptions.value[0].value
|
|
39
|
+
rule.value.operator = operatorOptions.value.length > 0 ? operatorOptions.value[0].value : undefined
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
)
|
|
@@ -183,8 +183,8 @@ function onSubmitOptions(result: string[]) {
|
|
|
183
183
|
<div v-if="inputType === 'number'" class="mx-1 flex">
|
|
184
184
|
<NumberInputField v-model:value="rule" :config="config" :input-length="inputLength" />
|
|
185
185
|
</div>
|
|
186
|
-
<!-- DATETIME INPUT -->
|
|
187
|
-
<div v-if="inputType === 'datetime'" class="mx-1 flex">
|
|
186
|
+
<!-- DATETIME / DATE INPUT -->
|
|
187
|
+
<div v-if="inputType === 'datetime' || inputType === 'date'" class="mx-1 flex">
|
|
188
188
|
<DateInputField v-model:value="rule" :config="config" :input-length="inputLength" />
|
|
189
189
|
</div>
|
|
190
190
|
<!-- TIME INPUT -->
|