@sigmaott/base-next 1.4.15 → 1.4.17
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/locales/en.yaml
CHANGED
package/locales/vi.yaml
CHANGED
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ const isPlayout = ref(inject('isPlayout'))
|
|
|
14
14
|
const { transcodeInput, packageInput } = useGetInputDetail({ formValue, isEvent })
|
|
15
15
|
const input = computed(() => transcodeInput.value || packageInput.value)
|
|
16
16
|
|
|
17
|
+
const [machineConfigValue] = useElField<boolean>('channelConfig.machineConfig')
|
|
17
18
|
const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
|
|
18
19
|
const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.forensicWatermarkConfig.enable', [])
|
|
19
20
|
const [forensicValue] = useElField<boolean>('channelConfig.forensicWatermarkConfig', [])
|
|
@@ -90,13 +91,31 @@ const listConfigWatermark = ref([])
|
|
|
90
91
|
const loadedPath = ref()
|
|
91
92
|
async function onLoadPath() {
|
|
92
93
|
formRef.value.validate(async (valid: boolean) => {
|
|
94
|
+
let serverConfig
|
|
95
|
+
|
|
96
|
+
if (isPlayout.value || isEvent.value) {
|
|
97
|
+
serverConfig = {
|
|
98
|
+
machineId: machineConfigValue.value?.machineId,
|
|
99
|
+
machineType: machineConfigValue.value?.machineType,
|
|
100
|
+
mode: machineConfigValue.value?.mode,
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
serverConfig = {
|
|
105
|
+
machineId: input.value?.machineConfig?.machineId,
|
|
106
|
+
machineType: input.value?.machineConfig?.machineType,
|
|
107
|
+
mode: input.value?.machineConfig?.mode,
|
|
108
|
+
specMachineId: input.value?.machineConfig?.specMachineId || undefined,
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
93
112
|
if (valid) {
|
|
94
113
|
const rs = await (isEvent.value ? loadPathEventMutation : loadPathPlayoutMutation).mutateAsync({
|
|
95
114
|
machineConfig: {
|
|
96
|
-
machineId:
|
|
97
|
-
machineType:
|
|
98
|
-
mode:
|
|
99
|
-
specMachineId: input.value?.machineConfig
|
|
115
|
+
machineId: serverConfig?.machineId,
|
|
116
|
+
machineType: serverConfig?.machineType,
|
|
117
|
+
mode: serverConfig?.mode,
|
|
118
|
+
specMachineId: input.value?.machineConfig?.specMachineId || undefined,
|
|
100
119
|
},
|
|
101
120
|
path: formPathValue.value.path,
|
|
102
121
|
})
|
|
@@ -248,21 +267,12 @@ function handleChangeType(value: string) {
|
|
|
248
267
|
<template #label>
|
|
249
268
|
<SSInformationLabel :label="$t('EventChannel.form.label.enable')" :info="schemaObj.enable" />
|
|
250
269
|
</template>
|
|
251
|
-
<el-switch
|
|
252
|
-
|
|
253
|
-
:active-value="true"
|
|
254
|
-
:inactive-value="false"
|
|
255
|
-
:disabled="encoderIdValue === -1 && !enableValue"
|
|
256
|
-
/>
|
|
270
|
+
<el-switch v-model="enableValue" :active-value="true" :inactive-value="false"
|
|
271
|
+
:disabled="encoderIdValue === -1 && !enableValue" />
|
|
257
272
|
</el-form-item>
|
|
258
273
|
<el-form-item v-bind="modelAttrs" class="w-80px">
|
|
259
274
|
<el-input v-model="modelValue" class="hidden" />
|
|
260
|
-
<el-button
|
|
261
|
-
class="w-full"
|
|
262
|
-
type="primary"
|
|
263
|
-
:disabled="!enableValue"
|
|
264
|
-
@click="onShowModel"
|
|
265
|
-
>
|
|
275
|
+
<el-button class="w-full" type="primary" :disabled="!enableValue" @click="onShowModel">
|
|
266
276
|
{{ $t('transcode.load') }}
|
|
267
277
|
</el-button>
|
|
268
278
|
</el-form-item>
|
|
@@ -307,18 +317,8 @@ function handleChangeType(value: string) {
|
|
|
307
317
|
<SSInformationLabel label="Type" :info="schemaObj?.type" />
|
|
308
318
|
</template>
|
|
309
319
|
<template #default="{ row }">
|
|
310
|
-
<el-select
|
|
311
|
-
v-
|
|
312
|
-
placeholder="Select"
|
|
313
|
-
:disabled="!enableValue"
|
|
314
|
-
@change="handleChangeType"
|
|
315
|
-
>
|
|
316
|
-
<el-option
|
|
317
|
-
v-for="item in optionsType"
|
|
318
|
-
:key="item.value"
|
|
319
|
-
:label="item.label"
|
|
320
|
-
:value="item.value"
|
|
321
|
-
/>
|
|
320
|
+
<el-select v-model="typeValue" placeholder="Select" :disabled="!enableValue" @change="handleChangeType">
|
|
321
|
+
<el-option v-for="item in optionsType" :key="item.value" :label="item.label" :value="item.value" />
|
|
322
322
|
</el-select>
|
|
323
323
|
</template>
|
|
324
324
|
</el-table-column>
|
|
@@ -328,11 +328,8 @@ function handleChangeType(value: string) {
|
|
|
328
328
|
</template>
|
|
329
329
|
<template #default="{ row }">
|
|
330
330
|
<el-form-item v-bind="wmAttrs" class="pt-2 [&_.el-form-item\_\_label]:hidden [&_.el-input-number]:!w-full">
|
|
331
|
-
<el-input
|
|
332
|
-
|
|
333
|
-
:disabled="typeValue !== 'normal' || !enableValue"
|
|
334
|
-
:placeholder="t('forensic.enter_the_wm_in_hexadecimal_format_e_g_0x64')"
|
|
335
|
-
/>
|
|
331
|
+
<el-input v-model.trim="wmValue" :disabled="typeValue !== 'normal' || !enableValue"
|
|
332
|
+
:placeholder="t('forensic.enter_the_wm_in_hexadecimal_format_e_g_0x64')" />
|
|
336
333
|
</el-form-item>
|
|
337
334
|
</template>
|
|
338
335
|
</el-table-column>
|
|
@@ -341,15 +338,8 @@ function handleChangeType(value: string) {
|
|
|
341
338
|
<SSInformationLabel label="alpha" :info="schemaObj?.alpha" />
|
|
342
339
|
</template>
|
|
343
340
|
<template #default="{ row }">
|
|
344
|
-
<el-input-number
|
|
345
|
-
|
|
346
|
-
controls-position="right"
|
|
347
|
-
:min="0.05"
|
|
348
|
-
:max="0.3"
|
|
349
|
-
:precision="2"
|
|
350
|
-
:step="0.01"
|
|
351
|
-
:disabled="typeValue !== 'normal' || !enableValue"
|
|
352
|
-
/>
|
|
341
|
+
<el-input-number v-model="alphaValue" controls-position="right" :min="0.05" :max="0.3" :precision="2"
|
|
342
|
+
:step="0.01" :disabled="typeValue !== 'normal' || !enableValue" />
|
|
353
343
|
</template>
|
|
354
344
|
</el-table-column>
|
|
355
345
|
<el-table-column prop="crc" label="crc">
|
|
@@ -358,12 +348,7 @@ function handleChangeType(value: string) {
|
|
|
358
348
|
</template>
|
|
359
349
|
<template #default="{ row }">
|
|
360
350
|
<el-select v-model="crcValue" placeholder="Select" :disabled="!enableValue">
|
|
361
|
-
<el-option
|
|
362
|
-
v-for="item in optionsCrc"
|
|
363
|
-
:key="item.value"
|
|
364
|
-
:label="item.label"
|
|
365
|
-
:value="item.value"
|
|
366
|
-
/>
|
|
351
|
+
<el-option v-for="item in optionsCrc" :key="item.value" :label="item.label" :value="item.value" />
|
|
367
352
|
</el-select>
|
|
368
353
|
</template>
|
|
369
354
|
</el-table-column>
|
|
@@ -373,12 +358,7 @@ function handleChangeType(value: string) {
|
|
|
373
358
|
</template>
|
|
374
359
|
<template #default="{ row }">
|
|
375
360
|
<el-select v-model="stepValue" placeholder="Select" :disabled="!enableValue">
|
|
376
|
-
<el-option
|
|
377
|
-
v-for="item in optionsStep"
|
|
378
|
-
:key="item.value"
|
|
379
|
-
:label="item.label"
|
|
380
|
-
:value="item.value"
|
|
381
|
-
/>
|
|
361
|
+
<el-option v-for="item in optionsStep" :key="item.value" :label="item.label" :value="item.value" />
|
|
382
362
|
</el-select>
|
|
383
363
|
</template>
|
|
384
364
|
</el-table-column>
|
|
@@ -388,34 +368,21 @@ function handleChangeType(value: string) {
|
|
|
388
368
|
</template>
|
|
389
369
|
<template #default="{ row }">
|
|
390
370
|
<el-select v-model="bchValue" placeholder="Select" :disabled="!enableValue">
|
|
391
|
-
<el-option
|
|
392
|
-
v-for="item in optionsBch"
|
|
393
|
-
:key="item.value"
|
|
394
|
-
:label="item.label"
|
|
395
|
-
:value="item.value"
|
|
396
|
-
/>
|
|
371
|
+
<el-option v-for="item in optionsBch" :key="item.value" :label="item.label" :value="item.value" />
|
|
397
372
|
</el-select>
|
|
398
373
|
</template>
|
|
399
374
|
</el-table-column>
|
|
400
375
|
</el-table>
|
|
401
376
|
</template>
|
|
402
377
|
<el-dialog v-model="showModel" width="700" destroy-on-close>
|
|
403
|
-
<el-form
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
:rules="[
|
|
412
|
-
{
|
|
413
|
-
required: true,
|
|
414
|
-
message: $t('transcode.please_input_path_model'),
|
|
415
|
-
trigger: ['blur', 'change'],
|
|
416
|
-
},
|
|
417
|
-
]"
|
|
418
|
-
>
|
|
378
|
+
<el-form ref="formRef" :model="formPathValue" label-width="auto" @submit.prevent>
|
|
379
|
+
<el-form-item prop="path" :rules="[
|
|
380
|
+
{
|
|
381
|
+
required: true,
|
|
382
|
+
message: $t('transcode.please_input_path_model'),
|
|
383
|
+
trigger: ['blur', 'change'],
|
|
384
|
+
},
|
|
385
|
+
]">
|
|
419
386
|
<template #label>
|
|
420
387
|
<SSInformationLabel :label="$t('transcode.path_model')" :info="schemaObj.model" />
|
|
421
388
|
</template>
|
|
@@ -435,14 +402,8 @@ function handleChangeType(value: string) {
|
|
|
435
402
|
{{ $t('base_library.loaded_from') }}: <span class="font-bold">{{ loadedPath }}</span>
|
|
436
403
|
</div>
|
|
437
404
|
<el-radio-group v-model="currentRowId" class="w-full">
|
|
438
|
-
<el-table
|
|
439
|
-
row-
|
|
440
|
-
:current-row-key="currentRowId"
|
|
441
|
-
:data="listConfigWatermark"
|
|
442
|
-
border
|
|
443
|
-
:empty-text
|
|
444
|
-
@row-click="(row) => currentRowId = row.id"
|
|
445
|
-
>
|
|
405
|
+
<el-table row-key="id" :current-row-key="currentRowId" :data="listConfigWatermark" border :empty-text
|
|
406
|
+
@row-click="(row) => currentRowId = row.id">
|
|
446
407
|
<el-table-column label="#" width="40">
|
|
447
408
|
<template #default="{ row }">
|
|
448
409
|
<el-radio :label="row.id">
|