diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index b910bfb..fbed747 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -46,7 +46,7 @@ const props = defineProps({ } }) const dataList = computed(() => { - if (props.config && typeof props.config === 'object' && props.config.label && props.config.value && props.options) { + if (props.config) { let config = props.config var newList = [] @@ -58,7 +58,7 @@ const dataList = computed(() => { } return newList } - return props.options || [] + return props.options }) const values = computed(() => { if (props.value !== null && typeof props.value !== 'undefined') { diff --git a/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue b/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue index 1abb6fa..97fad5e 100644 --- a/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue +++ b/src/views/materialManagement/productionMaterial/MmMaterialCategory.vue @@ -242,11 +242,11 @@ const state = reactive({ // 状态(0/1) 选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'} statusOptions: [ { - dictValue: 0, + dictValue: '停用', dictLabel: '停用' }, { - dictValue: 1, + dictValue: '启用', dictLabel: '启用' } ]