refactor(物料管理): 统一状态选项的值类型和默认值
- 将物料和物料分类的状态选项值类型统一为数字 - 修正物料分类状态选项的绑定值 - 调整默认状态值为数字类型
This commit is contained in:
@@ -46,7 +46,7 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
const dataList = computed(() => {
|
||||
if (props.config) {
|
||||
if (props.config && typeof props.config === 'object' && props.config.label && props.config.value && props.options) {
|
||||
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') {
|
||||
|
||||
Reference in New Issue
Block a user