提交 a40cd1e0 authored 作者: taojinlong's avatar taojinlong

fix: 创建关联数据集可选择[API]数据集

上级 75b2b77a
package io.dataease.auth.api;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("api/data")
public class demo {
@ApiOperation("查询")
@GetMapping("demo")
public Object listByTableId() {
JSONArray jsonArray = new JSONArray();
for(int i=0;i<10;i++){
JSONObject jsonObject = new JSONObject();
for(int j=0;j<1;j++){
jsonObject.set("column" +i + j, "value"+i+j);
}
jsonArray.put(jsonObject);
}
return jsonArray;
}
}
...@@ -20,7 +20,6 @@ public class ShiroServiceImpl implements ShiroService { ...@@ -20,7 +20,6 @@ public class ShiroServiceImpl implements ShiroService {
// ---------------------------------------------------------- // ----------------------------------------------------------
// 放行Swagger2页面,需要放行这些 // 放行Swagger2页面,需要放行这些
filterChainDefinitionMap.put("/api/data/demo", ANON);
filterChainDefinitionMap.put("/doc.html**", "doc"); filterChainDefinitionMap.put("/doc.html**", "doc");
filterChainDefinitionMap.put("/deApi**", ANON); filterChainDefinitionMap.put("/deApi**", ANON);
filterChainDefinitionMap.put("/swagger-ui.html", ANON); filterChainDefinitionMap.put("/swagger-ui.html", ANON);
......
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
allChildCount: 0 allChildCount: 0
}, },
name: '关联数据集', name: '关联数据集',
customType: ['db', 'sql', 'excel'], customType: ['db', 'sql', 'excel', 'api'],
selectDsDialog: false, selectDsDialog: false,
// 弹框临时选中的数据集 // 弹框临时选中的数据集
tempDs: {}, tempDs: {},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论