Commit add6a2a2 authored by zhangyichen's avatar zhangyichen

修改bug 56492 字典管理-添加字典数据参数状态功能没有单选选项

parent 18a5a084
...@@ -157,12 +157,9 @@ ...@@ -157,12 +157,9 @@
<el-input-number v-model="form.dictSort" style="width: 100%" controls-position="right" :min="0" /> <el-input-number v-model="form.dictSort" style="width: 100%" controls-position="right" :min="0" />
</el-form-item> </el-form-item>
<el-form-item label="参数状态" prop="status"> <el-form-item label="参数状态" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.flag">
<el-radio <el-radio v-model="form.flag" :label="'1'">启用</el-radio>
v-for="dict in statusOptions.filter(item => { return item.dictValue })" <el-radio v-model="form.flag" :label="'0'">停用</el-radio>
:key="dict.dictValue"
:label="dict.dictValue"
>{{ dict.dictLabel }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remarks"> <el-form-item label="备注" prop="remarks">
...@@ -234,7 +231,16 @@ export default { ...@@ -234,7 +231,16 @@ export default {
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
// 状态数据字典 // 状态数据字典
statusOptions: [], statusOptions: [
{
dictLabel: '启用',
dictValue: '1'
},
{
dictLabel: '停用',
dictValue: '0'
}
],
// 类型数据字典 // 类型数据字典
typeOptions: [], typeOptions: [],
// 查询参数 // 查询参数
...@@ -268,9 +274,9 @@ export default { ...@@ -268,9 +274,9 @@ export default {
const dictId = this.$route.params && this.$route.params.dictId const dictId = this.$route.params && this.$route.params.dictId
this.getType(dictId) this.getType(dictId)
this.getTypeList() this.getTypeList()
this.getDicts(dictCons['NORMAL_DISABLE']).then(response => { // this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
this.statusOptions = response.data // this.statusOptions = response.data
}) // })
}, },
methods: { methods: {
// 状态 // 状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment