import { getDictionary } from '@/api/system/dictbiz' // 调用字典api接口
data() {
return {
option: {
emptyBtn: false,
submitBtn: true,
menuSpan: 6,
submitText: '发送',
column: [{
label: "处理结果",
prop: "actualMrMode",
rules: [{
required: true,
message: "请选择处理结果",
trigger: ['blur', 'change']
}],
type: 'radio',
dicData: [],
// dicUrl: '/api/blade-system/dict-biz/dictionary?code=exam_rslt',
props: {
label: 'dictValue',
value: 'dictKey'
},
span: 8
},
{
label: "处理意见",
prop: "examOpin",
rules: [{ required: false, message: "请输入处理意见", trigger: 'blur' }],
type: "textarea",
minRows: 3,
span: 10
}]
}
}
}
created() {
getDictionary({ code: 'exam_rslt' }).then(response => {
const column = this.findObject(this.option.column, "examRslt");
column.dicData = response.data.data.filter(item => item.dictKey !== '1');
})
},
avue 过滤字典中的某些选项
最新推荐文章于 2024-03-14 11:12:35 发布