系统标准国际化补充
parent
1696fb6294
commit
26cca57f75
|
@ -107,7 +107,7 @@
|
|||
@click="handleSave"
|
||||
v-loading="loading"
|
||||
>
|
||||
保存
|
||||
{{ $t('common:button:save')}}
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
|
@ -226,7 +226,8 @@ export default {
|
|||
})
|
||||
},
|
||||
handleAdd() {
|
||||
this.drawer_cfg2 = { drawerChild: true, title: '选择标准字典' }
|
||||
// 选择标准字典
|
||||
this.drawer_cfg2 = { drawerChild: true, title: this.$t('template:criterionDictionary:title:selectDictionary') }
|
||||
this.config.visible = true
|
||||
this.$nextTick(() => {
|
||||
var a = this.dicList.filter(v => {
|
||||
|
@ -261,9 +262,10 @@ export default {
|
|||
},
|
||||
handleDelete(row) {
|
||||
this.loading = true
|
||||
this.$confirm('确定要删除该系统标准字典吗?').then(() => {
|
||||
// 是否确认删除
|
||||
this.$confirm(this.$t('template:criterionDictionary:message:msg1')).then(() => {
|
||||
deleteSystemCriterionDictionary({Id: row.Id}).then(res => {
|
||||
this.$message.success('删除成功')
|
||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||
this.loading = false
|
||||
this.getList()
|
||||
}).catch(() => { this.loading = false })
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
@click="handleAdd"
|
||||
style="margin-right: 10px;"
|
||||
>
|
||||
配置
|
||||
{{ $t('dictionary:template:criterionDictionary:button:config') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -24,39 +24,44 @@
|
|||
>
|
||||
<el-table-column
|
||||
prop=""
|
||||
label="序号"
|
||||
label=""
|
||||
width="50"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{scope.$index + 1}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 键值 -->
|
||||
<el-table-column
|
||||
prop="Code"
|
||||
label="键值"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:code')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<!-- 中文值 -->
|
||||
<el-table-column
|
||||
prop="ValueCN"
|
||||
label="中文值"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:valueCN')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- 英文值 -->
|
||||
<el-table-column
|
||||
prop="Value"
|
||||
label="英文值"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:value')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- 描述 -->
|
||||
<el-table-column
|
||||
prop="Description"
|
||||
label="描述"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:description')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- 分组 -->
|
||||
<el-table-column
|
||||
prop="Description"
|
||||
label="分组"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:group')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
|
@ -84,7 +89,7 @@
|
|||
@click="handleSave"
|
||||
v-loading="loading"
|
||||
>
|
||||
保存
|
||||
{{ $t('common:button:save')}}
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
|
@ -100,27 +105,31 @@
|
|||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<!-- 键值 -->
|
||||
<el-table-column
|
||||
prop="raw.Code"
|
||||
label="键值"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:code')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- 中文值 -->
|
||||
<el-table-column
|
||||
prop="raw.ValueCN"
|
||||
label="中文值"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:valueCN')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- 英文值 -->
|
||||
<el-table-column
|
||||
prop="raw.Value"
|
||||
label="英文值"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:value')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- 描述 -->
|
||||
<el-table-column
|
||||
prop="raw.Description"
|
||||
label="描述"
|
||||
:label="$t('dictionary:template:criterionDictionary:table:description')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
|
@ -152,7 +161,7 @@ export default {
|
|||
activeName: '0',
|
||||
addOrEdit: { visible: false, title: '' },
|
||||
preview: { visible: false, title: 'eCRF预览' },
|
||||
config: { visible: false, title: '标准字典值' },
|
||||
config: { visible: false, title: this.$t('template:criterionDictionary:message:msg2') }, //标准字典值
|
||||
selectedList: []
|
||||
}
|
||||
},
|
||||
|
@ -167,7 +176,7 @@ export default {
|
|||
CrterionDictionaryGroup: v
|
||||
}).then(res => {
|
||||
this.loading = false
|
||||
this.$message.success('设置成功')
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.getList()
|
||||
}).catch(() => {this.loading = false})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue