布局文档翻译

This commit is contained in:
qq787203167
2022-07-25 10:31:22 +08:00
parent 676c77469b
commit f33318a1fb
8 changed files with 271 additions and 24 deletions
+2
View File
@@ -1173,4 +1173,6 @@ module.exports = {
convertFailed:'Convert Failed',
standardData:'Standard Data',
Theorganization:'The Organization',
originalText:'Original Text',
translatedText:'Translated Text',
}
+2
View File
@@ -1177,4 +1177,6 @@ module.exports = {
convertFailed:'转换失败',
standardData:'标准数据',
Theorganization:'组织机构',
originalText:'原文',
translatedText:'译文',
}
@@ -99,6 +99,7 @@
this.$route.path == '/TaskPlanList' ||
this.$route.path == '/documentDataComparison' ||
this.$route.path == '/comparisonResults' ||
this.$route.path == '/documentTranslationResults' ||
this.$route.path == '/initiateDocumentComparison' ||
this.$route.path == '/evaluationProcess' ||
this.$route.path == '/evaluationResultsClause' ||
+5
View File
@@ -387,6 +387,11 @@ export const constantRouterMap = [
name: 'initiateDocumentComparison',
component: () => import(/* webpackChunkName: "user" */ '@/views/documentTools/documentComparison/components/initiateComparison')
},
{
path: '/documentTranslationResults',
name: 'documentTranslationResults',
component: () => import(/* webpackChunkName: "user" */ '@/views/documentTools/documentTranslation/components/documentTranslationResults')
},
{
path: '/documentDataComparison',
name: 'documentDataComparison',
@@ -73,7 +73,7 @@
class="box-input-One"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.translationLanguage">
v-model="formInline.sourceLanguage">
<a-select-option v-for="(item, key) in LanguageList"
:key="key"
:value="item.value">
@@ -91,7 +91,7 @@
class="box-input-One"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.translationLanguageOne">
v-model="formInline.targetLanguage">
<a-select-option v-for="(item, key) in LanguageList"
:key="key"
:value="item.value">
@@ -18,11 +18,11 @@
<span class="title-text-text"
:title="$t('file')">{{$t('file')}}</span>
</div>
<a-form-model-item class="itemModel" prop="file">
<a-form-model-item class="itemModel" prop="sourceFileId">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('file')">
{{ (formInline.file === 'null' || formInline.file === '' ||
formInline.file == null) ? $t('clickUpload') : $t('viewUploadedFiles')
@click="clickButtonToUpload('sourceFileId')">
{{ (formInline.sourceFileId === 'null' || formInline.sourceFileId === '' ||
formInline.sourceFileId == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</a-form-model-item>
@@ -37,7 +37,7 @@
<a-form-model-item class="itemModel" prop="standard">
<a-input class="box-input"
readonly
v-model="formInline.standard"
v-model="formInline.serialNumber"
@click.native="standardClick"
:placeholder="$t('PleaseSelect')+$t('standard')"/>
</a-form-model-item>
@@ -54,7 +54,7 @@
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.translationResults">
v-model="formInline.textStatus">
<a-select-option v-for="(item, key) in translationResultsList"
:key="key"
:value="item.value">
@@ -77,7 +77,7 @@
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.translationLanguage">
v-model="formInline.sourceLanguage">
<a-select-option v-for="(item, key) in LanguageList"
:key="key"
:value="item.value">
@@ -95,7 +95,7 @@
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.translationLanguageOne">
v-model="formInline.targetLanguage">
<a-select-option v-for="(item, key) in LanguageList"
:key="key"
:value="item.value">
@@ -133,7 +133,7 @@
confirmLoading: false,
formInline: {},
rules: {
file: [
sourceFileId: [
{
required: true,
message: this.$t('file') + this.$t('cannotEmpty'),
@@ -0,0 +1,234 @@
<template>
<div class="doc-detail">
<div class="doc-detail-wrap">
<div class="doc-detail-header" style="position: fixed;top: 0">
<div class="doc-detail-title">
<span style="line-height: 66px;display: inline-block;float: left" @click="Fallback">
<a-icon type="arrow-left" style="margin-right: 6px;"/>
</span>
<span> {{$t('DocumentTranslation')}}</span>
</div>
</div>
<div style="padding-top: 68px;background: #fff">
<div class="detail-content">
<div class="detail-content-left">
<div class="detail-text-top">
{{$t('originalText')}}
</div>
<div class="detail-text">
汽车用LED前照灯
1 范围
本标准规定了汽车用LED光源/模块或含有LED光源/模块的前照灯配光性能、光色、温度循环等试验方法和检验规则等,
本标准适用于M、N类汽车使用的LED前照灯、或主要由LED光源或LED模块形成远光或近光的LED前照灯。
2 规范性引用文件
下列文件中的条款,通过本标准的引用而成为本标准的条款,凡是注日期的引用文件,其随后所有的修改单(不包括勘误的内容)或修订版均不适用于本标准,然而,鼓励根据本标准达成协议的各方研究是否可使用这些文件的最新版本。凡是不注日期的引用文件,其最新版本适用于本标准.
GB 4599—2007 汽车用灯丝灯泡前照灯
GB 4785 汽车及挂车外部照明和光信号装置的安装规定
GB/T 7922 照明光源颜色的测量方法
GB 15766.1 道路机动车辆灯丝灯泡 尺寸、光电性能要求
3 术语和定义
GB 4599—2007和GB 4785中确立的,以及下列术语和定义适用于本标准占
3. 1
目标光通量: objective luminous flux
可更换光源或光源模块光通量的设计值。
3.2
光源失效 failure of light source
LED或LED模块在正常使用条件下,一个或多个LED失去发光功能、变暗、色度超标、或出现闪烁的现象。
3.3
LED 模块 LED module
仅含有LED的光源模块。
4 前照灯的不同型式
在以下主要方面有差异的前照灯:
——商品名称或商标;
——光学系统的特性;
——通过反射、折射、吸收和/或工作时的变形,改变光学效果的部件;
——提供的光束种类(近光,远光或远、近光);
——配光镜及其涂层的材料;
——LED光源/模块类型和参数(电压、功率、光通量、色度、显色性九
5 要求
5.1 一般要求
5.1. 1 LED前照灯应设计和制造成在正常使用条件下,即使受到振动,仍能保证满足使用要求和符合本标准规定。
5.1.2 LED前照灯应具有良好的散热性,防止LED光源热堆积,LED前照灯即使在低温凝冻的环境下仍能正常工作,
5.1.3 LED前照灯应具有良好的电磁兼容性能。
5.1.4 当前照灯装有LED光源或LED模块时其性能均应满足本标准要求;当LED前照灯中装有灯丝灯泡或HID光源实现远光或近光功能时,其配光性能和检测应分别满足其相应标准的要求,
5.1.5 前照灯应具有光束调整装置,当近光灯和远光灯形成一组合体,并各自装有LED光源/模块、灯丝灯泡(或灯光组)时,调整装置应能对它们分别进行调整,这些要求不适用于远光灯和近光灯不能单独调节的前照灯,
</div>
</div>
<div class="detail-content-right">
<div class="detail-text-top">
{{$t('translatedText')}}
</div>
<div class="detail-text">
LED headlamp for automobile
one Range
This standard specifies the test methods and inspection rules for light distribution performance, light
color, temperature cycle, etc. of automotive LED light source / module or headlamp containing LED light
source / module,
This standard is applicable to LED headlamps used by M and N vehicles, or LED headlamps that mainly form
high beam or low beam by LED light source or LED module.
two Normative references
The provisions in the following documents become the provisions of this standard through the reference of
this standard. For dated references, all subsequent amendments (excluding the contents of Corrigendum) or
revisions are not applicable to this standard. However, parties to agreements based on this standard are
encouraged to study whether the latest versions of these documents can be used. For undated references,
the latest edition is applicable to this standard
GB 4599—2007 Automotive filament bulb headlamps
GB 4785 Provisions for the installation of exterior lighting and light signalling devices for automobiles
and trailers
GB/T 7922 Methods of measuring the color of lighting sources
GB 15766.1 Requirements for dimensions and photoelectric performance of filament bulbs for road motor
vehicles
three Terms and definitions
The terms and definitions established in GB 4599-2007 and GB 4785 and the following terms and definitions
are applicable to this standard
3. 1
Objective luminous flux
Design value of luminous flux of replaceable light source or light source module.
three point two
Failure of light source
Under normal use conditions of LED or LED module, one or more LEDs lose light-emitting function, darken,
chromaticity exceeds the standard, or flicker.
three point three
LED module
Light source module with led only.
four Different types of headlamps
Headlamps that differ in the following main respects:
——Trade name or trademark;
——Characteristics of optical system;
——Components that change the optical effect through reflection, refraction, absorption and / or
deformation during operation;
——Type of beam provided (low beam, high beam or high beam and low beam);
——Materials of lens and its coating;
——LED light source / module type and parameters (voltage, power, luminous flux, chromaticity, color
rendering IX
five requirement
five point one general requirements
5.1. one The LED headlamp shall be designed and manufactured to ensure that it can meet the use
requirements and comply with the provisions of this standard even if it is vibrated under normal
conditions of use.
5.1.2 The LED headlamp shall have good heat dissipation to prevent thermal accumulation of LED light
source. The LED headlamp can work normally even in the low-temperature freezing environment,
5.1.3 LED headlamp shall have good electromagnetic compatibility performance.
5.1.4 When the headlamp is equipped with LED light source or LED module, its performance shall meet the
requirements of this standard; When the LED headlamp is equipped with filament bulb or HID light source to
realize the function of high beam or low beam, its Photometric Performance and detection shall meet the
requirements of corresponding standards respectively,
5.1.5 The headlamp shall have a beam adjustment device. When the dipped beam and the high beam form a
combination and each is equipped with an LED light source / module and a filament bulb (or light group),
the adjustment device shall be able to adjust them respectively. These requirements do not apply to
headlamps where the high beam and the low beam cannot be adjusted separately,
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'documentTranslationResults',
data() {
return {}
},
mounted() {
},
methods: {
Fallback() {
this.$router.push({
path: '/documentTranslation'
})
}
}
}
</script>
<style lang="less" scoped>
@import '~@assets/less/common.less';
.doc-detail {
background: #fff;
height: 100%;
.doc-detail-wrap {
.doc-detail-header {
width: 100%;
z-index: 1000;
height: 68px;
line-height: 68px;
padding: 0 0 0 32px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
border-bottom: 2px #eff1f3 solid;
background: #fff;
.doc-detail-title {
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
font-size: 20px;
font-weight: 400;
color: #040B29;
line-height: 68px;
}
}
}
}
.detail-content {
padding: 32px;
box-sizing: border-box;
}
.detail-content-left {
width: calc(50% - 12px);
height: calc(100vh - 130px);
float: left;
border: 1px solid #CED0D8;
padding: 24px 32px;
box-sizing: border-box;
overflow: auto;
}
.detail-content-right {
float: left;
width: calc(50% - 12px);
padding: 24px 32px;
margin-left: 24px;
height: calc(100vh - 130px);
box-sizing: border-box;
border: 1px solid #CED0D8;
overflow: auto;
}
.detail-text-top {
height: 30px;
font-size: 18px;
font-weight: 400;
color: #040B29;
margin-bottom: 20px;
}
.detail-text {
font-size: 14px;
font-weight: 400;
color: #040B29;
}
.page {
text-align: right;
margin-top: 20px;
}
</style>
@@ -30,7 +30,7 @@
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="queryParam.translationResults">
v-model="queryParam.translationResult">
<a-select-option v-for="(item, key) in translationResultsList"
:key="key"
:value="item.value">
@@ -51,7 +51,7 @@
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="queryParam.flowStatus">
v-model="queryParam.releaseCondition">
<a-select-option v-for="(item, key) in gatherResultList"
:key="key"
:value="item.value">
@@ -105,7 +105,7 @@
<!-- -->
<span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="viewClick(record)">{{$t('view')}}</a>
<a class="text-operation" @click="checkClick(record)">{{$t('check')}}</a>
<!-- <a class="text-operation" @click="checkClick(record)">{{$t('check')}}</a>-->
<a class="text-operation"
@click="subscribe(record)">
{{!record.state || record.state == 0 ? $t('release') :$t('withdraw')}}
@@ -200,7 +200,7 @@
align: 'center',
width: 170,
ellipsis: true,
dataIndex: 'TextStatus'
dataIndex: 'textStatus'
},
{
title: this.$t('fileName'),
@@ -212,13 +212,13 @@
{
title: this.$t('translationLanguage'),
align: 'center',
dataIndex: 'translationLanguage',
dataIndex: 'targetLanguage',
width: 170
},
{
title: this.$t('translationResults'),
align: 'center',
dataIndex: 'translationResults',
dataIndex: 'translationResult',
width: 170
},
{
@@ -226,14 +226,14 @@
align: 'center',
width: 170,
ellipsis: true,
dataIndex: 'conversionTime'
dataIndex: 'translationTime'
},
{
title: this.$t('releaseSituation'),
align: 'center',
width: 170,
ellipsis: true,
dataIndex: 'releaseSituation'
dataIndex: 'releaseCondition'
},
{
title: this.$t('operation'),
@@ -303,11 +303,14 @@
this.selectedRowKeys = value
},
viewClick(row) {
},
checkClick(row) {
let newUrl = this.$router.resolve({
path: '/documentTranslationResults'
})
window.open(newUrl.href, '_blank')
},
// checkClick(row) {
//
// },
downloadData() {
},
@@ -320,7 +323,7 @@
RetrieveFilesClick() {
this.$refs.RetrieveFilesListRef.addModel()
},
BatchDelete(){
BatchDelete() {
},
deleteData(val) {