修改翻译

This commit is contained in:
zyx.net
2022-08-11 11:49:02 +08:00
parent 42ec3c43ec
commit 6c52d89cec
4 changed files with 34 additions and 17 deletions
+2 -2
View File
@@ -355,7 +355,7 @@ module.exports = {
templateDownload: 'Download Template', templateDownload: 'Download Template',
textInformation: 'Document Files', textInformation: 'Document Files',
relatedInformation: 'Relevant Information', relatedInformation: 'Relevant Information',
RetrieveFiles: 'Retrieve Library File', RetrieveFiles: 'Select Stored File',
SplitText: 'Split Library File', SplitText: 'Split Library File',
ImportResults: 'Import Split Results', ImportResults: 'Import Split Results',
copy: 'Copy', copy: 'Copy',
@@ -589,7 +589,7 @@ module.exports = {
withdraw: 'Withdraw', withdraw: 'Withdraw',
maintenanceList: 'Maintain', maintenanceList: 'Maintain',
instructionForUse: 'Instruction', instructionForUse: 'Instruction',
subtitle: 'Sub-Title', subtitle: 'Sub-title',
scopeOfApplication: 'Scope', scopeOfApplication: 'Scope',
correspondingStandard: 'Compare EU/CN', correspondingStandard: 'Compare EU/CN',
implementationCategory: 'Usage', implementationCategory: 'Usage',
@@ -150,14 +150,14 @@
if (res.success) { if (res.success) {
var jsonHead = res.result var jsonHead = res.result
this.columns = [] this.columns = []
this.columns.push( // this.columns.push(
{ // {
title: this.$t('serialNumber'), // title: this.$t('serialNumber'),
dataIndex: 'index', // dataIndex: 'index',
key: 'index', // key: 'index',
align: 'center', // align: 'center',
customRender: (text, record, index) => `${index + 1}` // customRender: (text, record, index) => `${index + 1}`
}) // })
jsonHead.forEach((res, index) => { jsonHead.forEach((res, index) => {
this.columns.push({ this.columns.push({
title: res.db_field_txt, title: res.db_field_txt,
@@ -12,10 +12,16 @@
<a-row :gutter='24'> <a-row :gutter='24'>
<a-col :span='9'> <a-col :span='9'>
<a-form-model-item :label="$t('areaOfResponsibility')"> <a-form-model-item :label="$t('areaOfResponsibility')">
<j-dict-select-tag class="box-input" v-model="formData.dutyTerritory" <a-select class="box-input" v-model="formData.dutyTerritory"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')">
:type="'select'" <a-select-option v-for="(element,index) in dutyTerritory" :key="element.value" :value="element.value">
:triggerChange="false" :dictCode="'duty_territory'"/> {{element.text}}
</a-select-option>
</a-select>
<!-- <j-dict-select-tag class="box-input" v-model="formData.dutyTerritory"-->
<!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span='9'> <a-col :span='9'>
@@ -99,6 +105,7 @@ export default {
loading: false, loading: false,
editId: '', editId: '',
RelatedItemList:[], RelatedItemList:[],
dutyTerritory:[],
columns: [ columns: [
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
@@ -180,6 +187,7 @@ export default {
mounted() { mounted() {
this.loadData() this.loadData()
this.getRelatedItemList() this.getRelatedItemList()
this.getdutyTerritory()
}, },
methods: { methods: {
getRelatedItemList(){ getRelatedItemList(){
@@ -207,6 +215,13 @@ export default {
} }
}) })
}, },
getdutyTerritory(){
getAction('sys/dict/getDictItems/duty_territory', { }).then((res) => {
if (res.success) {
this.dutyTerritory = res.result
}
})
},
// 法规技术评估列表 // 法规技术评估列表
handletechnical(){ handletechnical(){
@@ -83,9 +83,9 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
> >
<span slot="projectName" slot-scope="text,record" :title="text"> <span slot="technicalField" slot-scope="text,record" :title="text">
<a @click="entryNameClick(record)"> <a @click="entryNameClick(record)">
{{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }} {{ text && text.length > 23 ? text.slice(0, 22) + '...' : text }}
</a> </a>
</span> </span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
@@ -183,7 +183,9 @@ export default {
{ {
title: this.$t('technicalField'), title: this.$t('technicalField'),
align: 'center', align: 'center',
dataIndex: 'technologyTerritory_dicText' dataIndex: 'technologyTerritory_dicText',
width: 350,
scopedSlots: { customRender: 'technicalField' }
}, },
{ {
title: this.$t('RegulatoryProcessEvaluationResults'), title: this.$t('RegulatoryProcessEvaluationResults'),