|
@@ -3,32 +3,39 @@
|
|
|
<div class="asr-main">
|
|
|
<div class="asr-main-left">
|
|
|
<div class="add-zone" >
|
|
|
+ <!-- 新建 -->
|
|
|
<el-button @click="addAsr" type="primary" style="min-width: 100px;"
|
|
|
- v-permission="permissionBtn.semanticPermission.ASR_addArticles">新建</el-button>
|
|
|
+ v-permission="permissionBtn.semanticPermission.ASR_addArticles">{{$t('SemanticsManage.ASRpage.create_new')}}</el-button>
|
|
|
</div>
|
|
|
<div class="catalogue-zone" v-loading="detailLoadig" element-loading-text="加载中······">
|
|
|
<div class="search-box">
|
|
|
+ <!-- 请输入文件名称 -->
|
|
|
<el-select v-model="search_txt" v-loadMore="searchLoad" :filterable="!search_txt" remote clearable
|
|
|
- placeholder="请输入文件名称" class="select-com" :remote-method="searchHandle" @click.native="inputFocusHandle">
|
|
|
+ :placeholder="$t('SemanticsManage.ASRpage.search_placeholder')"
|
|
|
+ class="select-com" :remote-method="searchHandle" @click.native="inputFocusHandle">
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
<el-option v-for="item in searchOptions" :key="item.SpeechRecognitionId" :label="item.FileName"
|
|
|
:value="item.SpeechRecognitionId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <!-- 筛选 -->
|
|
|
<el-popover placement="bottom-end" :offset="10" width="334" v-model="showFilterPopopver"
|
|
|
trigger="click" @hide="resetFilterOption" @show="getTagsList">
|
|
|
<div class="filter-poopver">
|
|
|
<div class="filter-poopver-header">
|
|
|
- <span>筛选项</span>
|
|
|
- <span style="cursor: pointer;color: #0052D9;" @click="resetFilterOption('clear')">清空</span>
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.filter_options') }}</span>
|
|
|
+ <span style="cursor: pointer;color: #0052D9;" @click="resetFilterOption('clear')">{{ $t('SemanticsManage.ASRpage.clear_btn') }}</span>
|
|
|
</div>
|
|
|
<el-form :model="filterForm" ref="filterForm" class="filter-poopver-form">
|
|
|
<el-form-item prop="createtimeRange">
|
|
|
- <el-date-picker v-model="filterForm.createtimeRange" start-placeholder="开始" end-placeholder="结束"
|
|
|
+ <el-date-picker v-model="filterForm.createtimeRange"
|
|
|
+ :start-placeholder="$t('SemanticsManage.ASRpage.start_text')"
|
|
|
+ :end-placeholder="$t('SemanticsManage.ASRpage.end_text')"
|
|
|
type="daterange" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="author" >
|
|
|
- <el-cascader v-model="filterForm.author" placeholder="创建人" ref="authorsCascader" clearable
|
|
|
+ <el-cascader v-model="filterForm.author" ref="authorsCascader" clearable
|
|
|
+ :placeholder="$t('SemanticsManage.ASRpage.creator_text')"
|
|
|
id="authors-cascader" style="width: 100%" :options="authorsList" collapse-tags :show-all-levels="false"
|
|
|
:props="{value:'ItemId',label:'ItemName',children:'Children',multiple:true,emitPath:false}"></el-cascader>
|
|
|
<!-- <el-select v-model="filterForm.author" placeholder="创建人" style="width: 100%;" multiple
|
|
@@ -38,7 +45,8 @@
|
|
|
</el-select> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="tags" v-if="leftShowLabel !== '标签'">
|
|
|
- <el-select v-model="filterForm.tags" placeholder="标签" style="width: 100%;" multiple
|
|
|
+ <el-select v-model="filterForm.tags" style="width: 100%;" multiple
|
|
|
+ :placeholder="$t('SemanticsManage.ASRpage.tag_text')"
|
|
|
collapse-tags filterable>
|
|
|
<el-option :label="item.TagName" :value="item.TagId"
|
|
|
v-for="item in tagsList" :key="item.TagId"></el-option>
|
|
@@ -46,20 +54,28 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="filter-poopver-footer">
|
|
|
- <el-button type="primary" plain style="width: 140px;" @click="showFilterPopopver=false">取消</el-button>
|
|
|
- <el-button type="primary" style="width: 140px;" @click="filterArticle">确认</el-button>
|
|
|
+ <el-button type="primary" plain style="width: 140px;" @click="showFilterPopopver=false">
|
|
|
+ {{ $t('Dialog.cancel_btn') }}
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" style="width: 140px;" @click="filterArticle">
|
|
|
+ {{ $t('Dialog.confirm_btn') }}
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="filter-box" slot="reference">
|
|
|
<img src="~@/assets/img/filter.png" />
|
|
|
- <span>筛选</span>
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.filter_text') }}</span>
|
|
|
</div>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div class="catalogue-head">
|
|
|
<ul class="left-tab">
|
|
|
- <li :class="['tab', { 'act': leftShowLabel === tab }]" v-for="tab in ['目录', '标签']" :key="tab"
|
|
|
- @click="tabChange(tab)">{{ tab }}</li>
|
|
|
+ <li :class="['tab', { 'act': leftShowLabel === tab.key }]"
|
|
|
+ v-for="tab in [
|
|
|
+ {key:'目录',label:$t('SemanticsManage.ASRpage.directory_text')},
|
|
|
+ {key:'标签',label:$t('SemanticsManage.ASRpage.tag_text')}]"
|
|
|
+ :key="tab.key"
|
|
|
+ @click="tabChange(tab.key)">{{ tab.label }}</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div v-show="leftShowLabel=='目录'" class="tree-container">
|
|
@@ -67,7 +83,7 @@
|
|
|
<el-tree ref="treeRef" class="target_tree" :data="treeData" node-key="UniqueCode" :props="defaultProp"
|
|
|
:allow-drag="canDragHandle" :allow-drop="canDropHandle" :current-node-key="select_node_key"
|
|
|
:default-expanded-keys="defaultShowNodes" draggable :expand-on-click-node="false" check-strictly
|
|
|
- empty-text="暂无分类" lazy :load="getLazyTreeData" @node-expand="handleNodeExpand"
|
|
|
+ :empty-text="$t('Common.no_classify_msg')" lazy :load="getLazyTreeData" @node-expand="handleNodeExpand"
|
|
|
@node-collapse="handleNodeCollapse" @current-change="nodeChange" @node-drop="dropOverHandle"
|
|
|
@node-drag-end="dropMouseLeave" @node-drag-leave="dropMouseLeave" @node-drag-enter="dropMouseOver">
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
@@ -90,7 +106,8 @@
|
|
|
<div class="bottom-operation" v-permission="permissionBtn.semanticPermission.ASR_classify_catalogue_add">
|
|
|
<div class="bottom-add" @click="editCatalogue(1)">
|
|
|
<img src="~@/assets/img/add-quadrate-blue.png" />
|
|
|
- <span>添加目录分类</span>
|
|
|
+ <!-- 添加目录分类 -->
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.add_directory_category') }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -99,7 +116,7 @@
|
|
|
<el-tree ref="tagTreeRef" class="target_tree" :data="tagTreeData" node-key="UniqueCode" :props="defaultProp"
|
|
|
:allow-drag="canDragHandle" :allow-drop="canDropHandle" :current-node-key="tag_select_node_key"
|
|
|
:default-expanded-keys="tagDefaultShowNodes" draggable :expand-on-click-node="false" check-strictly
|
|
|
- empty-text="暂无分类" lazy :load="getLazyTreeTagData" @node-expand="handleNodeExpand"
|
|
|
+ :empty-text="$t('Common.no_classify_msg')" lazy :load="getLazyTreeTagData" @node-expand="handleNodeExpand"
|
|
|
@node-collapse="handleNodeCollapse" @current-change="nodeChange" @node-drop="dropOverHandle"
|
|
|
@node-drag-end="dropMouseLeave" @node-drag-leave="dropMouseLeave" @node-drag-enter="dropMouseOver">
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
@@ -127,11 +144,13 @@
|
|
|
<div class="bottom-add" @click="editCatalogue(1)" style="margin-right: 20px;"
|
|
|
v-permission="permissionBtn.semanticPermission.ASR_classify_tag_add">
|
|
|
<img src="~@/assets/img/add-quadrate-blue.png" />
|
|
|
- <span>添加标签分类</span>
|
|
|
+ <!-- 添加标签分类 -->
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.add_tag_category') }}</span>
|
|
|
</div>
|
|
|
<div class="bottom-add" @click="editTag" v-permission="permissionBtn.semanticPermission.ASR_tagOperation_addTag">
|
|
|
<img src="~@/assets/img/add-quadrate-blue.png" />
|
|
|
- <span>添加标签</span>
|
|
|
+ <!-- 添加标签 -->
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.add_tag_text') }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -142,14 +161,17 @@
|
|
|
v-if="articleDetail && articleDetail.SpeechRecognitionId">
|
|
|
<div class="detail-top">
|
|
|
<div class="detail-top-search">
|
|
|
- <el-input v-model="articleDetail.FileName" placeholder="请输入文件名称" style="width: 240px;margin-right: 30px;"
|
|
|
+ <el-input v-model="articleDetail.FileName"
|
|
|
+ :placeholder="$t('SemanticsManage.ASRpage.search_placeholder')" style="width: 240px;margin-right: 30px;"
|
|
|
:disabled="!permissionBtn.isShowBtn('semanticPermission', 'ASR_renameArticles')"></el-input>
|
|
|
<div class="tag-button" @click="makeTagsDiaOpen(null)" style="margin-right: 30px;cursor: pointer;"
|
|
|
v-permission="permissionBtn.semanticPermission.ASR_tagMark_view">
|
|
|
<img src="~@/assets/img/tag.png" />
|
|
|
- <span style="color: #0052D9;">打标签</span>
|
|
|
+ <!-- 打标签-->
|
|
|
+ <span style="color: #0052D9;">{{ $t('SemanticsManage.ASRpage.tagging_text') }}</span>
|
|
|
</div>
|
|
|
- <el-input v-model="keyWord" placeholder="请输入关键词" prefix-icon="el-icon-search" clearable
|
|
|
+ <el-input v-model="keyWord"
|
|
|
+ :placeholder="$t('SemanticsManage.ASRpage.please_enter_keywords')" prefix-icon="el-icon-search" clearable
|
|
|
style="width: 360px;margin-right: 30px;" @input="searchKeyword">
|
|
|
<template slot="append">
|
|
|
<div class="toggle-keywords-box" v-if="keyWord">
|
|
@@ -161,8 +183,9 @@
|
|
|
</template>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
+ <!-- 保存 -->
|
|
|
<el-button type="primary" style="width: 120px;" @click="save" :loading="saveLoading"
|
|
|
- v-permission="permissionBtn.semanticPermission.ASR_saveArticles">保存</el-button>
|
|
|
+ v-permission="permissionBtn.semanticPermission.ASR_saveArticles">{{$t('Dialog.confirm_save_btn')}}</el-button>
|
|
|
</div>
|
|
|
<div class="detail-tag-area">
|
|
|
<div class="tag-button" v-for="(item,index) in articleDetail.Tags" :key="item.TagId" >
|
|
@@ -189,21 +212,29 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-mutil-operation">
|
|
|
- <el-checkbox label="全选" style="margin-right: 30px;" @change="checkAll"
|
|
|
+ <el-checkbox :label="$t('SemanticsManage.ASRpage.select_all_text')"
|
|
|
+ style="margin-right: 30px;" @change="checkAll"
|
|
|
v-model="isCheckAll" :indeterminate="isIndeterminate"></el-checkbox>
|
|
|
<div class="content-row-operation active" @click="copyText(null)" v-show="checkList && checkList.length>0"
|
|
|
v-permission="permissionBtn.semanticPermission.ASR_copyText">
|
|
|
<img src="~@/assets/img/icons/copy-active.png" />
|
|
|
- <span>复制</span>
|
|
|
+ <!-- 复制 -->
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.copy_text') }}</span>
|
|
|
</div>
|
|
|
<div class="content-row-operation active" v-show="checkList && checkList.length>0"
|
|
|
v-permission="permissionBtn.semanticPermission.ASR_toggleTimestampShow"
|
|
|
@click="toggleTimestampShow(null)">
|
|
|
<img :src="hideTimestampAll?require('@/assets/img/icons/eyes-show-active.png'):require('@/assets/img/icons/eyes-hide-active.png')" />
|
|
|
- <span>{{ hideTimestampAll?"展示时间戳":"隐藏时间戳" }}</span>
|
|
|
+ <span>
|
|
|
+ {{
|
|
|
+ hideTimestampAll
|
|
|
+ ?/*"展示时间戳"*/ $t('SemanticsManage.ASRpage.show_timestamps')
|
|
|
+ :/*"隐藏时间戳" */ $t('SemanticsManage.ASRpage.hide_timestamps')
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="content-title">原文</div>
|
|
|
+ <div class="content-title">{{ $t('SemanticsManage.ASRpage.original_text') }}</div>
|
|
|
<div class="content-main" :style="{minHeight:articleDetail.ResourceUrl?'490px':'560px'}" ref="contentMain">
|
|
|
<div class="content-row" v-for="(item,index) in articleDetail.Contents" :key="item.SpeechRecognitionContentId"
|
|
|
@mouseover="item.IsHover=true" @mouseout="item.IsHover=false" :id="'paragraph_'+(index+1)">
|
|
@@ -215,7 +246,8 @@
|
|
|
<div class="content-row-operation" :class="{'active':item.IsHover}" @click="copyText(item)"
|
|
|
v-permission="permissionBtn.semanticPermission.ASR_copyText">
|
|
|
<img :src="item.IsHover?require('@/assets/img/icons/copy-active.png'):require('@/assets/img/icons/copy.png')" />
|
|
|
- <span>复制</span>
|
|
|
+ <!--复制-->
|
|
|
+ <span>{{ $t('SemanticsManage.ASRpage.copy_text') }}</span>
|
|
|
</div>
|
|
|
<div class="content-row-operation" :class="{'active':item.IsHover}" @click="toggleTimestampShow(item)"
|
|
|
v-permission="permissionBtn.semanticPermission.ASR_toggleTimestampShow" >
|
|
@@ -223,7 +255,13 @@
|
|
|
v-show="!item.IsHover"/>
|
|
|
<img :src="item.HideTimestamp?require('@/assets/img/icons/eyes-show-active.png'):require('@/assets/img/icons/eyes-hide-active.png')"
|
|
|
v-show="item.IsHover"/>
|
|
|
- <span>{{ item.HideTimestamp?"展示时间戳":"隐藏时间戳" }}</span>
|
|
|
+ <span>
|
|
|
+ {{
|
|
|
+ hideTimestampAll
|
|
|
+ ?/*"展示时间戳"*/ $t('SemanticsManage.ASRpage.show_timestamps')
|
|
|
+ :/*"隐藏时间戳" */ $t('SemanticsManage.ASRpage.hide_timestamps')
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-row-content" >
|
|
@@ -245,7 +283,7 @@
|
|
|
<div class="asr-main-right" v-else v-permission="permissionBtn.semanticPermission.ASR_view"
|
|
|
v-infinite-scroll="handleLoadMore" :infinite-scroll-immediate="true" :infinite-scroll-disabled="articleListRequest.finished">
|
|
|
<template v-if="articleList && articleList.length>0">
|
|
|
- <div class="file-count">共{{ total }}个文件</div>
|
|
|
+ <div class="file-count">{{ $t('SemanticsManage.ASRpage.total_files',{num:total}) }}</div>
|
|
|
<div class="file-container">
|
|
|
<div class="file-item" v-for="item in articleList" :key="item.SpeechRecognitionId" @click="switchDetail(item)">
|
|
|
<div class="file-main">
|
|
@@ -273,10 +311,18 @@
|
|
|
<el-dropdown @command="(e)=>handleCommandMore(e,item)">
|
|
|
<img src="~@/assets/img/more.png" />
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="rename" v-permission="permissionBtn.semanticPermission.ASR_renameArticles">重命名</el-dropdown-item>
|
|
|
- <el-dropdown-item command="tag" v-permission="permissionBtn.semanticPermission.ASR_tagMark_view">打标签</el-dropdown-item>
|
|
|
- <el-dropdown-item command="export" v-permission="permissionBtn.semanticPermission.ASR_exportArticles">导出</el-dropdown-item>
|
|
|
- <el-dropdown-item command="del" v-permission="permissionBtn.semanticPermission.ASR_deleteArticles">删除</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="rename" v-permission="permissionBtn.semanticPermission.ASR_renameArticles">
|
|
|
+ {{ $t('SemanticsManage.ASRpage.rename_text') }}
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="tag" v-permission="permissionBtn.semanticPermission.ASR_tagMark_view">
|
|
|
+ {{ $t('SemanticsManage.ASRpage.tagging_text') }}
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="export" v-permission="permissionBtn.semanticPermission.ASR_exportArticles">
|
|
|
+ {{ $t('SemanticsManage.ASRpage.export_text') }}
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="del" v-permission="permissionBtn.semanticPermission.ASR_deleteArticles">
|
|
|
+ {{ $t('SemanticsManage.ASRpage.delete_text') }}
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
@@ -285,7 +331,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div v-else class="nodata">
|
|
|
- <tableNoData text="暂无记录"/>
|
|
|
+ <tableNoData :text="$t('SemanticsManage.ASRpage.no_directory_available')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -638,42 +684,42 @@ export default {
|
|
|
params={TagId:data.TagId}
|
|
|
apiName='removeTagCheck'
|
|
|
deleteLabelMap = {
|
|
|
- 0: '确定删除该标签吗?',
|
|
|
- 1: '标签关联转写文件,删除失败!'
|
|
|
+ 0: /*'确定删除该标签吗?'*/this.$t('SemanticsManage.ASRpage.check_text3'),
|
|
|
+ 1: /*'标签关联转写文件,删除失败!'*/ this.$t('SemanticsManage.ASRpage.failed_delete_text3')
|
|
|
}
|
|
|
}else{
|
|
|
// 目录
|
|
|
params={MenuId:data.MenuId}
|
|
|
apiName=this.leftShowLabel=="目录"?'removeCatalogueCheck':'removeTagCatalogueCheck'
|
|
|
deleteLabelMap = {
|
|
|
- 0: '确定删除当前分类吗?',
|
|
|
- 1: `该分类关联${this.leftShowLabel=='目录'?'转写文件':'标签'},删除失败!`,
|
|
|
- 2: '确定删除当前分类及包含的子分类吗?'
|
|
|
- }
|
|
|
+ 0: /*'确定删除当前分类吗?'*/ this.$t('SemanticsManage.ASRpage.check_text'),
|
|
|
+ /*`该分类关联${this.leftShowLabel=='目录'?'转写文件':'标签'},删除失败!`*/
|
|
|
+ 1: this.leftShowLabel=='目录'?this.$t('SemanticsManage.ASRpage.failed_delete_text2'):this.$t('SemanticsManage.ASRpage.failed_delete_text'),
|
|
|
+ 2: /*'确定删除当前分类及包含的子分类吗?'*/this.$t('SemanticsManage.ASRpage.check_text2'),
|
|
|
+ }
|
|
|
}
|
|
|
asrInterface[apiName](params).then(res => {
|
|
|
- if(res.Ret === 200) {
|
|
|
- if([1].includes(res.Data.CheckResult)) this.$confirm(
|
|
|
- deleteLabelMap[res.Data.CheckResult],
|
|
|
- '删除失败',
|
|
|
- {
|
|
|
- confirmButtonText: '知道了',
|
|
|
- showCancelButton:false,
|
|
|
- type: 'error'
|
|
|
- })
|
|
|
- else if([0,2].includes(res.Data.CheckResult)) this.$confirm(
|
|
|
- deleteLabelMap[res.Data.CheckResult]
|
|
|
- || '确定删除吗?',
|
|
|
- '提示',
|
|
|
- {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- this.delHandle(data.MenuId,data.TagId);
|
|
|
- }).catch(() => {})
|
|
|
- }
|
|
|
- })
|
|
|
+ if(res.Ret === 200) {
|
|
|
+ if([1].includes(res.Data.CheckResult)) this.$confirm(
|
|
|
+ deleteLabelMap[res.Data.CheckResult],
|
|
|
+ this.$t('SemanticsManage.ASRpage.failed_text'),
|
|
|
+ {
|
|
|
+ confirmButtonText: this.$t('SemanticsManage.ASRpage.failed_btn'),
|
|
|
+ showCancelButton:false,
|
|
|
+ type: 'error'
|
|
|
+ }).then(() => {}).catch(() => {})
|
|
|
+ else if([0,2].includes(res.Data.CheckResult)) this.$confirm(
|
|
|
+ deleteLabelMap[res.Data.CheckResult],
|
|
|
+ this.$t('SemanticsManage.ASRpage.prompt_text'),
|
|
|
+ {
|
|
|
+ confirmButtonText: this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: this.$t('Dialog.cancel_btn'),
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.delHandle(data.MenuId,data.TagId);
|
|
|
+ }).catch(() => {})
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
delHandle(mId,tid){
|
|
|
let params={}
|
|
@@ -690,7 +736,7 @@ export default {
|
|
|
asrInterface[apiName](params).then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
this.leftShowLabel=='目录'?this.getTreeData():this.getTagTreeData()
|
|
|
- this.$message.success("删除成功")
|
|
|
+ this.$message.success(this.$t('SemanticsManage.ASRpage.deletion_successful'))
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1085,15 +1131,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
articleDel(row){
|
|
|
- this.$confirm('确定删除选中的记录吗?', '提示',
|
|
|
+ this.$confirm(
|
|
|
+ /*确定删除选中的记录吗*/this.$t('SemanticsManage.ASRpage.delete_file_check'),
|
|
|
+ /*'提示'*/this.$t('SemanticsManage.ASRpage.prompt_text'),
|
|
|
{
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ confirmButtonText: this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: this.$t('Dialog.cancel_btn'),
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
asrInterface.speechRemove({SpeechRecognitionId:row.SpeechRecognitionId}).then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
- this.$message.success("删除成功")
|
|
|
+ this.$message.success(this.$t('SemanticsManage.ASRpage.deletion_successful'))
|
|
|
this.page=1
|
|
|
this.getArticleList()
|
|
|
this.leftShowLabel=="目录" && this.getTreeData()
|
|
@@ -1259,14 +1307,14 @@ export default {
|
|
|
if(window.ClipboardItem) {
|
|
|
await navigator.clipboard.writeText(text).then(
|
|
|
() => {
|
|
|
- this.$message.success('复制成功!')
|
|
|
+ this.$message.success(this.$t('MsgPrompt.copy_success_msg'))
|
|
|
},
|
|
|
(err) => {
|
|
|
console.error(err);
|
|
|
- this.$message.warning('浏览器不支持')
|
|
|
+ this.$message.warning(this.$t('MsgPrompt.browser_not_support'))
|
|
|
})
|
|
|
}else {
|
|
|
- this.$message.warning('当前协议暂不支持,仅支持https协议')
|
|
|
+ this.$message.warning(this.$t('MsgPrompt.http_not_support'))
|
|
|
}
|
|
|
},
|
|
|
toggleTimestampShow(item){
|