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

View File

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