Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
6e9cee5a
提交
6e9cee5a
authored
2月 23, 2022
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/dev' into dev
上级
2ca71252
85012cb4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
131 行增加
和
70 行删除
+131
-70
LinkApi.java
...c/main/java/io/dataease/controller/panel/api/LinkApi.java
+8
-0
ShareApi.java
.../main/java/io/dataease/controller/panel/api/ShareApi.java
+3
-0
StoreApi.java
.../main/java/io/dataease/controller/panel/api/StoreApi.java
+3
-0
ApiProvider.java
...ain/java/io/dataease/provider/datasource/ApiProvider.java
+1
-1
JdbcProvider.java
...in/java/io/dataease/provider/datasource/JdbcProvider.java
+0
-1
DataSetTableService.java
...java/io/dataease/service/dataset/DataSetTableService.java
+5
-0
ExtractDataService.java
.../java/io/dataease/service/dataset/ExtractDataService.java
+4
-0
DatasourceService.java
...ava/io/dataease/service/datasource/DatasourceService.java
+34
-6
en.js
frontend/src/lang/en.js
+1
-1
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+4
-0
AddDB.vue
frontend/src/views/dataset/add/AddDB.vue
+1
-1
AddSQL.vue
frontend/src/views/dataset/add/AddSQL.vue
+64
-57
ApiHttpRequestForm.vue
frontend/src/views/system/datasource/ApiHttpRequestForm.vue
+2
-2
ApiKeyValue.vue
frontend/src/views/system/datasource/ApiKeyValue.vue
+1
-0
DsTree.vue
frontend/src/views/system/datasource/DsTree.vue
+0
-1
form.vue
frontend/src/views/system/datasource/form.vue
+0
-0
没有找到文件。
backend/src/main/java/io/dataease/controller/panel/api/LinkApi.java
浏览文件 @
6e9cee5a
...
...
@@ -2,6 +2,8 @@ package io.dataease.controller.panel.api;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
io.dataease.auth.annotation.DePermission
;
import
io.dataease.commons.constants.DePermissionType
;
import
io.dataease.controller.request.chart.ChartExtRequest
;
import
io.dataease.controller.request.panel.link.*
;
import
io.dataease.dto.panel.link.GenerateDto
;
...
...
@@ -18,26 +20,32 @@ import java.util.Map;
public
interface
LinkApi
{
@DePermission
(
type
=
DePermissionType
.
PANEL
,
value
=
"resourceId"
)
@ApiOperation
(
"重置密码"
)
@PostMapping
(
"/resetPwd"
)
void
replacePwd
(
PasswordRequest
request
);
@DePermission
(
type
=
DePermissionType
.
PANEL
,
value
=
"resourceId"
)
@ApiOperation
(
"启用密码"
)
@PostMapping
(
"/enablePwd"
)
void
enablePwd
(
EnablePwdRequest
request
);
@DePermission
(
type
=
DePermissionType
.
PANEL
,
value
=
"resourceId"
)
@ApiOperation
(
"过期时间"
)
@PostMapping
(
"/resetOverTime"
)
void
resetOverTime
(
OverTimeRequest
request
);
@DePermission
(
type
=
DePermissionType
.
PANEL
,
value
=
"resourceId"
)
@ApiOperation
(
"启用/禁用链接分享"
)
@PostMapping
(
"/switchLink"
)
void
switchLink
(
LinkRequest
request
);
@DePermission
(
type
=
DePermissionType
.
PANEL
)
@ApiOperation
(
"当前链接信息"
)
@PostMapping
(
"/currentGenerate/{resourceId}"
)
GenerateDto
currentGenerate
(
String
resourceId
);
@ApiOperation
(
"验证访问"
)
@PostMapping
(
"/validate"
)
ValidateDto
validate
(
LinkValidateRequest
request
)
throws
Exception
;
...
...
backend/src/main/java/io/dataease/controller/panel/api/ShareApi.java
浏览文件 @
6e9cee5a
package
io
.
dataease
.
controller
.
panel
.
api
;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
io.dataease.auth.annotation.DePermission
;
import
io.dataease.base.domain.PanelShare
;
import
io.dataease.commons.constants.DePermissionType
;
import
io.dataease.controller.request.panel.PanelShareFineDto
;
import
io.dataease.controller.request.panel.PanelShareRemoveRequest
;
import
io.dataease.controller.sys.base.BaseGridRequest
;
...
...
@@ -47,6 +49,7 @@ public interface ShareApi {
List
<
PanelShareOutDTO
>
queryTargets
(
@PathVariable
(
"panelId"
)
String
panelId
);
@DePermission
(
type
=
DePermissionType
.
PANEL
,
value
=
"resourceId"
)
@ApiOperation
(
"创建分享"
)
@PostMapping
(
"/fineSave"
)
void
fineSave
(
PanelShareFineDto
panelShareFineDto
);
...
...
backend/src/main/java/io/dataease/controller/panel/api/StoreApi.java
浏览文件 @
6e9cee5a
package
io
.
dataease
.
controller
.
panel
.
api
;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
io.dataease.auth.annotation.DePermission
;
import
io.dataease.commons.constants.DePermissionType
;
import
io.dataease.controller.sys.base.BaseGridRequest
;
import
io.dataease.dto.panel.PanelStoreDto
;
import
io.swagger.annotations.Api
;
...
...
@@ -21,6 +23,7 @@ import java.util.List;
@RequestMapping
(
"/api/store"
)
public
interface
StoreApi
{
@DePermission
(
type
=
DePermissionType
.
PANEL
)
@ApiOperation
(
"创建收藏"
)
@PostMapping
(
"/{id}"
)
void
store
(
@PathVariable
(
"id"
)
String
id
);
...
...
backend/src/main/java/io/dataease/provider/datasource/ApiProvider.java
浏览文件 @
6e9cee5a
...
...
@@ -185,7 +185,7 @@ public class ApiProvider extends DatasourceProvider{
int
i
=
0
;
while
(
it
.
hasNext
()){
Map
.
Entry
entry
=
(
Map
.
Entry
)
it
.
next
();
row
[
i
]
=
Optional
.
ofNullable
(
entry
.
getValue
()).
orElse
(
""
).
toString
();
row
[
i
]
=
Optional
.
ofNullable
(
entry
.
getValue
()).
orElse
(
""
).
toString
()
.
replaceAll
(
"\n"
,
" "
).
replaceAll
(
"\r"
,
" "
)
;
i
++;
}
dataList
.
add
(
row
);
...
...
backend/src/main/java/io/dataease/provider/datasource/JdbcProvider.java
浏览文件 @
6e9cee5a
...
...
@@ -367,7 +367,6 @@ public class JdbcProvider extends DatasourceProvider {
try
(
Connection
con
=
getConnection
(
datasourceRequest
);
Statement
statement
=
con
.
createStatement
();
ResultSet
resultSet
=
statement
.
executeQuery
(
queryStr
))
{
return
"Success"
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
DataEaseException
.
throwException
(
e
.
getMessage
());
}
return
"Error"
;
...
...
backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java
浏览文件 @
6e9cee5a
package
io
.
dataease
.
service
.
dataset
;
import
com.google.gson.Gson
;
import
io.dataease.auth.annotation.DeCleaner
;
import
io.dataease.base.domain.*
;
import
io.dataease.base.mapper.*
;
import
io.dataease.base.mapper.ext.ExtDataSetGroupMapper
;
...
...
@@ -103,6 +104,7 @@ public class DataSetTableService {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ClassloaderResponsity
.
class
);
@DeCleaner
(
value
=
DePermissionType
.
DATASET
)
public
void
batchInsert
(
List
<
DataSetTableRequest
>
datasetTable
)
throws
Exception
{
for
(
DataSetTableRequest
table
:
datasetTable
)
{
save
(
table
);
...
...
@@ -126,6 +128,7 @@ public class DataSetTableService {
}
}
@DeCleaner
(
value
=
DePermissionType
.
DATASET
)
public
void
saveExcel
(
DataSetTableRequest
datasetTable
)
throws
Exception
{
List
<
String
>
datasetIdList
=
new
ArrayList
<>();
...
...
@@ -233,6 +236,7 @@ public class DataSetTableService {
}
}
@DeCleaner
(
value
=
DePermissionType
.
DATASET
)
public
DatasetTable
save
(
DataSetTableRequest
datasetTable
)
throws
Exception
{
checkName
(
datasetTable
);
if
(
StringUtils
.
equalsIgnoreCase
(
datasetTable
.
getType
(),
"sql"
))
{
...
...
@@ -1795,6 +1799,7 @@ public class DataSetTableService {
return
dataSetDetail
;
}
@DeCleaner
(
value
=
DePermissionType
.
DATASET
)
public
ExcelFileData
excelSaveAndParse
(
MultipartFile
file
,
String
tableId
,
Integer
editType
)
throws
Exception
{
String
filename
=
file
.
getOriginalFilename
();
// parse file
...
...
backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java
浏览文件 @
6e9cee5a
...
...
@@ -467,6 +467,10 @@ public class ExtractDataService {
while
((
line
=
input
.
readLine
())
!=
null
)
{
errMsg
=
errMsg
+
line
+
System
.
getProperty
(
"line.separator"
);
}
input
=
new
BufferedReader
(
new
InputStreamReader
(
process
.
getInputStream
()));
while
((
line
=
input
.
readLine
())
!=
null
)
{
errMsg
=
errMsg
+
line
+
System
.
getProperty
(
"line.separator"
);
}
throw
new
Exception
(
errMsg
);
}
}
catch
(
Exception
e
){
...
...
backend/src/main/java/io/dataease/service/datasource/DatasourceService.java
浏览文件 @
6e9cee5a
...
...
@@ -161,7 +161,16 @@ public class DatasourceService {
DatasourceProvider
datasourceProvider
=
ProviderFactory
.
getProvider
(
datasource
.
getType
());
DatasourceRequest
datasourceRequest
=
new
DatasourceRequest
();
datasourceRequest
.
setDatasource
(
datasource
);
datasourceProvider
.
checkStatus
(
datasourceRequest
);
String
status
=
datasourceProvider
.
checkStatus
(
datasourceRequest
);
if
(
status
.
equalsIgnoreCase
(
"Success"
))
{
return
ResultHolder
.
success
(
"Success"
);
}
if
(
status
.
equalsIgnoreCase
(
"Warning"
))
{
return
ResultHolder
.
error
(
"Datasource has invalid items"
);
}
if
(
status
.
equalsIgnoreCase
(
"Error"
))
{
return
ResultHolder
.
error
(
"Datasource is invalid"
);
}
return
ResultHolder
.
success
(
"Success"
);
}
catch
(
Exception
e
){
return
ResultHolder
.
error
(
"Datasource is invalid: "
+
e
.
getMessage
());
...
...
@@ -178,8 +187,17 @@ public class DatasourceService {
DatasourceProvider
datasourceProvider
=
ProviderFactory
.
getProvider
(
datasource
.
getType
());
DatasourceRequest
datasourceRequest
=
new
DatasourceRequest
();
datasourceRequest
.
setDatasource
(
datasource
);
datasourceProvider
.
checkStatus
(
datasourceRequest
);
datasource
.
setStatus
(
"Success"
);
String
status
=
datasourceProvider
.
checkStatus
(
datasourceRequest
);
datasource
.
setStatus
(
status
);
if
(
status
.
equalsIgnoreCase
(
"Success"
))
{
return
ResultHolder
.
success
(
"Success"
);
}
if
(
status
.
equalsIgnoreCase
(
"Warning"
))
{
return
ResultHolder
.
error
(
"Datasource has invalid items"
);
}
if
(
status
.
equalsIgnoreCase
(
"Error"
))
{
return
ResultHolder
.
error
(
"Datasource is invalid"
);
}
return
ResultHolder
.
success
(
"Success"
);
}
catch
(
Exception
e
){
datasource
.
setStatus
(
"Error"
);
...
...
@@ -206,7 +224,8 @@ public class DatasourceService {
// 获取当前数据源下的db类型数据集
DatasetTableExample
datasetTableExample
=
new
DatasetTableExample
();
datasetTableExample
.
createCriteria
().
andTypeEqualTo
(
"db"
).
andDataSourceIdEqualTo
(
datasource
.
getId
());
datasetTableExample
.
createCriteria
().
andTypeIn
(
Arrays
.
asList
(
"db"
,
"api"
)).
andDataSourceIdEqualTo
(
datasource
.
getId
());
List
<
DatasetTable
>
datasetTables
=
datasetTableMapper
.
selectByExampleWithBLOBs
(
datasetTableExample
);
List
<
DBTableDTO
>
list
=
new
ArrayList
<>();
for
(
TableDesc
tableDesc
:
tables
)
{
...
...
@@ -256,6 +275,7 @@ public class DatasourceService {
DatasourceExample
example
=
new
DatasourceExample
();
DatasourceExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andNameEqualTo
(
datasource
.
getName
());
criteria
.
andTypeEqualTo
(
datasource
.
getType
());
if
(
StringUtils
.
isNotEmpty
(
datasource
.
getId
()))
{
criteria
.
andIdNotEqualTo
(
datasource
.
getId
());
}
...
...
@@ -271,8 +291,16 @@ public class DatasourceService {
public
ApiDefinition
checkApiDatasource
(
ApiDefinition
apiDefinition
)
throws
Exception
{
String
response
=
ApiProvider
.
execHttpRequest
(
apiDefinition
);
if
(
StringUtils
.
isEmpty
(
response
)){
throw
new
Exception
(
"该请求返回数据为空"
);
}
List
<
LinkedHashMap
>
datas
=
new
ArrayList
<>();
try
{
datas
=
JsonPath
.
read
(
response
,
apiDefinition
.
getDataPath
());
}
catch
(
Exception
e
){
throw
new
Exception
(
"jsonPath 路径错误:"
+
e
.
getMessage
());
}
List
<
LinkedHashMap
>
datas
=
JsonPath
.
read
(
response
,
apiDefinition
.
getDataPath
());
List
<
JSONObject
>
dataList
=
new
ArrayList
<>();
List
<
DatasetTableField
>
fields
=
new
ArrayList
<>();
Boolean
getFileds
=
true
;
...
...
@@ -282,7 +310,7 @@ public class DatasourceService {
Iterator
it
=
data
.
entrySet
().
iterator
();
while
(
it
.
hasNext
()){
Map
.
Entry
entry
=
(
Map
.
Entry
)
it
.
next
();
jsonObject
.
put
((
String
)
entry
.
getKey
(),
entry
.
getValue
(
));
jsonObject
.
put
((
String
)
entry
.
getKey
(),
Optional
.
ofNullable
(
entry
.
getValue
()).
orElse
(
""
).
toString
().
replaceAll
(
"\n"
,
" "
).
replaceAll
(
"\r"
,
" "
));
if
(
getFileds
)
{
DatasetTableField
tableField
=
new
DatasetTableField
();
tableField
.
setOriginName
((
String
)
entry
.
getKey
());
...
...
frontend/src/lang/en.js
浏览文件 @
6e9cee5a
...
...
@@ -1310,7 +1310,7 @@ export default {
port_no_less_then_0
:
'Port cannot be less than zero'
,
priority
:
'Advanced setting'
,
extra_params
:
'Extra JDBC connection string'
,
please_input_dataPath
:
'
请输入 JsonPath 数据路径
'
,
please_input_dataPath
:
'
Please enter the JsonPath data path
'
,
warning
:
'Contains invalid datasets'
,
data_table
:
'Dataset Table'
,
data_table_name
:
'Dataset Table name'
,
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
6e9cee5a
...
...
@@ -1584,6 +1584,10 @@ export default {
this
.
view
.
customAttr
=
this
.
view
.
customAttr
?
JSON
.
parse
(
this
.
view
.
customAttr
)
:
{}
this
.
view
.
customStyle
=
this
.
view
.
customStyle
?
JSON
.
parse
(
this
.
view
.
customStyle
)
:
{}
this
.
view
.
customFilter
=
this
.
view
.
customFilter
?
JSON
.
parse
(
this
.
view
.
customFilter
)
:
{}
// 将视图传入echart组件
this
.
chart
=
response
.
data
this
.
data
=
response
.
data
.
data
}).
catch
(
err
=>
{
this
.
httpRequest
.
status
=
err
.
response
.
data
.
success
this
.
httpRequest
.
msg
=
err
.
response
.
data
.
message
...
...
frontend/src/views/dataset/add/AddDB.vue
浏览文件 @
6e9cee5a
...
...
@@ -125,7 +125,7 @@ export default {
methods
:
{
initDataSource
()
{
listDatasource
().
then
(
response
=>
{
this
.
options
=
response
.
data
this
.
options
=
response
.
data
.
filter
(
item
=>
item
.
type
!==
'api'
)
})
},
kettleState
()
{
...
...
frontend/src/views/dataset/add/AddSQL.vue
浏览文件 @
6e9cee5a
...
...
@@ -3,7 +3,7 @@
<el-row>
<el-row
style=
"height: 26px;"
class=
"title-text"
>
<span
style=
"line-height: 26px;"
>
{{
param
.
tableId
?
$t
(
'dataset.edit_sql'
):
$t
(
'dataset.add_sql_table'
)
}}
{{
param
.
tableId
?
$t
(
'dataset.edit_sql'
)
:
$t
(
'dataset.add_sql_table'
)
}}
</span>
<el-row
style=
"float: right"
>
<el-button
size=
"mini"
@
click=
"cancel"
>
...
...
@@ -14,11 +14,12 @@
</el-button>
</el-row>
</el-row>
<el-divider
/>
<el-divider/>
<el-row>
<el-form
:inline=
"true"
>
<el-form-item
class=
"form-item"
>
<el-select
v-model=
"dataSource"
filterable
:placeholder=
"$t('dataset.pls_slc_data_source')"
size=
"mini"
@
change=
"changeDatasource()"
>
<el-select
v-model=
"dataSource"
filterable
:placeholder=
"$t('dataset.pls_slc_data_source')"
size=
"mini"
@
change=
"changeDatasource()"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
...
...
@@ -28,19 +29,20 @@
</el-select>
</el-form-item>
<el-form-item
class=
"form-item"
>
<el-input
v-model=
"name"
size=
"mini"
:placeholder=
"$t('commons.name')"
/>
<el-input
v-model=
"name"
size=
"mini"
:placeholder=
"$t('commons.name')"
/>
</el-form-item>
<el-form-item
v-if=
"!param.tableId"
class=
"form-item"
>
<el-select
v-model=
"mode"
filterable
:placeholder=
"$t('dataset.connect_mode')"
size=
"mini"
>
<el-option
:label=
"$t('dataset.direct_connect')"
value=
"0"
/>
<el-option
:label=
"$t('dataset.sync_data')"
value=
"1"
:disabled=
"!kettleRunning || selectedDatasource.type==='es' || selectedDatasource.type==='ck'|| selectedDatasource.type==='mongo'|| selectedDatasource.type==='redshift' || selectedDatasource.type==='hive'"
/>
<el-option
:label=
"$t('dataset.direct_connect')"
value=
"0"
/>
<el-option
:label=
"$t('dataset.sync_data')"
value=
"1"
:disabled=
"!kettleRunning || selectedDatasource.type==='es' || selectedDatasource.type==='ck'|| selectedDatasource.type==='mongo'|| selectedDatasource.type==='redshift' || selectedDatasource.type==='hive'"
/>
</el-select>
</el-form-item>
<el-form-item
v-if=
"mode === '1'"
class=
"form-item"
>
<el-select
v-model=
"syncType"
filterable
:placeholder=
"$t('dataset.connect_mode')"
size=
"mini"
>
<el-option
:label=
"$t('dataset.sync_now')"
value=
"sync_now"
/>
<el-option
:label=
"$t('dataset.sync_latter')"
value=
"sync_latter"
/>
<el-option
:label=
"$t('dataset.sync_now')"
value=
"sync_now"
/>
<el-option
:label=
"$t('dataset.sync_latter')"
value=
"sync_latter"
/>
</el-select>
</el-form-item>
</el-form>
...
...
@@ -62,7 +64,9 @@
<el-card
class=
"box-card dataPreview"
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
{{
$t
(
'dataset.data_preview'
)
}}
</span>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
size=
"mini"
@
click=
"getSQLPreview"
>
{{
$t
(
'dataset.preview'
)
}}
</el-button>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
size=
"mini"
@
click=
"getSQLPreview"
>
{{
$t
(
'dataset.preview'
)
}}
</el-button>
</div>
<div
class=
"text item"
>
<ux-grid
...
...
@@ -95,9 +99,9 @@
</
template
>
<
script
>
import
{
post
,
listDatasource
,
isKettleRunning
}
from
'@/api/dataset/dataset'
import
{
codemirror
}
from
'vue-codemirror'
import
{
getTable
}
from
'@/api/dataset/dataset'
import
{
post
,
listDatasource
,
isKettleRunning
}
from
'@/api/dataset/dataset'
import
{
codemirror
}
from
'vue-codemirror'
import
{
getTable
}
from
'@/api/dataset/dataset'
// 核心样式
import
'codemirror/lib/codemirror.css'
// 引入主题后还需要在 options 中指定主题才会生效
...
...
@@ -123,7 +127,7 @@ import 'codemirror/addon/hint/show-hint'
export
default
{
name
:
'AddSQL'
,
components
:
{
codemirror
},
components
:
{
codemirror
},
props
:
{
param
:
{
type
:
Object
,
...
...
@@ -163,7 +167,7 @@ export default {
},
watch
:
{
'param.tableId'
:
{
handler
:
function
()
{
handler
:
function
()
{
this
.
resetComponent
()
this
.
initTableInfo
()
}
...
...
@@ -199,14 +203,14 @@ export default {
},
calHeight
()
{
const
that
=
this
setTimeout
(
function
()
{
setTimeout
(
function
()
{
const
currentHeight
=
document
.
documentElement
.
clientHeight
that
.
height
=
currentHeight
-
56
-
30
-
26
-
25
-
43
-
160
-
10
-
37
-
20
-
10
-
16
},
10
)
},
initDataSource
()
{
listDatasource
().
then
(
response
=>
{
this
.
options
=
response
.
data
this
.
options
=
response
.
data
.
filter
(
item
=>
item
.
type
!==
'api'
)
})
},
...
...
@@ -237,7 +241,7 @@ export default {
dataSourceId
:
this
.
dataSource
,
type
:
'sql'
,
// info: '{"sql":"' + this.sql + '"}',
info
:
JSON
.
stringify
({
sql
:
this
.
sql
.
trim
()
})
info
:
JSON
.
stringify
({
sql
:
this
.
sql
.
trim
()
})
}).
then
(
response
=>
{
this
.
fields
=
response
.
data
.
fields
this
.
data
=
response
.
data
.
data
...
...
@@ -280,7 +284,7 @@ export default {
syncType
:
this
.
syncType
,
mode
:
parseInt
(
this
.
mode
),
// info: '{"sql":"' + this.sql + '"}',
info
:
JSON
.
stringify
({
sql
:
this
.
sql
.
trim
()
})
info
:
JSON
.
stringify
({
sql
:
this
.
sql
.
trim
()
})
}
post
(
'/dataset/table/update'
,
table
).
then
(
response
=>
{
// this.$store.dispatch('dataset/setSceneData', new Date().getTime())
...
...
@@ -292,9 +296,9 @@ export default {
cancel
()
{
// this.dataReset()
if
(
this
.
param
.
tableId
)
{
this
.
$emit
(
'switchComponent'
,
{
name
:
'ViewTable'
,
param
:
this
.
param
.
table
})
this
.
$emit
(
'switchComponent'
,
{
name
:
'ViewTable'
,
param
:
this
.
param
.
table
})
}
else
{
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
}
},
...
...
@@ -327,48 +331,51 @@ export default {
</
script
>
<
style
scoped
>
.el-divider--horizontal
{
margin
:
12px
0
;
}
.el-divider--horizontal
{
margin
:
12px
0
;
}
.form-item
{
margin-bottom
:
6px
;
}
.form-item
{
margin-bottom
:
6px
;
}
.el-checkbox
{
margin-bottom
:
14px
;
margin-left
:
0
;
margin-right
:
14px
;
}
.el-checkbox
{
margin-bottom
:
14px
;
margin-left
:
0
;
margin-right
:
14px
;
}
.el-checkbox.is-bordered
+
.el-checkbox.is-bordered
{
margin-left
:
0
;
}
.el-checkbox.is-bordered
+
.el-checkbox.is-bordered
{
margin-left
:
0
;
}
.codemirror
{
height
:
160px
;
overflow-y
:
auto
;
}
.codemirror
>>>
.CodeMirror-scroll
{
height
:
160px
;
overflow-y
:
auto
;
}
.codemirror
{
height
:
160px
;
overflow-y
:
auto
;
}
.dataPreview
>>>
.el-card__header
{
padding
:
6px
8px
;
}
.codemirror
>>>
.CodeMirror-scroll
{
height
:
160px
;
overflow-y
:
auto
;
}
.dataPreview
>>>
.el-card__body
{
padding
:
10
px
;
}
.dataPreview
>>>
.el-card__header
{
padding
:
6px
8
px
;
}
span
{
font-size
:
14px
;
}
.span-number
{
color
:
#0a7be0
;
}
.table-count
{
color
:
#606266
;
}
.dataPreview
>>>
.el-card__body
{
padding
:
10px
;
}
span
{
font-size
:
14px
;
}
.span-number
{
color
:
#0a7be0
;
}
.table-count
{
color
:
#606266
;
}
</
style
>
frontend/src/views/system/datasource/ApiHttpRequestForm.vue
浏览文件 @
6e9cee5a
...
...
@@ -369,14 +369,14 @@ export default {
<
style
scoped
>
.ms-query
{
background
:
#
783887
;
background
:
#
409EFF
;
color
:
white
;
height
:
18px
;
border-radius
:
42%
;
}
.ms-header
{
background
:
#
783887
;
background
:
#
409EFF
;
color
:
white
;
height
:
18px
;
border-radius
:
42%
;
...
...
frontend/src/views/system/datasource/ApiKeyValue.vue
浏览文件 @
6e9cee5a
...
...
@@ -3,6 +3,7 @@
<div
class=
"kv-row item"
v-for=
"(item, index) in items"
:key=
"index"
>
<el-row
type=
"flex"
:gutter=
"20"
justify=
"space-between"
align=
"middle"
>
<span
style=
"margin-left: 10px"
></span>
<i
class=
"el-icon-top"
style=
"cursor:pointer"
@
click=
"moveTop(index)"
/>
<i
class=
"el-icon-bottom"
style=
"cursor:pointer;"
@
click=
"moveBottom(index)"
/>
...
...
frontend/src/views/system/datasource/DsTree.vue
浏览文件 @
6e9cee5a
...
...
@@ -32,7 +32,6 @@
:default-expanded-keys=
"expandedArray"
:data=
"tData"
node-key=
"id"
default-expand-all
:expand-on-click-node=
"true"
:filter-node-method=
"filterNode"
@
node-click=
"nodeClick"
...
...
frontend/src/views/system/datasource/form.vue
浏览文件 @
6e9cee5a
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论