Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
83b56bee
Unverified
提交
83b56bee
authored
7月 08, 2021
作者:
taojinlong
提交者:
GitHub
7月 08, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' into pr@dev@taskmgm
上级
4ee8896a
7b0a6183
隐藏空白字符变更
内嵌
并排
正在显示
23 个修改的文件
包含
376 行增加
和
33 行删除
+376
-33
DatasetTableField.java
.../main/java/io/dataease/base/domain/DatasetTableField.java
+6
-0
DatasetTableFieldExample.java
...ava/io/dataease/base/domain/DatasetTableFieldExample.java
+190
-0
DatasetTableFieldMapper.xml
.../java/io/dataease/base/mapper/DatasetTableFieldMapper.xml
+53
-6
DataSetTableService.java
...java/io/dataease/service/dataset/DataSetTableService.java
+5
-1
V12__alter_updata_ds_table_field.sql
...sources/db/migration/V12__alter_updata_ds_table_field.sql
+8
-0
generatorConfig.xml
backend/src/main/resources/generatorConfig.xml
+1
-1
ContextMenu.vue
...d/src/components/canvas/components/Editor/ContextMenu.vue
+1
-0
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+8
-2
field_location.svg
frontend/src/icons/svg/field_location.svg
+1
-0
en.js
frontend/src/lang/en.js
+4
-1
tw.js
frontend/src/lang/tw.js
+4
-1
zh.js
frontend/src/lang/zh.js
+4
-1
index.scss
frontend/src/styles/index.scss
+5
-1
DimensionItem.vue
...nd/src/views/chart/components/drag-item/DimensionItem.vue
+12
-1
QuotaItem.vue
frontend/src/views/chart/components/drag-item/QuotaItem.vue
+19
-7
ResultFilterEditor.vue
.../src/views/chart/components/filter/ResultFilterEditor.vue
+1
-0
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+5
-3
DatasetCustomField.vue
frontend/src/views/dataset/common/DatasetCustomField.vue
+3
-0
DatasetTableData.vue
frontend/src/views/dataset/common/DatasetTableData.vue
+1
-0
FieldEdit.vue
frontend/src/views/dataset/data/FieldEdit.vue
+31
-4
TabDataPreview.vue
frontend/src/views/dataset/data/TabDataPreview.vue
+1
-0
UnionView.vue
frontend/src/views/dataset/data/UnionView.vue
+6
-0
form.vue
frontend/src/views/system/datasource/form.vue
+7
-4
没有找到文件。
backend/src/main/java/io/dataease/base/domain/DatasetTableField.java
浏览文件 @
83b56bee
...
@@ -18,14 +18,20 @@ public class DatasetTableField implements Serializable {
...
@@ -18,14 +18,20 @@ public class DatasetTableField implements Serializable {
private
String
dataeaseName
;
private
String
dataeaseName
;
private
String
groupType
;
private
String
type
;
private
String
type
;
private
Integer
size
;
private
Integer
size
;
private
Integer
deType
;
private
Integer
deType
;
private
Integer
deTypeFormat
;
private
Integer
deExtractType
;
private
Integer
deExtractType
;
private
Integer
extField
;
private
Boolean
checked
;
private
Boolean
checked
;
private
Integer
columnIndex
;
private
Integer
columnIndex
;
...
...
backend/src/main/java/io/dataease/base/domain/DatasetTableFieldExample.java
浏览文件 @
83b56bee
...
@@ -454,6 +454,76 @@ public class DatasetTableFieldExample {
...
@@ -454,6 +454,76 @@ public class DatasetTableFieldExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andGroupTypeIsNull
()
{
addCriterion
(
"group_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeIsNotNull
()
{
addCriterion
(
"group_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeEqualTo
(
String
value
)
{
addCriterion
(
"group_type ="
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"group_type <>"
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeGreaterThan
(
String
value
)
{
addCriterion
(
"group_type >"
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"group_type >="
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeLessThan
(
String
value
)
{
addCriterion
(
"group_type <"
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"group_type <="
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeLike
(
String
value
)
{
addCriterion
(
"group_type like"
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeNotLike
(
String
value
)
{
addCriterion
(
"group_type not like"
,
value
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"group_type in"
,
values
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"group_type not in"
,
values
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"group_type between"
,
value1
,
value2
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGroupTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"group_type not between"
,
value1
,
value2
,
"groupType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIsNull
()
{
public
Criteria
andTypeIsNull
()
{
addCriterion
(
"`type` is null"
);
addCriterion
(
"`type` is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -644,6 +714,66 @@ public class DatasetTableFieldExample {
...
@@ -644,6 +714,66 @@ public class DatasetTableFieldExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andDeTypeFormatIsNull
()
{
addCriterion
(
"de_type_format is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatIsNotNull
()
{
addCriterion
(
"de_type_format is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatEqualTo
(
Integer
value
)
{
addCriterion
(
"de_type_format ="
,
value
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatNotEqualTo
(
Integer
value
)
{
addCriterion
(
"de_type_format <>"
,
value
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatGreaterThan
(
Integer
value
)
{
addCriterion
(
"de_type_format >"
,
value
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"de_type_format >="
,
value
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatLessThan
(
Integer
value
)
{
addCriterion
(
"de_type_format <"
,
value
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"de_type_format <="
,
value
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"de_type_format in"
,
values
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"de_type_format not in"
,
values
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"de_type_format between"
,
value1
,
value2
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeTypeFormatNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"de_type_format not between"
,
value1
,
value2
,
"deTypeFormat"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeExtractTypeIsNull
()
{
public
Criteria
andDeExtractTypeIsNull
()
{
addCriterion
(
"de_extract_type is null"
);
addCriterion
(
"de_extract_type is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -704,6 +834,66 @@ public class DatasetTableFieldExample {
...
@@ -704,6 +834,66 @@ public class DatasetTableFieldExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andExtFieldIsNull
()
{
addCriterion
(
"ext_field is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldIsNotNull
()
{
addCriterion
(
"ext_field is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldEqualTo
(
Integer
value
)
{
addCriterion
(
"ext_field ="
,
value
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldNotEqualTo
(
Integer
value
)
{
addCriterion
(
"ext_field <>"
,
value
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldGreaterThan
(
Integer
value
)
{
addCriterion
(
"ext_field >"
,
value
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"ext_field >="
,
value
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldLessThan
(
Integer
value
)
{
addCriterion
(
"ext_field <"
,
value
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"ext_field <="
,
value
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"ext_field in"
,
values
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"ext_field not in"
,
values
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"ext_field between"
,
value1
,
value2
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andExtFieldNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"ext_field not between"
,
value1
,
value2
,
"extField"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCheckedIsNull
()
{
public
Criteria
andCheckedIsNull
()
{
addCriterion
(
"`checked` is null"
);
addCriterion
(
"`checked` is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
backend/src/main/java/io/dataease/base/mapper/DatasetTableFieldMapper.xml
浏览文件 @
83b56bee
...
@@ -7,10 +7,13 @@
...
@@ -7,10 +7,13 @@
<result
column=
"origin_name"
jdbcType=
"VARCHAR"
property=
"originName"
/>
<result
column=
"origin_name"
jdbcType=
"VARCHAR"
property=
"originName"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"dataease_name"
jdbcType=
"VARCHAR"
property=
"dataeaseName"
/>
<result
column=
"dataease_name"
jdbcType=
"VARCHAR"
property=
"dataeaseName"
/>
<result
column=
"group_type"
jdbcType=
"VARCHAR"
property=
"groupType"
/>
<result
column=
"type"
jdbcType=
"VARCHAR"
property=
"type"
/>
<result
column=
"type"
jdbcType=
"VARCHAR"
property=
"type"
/>
<result
column=
"size"
jdbcType=
"INTEGER"
property=
"size"
/>
<result
column=
"size"
jdbcType=
"INTEGER"
property=
"size"
/>
<result
column=
"de_type"
jdbcType=
"INTEGER"
property=
"deType"
/>
<result
column=
"de_type"
jdbcType=
"INTEGER"
property=
"deType"
/>
<result
column=
"de_type_format"
jdbcType=
"INTEGER"
property=
"deTypeFormat"
/>
<result
column=
"de_extract_type"
jdbcType=
"INTEGER"
property=
"deExtractType"
/>
<result
column=
"de_extract_type"
jdbcType=
"INTEGER"
property=
"deExtractType"
/>
<result
column=
"ext_field"
jdbcType=
"INTEGER"
property=
"extField"
/>
<result
column=
"checked"
jdbcType=
"BIT"
property=
"checked"
/>
<result
column=
"checked"
jdbcType=
"BIT"
property=
"checked"
/>
<result
column=
"column_index"
jdbcType=
"INTEGER"
property=
"columnIndex"
/>
<result
column=
"column_index"
jdbcType=
"INTEGER"
property=
"columnIndex"
/>
<result
column=
"last_sync_time"
jdbcType=
"BIGINT"
property=
"lastSyncTime"
/>
<result
column=
"last_sync_time"
jdbcType=
"BIGINT"
property=
"lastSyncTime"
/>
...
@@ -74,8 +77,8 @@
...
@@ -74,8 +77,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, table_id, origin_name, `name`, dataease_name,
`type`, `size`, de_type, de_extract
_type,
id, table_id, origin_name, `name`, dataease_name,
group_type, `type`, `size`, de
_type,
`checked`, column_index, last_sync_time
de_type_format, de_extract_type, ext_field,
`checked`, column_index, last_sync_time
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"io.dataease.base.domain.DatasetTableFieldExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"io.dataease.base.domain.DatasetTableFieldExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -109,13 +112,15 @@
...
@@ -109,13 +112,15 @@
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"io.dataease.base.domain.DatasetTableField"
>
<insert
id=
"insert"
parameterType=
"io.dataease.base.domain.DatasetTableField"
>
insert into dataset_table_field (id, table_id, origin_name,
insert into dataset_table_field (id, table_id, origin_name,
`name`, dataease_name, `type`,
`name`, dataease_name, group_type,
`size`, de_type, de_extract_type,
`type`, `size`, de_type,
de_type_format, de_extract_type, ext_field,
`checked`, column_index, last_sync_time
`checked`, column_index, last_sync_time
)
)
values (#{id,jdbcType=VARCHAR}, #{tableId,jdbcType=VARCHAR}, #{originName,jdbcType=VARCHAR},
values (#{id,jdbcType=VARCHAR}, #{tableId,jdbcType=VARCHAR}, #{originName,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{dataeaseName,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{dataeaseName,jdbcType=VARCHAR}, #{groupType,jdbcType=VARCHAR},
#{size,jdbcType=INTEGER}, #{deType,jdbcType=INTEGER}, #{deExtractType,jdbcType=INTEGER},
#{type,jdbcType=VARCHAR}, #{size,jdbcType=INTEGER}, #{deType,jdbcType=INTEGER},
#{deTypeFormat,jdbcType=INTEGER}, #{deExtractType,jdbcType=INTEGER}, #{extField,jdbcType=INTEGER},
#{checked,jdbcType=BIT}, #{columnIndex,jdbcType=INTEGER}, #{lastSyncTime,jdbcType=BIGINT}
#{checked,jdbcType=BIT}, #{columnIndex,jdbcType=INTEGER}, #{lastSyncTime,jdbcType=BIGINT}
)
)
</insert>
</insert>
...
@@ -137,6 +142,9 @@
...
@@ -137,6 +142,9 @@
<if
test=
"dataeaseName != null"
>
<if
test=
"dataeaseName != null"
>
dataease_name,
dataease_name,
</if>
</if>
<if
test=
"groupType != null"
>
group_type,
</if>
<if
test=
"type != null"
>
<if
test=
"type != null"
>
`type`,
`type`,
</if>
</if>
...
@@ -146,9 +154,15 @@
...
@@ -146,9 +154,15 @@
<if
test=
"deType != null"
>
<if
test=
"deType != null"
>
de_type,
de_type,
</if>
</if>
<if
test=
"deTypeFormat != null"
>
de_type_format,
</if>
<if
test=
"deExtractType != null"
>
<if
test=
"deExtractType != null"
>
de_extract_type,
de_extract_type,
</if>
</if>
<if
test=
"extField != null"
>
ext_field,
</if>
<if
test=
"checked != null"
>
<if
test=
"checked != null"
>
`checked`,
`checked`,
</if>
</if>
...
@@ -175,6 +189,9 @@
...
@@ -175,6 +189,9 @@
<if
test=
"dataeaseName != null"
>
<if
test=
"dataeaseName != null"
>
#{dataeaseName,jdbcType=VARCHAR},
#{dataeaseName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"groupType != null"
>
#{groupType,jdbcType=VARCHAR},
</if>
<if
test=
"type != null"
>
<if
test=
"type != null"
>
#{type,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
</if>
</if>
...
@@ -184,9 +201,15 @@
...
@@ -184,9 +201,15 @@
<if
test=
"deType != null"
>
<if
test=
"deType != null"
>
#{deType,jdbcType=INTEGER},
#{deType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"deTypeFormat != null"
>
#{deTypeFormat,jdbcType=INTEGER},
</if>
<if
test=
"deExtractType != null"
>
<if
test=
"deExtractType != null"
>
#{deExtractType,jdbcType=INTEGER},
#{deExtractType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"extField != null"
>
#{extField,jdbcType=INTEGER},
</if>
<if
test=
"checked != null"
>
<if
test=
"checked != null"
>
#{checked,jdbcType=BIT},
#{checked,jdbcType=BIT},
</if>
</if>
...
@@ -222,6 +245,9 @@
...
@@ -222,6 +245,9 @@
<if
test=
"record.dataeaseName != null"
>
<if
test=
"record.dataeaseName != null"
>
dataease_name = #{record.dataeaseName,jdbcType=VARCHAR},
dataease_name = #{record.dataeaseName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.groupType != null"
>
group_type = #{record.groupType,jdbcType=VARCHAR},
</if>
<if
test=
"record.type != null"
>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
</if>
</if>
...
@@ -231,9 +257,15 @@
...
@@ -231,9 +257,15 @@
<if
test=
"record.deType != null"
>
<if
test=
"record.deType != null"
>
de_type = #{record.deType,jdbcType=INTEGER},
de_type = #{record.deType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.deTypeFormat != null"
>
de_type_format = #{record.deTypeFormat,jdbcType=INTEGER},
</if>
<if
test=
"record.deExtractType != null"
>
<if
test=
"record.deExtractType != null"
>
de_extract_type = #{record.deExtractType,jdbcType=INTEGER},
de_extract_type = #{record.deExtractType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.extField != null"
>
ext_field = #{record.extField,jdbcType=INTEGER},
</if>
<if
test=
"record.checked != null"
>
<if
test=
"record.checked != null"
>
`checked` = #{record.checked,jdbcType=BIT},
`checked` = #{record.checked,jdbcType=BIT},
</if>
</if>
...
@@ -255,10 +287,13 @@
...
@@ -255,10 +287,13 @@
origin_name = #{record.originName,jdbcType=VARCHAR},
origin_name = #{record.originName,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=VARCHAR},
dataease_name = #{record.dataeaseName,jdbcType=VARCHAR},
dataease_name = #{record.dataeaseName,jdbcType=VARCHAR},
group_type = #{record.groupType,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
`size` = #{record.size,jdbcType=INTEGER},
`size` = #{record.size,jdbcType=INTEGER},
de_type = #{record.deType,jdbcType=INTEGER},
de_type = #{record.deType,jdbcType=INTEGER},
de_type_format = #{record.deTypeFormat,jdbcType=INTEGER},
de_extract_type = #{record.deExtractType,jdbcType=INTEGER},
de_extract_type = #{record.deExtractType,jdbcType=INTEGER},
ext_field = #{record.extField,jdbcType=INTEGER},
`checked` = #{record.checked,jdbcType=BIT},
`checked` = #{record.checked,jdbcType=BIT},
column_index = #{record.columnIndex,jdbcType=INTEGER},
column_index = #{record.columnIndex,jdbcType=INTEGER},
last_sync_time = #{record.lastSyncTime,jdbcType=BIGINT}
last_sync_time = #{record.lastSyncTime,jdbcType=BIGINT}
...
@@ -281,6 +316,9 @@
...
@@ -281,6 +316,9 @@
<if
test=
"dataeaseName != null"
>
<if
test=
"dataeaseName != null"
>
dataease_name = #{dataeaseName,jdbcType=VARCHAR},
dataease_name = #{dataeaseName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"groupType != null"
>
group_type = #{groupType,jdbcType=VARCHAR},
</if>
<if
test=
"type != null"
>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
</if>
</if>
...
@@ -290,9 +328,15 @@
...
@@ -290,9 +328,15 @@
<if
test=
"deType != null"
>
<if
test=
"deType != null"
>
de_type = #{deType,jdbcType=INTEGER},
de_type = #{deType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"deTypeFormat != null"
>
de_type_format = #{deTypeFormat,jdbcType=INTEGER},
</if>
<if
test=
"deExtractType != null"
>
<if
test=
"deExtractType != null"
>
de_extract_type = #{deExtractType,jdbcType=INTEGER},
de_extract_type = #{deExtractType,jdbcType=INTEGER},
</if>
</if>
<if
test=
"extField != null"
>
ext_field = #{extField,jdbcType=INTEGER},
</if>
<if
test=
"checked != null"
>
<if
test=
"checked != null"
>
`checked` = #{checked,jdbcType=BIT},
`checked` = #{checked,jdbcType=BIT},
</if>
</if>
...
@@ -311,10 +355,13 @@
...
@@ -311,10 +355,13 @@
origin_name = #{originName,jdbcType=VARCHAR},
origin_name = #{originName,jdbcType=VARCHAR},
`name` = #{name,jdbcType=VARCHAR},
`name` = #{name,jdbcType=VARCHAR},
dataease_name = #{dataeaseName,jdbcType=VARCHAR},
dataease_name = #{dataeaseName,jdbcType=VARCHAR},
group_type = #{groupType,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
`size` = #{size,jdbcType=INTEGER},
`size` = #{size,jdbcType=INTEGER},
de_type = #{deType,jdbcType=INTEGER},
de_type = #{deType,jdbcType=INTEGER},
de_type_format = #{deTypeFormat,jdbcType=INTEGER},
de_extract_type = #{deExtractType,jdbcType=INTEGER},
de_extract_type = #{deExtractType,jdbcType=INTEGER},
ext_field = #{extField,jdbcType=INTEGER},
`checked` = #{checked,jdbcType=BIT},
`checked` = #{checked,jdbcType=BIT},
column_index = #{columnIndex,jdbcType=INTEGER},
column_index = #{columnIndex,jdbcType=INTEGER},
last_sync_time = #{lastSyncTime,jdbcType=BIGINT}
last_sync_time = #{lastSyncTime,jdbcType=BIGINT}
...
...
backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java
浏览文件 @
83b56bee
...
@@ -242,7 +242,7 @@ public class DataSetTableService {
...
@@ -242,7 +242,7 @@ public class DataSetTableService {
List
<
DatasetTableField
>
quota
=
new
ArrayList
<>();
List
<
DatasetTableField
>
quota
=
new
ArrayList
<>();
fields
.
forEach
(
field
->
{
fields
.
forEach
(
field
->
{
if
(
field
.
getDeType
()
==
2
||
field
.
getDeType
()
==
3
)
{
if
(
StringUtils
.
equalsIgnoreCase
(
"q"
,
field
.
getGroupType
())
)
{
quota
.
add
(
field
);
quota
.
add
(
field
);
}
else
{
}
else
{
dimension
.
add
(
field
);
dimension
.
add
(
field
);
...
@@ -259,6 +259,8 @@ public class DataSetTableService {
...
@@ -259,6 +259,8 @@ public class DataSetTableService {
.
checked
(
true
)
.
checked
(
true
)
.
columnIndex
(
999
)
.
columnIndex
(
999
)
.
deType
(
2
)
.
deType
(
2
)
.
extField
(
1
)
.
groupType
(
"q"
)
.
build
();
.
build
();
quota
.
add
(
count
);
quota
.
add
(
count
);
...
@@ -694,6 +696,8 @@ public class DataSetTableService {
...
@@ -694,6 +696,8 @@ public class DataSetTableService {
datasetTableField
.
setChecked
(
true
);
datasetTableField
.
setChecked
(
true
);
datasetTableField
.
setColumnIndex
(
i
);
datasetTableField
.
setColumnIndex
(
i
);
datasetTableField
.
setLastSyncTime
(
syncTime
);
datasetTableField
.
setLastSyncTime
(
syncTime
);
datasetTableField
.
setExtField
(
0
);
datasetTableField
.
setGroupType
(
datasetTableField
.
getDeType
()
<
2
?
"d"
:
"q"
);
dataSetTableFieldsService
.
save
(
datasetTableField
);
dataSetTableFieldsService
.
save
(
datasetTableField
);
}
}
}
}
...
...
backend/src/main/resources/db/migration/V12__alter_updata_ds_table_field.sql
0 → 100644
浏览文件 @
83b56bee
ALTER
TABLE
`dataset_table_field`
ADD
COLUMN
`group_type`
VARCHAR
(
50
)
COMMENT
'维度/指标标识 d:维度,q:指标'
AFTER
`dataease_name`
;
ALTER
TABLE
`dataset_table_field`
ADD
COLUMN
`de_type_format`
int
(
10
)
COMMENT
'类型格式'
AFTER
`de_type`
;
ALTER
TABLE
`dataset_table_field`
ADD
COLUMN
`ext_field`
int
(
10
)
COMMENT
'是否扩展字段 0否 1是'
AFTER
`de_extract_type`
;
UPDATE
`dataset_table_field`
SET
group_type
=
'd'
where
`de_type`
IN
(
0
,
1
);
UPDATE
`dataset_table_field`
SET
group_type
=
'q'
where
`de_type`
IN
(
2
,
3
);
UPDATE
`dataset_table_field`
SET
ext_field
=
0
;
\ No newline at end of file
backend/src/main/resources/generatorConfig.xml
浏览文件 @
83b56bee
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<!-- </table>-->
<!-- </table>-->
<!-- <table tableName="v_dataset"/>-->
<!-- <table tableName="v_dataset"/>-->
<!-- <table tableName="sys_auth_detail"/>-->
<!-- <table tableName="sys_auth_detail"/>-->
<table
tableName=
"dataset_table_
task_log
"
/>
<table
tableName=
"dataset_table_
field
"
/>
</context>
</context>
...
...
frontend/src/components/canvas/components/Editor/ContextMenu.vue
浏览文件 @
83b56bee
...
@@ -94,6 +94,7 @@ export default {
...
@@ -94,6 +94,7 @@ export default {
this
.
deleteCurCondition
()
this
.
deleteCurCondition
()
this
.
$store
.
commit
(
'deleteComponent'
)
this
.
$store
.
commit
(
'deleteComponent'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'setCurComponent'
,
{
component
:
null
,
index
:
null
})
},
},
deleteCurCondition
()
{
deleteCurCondition
()
{
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
83b56bee
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
class-name-active=
"de-drag-active"
class-name-active=
"de-drag-active"
:class=
"
{'gap_class':canvasStyleData.panel.gap==='yes'}"
:class=
"
{'gap_class':canvasStyleData.panel.gap==='yes'}"
:snap="true"
:snap="true"
:snap-tolerance="
1
"
:snap-tolerance="
2
"
:change-style="customStyle"
:change-style="customStyle"
@refLineParams="getRefLineParams"
@refLineParams="getRefLineParams"
>
>
...
@@ -84,6 +84,12 @@
...
@@ -84,6 +84,12 @@
height: item.lineLength,
height: item.lineLength,
}"
}"
/>
/>
<span
v-for=
"(item, index) in hLine"
:key=
"'h_'+index"
class=
"ref-line h-line"
:style=
"
{ top: item.position, left: item.origin, width: item.lineLength }"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -521,7 +527,7 @@ export default {
...
@@ -521,7 +527,7 @@ export default {
}
}
},
},
getRefLineParams
(
params
)
{
getRefLineParams
(
params
)
{
// console.log(
params
)
// console.log(
JSON.stringify(params)
)
const
{
vLine
,
hLine
}
=
params
const
{
vLine
,
hLine
}
=
params
this
.
vLine
=
vLine
this
.
vLine
=
vLine
this
.
hLine
=
hLine
this
.
hLine
=
hLine
...
...
frontend/src/icons/svg/field_location.svg
0 → 100644
浏览文件 @
83b56bee
<?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=
"1625718978594"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2291"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M512 1.92c223.850667 0 405.333333 179.072 405.333333 400 0 162.837333-118.058667 355.221333-354.197333 577.130667a74.666667 74.666667 0 0 1-102.272 0l-10.666667-10.069334C221.205333 751.317333 106.666667 562.304 106.666667 401.898667 106.666667 180.992 288.149333 1.92 512 1.92z m0 64c-188.693333 0-341.333333 150.613333-341.333333 336 0 141.034667 109.546667 319.530667 334.037333 530.474667a10.666667 10.666667 0 0 0 14.592 0l10.282667-9.706667C747.136 715.968 853.333333 540.8 853.333333 401.898667c0-185.386667-152.64-336-341.333333-336z m0 170.666667a170.666667 170.666667 0 1 1 0 341.333333 170.666667 170.666667 0 0 1 0-341.333333z m0 64a106.666667 106.666667 0 1 0 0 213.333333 106.666667 106.666667 0 0 0 0-213.333333z"
p-id=
"2292"
></path></svg>
frontend/src/lang/en.js
浏览文件 @
83b56bee
...
@@ -129,6 +129,7 @@ export default {
...
@@ -129,6 +129,7 @@ export default {
password_error
:
'The password can not be less than 8 digits'
password_error
:
'The password can not be less than 8 digits'
},
},
commons
:
{
commons
:
{
success
:
'Success'
,
switch_lang
:
'Switch Language Success'
,
switch_lang
:
'Switch Language Success'
,
close
:
'Close'
,
close
:
'Close'
,
icon
:
'Icon'
,
icon
:
'Icon'
,
...
@@ -936,7 +937,9 @@ export default {
...
@@ -936,7 +937,9 @@ export default {
exec
:
'Execute'
,
exec
:
'Execute'
,
confirm_exec
:
'Manual trigger execution?'
,
confirm_exec
:
'Manual trigger execution?'
,
change_success
:
'State switch successful'
change_success
:
'State switch successful'
}
},
field_group_type
:
'Type'
,
location
:
'Location'
},
},
datasource
:
{
datasource
:
{
datasource
:
'Data Source'
,
datasource
:
'Data Source'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
83b56bee
...
@@ -129,6 +129,7 @@ export default {
...
@@ -129,6 +129,7 @@ export default {
password_error
:
'密碼不小於 8 位'
password_error
:
'密碼不小於 8 位'
},
},
commons
:
{
commons
:
{
success
:
'成功'
,
switch_lang
:
'切換語言成功'
,
switch_lang
:
'切換語言成功'
,
close
:
'關閉'
,
close
:
'關閉'
,
icon
:
'圖標'
,
icon
:
'圖標'
,
...
@@ -936,7 +937,9 @@ export default {
...
@@ -936,7 +937,9 @@ export default {
exec
:
'執行'
,
exec
:
'執行'
,
confirm_exec
:
'手動觸發執行?'
,
confirm_exec
:
'手動觸發執行?'
,
change_success
:
'狀態切換成功'
change_success
:
'狀態切換成功'
}
},
field_group_type
:
'分類'
,
location
:
'地理位置'
},
},
datasource
:
{
datasource
:
{
datasource
:
'數據源'
,
datasource
:
'數據源'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
83b56bee
...
@@ -129,6 +129,7 @@ export default {
...
@@ -129,6 +129,7 @@ export default {
password_error
:
'密码不小于 8 位'
password_error
:
'密码不小于 8 位'
},
},
commons
:
{
commons
:
{
success
:
'成功'
,
switch_lang
:
'切换语言成功'
,
switch_lang
:
'切换语言成功'
,
close
:
'关闭'
,
close
:
'关闭'
,
icon
:
'图标'
,
icon
:
'图标'
,
...
@@ -936,7 +937,9 @@ export default {
...
@@ -936,7 +937,9 @@ export default {
exec
:
'执行'
,
exec
:
'执行'
,
confirm_exec
:
'手动触发执行?'
,
confirm_exec
:
'手动触发执行?'
,
change_success
:
'状态切换成功'
change_success
:
'状态切换成功'
}
},
field_group_type
:
'分类'
,
location
:
'地理位置'
},
},
datasource
:
{
datasource
:
{
datasource
:
'数据源'
,
datasource
:
'数据源'
,
...
...
frontend/src/styles/index.scss
浏览文件 @
83b56bee
...
@@ -195,7 +195,7 @@ div:focus {
...
@@ -195,7 +195,7 @@ div:focus {
.el-table__row
{
.el-table__row
{
:hover
{
:hover
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
td
{
td
{
padding
:
3px
0
!
important
;
padding
:
3px
0
!
important
;
...
@@ -235,6 +235,10 @@ div:focus {
...
@@ -235,6 +235,10 @@ div:focus {
@extend
%field-icon
;
@extend
%field-icon
;
color
:
#37b4aa
;
color
:
#37b4aa
;
}
}
.field-icon-location
{
@extend
%field-icon
;
color
:
#F56C6C
;
}
.ds-icon-scene
{
.ds-icon-scene
{
width
:
13px
;
width
:
13px
;
height
:
13px
;
height
:
13px
;
...
...
frontend/src/views/chart/components/drag-item/DimensionItem.vue
浏览文件 @
83b56bee
<
template
>
<
template
>
<span>
<span>
<el-tag
v-if=
"!hasDataPermission('manage',param.privileges)"
size=
"small"
class=
"item-axis"
>
<el-tag
v-if=
"!hasDataPermission('manage',param.privileges)"
size=
"small"
class=
"item-axis"
>
<span
style=
"float: left"
>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
<span
v-if=
"item.summary"
class=
"summary-span"
>
{{
$t
(
'chart.'
+
item
.
summary
)
}}
</span>
</el-tag>
</el-tag>
<el-dropdown
v-else
trigger=
"click"
size=
"mini"
@
command=
"clickItem"
>
<el-dropdown
v-else
trigger=
"click"
size=
"mini"
@
command=
"clickItem"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<el-tag
size=
"small"
class=
"item-axis"
>
<el-tag
size=
"small"
class=
"item-axis"
>
<span
style=
"float: left"
>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
{{
item
.
name
}}
<i
class=
"el-icon-arrow-down el-icon--right"
/>
{{
item
.
name
}}
<i
class=
"el-icon-arrow-down el-icon--right"
/>
</el-tag>
</el-tag>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
...
...
frontend/src/views/chart/components/drag-item/QuotaItem.vue
浏览文件 @
83b56bee
<
template
>
<
template
>
<span>
<span>
<el-tag
v-if=
"!hasDataPermission('manage',param.privileges)"
size=
"small"
class=
"item-axis"
>
<el-tag
v-if=
"!hasDataPermission('manage',param.privileges)"
size=
"small"
class=
"item-axis"
>
<span
style=
"float: left"
>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
<span
v-if=
"item.summary"
class=
"summary-span"
>
{{
$t
(
'chart.'
+
item
.
summary
)
}}
</span>
<span
v-if=
"item.summary"
class=
"summary-span"
>
{{
$t
(
'chart.'
+
item
.
summary
)
}}
</span>
</el-tag>
</el-tag>
<el-dropdown
v-else
trigger=
"click"
size=
"mini"
@
command=
"clickItem"
>
<el-dropdown
v-else
trigger=
"click"
size=
"mini"
@
command=
"clickItem"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<el-tag
size=
"small"
class=
"item-axis"
>
<el-tag
size=
"small"
class=
"item-axis"
>
<span
style=
"float: left"
>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
<span
v-if=
"item.summary"
class=
"summary-span"
>
{{
$t
(
'chart.'
+
item
.
summary
)
}}
</span>
<span
v-if=
"item.summary"
class=
"summary-span"
>
{{
$t
(
'chart.'
+
item
.
summary
)
}}
</span>
<i
class=
"el-icon-arrow-down el-icon--right"
/>
<i
class=
"el-icon-arrow-down el-icon--right"
/>
...
@@ -23,13 +35,13 @@
...
@@ -23,13 +35,13 @@
<i
class=
"el-icon-arrow-right el-icon--right"
/>
<i
class=
"el-icon-arrow-right el-icon--right"
/>
</span>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-if=
"item.id === 'count'"
:command=
"beforeSummary('count')"
>
{{
$t
(
'chart.count'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id === 'count'
|| item.deType === 0 || item.deType === 1
"
:command=
"beforeSummary('count')"
>
{{
$t
(
'chart.count'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'"
:command=
"beforeSummary('sum')"
>
{{
$t
(
'chart.sum'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'
&& item.deType !== 0 && item.deType !== 1
"
:command=
"beforeSummary('sum')"
>
{{
$t
(
'chart.sum'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'"
:command=
"beforeSummary('avg')"
>
{{
$t
(
'chart.avg'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'
&& item.deType !== 0 && item.deType !== 1
"
:command=
"beforeSummary('avg')"
>
{{
$t
(
'chart.avg'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'"
:command=
"beforeSummary('max')"
>
{{
$t
(
'chart.max'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'
&& item.deType !== 0 && item.deType !== 1
"
:command=
"beforeSummary('max')"
>
{{
$t
(
'chart.max'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'"
:command=
"beforeSummary('min')"
>
{{
$t
(
'chart.min'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'
&& item.deType !== 0 && item.deType !== 1
"
:command=
"beforeSummary('min')"
>
{{
$t
(
'chart.min'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'"
:command=
"beforeSummary('stddev_pop')"
>
{{
$t
(
'chart.stddev_pop'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'
&& item.deType !== 0 && item.deType !== 1
"
:command=
"beforeSummary('stddev_pop')"
>
{{
$t
(
'chart.stddev_pop'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'"
:command=
"beforeSummary('var_pop')"
>
{{
$t
(
'chart.var_pop'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.id !== 'count'
&& item.deType !== 0 && item.deType !== 1
"
:command=
"beforeSummary('var_pop')"
>
{{
$t
(
'chart.var_pop'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</el-dropdown-item>
</el-dropdown-item>
...
...
frontend/src/views/chart/components/filter/ResultFilterEditor.vue
浏览文件 @
83b56bee
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
</span>
<span
style=
"float: left; color: #8492a6; font-size: 12px"
>
{{
item
.
name
}}
</span>
<span
style=
"float: left; color: #8492a6; font-size: 12px"
>
{{
item
.
name
}}
</span>
</el-option>
</el-option>
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
83b56bee
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
{{
item
.
name
}}
{{
item
.
name
}}
</span>
</span>
</transition-group>
</transition-group>
...
@@ -78,6 +79,7 @@
...
@@ -78,6 +79,7 @@
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
<span>
{{
item
.
name
}}
</span>
<span>
{{
item
.
name
}}
</span>
</span>
</span>
</transition-group>
</transition-group>
...
@@ -503,9 +505,9 @@ export default {
...
@@ -503,9 +505,9 @@ export default {
},
},
watch
:
{
watch
:
{
'param'
:
function
()
{
'param'
:
function
()
{
if
(
this
.
param
.
optType
===
'new'
)
{
if
(
this
.
param
.
optType
===
'new'
)
{
}
else
{
}
else
{
this
.
getData
(
this
.
param
.
id
)
this
.
getData
(
this
.
param
.
id
)
}
}
},
},
...
@@ -582,7 +584,7 @@ export default {
...
@@ -582,7 +584,7 @@ export default {
})
})
view
.
yaxis
.
forEach
(
function
(
ele
)
{
view
.
yaxis
.
forEach
(
function
(
ele
)
{
if
(
!
ele
.
summary
||
ele
.
summary
===
''
)
{
if
(
!
ele
.
summary
||
ele
.
summary
===
''
)
{
if
(
ele
.
id
===
'count'
)
{
if
(
ele
.
id
===
'count'
||
ele
.
deType
===
0
||
ele
.
deType
===
1
)
{
ele
.
summary
=
'count'
ele
.
summary
=
'count'
}
else
{
}
else
{
ele
.
summary
=
'sum'
ele
.
summary
=
'sum'
...
...
frontend/src/views/dataset/common/DatasetCustomField.vue
浏览文件 @
83b56bee
...
@@ -18,6 +18,9 @@
...
@@ -18,6 +18,9 @@
<span
v-if=
"f.deType === 2 || f.deType === 3"
>
<span
v-if=
"f.deType === 2 || f.deType === 3"
>
<svg-icon
v-if=
"f.deType === 2 || f.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"f.deType === 2 || f.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
</span>
</span>
<span
v-if=
"f.deType === 5"
>
<svg-icon
v-if=
"f.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
</span>
</span>
<span
style=
"display: flex;flex: 1;width: 100%;"
>
<span
style=
"display: flex;flex: 1;width: 100%;"
>
<span
style=
"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;width: 160px;"
>
{{
f
.
name
}}
</span>
<span
style=
"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;width: 160px;"
>
{{
f
.
name
}}
</span>
...
...
frontend/src/views/dataset/common/DatasetTableData.vue
浏览文件 @
83b56bee
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<svg-icon
v-if=
"field.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"field.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"field.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"field.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"field.deType === 2 || field.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"field.deType === 2 || field.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"field.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
<span>
{{
field
.
name
}}
</span>
<span>
{{
field
.
name
}}
</span>
</
template
>
</
template
>
</ux-table-column>
</ux-table-column>
...
...
frontend/src/views/dataset/data/FieldEdit.vue
浏览文件 @
83b56bee
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<svg-icon
v-if=
"item.value === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.value === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"item.value === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.value === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"item.value === 2 || item.value === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.value === 2 || item.value === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.value === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
</span>
<span
style=
"float: left; color: #8492a6; font-size: 12px"
>
{{
item
.
label
}}
</span>
<span
style=
"float: left; color: #8492a6; font-size: 12px"
>
{{
item
.
label
}}
</span>
</el-option>
</el-option>
...
@@ -43,10 +44,14 @@
...
@@ -43,10 +44,14 @@
<span
v-if=
"scope.row.deType === 2"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
}}
</span>
<span
v-if=
"scope.row.deType === 2"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
}}
</span>
<span
v-if=
"scope.row.deType === 3"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
+
'('
+
$t
(
'dataset.float'
)
+
')'
}}
</span>
<span
v-if=
"scope.row.deType === 3"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
+
'('
+
$t
(
'dataset.float'
)
+
')'
}}
</span>
</span>
</span>
<span
v-if=
"scope.row.deType === 5"
>
<svg-icon
v-if=
"scope.row.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
<span
class=
"field-class"
>
{{
$t
(
'dataset.location'
)
}}
</span>
</span>
</span>
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"deExtractType"
:label=
"$t('dataset.origin_field_type')"
width=
"1
4
0"
>
<el-table-column
property=
"deExtractType"
:label=
"$t('dataset.origin_field_type')"
width=
"1
0
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
<span>
<span
v-if=
"scope.row.deExtractType === 0"
>
<span
v-if=
"scope.row.deExtractType === 0"
>
...
@@ -62,6 +67,10 @@
...
@@ -62,6 +67,10 @@
<span
v-if=
"scope.row.deExtractType === 2 || scope.row.deExtractType === 4"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
}}
</span>
<span
v-if=
"scope.row.deExtractType === 2 || scope.row.deExtractType === 4"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
}}
</span>
<span
v-if=
"scope.row.deExtractType === 3"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
+
'('
+
$t
(
'dataset.float'
)
+
')'
}}
</span>
<span
v-if=
"scope.row.deExtractType === 3"
class=
"field-class"
>
{{
$t
(
'dataset.value'
)
+
'('
+
$t
(
'dataset.float'
)
+
')'
}}
</span>
</span>
</span>
<span
v-if=
"scope.row.deExtractType === 5"
>
<svg-icon
v-if=
"scope.row.deExtractType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
<span
class=
"field-class"
>
{{
$t
(
'dataset.location'
)
}}
</span>
</span>
</span>
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -70,7 +79,21 @@
...
@@ -70,7 +79,21 @@
<el-input
v-model=
"scope.row.name"
size=
"mini"
/>
<el-input
v-model=
"scope.row.name"
size=
"mini"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"originName"
:label=
"$t('dataset.field_origin_name')"
width=
"180"
/>
<el-table-column
property=
"originName"
:label=
"$t('dataset.field_origin_name')"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<span
:title=
"scope.row.originName"
class=
"field-class"
style=
"display: inline-block;width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
>
{{
scope
.
row
.
originName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
property=
"groupType"
:label=
"$t('dataset.field_group_type')"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-radio-group
v-model=
"scope.row.groupType"
>
<el-radio
label=
"d"
>
{{
$t
(
'chart.dimension'
)
}}
</el-radio>
<el-radio
label=
"q"
>
{{
$t
(
'chart.quota'
)
}}
</el-radio>
</el-radio-group>
</
template
>
</el-table-column>
<el-table-column
property=
"checked"
:label=
"$t('dataset.field_check')"
width=
"80"
>
<el-table-column
property=
"checked"
:label=
"$t('dataset.field_check')"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-checkbox
v-model=
"scope.row.checked"
/>
<el-checkbox
v-model=
"scope.row.checked"
/>
...
@@ -100,7 +123,8 @@ export default {
...
@@ -100,7 +123,8 @@ export default {
{
label
:
this
.
$t
(
'dataset.text'
),
value
:
0
},
{
label
:
this
.
$t
(
'dataset.text'
),
value
:
0
},
{
label
:
this
.
$t
(
'dataset.time'
),
value
:
1
},
{
label
:
this
.
$t
(
'dataset.time'
),
value
:
1
},
{
label
:
this
.
$t
(
'dataset.value'
),
value
:
2
},
{
label
:
this
.
$t
(
'dataset.value'
),
value
:
2
},
{
label
:
this
.
$t
(
'dataset.value'
)
+
'('
+
this
.
$t
(
'dataset.float'
)
+
')'
,
value
:
3
}
{
label
:
this
.
$t
(
'dataset.value'
)
+
'('
+
this
.
$t
(
'dataset.float'
)
+
')'
,
value
:
3
},
{
label
:
this
.
$t
(
'dataset.location'
),
value
:
5
}
]
]
}
}
},
},
...
@@ -135,7 +159,7 @@ export default {
...
@@ -135,7 +159,7 @@ export default {
},
},
closeEdit
()
{
closeEdit
()
{
this
.
$emit
(
'switchComponent'
,
{
name
:
'ViewTable'
,
param
:
this
.
param
.
table
.
id
})
this
.
$emit
(
'switchComponent'
,
{
name
:
'ViewTable'
,
param
:
this
.
param
.
table
})
}
}
}
}
}
}
...
@@ -157,4 +181,7 @@ export default {
...
@@ -157,4 +181,7 @@ export default {
.el-select
>>>
.el-input__suffix
{
.el-select
>>>
.el-input__suffix
{
right
:
0
;
right
:
0
;
}
}
.el-radio
{
margin-right
:
10px
!important
;
}
</
style
>
</
style
>
frontend/src/views/dataset/data/TabDataPreview.vue
浏览文件 @
83b56bee
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
<svg-icon
v-if=
"field.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"field.deType === 0"
icon-class=
"field_text"
class=
"field-icon-text"
/>
<svg-icon
v-if=
"field.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"field.deType === 1"
icon-class=
"field_time"
class=
"field-icon-time"
/>
<svg-icon
v-if=
"field.deType === 2 || field.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"field.deType === 2 || field.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"field.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
<span>
{{
field
.
name
}}
</span>
<span>
{{
field
.
name
}}
</span>
</
template
>
</
template
>
</ux-table-column>
</ux-table-column>
...
...
frontend/src/views/dataset/data/UnionView.vue
浏览文件 @
83b56bee
...
@@ -69,6 +69,9 @@
...
@@ -69,6 +69,9 @@
<span
v-if=
"item.deType === 2 || item.deType === 3"
>
<span
v-if=
"item.deType === 2 || item.deType === 3"
>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
</span>
</span>
<span
v-if=
"item.deType === 5"
>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
</span>
</span>
<span>
<span>
{{ item.name }}
{{ item.name }}
...
@@ -115,6 +118,9 @@
...
@@ -115,6 +118,9 @@
<span
v-if=
"item.deType === 2 || item.deType === 3"
>
<span
v-if=
"item.deType === 2 || item.deType === 3"
>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"item.deType === 2 || item.deType === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
</span>
</span>
<span
v-if=
"item.deType === 5"
>
<svg-icon
v-if=
"item.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
</span>
</span>
<span>
<span>
{{ item.name }}
{{ item.name }}
...
...
frontend/src/views/system/datasource/form.vue
浏览文件 @
83b56bee
...
@@ -101,8 +101,7 @@ export default {
...
@@ -101,8 +101,7 @@ export default {
'configuration.username'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_user_name'
),
trigger
:
'blur'
}],
'configuration.username'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_user_name'
),
trigger
:
'blur'
}],
'configuration.password'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_password'
),
trigger
:
'change'
}],
'configuration.password'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_password'
),
trigger
:
'change'
}],
'configuration.host'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_host'
),
trigger
:
'change'
}],
'configuration.host'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_host'
),
trigger
:
'change'
}],
'configuration.port'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_port'
),
trigger
:
'change'
}],
'configuration.port'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_input_port'
),
trigger
:
'change'
}]
'configuration.schema'
:
[{
required
:
true
,
message
:
this
.
$t
(
'datasource.please_choose_schema'
),
trigger
:
'change'
}]
},
},
allTypes
:
[{
name
:
'mysql'
,
label
:
'MySQL'
,
type
:
'jdbc'
},
{
name
:
'oracle'
,
label
:
'Oracle'
,
type
:
'jdbc'
}],
allTypes
:
[{
name
:
'mysql'
,
label
:
'MySQL'
,
type
:
'jdbc'
},
{
name
:
'oracle'
,
label
:
'Oracle'
,
type
:
'jdbc'
}],
schemas
:
[],
schemas
:
[],
...
@@ -148,7 +147,7 @@ export default {
...
@@ -148,7 +147,7 @@ export default {
this
.
$refs
.
dsForm
.
resetFields
()
this
.
$refs
.
dsForm
.
resetFields
()
},
},
save
()
{
save
()
{
if
(
!
this
.
form
.
configuration
.
schema
)
{
if
(
!
this
.
form
.
configuration
.
schema
&&
this
.
form
.
type
===
'oracle'
)
{
this
.
$message
.
error
(
this
.
$t
(
'datasource.please_choose_schema'
))
this
.
$message
.
error
(
this
.
$t
(
'datasource.please_choose_schema'
))
return
return
}
}
...
@@ -174,7 +173,7 @@ export default {
...
@@ -174,7 +173,7 @@ export default {
data
.
configuration
=
JSON
.
stringify
(
data
.
configuration
)
data
.
configuration
=
JSON
.
stringify
(
data
.
configuration
)
getSchema
(
data
).
then
(
res
=>
{
getSchema
(
data
).
then
(
res
=>
{
this
.
schemas
=
res
.
data
this
.
schemas
=
res
.
data
this
.
$success
(
this
.
$t
(
'
datasource.validate_
success'
))
this
.
$success
(
this
.
$t
(
'
commons.
success'
))
})
})
}
else
{
}
else
{
return
false
return
false
...
@@ -182,6 +181,10 @@ export default {
...
@@ -182,6 +181,10 @@ export default {
})
})
},
},
validaDatasource
()
{
validaDatasource
()
{
if
(
!
this
.
form
.
configuration
.
schema
&&
this
.
form
.
type
===
'oracle'
)
{
this
.
$message
.
error
(
this
.
$t
(
'datasource.please_choose_schema'
))
return
}
this
.
$refs
.
dsForm
.
validate
(
valid
=>
{
this
.
$refs
.
dsForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论