diff --git a/data-room-ui/packages/DataSetManagement/src/index.vue b/data-room-ui/packages/DataSetManagement/src/index.vue index 362b348e..58904d8a 100644 --- a/data-room-ui/packages/DataSetManagement/src/index.vue +++ b/data-room-ui/packages/DataSetManagement/src/index.vue @@ -496,17 +496,15 @@ export default { { name: '自助数据集', datasetType: 'custom', componentName: 'CustomEditForm' }, { name: '存储过程数据集', datasetType: 'storedProcedure', componentName: 'StoredProcedureEditForm' }, { name: 'JSON数据集', datasetType: 'json', componentName: 'JsonEditForm' }, - { name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm' }, - { name: 'JS数据集', datasetType: 'js', componentName: 'JsDataSet' } + { name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm' } ] - if (this.dataSetList.length != 0) { + if (this.dataSetList.length !== 0) { this.datasetTypeList = [{ name: '全部', datasetType: '' }, ...list.filter(item => this.dataSetList.findIndex(x => x === item.datasetType) !== -1)] } else { this.datasetTypeList = [ ...list ] } - if (window.BS_CONFIG?.customDatasetComponents && window.BS_CONFIG?.customDatasetComponents.length > 0) { // 将获得到的远程数据集进行组装 window.BS_CONFIG?.customDatasetComponents.forEach((item) => {