File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 20
20
<el-input v-model =" formData.value" placeholder =" 请输入参数键值" />
21
21
</el-form-item >
22
22
<el-form-item label =" 是否可见" prop =" visible" >
23
- <!-- TODO 芋艿:改成组件 -->
24
23
<el-radio-group v-model =" formData.visible" >
25
- <el-radio :key =" true" :label =" true" >是</el-radio >
26
- <el-radio :key =" false" :label =" false" >否</el-radio >
24
+ <el-radio
25
+ v-for =" dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
26
+ :key =" dict.value"
27
+ :label =" dict.value"
28
+ >
29
+ {{ dict.label }}
30
+ </el-radio >
27
31
</el-radio-group >
28
32
</el-form-item >
29
33
<el-form-item label =" 备注" prop =" remark" >
39
43
</Dialog >
40
44
</template >
41
45
<script setup lang="ts">
46
+ import { DICT_TYPE , getBoolDictOptions } from ' @/utils/dict'
42
47
import * as ConfigApi from ' @/api/infra/config'
43
48
44
49
const { t } = useI18n () // 国际化
You can’t perform that action at this time.
0 commit comments