|
|
@ -236,6 +236,12 @@ export default class Model implements TableType { |
|
|
|
]); |
|
|
|
]); |
|
|
|
let { list: modelList } = cachedList; |
|
|
|
let { list: modelList } = cachedList; |
|
|
|
const { isNoneList } = cachedList; |
|
|
|
const { isNoneList } = cachedList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let condition; |
|
|
|
|
|
|
|
if(source_id){ |
|
|
|
|
|
|
|
condition = { source_id } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!isNoneList && !modelList.length) { |
|
|
|
if (!isNoneList && !modelList.length) { |
|
|
|
modelList = await ncMeta.metaList2( |
|
|
|
modelList = await ncMeta.metaList2( |
|
|
|
context.workspace_id, |
|
|
|
context.workspace_id, |
|
|
@ -245,6 +251,7 @@ export default class Model implements TableType { |
|
|
|
orderBy: { |
|
|
|
orderBy: { |
|
|
|
order: 'asc', |
|
|
|
order: 'asc', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
condition, |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|