|
@@ -14,47 +14,49 @@
|
|
|
label-position="left"
|
|
|
hide-required-asterisk
|
|
|
:model="formData">
|
|
|
- <el-form-item label="所属目录" :rules="{required:true,message:'所属目录必填',trigger:'change'}"
|
|
|
- prop="catalogue" label-width="76px">
|
|
|
- <el-cascader v-model="formData.catalogue" placeholder="请选择所属目录" clearable id="media-upload-cascader"
|
|
|
+ <!-- 所属目录 -->
|
|
|
+ <el-form-item :label="$t('SemanticsManage.ASRpage.belonging_directory')" :rules="{required:true,message:$t('SemanticsManage.ASRpage.belonging_directory_required'),trigger:'change'}"
|
|
|
+ prop="catalogue" label-width="76px">
|
|
|
+ <el-cascader v-model="formData.catalogue" :placeholder="$t('SemanticsManage.ASRpage.belonging_directory_placeholder')" clearable id="media-upload-cascader"
|
|
|
:options="articleCatalogue" :props="{value:'MenuId',label:'MenuName',children:'Children',checkStrictly:true,emitPath:false}"
|
|
|
style="width: 604px;"></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="file-upload-zone">
|
|
|
<div class="file-upload-title">
|
|
|
- <span>文件数量:{{ fileList.length }} / {{ this.fileLimit }}</span>
|
|
|
+ <!-- 文件数量 -->
|
|
|
+ <span>{{$t('SemanticsManage.ASRpage.file_count')}} :{{ fileList.length }} / {{ this.fileLimit }}</span>
|
|
|
<span v-if="fileList.length>0" class="file-readdition"
|
|
|
- :class="{'disable-readdition':!( (this.fileList.length+this.uploadingFileNames.length) <fileLimit)}" @click="uploadClick">继续添加</span>
|
|
|
+ :class="{'disable-readdition':!( (this.fileList.length+this.uploadingFileNames.length) <fileLimit)}" @click="uploadClick">{{ $t('SemanticsManage.ASRpage.continue_adding') }}</span>
|
|
|
</div>
|
|
|
<div class="file-upload-main" id="drop-upload-zone" @dragover="uploadDragover" @drop="uploadDrop">
|
|
|
<el-table :data="fileList" id="file-list-table">
|
|
|
- <el-table-column label="文件名" prop="name" show-overflow-tooltip >
|
|
|
+ <el-table-column :label="$t('SemanticsManage.ASRpage.file_name')" prop="name" show-overflow-tooltip >
|
|
|
<template slot-scope="{row}">
|
|
|
<span class="table-span">{{ row.name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="大小" prop="sizeText" width="120">
|
|
|
+ <el-table-column :label="$t('SemanticsManage.ASRpage.file_size')" prop="sizeText" width="120">
|
|
|
<template slot-scope="{row}" >
|
|
|
<span class="table-span">{{ row.sizeText }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="音/视频" prop="type" width="100">
|
|
|
+ <el-table-column :label="$t('SemanticsManage.ASRpage.audio_video')" prop="type" width="100">
|
|
|
<template slot-scope="{row}">
|
|
|
<span class="table-span">{{ row.type }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" prop="operation" width="60">
|
|
|
+ <el-table-column :label="$t('Table.column_operations')" prop="operation" width="60">
|
|
|
<template slot-scope="{row,$index}">
|
|
|
- <span class="table-button" @click="deleteFile($index)">删除</span>
|
|
|
+ <span class="table-button" @click="deleteFile($index)">{{ $t('Table.delete_btn') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<div slot="empty" class="no-file-show" @click="uploadClick">
|
|
|
- <div class="upload-text"><span style="color:#0052D9 ;">点击/拖拽</span>本地音视频文件</div>
|
|
|
+ <div class="upload-text"><span style="color:#0052D9 ;">{{ $t('SemanticsManage.ASRpage.start_upload_hint') }}</span>{{ $t('SemanticsManage.ASRpage.start_upload_hint2') }}</div>
|
|
|
<div class="upload-message-box">
|
|
|
- <div class="upload-message-row">支持音频格式:mp3、wav、m4a、amr、wma、aac、ogg-opus、flac</div>
|
|
|
- <div class="upload-message-row">支持视频格式:mp4、flv、3gp</div>
|
|
|
- <div class="upload-message-row">单个文件最长5小时、最大1GB,单次支持上传50个</div>
|
|
|
+ <div class="upload-message-row">{{$t('SemanticsManage.ASRpage.supported_audio_formats')}}:mp3、wav、m4a、amr、wma、aac、ogg-opus、flac</div>
|
|
|
+ <div class="upload-message-row">{{$t('SemanticsManage.ASRpage.supported_video_formats')}}:mp4、flv、3gp</div>
|
|
|
+ <div class="upload-message-row">{{$t('SemanticsManage.ASRpage.upload_description')}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-table>
|