Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
0d0b4ccd
Unverified
提交
0d0b4ccd
authored
11月 26, 2021
作者:
王嘉豪
提交者:
GitHub
11月 26, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1295 from dataease/dev
Dev
上级
3bedd437
5a048e9e
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
89 行增加
和
31 行删除
+89
-31
VAuthModel.java
...end/src/main/java/io/dataease/base/domain/VAuthModel.java
+3
-0
VAuthModelExample.java
.../main/java/io/dataease/base/domain/VAuthModelExample.java
+60
-0
VAuthModelMapper.xml
...rc/main/java/io/dataease/base/mapper/VAuthModelMapper.xml
+19
-6
ExtVAuthModelMapper.xml
.../java/io/dataease/base/mapper/ext/ExtVAuthModelMapper.xml
+1
-0
V28__de1.5.sql
backend/src/main/resources/db/migration/V28__de1.5.sql
+0
-0
ViewTrackBar.vue
.../src/components/canvas/components/Editor/ViewTrackBar.vue
+4
-1
ChartComponentG2.vue
frontend/src/views/chart/components/ChartComponentG2.vue
+1
-20
AddDB.vue
frontend/src/views/dataset/add/AddDB.vue
+1
-4
没有找到文件。
backend/src/main/java/io/dataease/base/domain/VAuthModel.java
浏览文件 @
0d0b4ccd
...
@@ -21,5 +21,7 @@ public class VAuthModel implements Serializable {
...
@@ -21,5 +21,7 @@ public class VAuthModel implements Serializable {
private
Long
level
;
private
Long
level
;
private
Long
mode
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
backend/src/main/java/io/dataease/base/domain/VAuthModelExample.java
浏览文件 @
0d0b4ccd
...
@@ -653,6 +653,66 @@ public class VAuthModelExample {
...
@@ -653,6 +653,66 @@ public class VAuthModelExample {
addCriterion
(
"`level` not between"
,
value1
,
value2
,
"level"
);
addCriterion
(
"`level` not between"
,
value1
,
value2
,
"level"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andModeIsNull
()
{
addCriterion
(
"`mode` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeIsNotNull
()
{
addCriterion
(
"`mode` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeEqualTo
(
Long
value
)
{
addCriterion
(
"`mode` ="
,
value
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeNotEqualTo
(
Long
value
)
{
addCriterion
(
"`mode` <>"
,
value
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeGreaterThan
(
Long
value
)
{
addCriterion
(
"`mode` >"
,
value
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"`mode` >="
,
value
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeLessThan
(
Long
value
)
{
addCriterion
(
"`mode` <"
,
value
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"`mode` <="
,
value
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeIn
(
List
<
Long
>
values
)
{
addCriterion
(
"`mode` in"
,
values
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"`mode` not in"
,
values
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"`mode` between"
,
value1
,
value2
,
"mode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andModeNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"`mode` not between"
,
value1
,
value2
,
"mode"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
backend/src/main/java/io/dataease/base/mapper/VAuthModelMapper.xml
浏览文件 @
0d0b4ccd
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"auth_type"
jdbcType=
"VARCHAR"
property=
"authType"
/>
<result
column=
"auth_type"
jdbcType=
"VARCHAR"
property=
"authType"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"level"
jdbcType=
"BIGINT"
property=
"level"
/>
<result
column=
"level"
jdbcType=
"BIGINT"
property=
"level"
/>
<result
column=
"mode"
jdbcType=
"BIGINT"
property=
"mode"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
<result
column=
"name"
jdbcType=
"LONGVARCHAR"
property=
"name"
/>
<result
column=
"name"
jdbcType=
"LONGVARCHAR"
property=
"name"
/>
...
@@ -74,7 +75,8 @@
...
@@ -74,7 +75,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, pid, node_type, model_type, model_inner_type, auth_type, create_by, `level`
id, pid, node_type, model_type, model_inner_type, auth_type, create_by, `level`,
`mode`
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
`name`, `label`
`name`, `label`
...
@@ -118,12 +120,12 @@
...
@@ -118,12 +120,12 @@
<insert
id=
"insert"
parameterType=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
<insert
id=
"insert"
parameterType=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
insert into v_auth_model (id, pid, node_type,
insert into v_auth_model (id, pid, node_type,
model_type, model_inner_type, auth_type,
model_type, model_inner_type, auth_type,
create_by, `level`, `
nam
e`,
create_by, `level`, `
mod
e`,
`label`)
`
name`, `
label`)
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{nodeType,jdbcType=VARCHAR},
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{nodeType,jdbcType=VARCHAR},
#{modelType,jdbcType=VARCHAR}, #{modelInnerType,jdbcType=VARCHAR}, #{authType,jdbcType=VARCHAR},
#{modelType,jdbcType=VARCHAR}, #{modelInnerType,jdbcType=VARCHAR}, #{authType,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{level,jdbcType=BIGINT}, #{
name,jdbcType=LONGVARCHAR
},
#{createBy,jdbcType=VARCHAR}, #{level,jdbcType=BIGINT}, #{
mode,jdbcType=BIGINT
},
#{label,jdbcType=LONGVARCHAR})
#{
name,jdbcType=LONGVARCHAR}, #{
label,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
<insert
id=
"insertSelective"
parameterType=
"io.dataease.base.domain.VAuthModelWithBLOBs"
>
insert into v_auth_model
insert into v_auth_model
...
@@ -152,6 +154,9 @@
...
@@ -152,6 +154,9 @@
<if
test=
"level != null"
>
<if
test=
"level != null"
>
`level`,
`level`,
</if>
</if>
<if
test=
"mode != null"
>
`mode`,
</if>
<if
test=
"name != null"
>
<if
test=
"name != null"
>
`name`,
`name`,
</if>
</if>
...
@@ -184,6 +189,9 @@
...
@@ -184,6 +189,9 @@
<if
test=
"level != null"
>
<if
test=
"level != null"
>
#{level,jdbcType=BIGINT},
#{level,jdbcType=BIGINT},
</if>
</if>
<if
test=
"mode != null"
>
#{mode,jdbcType=BIGINT},
</if>
<if
test=
"name != null"
>
<if
test=
"name != null"
>
#{name,jdbcType=LONGVARCHAR},
#{name,jdbcType=LONGVARCHAR},
</if>
</if>
...
@@ -225,6 +233,9 @@
...
@@ -225,6 +233,9 @@
<if
test=
"record.level != null"
>
<if
test=
"record.level != null"
>
`level` = #{record.level,jdbcType=BIGINT},
`level` = #{record.level,jdbcType=BIGINT},
</if>
</if>
<if
test=
"record.mode != null"
>
`mode` = #{record.mode,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=LONGVARCHAR},
`name` = #{record.name,jdbcType=LONGVARCHAR},
</if>
</if>
...
@@ -246,6 +257,7 @@
...
@@ -246,6 +257,7 @@
auth_type = #{record.authType,jdbcType=VARCHAR},
auth_type = #{record.authType,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
`level` = #{record.level,jdbcType=BIGINT},
`level` = #{record.level,jdbcType=BIGINT},
`mode` = #{record.mode,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=LONGVARCHAR},
`name` = #{record.name,jdbcType=LONGVARCHAR},
`label` = #{record.label,jdbcType=LONGVARCHAR}
`label` = #{record.label,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
...
@@ -261,7 +273,8 @@
...
@@ -261,7 +273,8 @@
model_inner_type = #{record.modelInnerType,jdbcType=VARCHAR},
model_inner_type = #{record.modelInnerType,jdbcType=VARCHAR},
auth_type = #{record.authType,jdbcType=VARCHAR},
auth_type = #{record.authType,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
`level` = #{record.level,jdbcType=BIGINT}
`level` = #{record.level,jdbcType=BIGINT},
`mode` = #{record.mode,jdbcType=BIGINT}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
...
backend/src/main/java/io/dataease/base/mapper/ext/ExtVAuthModelMapper.xml
浏览文件 @
0d0b4ccd
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
v_auth_model.auth_type,
v_auth_model.auth_type,
v_auth_model.create_by,
v_auth_model.create_by,
v_auth_model.level,
v_auth_model.level,
v_auth_model.mode,
authInfo.PRIVILEGES AS `privileges`
authInfo.PRIVILEGES AS `privileges`
FROM
FROM
( SELECT GET_V_AUTH_MODEL_ID_P_USE ( #{request.userId}, #{request.modelType} ) cids ) t,
( SELECT GET_V_AUTH_MODEL_ID_P_USE ( #{request.userId}, #{request.modelType} ) cids ) t,
...
...
backend/src/main/resources/db/migration/V28__de1.5.sql
浏览文件 @
0d0b4ccd
This source diff could not be displayed because it is too large. You can
view the blob
instead.
frontend/src/components/canvas/components/Editor/ViewTrackBar.vue
浏览文件 @
0d0b4ccd
...
@@ -31,7 +31,10 @@ export default {
...
@@ -31,7 +31,10 @@ export default {
},
},
methods
:
{
methods
:
{
trackButtonClick
()
{
trackButtonClick
()
{
this
.
$refs
.
trackButton
.
click
()
const
_this
=
this
setTimeout
(()
=>
{
_this
.
$refs
.
trackButton
.
click
()
},
50
)
},
},
trackMenuClick
(
menu
)
{
trackMenuClick
(
menu
)
{
this
.
$emit
(
'trackClick'
,
menu
)
this
.
$emit
(
'trackClick'
,
menu
)
...
...
frontend/src/views/chart/components/ChartComponentG2.vue
浏览文件 @
0d0b4ccd
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
<
script
>
<
script
>
import
{
baseLiquid
}
from
'@/views/chart/chart/liquid/liquid'
import
{
baseLiquid
}
from
'@/views/chart/chart/liquid/liquid'
// import eventBus from '@/components/canvas/utils/eventBus'
import
{
uuid
}
from
'vue-uuid'
import
{
uuid
}
from
'vue-uuid'
import
ViewTrackBar
from
'@/components/canvas/components/Editor/ViewTrackBar'
import
ViewTrackBar
from
'@/components/canvas/components/Editor/ViewTrackBar'
import
{
hexColorToRGBA
}
from
'@/views/chart/chart/util'
import
{
hexColorToRGBA
}
from
'@/views/chart/chart/util'
...
@@ -183,15 +182,7 @@ export default {
...
@@ -183,15 +182,7 @@ export default {
if
(
this
.
antVRenderStatus
)
{
if
(
this
.
antVRenderStatus
)
{
this
.
myChart
.
render
()
this
.
myChart
.
render
()
}
}
// } else {
// if (this.myChart) {
// this.antVRenderStatus = false
// this.myChart.destroy()
// }
// }
this
.
setBackGroundBorder
()
this
.
setBackGroundBorder
()
// console.log(JSON.stringify(chart_option))
},
},
antVAction
(
param
)
{
antVAction
(
param
)
{
...
@@ -205,20 +196,10 @@ export default {
...
@@ -205,20 +196,10 @@ export default {
this
.
trackClick
(
this
.
trackMenu
[
0
])
this
.
trackClick
(
this
.
trackMenu
[
0
])
}
else
{
// 视图关联多个事件
}
else
{
// 视图关联多个事件
this
.
trackBarStyle
.
left
=
param
.
x
+
'px'
this
.
trackBarStyle
.
left
=
param
.
x
+
'px'
this
.
trackBarStyle
.
top
=
(
param
.
y
-
15
)
+
'px'
this
.
trackBarStyle
.
top
=
(
param
.
y
+
10
)
+
'px'
this
.
$refs
.
viewTrack
.
trackButtonClick
()
this
.
$refs
.
viewTrack
.
trackButtonClick
()
}
}
},
},
// myEcharts(option) {
// // 指定图表的配置项和数据
// const chart = this.myChart
// this.setBackGroundBorder()
// setTimeout(chart.setOption(option, true), 500)
// window.onresize = function() {
// chart.resize()
// }
// },
setBackGroundBorder
()
{
setBackGroundBorder
()
{
if
(
this
.
chart
.
customStyle
)
{
if
(
this
.
chart
.
customStyle
)
{
const
customStyle
=
JSON
.
parse
(
this
.
chart
.
customStyle
)
const
customStyle
=
JSON
.
parse
(
this
.
chart
.
customStyle
)
...
...
frontend/src/views/dataset/add/AddDB.vue
浏览文件 @
0d0b4ccd
...
@@ -100,6 +100,7 @@ export default {
...
@@ -100,6 +100,7 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
options
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
options
.
length
;
i
++
)
{
if
(
this
.
options
[
i
].
id
===
val
)
{
if
(
this
.
options
[
i
].
id
===
val
)
{
this
.
selectedDatasource
=
this
.
options
[
i
]
this
.
selectedDatasource
=
this
.
options
[
i
]
this
.
mode
=
'0'
}
}
}
}
}
}
...
@@ -133,8 +134,6 @@ export default {
...
@@ -133,8 +134,6 @@ export default {
})
})
},
},
save
()
{
save
()
{
// console.log(this.checkTableList);
// console.log(this.scene);
let
ds
=
{}
let
ds
=
{}
this
.
options
.
forEach
(
ele
=>
{
this
.
options
.
forEach
(
ele
=>
{
if
(
ele
.
id
===
this
.
dataSource
)
{
if
(
ele
.
id
===
this
.
dataSource
)
{
...
@@ -158,7 +157,6 @@ export default {
...
@@ -158,7 +157,6 @@ export default {
})
})
})
})
post
(
'/dataset/table/batchAdd'
,
tables
).
then
(
response
=>
{
post
(
'/dataset/table/batchAdd'
,
tables
).
then
(
response
=>
{
// this.$store.dispatch('dataset/setSceneData', new Date().getTime())
this
.
$emit
(
'saveSuccess'
,
tables
[
0
])
this
.
$emit
(
'saveSuccess'
,
tables
[
0
])
this
.
cancel
()
this
.
cancel
()
})
})
...
@@ -166,7 +164,6 @@ export default {
...
@@ -166,7 +164,6 @@ export default {
cancel
()
{
cancel
()
{
this
.
dataReset
()
this
.
dataReset
()
// this.$router.push('/dataset/home')
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
this
.
$emit
(
'switchComponent'
,
{
name
:
''
})
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论