Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
fe01f43d
提交
fe01f43d
authored
2月 20, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: API 数据源
上级
287948c4
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
23 行增加
和
6 行删除
+23
-6
ExtractDataService.java
.../java/io/dataease/service/dataset/ExtractDataService.java
+1
-1
ds-api.svg
frontend/src/icons/svg/ds-api.svg
+2
-0
en.js
frontend/src/lang/en.js
+2
-1
tw.js
frontend/src/lang/tw.js
+2
-1
zh.js
frontend/src/lang/zh.js
+2
-1
index.scss
frontend/src/styles/index.scss
+8
-0
DatasetGroupSelector.vue
frontend/src/views/dataset/common/DatasetGroupSelector.vue
+1
-0
DatasetGroupSelectorTree.vue
...end/src/views/dataset/common/DatasetGroupSelectorTree.vue
+1
-0
Group.vue
frontend/src/views/dataset/group/Group.vue
+3
-2
filterDialog.vue
frontend/src/views/panel/filter/filterDialog.vue
+1
-0
没有找到文件。
backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java
浏览文件 @
fe01f43d
...
@@ -447,8 +447,8 @@ public class ExtractDataService {
...
@@ -447,8 +447,8 @@ public class ExtractDataService {
bw
.
close
();
bw
.
close
();
File
scriptFile
=
new
File
(
root_path
+
datasetTable
.
getId
()
+
".sh"
);
File
scriptFile
=
new
File
(
root_path
+
datasetTable
.
getId
()
+
".sh"
);
scriptFile
.
setExecutable
(
true
);
scriptFile
.
createNewFile
();
scriptFile
.
createNewFile
();
scriptFile
.
setExecutable
(
true
);
BufferedWriter
scriptFileBw
=
new
BufferedWriter
(
new
FileWriter
(
root_path
+
datasetTable
.
getId
()
+
".sh"
));
BufferedWriter
scriptFileBw
=
new
BufferedWriter
(
new
FileWriter
(
root_path
+
datasetTable
.
getId
()
+
".sh"
));
scriptFileBw
.
write
(
"#!/bin/sh"
);
scriptFileBw
.
write
(
"#!/bin/sh"
);
...
...
frontend/src/icons/svg/ds-api.svg
0 → 100644
浏览文件 @
fe01f43d
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1645342109651"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"7289"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M512 170.666667H398.222222v682.666666h56.888889V512h56.888889c91.022222 0 170.666667-73.955556 170.666667-170.666667s-73.955556-170.666667-170.666667-170.666666z m113.777778 170.666666c0 62.577778-51.2 113.777778-113.777778 113.777778H455.111111V227.555556h56.888889c62.577778 0 113.777778 51.2 113.777778 113.777777zM910.222222 227.555556V170.666667h-170.666666v56.888889h56.888888v568.888888h-56.888888v56.888889h170.666666v-56.888889h-56.888889V227.555556zM199.111111 170.666667C119.466667 170.666667 56.888889 233.244444 56.888889 312.888889V853.333333h56.888889V512h170.666666v341.333333h56.888889V312.888889C341.333333 233.244444 278.755556 170.666667 199.111111 170.666667zM284.444444 455.111111H113.777778V312.888889C113.777778 267.377778 153.6 227.555556 199.111111 227.555556h5.688889C244.622222 227.555556 284.444444 267.377778 284.444444 312.888889V455.111111z"
fill=
"#13227a"
p-id=
"7290"
></path></svg>
\ No newline at end of file
frontend/src/lang/en.js
浏览文件 @
fe01f43d
...
@@ -1253,7 +1253,8 @@ export default {
...
@@ -1253,7 +1253,8 @@ export default {
union_error
:
'Union relation and field can not be empty'
,
union_error
:
'Union relation and field can not be empty'
,
union_repeat
:
'This dataset is already union,do not union repeat'
,
union_repeat
:
'This dataset is already union,do not union repeat'
,
preview_result
:
'Preview'
,
preview_result
:
'Preview'
,
sql_ds_union_error
:
'Direct connect SQL dataset can not be union'
sql_ds_union_error
:
'Direct connect SQL dataset can not be union'
,
api_data
:
'API dataset'
},
},
datasource
:
{
datasource
:
{
datasource
:
'Data Source'
,
datasource
:
'Data Source'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
fe01f43d
...
@@ -1253,7 +1253,8 @@ export default {
...
@@ -1253,7 +1253,8 @@ export default {
union_error
:
'關聯關繫與關聯字段不能為空'
,
union_error
:
'關聯關繫與關聯字段不能為空'
,
union_repeat
:
'當前數據集已被關聯,請勿重復關聯'
,
union_repeat
:
'當前數據集已被關聯,請勿重復關聯'
,
preview_result
:
'預覽結果'
,
preview_result
:
'預覽結果'
,
sql_ds_union_error
:
'直連模式下SQL數據集,不支持關聯'
sql_ds_union_error
:
'直連模式下SQL數據集,不支持關聯'
,
api_data
:
'API 數據集'
},
},
datasource
:
{
datasource
:
{
datasource
:
'數據源'
,
datasource
:
'數據源'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
fe01f43d
...
@@ -1256,7 +1256,8 @@ export default {
...
@@ -1256,7 +1256,8 @@ export default {
union_error
:
'关联关系与关联字段不能为空'
,
union_error
:
'关联关系与关联字段不能为空'
,
union_repeat
:
'当前数据集已被关联,请勿重复关联'
,
union_repeat
:
'当前数据集已被关联,请勿重复关联'
,
preview_result
:
'预览结果'
,
preview_result
:
'预览结果'
,
sql_ds_union_error
:
'直连模式下SQL数据集,不支持关联'
sql_ds_union_error
:
'直连模式下SQL数据集,不支持关联'
,
api_data
:
'API 数据集'
},
},
datasource
:
{
datasource
:
{
datasource
:
'数据源'
,
datasource
:
'数据源'
,
...
...
frontend/src/styles/index.scss
浏览文件 @
fe01f43d
...
@@ -350,6 +350,14 @@ div:focus {
...
@@ -350,6 +350,14 @@ div:focus {
margin
:
0
2px
0
0
;
margin
:
0
2px
0
0
;
}
}
.ds-icon-api
{
width
:
14px
;
height
:
14px
;
color
:
#13227a
;
margin
:
0
2px
0
0
;
}
.showRightPanel
{
.showRightPanel
{
.el-popper
{
.el-popper
{
position
:
fixed
!
important
;
position
:
fixed
!
important
;
...
...
frontend/src/views/dataset/common/DatasetGroupSelector.vue
浏览文件 @
fe01f43d
...
@@ -97,6 +97,7 @@
...
@@ -97,6 +97,7 @@
<svg-icon
v-if=
"data.type === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.type === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.type === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.type === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.type === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.type === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.type === 'api'"
icon-class=
"ds-api"
class=
"ds-icon-api"
/>
</span>
</span>
<span
v-if=
"data.type === 'db' || data.type === 'sql'"
>
<span
v-if=
"data.type === 'db' || data.type === 'sql'"
>
<span
v-if=
"data.mode === 0"
style=
"margin-left: 6px"
><i
class=
"el-icon-s-operation"
/></span>
<span
v-if=
"data.mode === 0"
style=
"margin-left: 6px"
><i
class=
"el-icon-s-operation"
/></span>
...
...
frontend/src/views/dataset/common/DatasetGroupSelectorTree.vue
浏览文件 @
fe01f43d
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
<svg-icon
v-if=
"data.modelInnerType === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.modelInnerType === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.modelInnerType === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.modelInnerType === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.modelInnerType === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.modelInnerType === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.modelInnerType === 'api'"
icon-class=
"ds-api"
class=
"ds-icon-api"
/>
</span>
</span>
<span
v-if=
"data.modelInnerType === 'db' || data.modelInnerType === 'sql'"
>
<span
v-if=
"data.modelInnerType === 'db' || data.modelInnerType === 'sql'"
>
<span
v-if=
"data.mode === 0"
style=
"margin-left: 6px"
><i
class=
"el-icon-s-operation"
/></span>
<span
v-if=
"data.mode === 0"
style=
"margin-left: 6px"
><i
class=
"el-icon-s-operation"
/></span>
...
...
frontend/src/views/dataset/group/Group.vue
浏览文件 @
fe01f43d
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
{{
$t
(
'dataset.union_data'
)
}}
{{
$t
(
'dataset.union_data'
)
}}
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
:command=
"beforeClickAddData('api',data)"
>
<el-dropdown-item
:command=
"beforeClickAddData('api',data)"
>
<svg-icon
icon-class=
"ds-
union"
class=
"ds-icon-union
"
/>
<svg-icon
icon-class=
"ds-
api"
class=
"ds-icon-api
"
/>
{{
$t
(
'dataset.
union
_data'
)
}}
{{
$t
(
'dataset.
api
_data'
)
}}
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
<svg-icon
v-if=
"data.modelInnerType === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.modelInnerType === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.modelInnerType === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.modelInnerType === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.modelInnerType === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.modelInnerType === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.modelInnerType === 'api'"
icon-class=
"ds-api"
class=
"ds-icon-api"
/>
</span>
</span>
<span
v-if=
"data.modelInnerType === 'db' || data.modelInnerType === 'sql'"
>
<span
v-if=
"data.modelInnerType === 'db' || data.modelInnerType === 'sql'"
>
<span
v-if=
"data.mode === 0"
style=
"margin-left: 6px"
><i
class=
"el-icon-s-operation"
/></span>
<span
v-if=
"data.mode === 0"
style=
"margin-left: 6px"
><i
class=
"el-icon-s-operation"
/></span>
...
...
frontend/src/views/panel/filter/filterDialog.vue
浏览文件 @
fe01f43d
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
<svg-icon
v-if=
"data.type === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.type === 'excel'"
icon-class=
"ds-excel"
class=
"ds-icon-excel"
/>
<svg-icon
v-if=
"data.type === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.type === 'custom'"
icon-class=
"ds-custom"
class=
"ds-icon-custom"
/>
<svg-icon
v-if=
"data.type === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.type === 'union'"
icon-class=
"ds-union"
class=
"ds-icon-union"
/>
<svg-icon
v-if=
"data.type === 'api'"
icon-class=
"ds-api"
class=
"ds-icon-api"
/>
</span>
</span>
<el-tooltip
class=
"item"
effect=
"dark"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
placement=
"top"
>
<div
slot=
"content"
>
{{
node
.
label
}}
</div>
<div
slot=
"content"
>
{{
node
.
label
}}
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论