Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
4c38d9d0
Unverified
提交
4c38d9d0
authored
11月 09, 2021
作者:
XiaJunjie2020
提交者:
GitHub
11月 09, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1149 from dataease/pr@dev@feat_chart_type
feat:视图根据图表类型分类
上级
a861223e
05710c4c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
8 行删除
+20
-8
DataSetTableController.java
...o/dataease/controller/dataset/DataSetTableController.java
+12
-6
DataSetTableService.java
...java/io/dataease/service/dataset/DataSetTableService.java
+6
-0
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+2
-2
没有找到文件。
backend/src/main/java/io/dataease/controller/dataset/DataSetTableController.java
浏览文件 @
4c38d9d0
...
@@ -41,9 +41,9 @@ public class DataSetTableController {
...
@@ -41,9 +41,9 @@ public class DataSetTableController {
@ApiOperation
(
"更新"
)
@ApiOperation
(
"更新"
)
@PostMapping
(
"update"
)
@PostMapping
(
"update"
)
public
void
save
(
@RequestBody
DataSetTableRequest
datasetTable
)
throws
Exception
{
public
void
save
(
@RequestBody
DataSetTableRequest
datasetTable
)
throws
Exception
{
if
(
datasetTable
.
getType
().
equalsIgnoreCase
(
"excel"
))
{
if
(
datasetTable
.
getType
().
equalsIgnoreCase
(
"excel"
))
{
dataSetTableService
.
saveExcel
(
datasetTable
);
dataSetTableService
.
saveExcel
(
datasetTable
);
}
else
{
}
else
{
dataSetTableService
.
save
(
datasetTable
);
dataSetTableService
.
save
(
datasetTable
);
}
}
}
}
...
@@ -53,10 +53,10 @@ public class DataSetTableController {
...
@@ -53,10 +53,10 @@ public class DataSetTableController {
public
void
alter
(
@RequestBody
DataSetTableRequest
request
)
throws
Exception
{
public
void
alter
(
@RequestBody
DataSetTableRequest
request
)
throws
Exception
{
dataSetTableService
.
alter
(
request
);
dataSetTableService
.
alter
(
request
);
}
}
@ApiOperation
(
"删除"
)
@ApiOperation
(
"删除"
)
@PostMapping
(
"delete/{id}"
)
@PostMapping
(
"delete/{id}"
)
public
void
delete
(
@ApiParam
(
name
=
"id"
,
value
=
"数据集ID"
,
required
=
true
)
@PathVariable
String
id
)
throws
Exception
{
public
void
delete
(
@ApiParam
(
name
=
"id"
,
value
=
"数据集ID"
,
required
=
true
)
@PathVariable
String
id
)
throws
Exception
{
dataSetTableService
.
delete
(
id
);
dataSetTableService
.
delete
(
id
);
}
}
...
@@ -132,9 +132,9 @@ public class DataSetTableController {
...
@@ -132,9 +132,9 @@ public class DataSetTableController {
return
dataSetTableService
.
getDatasetDetail
(
id
);
return
dataSetTableService
.
getDatasetDetail
(
id
);
}
}
// @ApiOperation("excel上传")
// @ApiOperation("excel上传")
@PostMapping
(
"excel/upload"
)
@PostMapping
(
"excel/upload"
)
public
ExcelFileData
excelUpload
(
@RequestParam
(
"file"
)
MultipartFile
file
,
@RequestParam
(
"tableId"
)
String
tableId
,
@RequestParam
(
"editType"
)
Integer
editType
)
throws
Exception
{
public
ExcelFileData
excelUpload
(
@RequestParam
(
"file"
)
MultipartFile
file
,
@RequestParam
(
"tableId"
)
String
tableId
,
@RequestParam
(
"editType"
)
Integer
editType
)
throws
Exception
{
return
dataSetTableService
.
excelSaveAndParse
(
file
,
tableId
,
editType
);
return
dataSetTableService
.
excelSaveAndParse
(
file
,
tableId
,
editType
);
}
}
...
@@ -149,4 +149,10 @@ public class DataSetTableController {
...
@@ -149,4 +149,10 @@ public class DataSetTableController {
public
List
<
DataSetTableDTO
>
search
(
@RequestBody
DataSetTableRequest
dataSetTableRequest
)
{
public
List
<
DataSetTableDTO
>
search
(
@RequestBody
DataSetTableRequest
dataSetTableRequest
)
{
return
dataSetTableService
.
search
(
dataSetTableRequest
);
return
dataSetTableService
.
search
(
dataSetTableRequest
);
}
}
@ApiOperation
(
"数据集同步表结构"
)
@PostMapping
(
"syncField/{id}"
)
public
DatasetTable
syncDatasetTableField
(
@PathVariable
String
id
)
throws
Exception
{
return
dataSetTableService
.
syncDatasetTableField
(
id
);
}
}
}
backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java
浏览文件 @
4c38d9d0
...
@@ -1659,4 +1659,10 @@ public class DataSetTableService {
...
@@ -1659,4 +1659,10 @@ public class DataSetTableService {
return
true
;
return
true
;
}
}
}
}
public
DatasetTable
syncDatasetTableField
(
String
id
)
throws
Exception
{
DatasetTable
datasetTable
=
datasetTableMapper
.
selectByPrimaryKey
(
id
);
saveTableField
(
datasetTable
);
return
datasetTable
;
}
}
}
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
4c38d9d0
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
<!--
</span>
-->
<!--
</span>
-->
<!--
</el-row>
-->
<!--
</el-row>
-->
</div>
</div>
<el-button
slot=
"reference"
size=
"mini"
style=
"padding: 6px;"
>
<el-button
slot=
"reference"
size=
"mini"
style=
"padding: 6px;"
:disabled=
"!hasDataPermission('manage',param.privileges)"
>
{{
$t
(
'chart.change_chart_type'
)
}}
{{
$t
(
'chart.change_chart_type'
)
}}
<i
class=
"el-icon-caret-bottom"
/>
<i
class=
"el-icon-caret-bottom"
/>
</el-button>
</el-button>
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
<el-radio-group
v-model=
"view.resultMode"
class=
"radio-span"
:disabled=
"!hasDataPermission('manage',param.privileges)"
size=
"mini"
@
change=
"save"
>
<el-radio-group
v-model=
"view.resultMode"
class=
"radio-span"
:disabled=
"!hasDataPermission('manage',param.privileges)"
size=
"mini"
@
change=
"save"
>
<el-radio
label=
"all"
><span>
{{
$t
(
'chart.result_mode_all'
)
}}
</span></el-radio>
<el-radio
label=
"all"
><span>
{{
$t
(
'chart.result_mode_all'
)
}}
</span></el-radio>
<el-radio
label=
"custom"
>
<el-radio
label=
"custom"
>
<el-input
v-model=
"view.resultCount"
class=
"result-count"
size=
"mini"
@
change=
"save"
/>
<el-input
v-model=
"view.resultCount"
class=
"result-count"
size=
"mini"
:disabled=
"!hasDataPermission('manage',param.privileges)"
@
change=
"save"
/>
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
</el-row>
</el-row>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论