fix: 去掉多余的JS数据集数据集类型

main
wu.jian2 2 years ago
parent fc6ece6263
commit df0f4cc026

@ -496,17 +496,15 @@ export default {
{ name: '自助数据集', datasetType: 'custom', componentName: 'CustomEditForm' }, { name: '自助数据集', datasetType: 'custom', componentName: 'CustomEditForm' },
{ name: '存储过程数据集', datasetType: 'storedProcedure', componentName: 'StoredProcedureEditForm' }, { name: '存储过程数据集', datasetType: 'storedProcedure', componentName: 'StoredProcedureEditForm' },
{ name: 'JSON数据集', datasetType: 'json', componentName: 'JsonEditForm' }, { name: 'JSON数据集', datasetType: 'json', componentName: 'JsonEditForm' },
{ name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm' }, { name: '脚本数据集', datasetType: 'script', componentName: 'ScriptEditForm' }
{ name: 'JS数据集', datasetType: 'js', componentName: 'JsDataSet' }
] ]
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)] this.datasetTypeList = [{ name: '全部', datasetType: '' }, ...list.filter(item => this.dataSetList.findIndex(x => x === item.datasetType) !== -1)]
} else { } else {
this.datasetTypeList = [ this.datasetTypeList = [
...list ...list
] ]
} }
if (window.BS_CONFIG?.customDatasetComponents && window.BS_CONFIG?.customDatasetComponents.length > 0) { if (window.BS_CONFIG?.customDatasetComponents && window.BS_CONFIG?.customDatasetComponents.length > 0) {
// //
window.BS_CONFIG?.customDatasetComponents.forEach((item) => { window.BS_CONFIG?.customDatasetComponents.forEach((item) => {

Loading…
Cancel
Save