|
@@ -1990,6 +1990,11 @@ export default {
|
|
|
}
|
|
|
const relationData = column.params.compoentConfig.relationData
|
|
|
const associationData = this.associationData
|
|
|
+ //查询associationData是否为空或者为空对象
|
|
|
+ if (!associationData || Object.keys(associationData).length === 0) {
|
|
|
+ this.listLoading = false
|
|
|
+ return this.$message.error('请检查关联模型数据')
|
|
|
+ }
|
|
|
const associationColumnDict = this.associationColumnDict
|
|
|
const res = await getConfigData(relationData.itemRelationTable)
|
|
|
const data = res.data.data
|