forked from github/dataease
fix: 创建关联数据集可选择[API]数据集
This commit is contained in:
parent
75b2b77a40
commit
a40cd1e08a
@ -1,28 +0,0 @@
|
||||
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 {
|
||||
// ----------------------------------------------------------
|
||||
// 放行Swagger2页面,需要放行这些
|
||||
|
||||
filterChainDefinitionMap.put("/api/data/demo", ANON);
|
||||
filterChainDefinitionMap.put("/doc.html**", "doc");
|
||||
filterChainDefinitionMap.put("/deApi**", ANON);
|
||||
filterChainDefinitionMap.put("/swagger-ui.html", ANON);
|
||||
|
@ -139,7 +139,7 @@ export default {
|
||||
allChildCount: 0
|
||||
},
|
||||
name: '关联数据集',
|
||||
customType: ['db', 'sql', 'excel'],
|
||||
customType: ['db', 'sql', 'excel', 'api'],
|
||||
selectDsDialog: false,
|
||||
// 弹框临时选中的数据集
|
||||
tempDs: {},
|
||||
|
Loading…
Reference in New Issue
Block a user