|
|
@@ -217,10 +217,8 @@ export default {
|
|
|
val.dict = res
|
|
|
})
|
|
|
} else if (val.type === 'select') {
|
|
|
- console.log(val)
|
|
|
this.getDic(val).then(res => {
|
|
|
val.dict = res
|
|
|
- console.log(val.dict)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -259,7 +257,6 @@ export default {
|
|
|
const tmp = await this.$api.common.basicFormRequest(item.expand.dict)
|
|
|
result = tmp.data.map(sub => {
|
|
|
const result = {}
|
|
|
- console.log(item.expand)
|
|
|
result.label = sub[item.expand.prop.label]
|
|
|
result.value = sub[item.expand.prop.value]
|
|
|
return result
|
|
|
@@ -271,8 +268,8 @@ export default {
|
|
|
const haveChildren = Array.isArray(item.children) && item.children.length > 0
|
|
|
return {
|
|
|
key: item.label,
|
|
|
- value: item[expand.prop.value],
|
|
|
- label: item[expand.prop.label],
|
|
|
+ value: item[expand.props.value],
|
|
|
+ label: item[expand.props.label],
|
|
|
children: haveChildren ? item.children.map(i => this.mapTree(i, expand)) : []
|
|
|
}
|
|
|
},
|