@sigmaott/base-next 1.4.41 → 1.4.45
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/.npmrc +3 -0
- package/package.json +1 -1
- package/src/components/Channel/AdvancedForm.vue +42 -104
- package/src/components/Channel/ConfigCensorship.vue +20 -63
- package/src/components/Channel/ConfigForensicWatermark.vue +3 -2
- package/src/components/Channel/ConfigPte.vue +14 -34
- package/src/components/Channel/PresetConfigItem.vue +273 -686
- package/src/components/Channel/PresetConfigItemPId.vue +12 -11
- package/src/components/Channel/ProfileConfigItem.vue +151 -226
- package/src/components/Server/ServerConfig.vue +58 -101
package/.npmrc
ADDED
package/package.json
CHANGED
|
@@ -65,7 +65,9 @@ const selectProfiles = ref<TargetProfileDto[]>(profilesValue.value || [])
|
|
|
65
65
|
provide('profilesValue', profilesValue)
|
|
66
66
|
|
|
67
67
|
const [encoderIdValue] = registerArray<any[]>(getProp('channelConfig.machineConfig.encoderId'), [])
|
|
68
|
+
const [encoderTypeValue] = registerArray<any[]>(getProp('channelConfig.machineConfig.encoderType'), [])
|
|
68
69
|
provide('encoderIdValue', encoderIdValue)
|
|
70
|
+
provide('encoderTypeValue', encoderTypeValue)
|
|
69
71
|
|
|
70
72
|
const activeName = ref('configs')
|
|
71
73
|
const activeItem = ref(null)
|
|
@@ -346,12 +348,8 @@ provide('configPte', configPte)
|
|
|
346
348
|
<div class="min-h-[calc(100%-40px)] flex gap-24px">
|
|
347
349
|
<div class="relative w-200px pr-12px">
|
|
348
350
|
<div class="sticky top-0">
|
|
349
|
-
<el-tree
|
|
350
|
-
|
|
351
|
-
:data="dataSource"
|
|
352
|
-
default-expand-all
|
|
353
|
-
:expand-on-click-node="false"
|
|
354
|
-
:props="{
|
|
351
|
+
<el-tree class="w-210px [&_.el-tree-node\_\_content]:h-[var(--el-tree-height,36px)]" :data="dataSource"
|
|
352
|
+
default-expand-all :expand-on-click-node="false" :props="{
|
|
355
353
|
class: (data, node) => {
|
|
356
354
|
if (data.error) {
|
|
357
355
|
return 'error-item'
|
|
@@ -360,29 +358,19 @@ provide('configPte', configPte)
|
|
|
360
358
|
return 'active-item'
|
|
361
359
|
}
|
|
362
360
|
},
|
|
363
|
-
}"
|
|
364
|
-
@node-click="handleNodeClick"
|
|
365
|
-
>
|
|
361
|
+
}" @node-click="handleNodeClick">
|
|
366
362
|
<template #default="{ node, data }">
|
|
367
363
|
<div class="w-full flex flex-col">
|
|
368
364
|
<div class="group flex flex-1 items-center justify-between pr-8px text-14px">
|
|
369
365
|
<div class="flex items-center gap-6px">
|
|
370
366
|
<el-icon :size="18" :class="data.icon" />
|
|
371
|
-
<div
|
|
372
|
-
class="
|
|
373
|
-
:class="{ 'font-bold': data.active, 'opacity-40': data.id === 'target-item' && data.enable }"
|
|
374
|
-
>
|
|
367
|
+
<div class="min-w-120px flex justify-between text-16px font-semibold"
|
|
368
|
+
:class="{ 'font-bold': data.active, 'opacity-40': data.id === 'target-item' && data.enable }">
|
|
375
369
|
{{ node.label }}
|
|
376
370
|
</div>
|
|
377
371
|
</div>
|
|
378
372
|
<el-dropdown v-if="data.addOption && data.addable" placement="bottom-start" trigger="click">
|
|
379
|
-
<el-button
|
|
380
|
-
type="primary"
|
|
381
|
-
plain
|
|
382
|
-
circle
|
|
383
|
-
size="small"
|
|
384
|
-
@click.stop="data.onClick(data)"
|
|
385
|
-
>
|
|
373
|
+
<el-button type="primary" plain circle size="small" @click.stop="data.onClick(data)">
|
|
386
374
|
<template #icon>
|
|
387
375
|
<div class="i-ep:plus" />
|
|
388
376
|
</template>
|
|
@@ -390,51 +378,34 @@ provide('configPte', configPte)
|
|
|
390
378
|
|
|
391
379
|
<template #dropdown>
|
|
392
380
|
<el-dropdown-menu>
|
|
393
|
-
<el-dropdown-item
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}"
|
|
398
|
-
>
|
|
381
|
+
<el-dropdown-item @click="() => {
|
|
382
|
+
isShowModifierForm = true
|
|
383
|
+
isAllowEditingTarget = true
|
|
384
|
+
}">
|
|
399
385
|
{{ t('SSConfig.new_profile') }}
|
|
400
386
|
</el-dropdown-item>
|
|
401
|
-
<el-dropdown-item
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}"
|
|
406
|
-
>
|
|
387
|
+
<el-dropdown-item @click="() => {
|
|
388
|
+
isShowProfileSetList = true
|
|
389
|
+
isAllowEditingTarget = true
|
|
390
|
+
}">
|
|
407
391
|
{{ t('SSConfig.template') }}
|
|
408
392
|
</el-dropdown-item>
|
|
409
393
|
</el-dropdown-menu>
|
|
410
394
|
</template>
|
|
411
395
|
</el-dropdown>
|
|
412
|
-
<el-button
|
|
413
|
-
v-else-if="!data.addOption && data.addable"
|
|
414
|
-
type="primary"
|
|
415
|
-
plain
|
|
416
|
-
circle
|
|
417
|
-
size="small"
|
|
396
|
+
<el-button v-else-if="!data.addOption && data.addable" type="primary" plain circle size="small"
|
|
418
397
|
@click.stop="() => {
|
|
419
398
|
data.onClick(data)
|
|
420
399
|
isAllowEditingTarget = true
|
|
421
|
-
}"
|
|
422
|
-
>
|
|
400
|
+
}">
|
|
423
401
|
<template #icon>
|
|
424
402
|
<div class="i-ep:plus" />
|
|
425
403
|
</template>
|
|
426
404
|
</el-button>
|
|
427
|
-
<el-button
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
plain
|
|
432
|
-
size="small"
|
|
433
|
-
@click.stop="() => {
|
|
434
|
-
data.onClickChange(data)
|
|
435
|
-
isAllowEditingTarget = true
|
|
436
|
-
}"
|
|
437
|
-
>
|
|
405
|
+
<el-button v-else-if="data.changable" type="primary" circle plain size="small" @click.stop="() => {
|
|
406
|
+
data.onClickChange(data)
|
|
407
|
+
isAllowEditingTarget = true
|
|
408
|
+
}">
|
|
438
409
|
<template #icon>
|
|
439
410
|
<div class="i-ep:switch" />
|
|
440
411
|
</template>
|
|
@@ -447,40 +418,22 @@ provide('configPte', configPte)
|
|
|
447
418
|
</div>
|
|
448
419
|
</div>
|
|
449
420
|
<el-card class="mr-12px w-full">
|
|
450
|
-
<el-form
|
|
451
|
-
|
|
452
|
-
:model="formValue"
|
|
453
|
-
label-width="120px"
|
|
454
|
-
label-position="top"
|
|
455
|
-
class="mr-12px w-full"
|
|
456
|
-
@validate="handleValidate"
|
|
457
|
-
>
|
|
421
|
+
<el-form ref="formRef" :model="formValue" label-width="120px" label-position="top" class="mr-12px w-full"
|
|
422
|
+
@validate="handleValidate">
|
|
458
423
|
<SSChannelConfigForm v-show="activeName === 'configs'" v-model="formValue" />
|
|
459
424
|
<SSChannelAIConfig v-show="activeName === 'ai'" v-model="formValue" />
|
|
460
|
-
<LazySSChannelProfileList
|
|
461
|
-
|
|
462
|
-
@add-profile="addProfile"
|
|
463
|
-
@delete-profile="deleteProfile"
|
|
464
|
-
/>
|
|
425
|
+
<LazySSChannelProfileList v-show="activeName === 'profiles'" @add-profile="addProfile"
|
|
426
|
+
@delete-profile="deleteProfile" />
|
|
465
427
|
<template v-for="(profile, idx) in formValue.profiles" :key="profile.id">
|
|
466
|
-
<LazySSChannelProfileForm
|
|
467
|
-
|
|
468
|
-
:idx="idx"
|
|
469
|
-
@remove-profile="handleRemoveProfile(profile.id)"
|
|
470
|
-
/>
|
|
428
|
+
<LazySSChannelProfileForm v-show="activeName === 'profile-item' && activeItem && activeIndex === idx"
|
|
429
|
+
:idx="idx" @remove-profile="handleRemoveProfile(profile.id)" />
|
|
471
430
|
</template>
|
|
472
431
|
|
|
473
|
-
<LazySSChannelTargetList
|
|
474
|
-
|
|
475
|
-
@add-target="isShowOutputSetList = true"
|
|
476
|
-
@remove-target="handleRemoveOutput"
|
|
477
|
-
/>
|
|
432
|
+
<LazySSChannelTargetList v-show="activeName === 'targets'" @add-target="isShowOutputSetList = true"
|
|
433
|
+
@remove-target="handleRemoveOutput" />
|
|
478
434
|
<template v-for="(_target, idx) in targetsValue" :key="_target.id">
|
|
479
|
-
<LazySSChannelTargetForm
|
|
480
|
-
|
|
481
|
-
:idx="idx"
|
|
482
|
-
@remove-target="handleRemoveOutput(_target.id)"
|
|
483
|
-
/>
|
|
435
|
+
<LazySSChannelTargetForm v-show="activeName === 'target-item' && activeItem && activeIndex === idx"
|
|
436
|
+
:idx="idx" @remove-target="handleRemoveOutput(_target.id)" />
|
|
484
437
|
</template>
|
|
485
438
|
</el-form>
|
|
486
439
|
</el-card>
|
|
@@ -499,43 +452,28 @@ provide('configPte', configPte)
|
|
|
499
452
|
</div>
|
|
500
453
|
|
|
501
454
|
<!-- SECTION: Profile dialog -->
|
|
502
|
-
<SSChannelMultipleSelectProfile
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
@select-multiple-profile="selectProfile"
|
|
506
|
-
@close="isShowProfileSetList = false"
|
|
507
|
-
/>
|
|
455
|
+
<SSChannelMultipleSelectProfile v-model:selected-profiles="selectProfiles"
|
|
456
|
+
:is-show-profile-set-list="isShowProfileSetList" @select-multiple-profile="selectProfile"
|
|
457
|
+
@close="isShowProfileSetList = false" />
|
|
508
458
|
|
|
509
459
|
<!-- SECTION: Targets: Output -->
|
|
510
|
-
<el-dialog
|
|
511
|
-
|
|
512
|
-
:title="t('EventChannel.form.label.selectOutput')"
|
|
513
|
-
width="500px"
|
|
514
|
-
align-center
|
|
515
|
-
destroy-on-close
|
|
516
|
-
append-to-body
|
|
517
|
-
>
|
|
460
|
+
<el-dialog v-model="isShowOutputSetList" :title="t('EventChannel.form.label.selectOutput')" width="500px" align-center
|
|
461
|
+
destroy-on-close append-to-body>
|
|
518
462
|
<SSChannelTargetOutputType @submit="selectTarget" @cancel="isShowOutputSetList = false" />
|
|
519
463
|
</el-dialog>
|
|
520
464
|
|
|
521
465
|
<!-- Add new profile -->
|
|
522
|
-
<SSChannelMediaProfileModify
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
modify-title="Create Profile"
|
|
526
|
-
mode="custom"
|
|
527
|
-
@new-custom="addCustomProfile"
|
|
528
|
-
@close="isShowModifierForm = false"
|
|
529
|
-
@added="isShowModifierForm = false"
|
|
530
|
-
/>
|
|
466
|
+
<SSChannelMediaProfileModify v-if="isShowModifierForm" v-model:visible="isShowModifierForm"
|
|
467
|
+
modify-title="Create Profile" mode="custom" @new-custom="addCustomProfile" @close="isShowModifierForm = false"
|
|
468
|
+
@added="isShowModifierForm = false" />
|
|
531
469
|
</template>
|
|
532
470
|
|
|
533
471
|
<style lang="scss">
|
|
534
|
-
.active-item
|
|
472
|
+
.active-item>.el-tree-node__content {
|
|
535
473
|
@apply text-primary bg-$el-fill-color-light rounded-1;
|
|
536
474
|
}
|
|
537
475
|
|
|
538
|
-
.error-item
|
|
476
|
+
.error-item>.el-tree-node__content {
|
|
539
477
|
@apply text-danger bg-$el-color-danger-light-7 rounded-1;
|
|
540
478
|
--el-tree-height: 52px;
|
|
541
479
|
}
|
|
@@ -19,6 +19,7 @@ const { t } = useI18n()
|
|
|
19
19
|
|
|
20
20
|
const [censorshipValue, censorshipAttrs] = useElField<boolean>('channelConfig.censorship')
|
|
21
21
|
const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
|
|
22
|
+
const [encoderTypeValue] = useElField<number>('channelConfig.machineConfig.encoderType')
|
|
22
23
|
const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.censorship.enable', [
|
|
23
24
|
// {
|
|
24
25
|
// validator: (rule, value, callback) => {
|
|
@@ -229,20 +230,12 @@ const currentRowId = ref()
|
|
|
229
230
|
<template #label>
|
|
230
231
|
<SSInformationLabel :label="$t('SSConfig.form.label.enable')" :info="schemaObjCensorshipInfo.enable" />
|
|
231
232
|
</template>
|
|
232
|
-
<el-switch
|
|
233
|
-
|
|
234
|
-
:active-value="true"
|
|
235
|
-
:inactive-value="false"
|
|
236
|
-
:disabled="encoderIdValue === -1 && !enableValue"
|
|
237
|
-
/>
|
|
233
|
+
<el-switch v-model="enableValue" :active-value="true" :inactive-value="false"
|
|
234
|
+
:disabled="(encoderIdValue === -1 && !enableValue) || encoderTypeValue === 'NETINT'" />
|
|
238
235
|
</el-form-item>
|
|
239
236
|
<el-form-item v-bind="modelAttrs" class="[&_.el-form-item\_\_content]:(flex-col items-start justify-start mt-6)">
|
|
240
237
|
<el-input v-model="modelValue" class="hidden" />
|
|
241
|
-
<el-button
|
|
242
|
-
type="primary"
|
|
243
|
-
:disabled="!enableValue"
|
|
244
|
-
@click="onShowModel"
|
|
245
|
-
>
|
|
238
|
+
<el-button type="primary" :disabled="!enableValue" @click="onShowModel">
|
|
246
239
|
{{ $t('transcode.load') }}
|
|
247
240
|
</el-button>
|
|
248
241
|
</el-form-item>
|
|
@@ -268,15 +261,8 @@ const currentRowId = ref()
|
|
|
268
261
|
<template #label>
|
|
269
262
|
<SSInformationLabel label="Score" :info="schemaObjCensorshipConfigInfo.score" />
|
|
270
263
|
</template>
|
|
271
|
-
<el-input-number
|
|
272
|
-
|
|
273
|
-
controls-position="right"
|
|
274
|
-
:min="0"
|
|
275
|
-
:max="1"
|
|
276
|
-
:precision="2"
|
|
277
|
-
:step="0.05"
|
|
278
|
-
:disabled="!enableValue"
|
|
279
|
-
/>
|
|
264
|
+
<el-input-number v-model="scoreValue" controls-position="right" :min="0" :max="1" :precision="2" :step="0.05"
|
|
265
|
+
:disabled="!enableValue" />
|
|
280
266
|
</el-form-item>
|
|
281
267
|
<el-form-item>
|
|
282
268
|
<template #label>
|
|
@@ -290,49 +276,28 @@ const currentRowId = ref()
|
|
|
290
276
|
<el-table :data="censorshipValue?.data || []" border style="width: 100%">
|
|
291
277
|
<el-table-column prop="enable" label="On/off item" align="center">
|
|
292
278
|
<template #default="{ row }">
|
|
293
|
-
<el-switch
|
|
294
|
-
v-model="row.enable"
|
|
295
|
-
:disabled="!enableValue"
|
|
296
|
-
:active-value="true"
|
|
297
|
-
:inactive-value="false"
|
|
298
|
-
/>
|
|
279
|
+
<el-switch v-model="row.enable" :disabled="!enableValue" :active-value="true" :inactive-value="false" />
|
|
299
280
|
</template>
|
|
300
281
|
</el-table-column>
|
|
301
282
|
<el-table-column prop="id" label="ID" min-width="90">
|
|
302
283
|
<template #default="{ row, $index }">
|
|
303
284
|
<div class="flex items-center">
|
|
304
|
-
<el-avatar
|
|
305
|
-
class="mr-3"
|
|
306
|
-
:size="32"
|
|
307
|
-
:src="listSrcImagePath?.[$index]"
|
|
308
|
-
/>
|
|
285
|
+
<el-avatar class="mr-3" :size="32" :src="listSrcImagePath?.[$index]" />
|
|
309
286
|
<span class="text-large font-600"> {{ row.id }} </span>
|
|
310
287
|
</div>
|
|
311
288
|
</template>
|
|
312
289
|
</el-table-column>
|
|
313
290
|
</el-table>
|
|
314
291
|
</template>
|
|
315
|
-
<el-dialog
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
@submit.prevent
|
|
325
|
-
>
|
|
326
|
-
<el-form-item
|
|
327
|
-
prop="path"
|
|
328
|
-
:rules="[
|
|
329
|
-
{
|
|
330
|
-
required: true,
|
|
331
|
-
message: $t('transcode.please_input_path_model'),
|
|
332
|
-
trigger: ['blur', 'change'],
|
|
333
|
-
},
|
|
334
|
-
]"
|
|
335
|
-
>
|
|
292
|
+
<el-dialog v-model="showModel" width="700" destroy-on-close>
|
|
293
|
+
<el-form ref="formRef" :model="formPathValue" label-width="auto" @submit.prevent>
|
|
294
|
+
<el-form-item prop="path" :rules="[
|
|
295
|
+
{
|
|
296
|
+
required: true,
|
|
297
|
+
message: $t('transcode.please_input_path_model'),
|
|
298
|
+
trigger: ['blur', 'change'],
|
|
299
|
+
},
|
|
300
|
+
]">
|
|
336
301
|
<template #label>
|
|
337
302
|
<SSInformationLabel :label="$t('transcode.path_model')" :info="schemaObjCensorshipConfigInfo.model" />
|
|
338
303
|
</template>
|
|
@@ -352,22 +317,14 @@ const currentRowId = ref()
|
|
|
352
317
|
{{ $t('base_library.loaded_from') }}: <span class="font-bold">{{ loadedPath }}</span>
|
|
353
318
|
</div>
|
|
354
319
|
<el-radio-group v-model="currentRowId" class="w-full">
|
|
355
|
-
<el-table
|
|
356
|
-
row-key="id"
|
|
357
|
-
:current-row-key="currentRowId"
|
|
358
|
-
:data="listConfigAds"
|
|
359
|
-
border
|
|
360
|
-
>
|
|
320
|
+
<el-table row-key="id" :current-row-key="currentRowId" :data="listConfigAds" border>
|
|
361
321
|
<template #empty>
|
|
362
322
|
{{ loadedPath ? $t('base_library.no_model_not_found') : $t('base.no_data') }}
|
|
363
323
|
</template>
|
|
364
|
-
<el-table-column
|
|
365
|
-
label="#"
|
|
366
|
-
width="55"
|
|
367
|
-
>
|
|
324
|
+
<el-table-column label="#" width="55">
|
|
368
325
|
<template #default="{ row }">
|
|
369
326
|
<el-radio :label="row.id" @click="selectedConfig = row">
|
|
370
|
-
|
|
327
|
+
|
|
371
328
|
</el-radio>
|
|
372
329
|
</template>
|
|
373
330
|
</el-table-column>
|
|
@@ -16,6 +16,7 @@ const input = computed(() => transcodeInput.value || packageInput.value)
|
|
|
16
16
|
|
|
17
17
|
const [machineConfigValue] = useElField<boolean>('channelConfig.machineConfig')
|
|
18
18
|
const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
|
|
19
|
+
const [encoderTypeValue] = useElField<number>('channelConfig.machineConfig.encoderType')
|
|
19
20
|
const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.forensicWatermarkConfig.enable', [])
|
|
20
21
|
const [forensicValue] = useElField<boolean>('channelConfig.forensicWatermarkConfig', [])
|
|
21
22
|
|
|
@@ -280,7 +281,7 @@ function handleChangeType(value: string) {
|
|
|
280
281
|
<SSInformationLabel :label="$t('EventChannel.form.label.enable')" :info="schemaObj.enable" />
|
|
281
282
|
</template>
|
|
282
283
|
<el-switch v-model="enableValue" :active-value="true" :inactive-value="false"
|
|
283
|
-
:disabled="encoderIdValue === -1 && !enableValue" />
|
|
284
|
+
:disabled="(encoderIdValue === -1 && !enableValue) || encoderTypeValue === 'NETINT'" />
|
|
284
285
|
</el-form-item>
|
|
285
286
|
<el-form-item v-bind="modelAttrs" class="[&_.el-form-item\_\_content]:(flex-col items-start justify-start mt-6)">
|
|
286
287
|
<el-input v-model="modelValue" class="hidden" />
|
|
@@ -341,7 +342,7 @@ function handleChangeType(value: string) {
|
|
|
341
342
|
<template #default="{ row }">
|
|
342
343
|
<el-form-item v-bind="wmAttrs" class="pt-2 [&_.el-form-item\_\_label]:hidden [&_.el-input-number]:!w-full">
|
|
343
344
|
<el-input v-model.trim="wmValue" :disabled="typeValue !== 'normal' || !enableValue"
|
|
344
|
-
|
|
345
|
+
:placeholder="t('forensic.enter_the_wm_in_format_e_g_0x64')" />
|
|
345
346
|
</el-form-item>
|
|
346
347
|
</template>
|
|
347
348
|
</el-table-column>
|
|
@@ -35,6 +35,8 @@ const [pteValue] = useElField<boolean>('channelConfig.pte')
|
|
|
35
35
|
const [inputsValue] = useElField<boolean>('inputs')
|
|
36
36
|
const [machineConfigValue] = useElField<boolean>('channelConfig.machineConfig')
|
|
37
37
|
const [encoderIdValue] = useElField<number>('channelConfig.machineConfig.encoderId')
|
|
38
|
+
const [encoderTypeValue] = useElField<number>('channelConfig.machineConfig.encoderType')
|
|
39
|
+
|
|
38
40
|
const [enableValue, enableAttrs] = useElField<boolean>('channelConfig.pte.enable', [
|
|
39
41
|
// {
|
|
40
42
|
// validator: (rule, value, callback) => {
|
|
@@ -207,21 +209,12 @@ function handleChange(_newValue: boolean) {
|
|
|
207
209
|
<template #label>
|
|
208
210
|
<SSInformationLabel :label="$t('SSConfig.form.label.enable')" :info="schemaObjAdsInfo.enable" />
|
|
209
211
|
</template>
|
|
210
|
-
<el-switch
|
|
211
|
-
|
|
212
|
-
:active-value="true"
|
|
213
|
-
:inactive-value="false"
|
|
214
|
-
:disabled="encoderIdValue === -1 && !enableValue"
|
|
215
|
-
@change="handleChange"
|
|
216
|
-
/>
|
|
212
|
+
<el-switch v-model="enableValue" :active-value="true" :inactive-value="false"
|
|
213
|
+
:disabled="(encoderIdValue === -1 && !enableValue) || encoderTypeValue === 'NETINT'" @change="handleChange" />
|
|
217
214
|
</el-form-item>
|
|
218
215
|
<el-form-item v-bind="modelAttrs" class="[&_.el-form-item\_\_content]:(flex-col items-start justify-start mt-6)">
|
|
219
216
|
<el-input v-model="modelValue" class="hidden" />
|
|
220
|
-
<el-button
|
|
221
|
-
type="primary"
|
|
222
|
-
:disabled="!enableValue"
|
|
223
|
-
@click="onShowModel"
|
|
224
|
-
>
|
|
217
|
+
<el-button type="primary" :disabled="!enableValue" @click="onShowModel">
|
|
225
218
|
{{ $t('transcode.load') }}
|
|
226
219
|
</el-button>
|
|
227
220
|
</el-form-item>
|
|
@@ -328,28 +321,15 @@ function handleChange(_newValue: boolean) {
|
|
|
328
321
|
</div>
|
|
329
322
|
</div>
|
|
330
323
|
<!-- </template> -->
|
|
331
|
-
<el-dialog
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
label-width="auto"
|
|
341
|
-
@submit.prevent
|
|
342
|
-
>
|
|
343
|
-
<el-form-item
|
|
344
|
-
prop="path"
|
|
345
|
-
:rules="[
|
|
346
|
-
{
|
|
347
|
-
required: true,
|
|
348
|
-
message: $t('transcode.please_input_path_model'),
|
|
349
|
-
trigger: ['blur', 'change'],
|
|
350
|
-
},
|
|
351
|
-
]"
|
|
352
|
-
>
|
|
324
|
+
<el-dialog v-model="showModel" width="500" destroy-on-close :before-close="handleClose">
|
|
325
|
+
<el-form ref="formRef" :model="formPathValue" label-width="auto" @submit.prevent>
|
|
326
|
+
<el-form-item prop="path" :rules="[
|
|
327
|
+
{
|
|
328
|
+
required: true,
|
|
329
|
+
message: $t('transcode.please_input_path_model'),
|
|
330
|
+
trigger: ['blur', 'change'],
|
|
331
|
+
},
|
|
332
|
+
]">
|
|
353
333
|
<template #label>
|
|
354
334
|
<SSInformationLabel :label="$t('transcode.path_model')" :info="schemaObjAdsDetectConfigDTO.model" />
|
|
355
335
|
</template>
|