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: '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) => {

Loading…
Cancel
Save