Compare commits

..

No commits in common. "3167c2bea7c10beb238ced8cea4d232aaacfb70c" and "ff88cbd6e28c26507aefa1d33743ed1f0c38172c" have entirely different histories.

2 changed files with 18 additions and 29 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,8 +226,7 @@ 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 => {
@ -262,10 +261,9 @@ 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.$t('common:message:deletedSuccessfully')) this.$message.success('删除成功')
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,44 +24,39 @@
> >
<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="$t('dictionary:template:criterionDictionary:table:code')" label="键值"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 中文值 -->
<el-table-column <el-table-column
prop="ValueCN" prop="ValueCN"
:label="$t('dictionary:template:criterionDictionary:table:valueCN')" label="中文值"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 英文值 -->
<el-table-column <el-table-column
prop="Value" prop="Value"
:label="$t('dictionary:template:criterionDictionary:table:value')" label="英文值"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
:label="$t('dictionary:template:criterionDictionary:table:description')" label="描述"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 分组 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
:label="$t('dictionary:template:criterionDictionary:table:group')" label="分组"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -89,7 +84,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
@ -105,31 +100,27 @@
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="$t('dictionary:template:criterionDictionary:table:code')" label="键值"
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="$t('dictionary:template:criterionDictionary:table:valueCN')" label="中文值"
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="$t('dictionary:template:criterionDictionary:table:value')" label="英文值"
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="$t('dictionary:template:criterionDictionary:table:description')" label="描述"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
@ -161,7 +152,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: this.$t('template:criterionDictionary:message:msg2') }, // config: { visible: false, title: '标准字典值' },
selectedList: [] selectedList: []
} }
}, },
@ -176,7 +167,7 @@ export default {
CrterionDictionaryGroup: v CrterionDictionaryGroup: v
}).then(res => { }).then(res => {
this.loading = false this.loading = false
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success('设置成功')
this.getList() this.getList()
}).catch(() => {this.loading = false}) }).catch(() => {this.loading = false})
}, },