diff --git a/data-room-ui/example/main.js b/data-room-ui/example/main.js index acc4c5b4..c566d664 100644 --- a/data-room-ui/example/main.js +++ b/data-room-ui/example/main.js @@ -51,6 +51,7 @@ registerConfig( '--bs-el-color-primary-active': '64, 158, 255', // 主要激活 => rgba(64, 158, 255, 1) = #409EFF '--bs-el-border': 'transparent' // 边框颜色 }, + // datasetTypeList: ['original','custom'], customPlots: [], // 远程组件列表 remoteComponents, diff --git a/data-room-ui/packages/DataSetManagement/src/OriginalEditForm.vue b/data-room-ui/packages/DataSetManagement/src/OriginalEditForm.vue index 27620dcb..b19a0903 100644 --- a/data-room-ui/packages/DataSetManagement/src/OriginalEditForm.vue +++ b/data-room-ui/packages/DataSetManagement/src/OriginalEditForm.vue @@ -50,7 +50,7 @@ [] - }, appCode: { type: String, default: '' @@ -535,8 +531,8 @@ export default { { name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm' }, { name: 'JS数据集', datasetType: 'js', componentName: 'JsEditForm' } ] - if (this.dataSetList.length !== 0) { - this.datasetTypeList = [{ name: '全部', datasetType: '' }, ...list.filter(item => this.dataSetList.findIndex(x => x === item.datasetType) !== -1)] + if (window.BS_CONFIG?.datasetTypeList&&window.BS_CONFIG?.datasetTypeList?.length!=0) { + this.datasetTypeList = [{ name: '全部', datasetType: '' }, ...list.filter(item => window.BS_CONFIG?.datasetTypeList.findIndex(x => x === item.datasetType) !== -1)] } else { this.datasetTypeList = [ ...list