系统标准国际化补充

uat
caiyiling 2025-03-13 15:00:50 +08:00
parent 1696fb6294
commit 26cca57f75
2 changed files with 29 additions and 18 deletions

View File

@ -107,7 +107,7 @@
@click="handleSave" @click="handleSave"
v-loading="loading" v-loading="loading"
> >
保存 {{ $t('common:button:save')}}
</el-button> </el-button>
</div> </div>
<el-table <el-table
@ -226,7 +226,8 @@ export default {
}) })
}, },
handleAdd() { handleAdd() {
this.drawer_cfg2 = { drawerChild: true, title: '选择标准字典' } //
this.drawer_cfg2 = { drawerChild: true, title: this.$t('template:criterionDictionary:title:selectDictionary') }
this.config.visible = true this.config.visible = true
this.$nextTick(() => { this.$nextTick(() => {
var a = this.dicList.filter(v => { var a = this.dicList.filter(v => {
@ -261,9 +262,10 @@ export default {
}, },
handleDelete(row) { handleDelete(row) {
this.loading = true this.loading = true
this.$confirm('确定要删除该系统标准字典吗?').then(() => { //
this.$confirm(this.$t('template:criterionDictionary:message:msg1')).then(() => {
deleteSystemCriterionDictionary({Id: row.Id}).then(res => { deleteSystemCriterionDictionary({Id: row.Id}).then(res => {
this.$message.success('删除成功') this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.loading = false this.loading = false
this.getList() this.getList()
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })

View File

@ -10,7 +10,7 @@
@click="handleAdd" @click="handleAdd"
style="margin-right: 10px;" style="margin-right: 10px;"
> >
配置 {{ $t('dictionary:template:criterionDictionary:button:config') }}
</el-button> </el-button>
</div> </div>
</div> </div>
@ -24,39 +24,44 @@
> >
<el-table-column <el-table-column
prop="" prop=""
label="序号" label=""
width="50" width="50"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<!-- 键值 -->
<el-table-column <el-table-column
prop="Code" prop="Code"
label="键值" :label="$t('dictionary:template:criterionDictionary:table:code')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 中文值 -->
<el-table-column <el-table-column
prop="ValueCN" prop="ValueCN"
label="中文值" :label="$t('dictionary:template:criterionDictionary:table:valueCN')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 英文值 -->
<el-table-column <el-table-column
prop="Value" prop="Value"
label="英文值" :label="$t('dictionary:template:criterionDictionary:table:value')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:template:criterionDictionary:table:description')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 分组 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="分组" :label="$t('dictionary:template:criterionDictionary:table:group')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -84,7 +89,7 @@
@click="handleSave" @click="handleSave"
v-loading="loading" v-loading="loading"
> >
保存 {{ $t('common:button:save')}}
</el-button> </el-button>
</div> </div>
<el-table <el-table
@ -100,27 +105,31 @@
type="selection" type="selection"
width="55"> width="55">
</el-table-column> </el-table-column>
<!-- 键值 -->
<el-table-column <el-table-column
prop="raw.Code" prop="raw.Code"
label="键值" :label="$t('dictionary:template:criterionDictionary:table:code')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 中文值 -->
<el-table-column <el-table-column
prop="raw.ValueCN" prop="raw.ValueCN"
label="中文值" :label="$t('dictionary:template:criterionDictionary:table:valueCN')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 英文值 -->
<el-table-column <el-table-column
prop="raw.Value" prop="raw.Value"
label="英文值" :label="$t('dictionary:template:criterionDictionary:table:value')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="raw.Description" prop="raw.Description"
label="描述" :label="$t('dictionary:template:criterionDictionary:table:description')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
@ -152,7 +161,7 @@ export default {
activeName: '0', activeName: '0',
addOrEdit: { visible: false, title: '' }, addOrEdit: { visible: false, title: '' },
preview: { visible: false, title: 'eCRF预览' }, preview: { visible: false, title: 'eCRF预览' },
config: { visible: false, title: '标准字典值' }, config: { visible: false, title: this.$t('template:criterionDictionary:message:msg2') }, //
selectedList: [] selectedList: []
} }
}, },
@ -167,7 +176,7 @@ export default {
CrterionDictionaryGroup: v CrterionDictionaryGroup: v
}).then(res => { }).then(res => {
this.loading = false this.loading = false
this.$message.success('设置成功') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getList() this.getList()
}).catch(() => {this.loading = false}) }).catch(() => {this.loading = false})
}, },