Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
5dd94234
提交
5dd94234
authored
6月 10, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 去掉一些日志
上级
38dea1ad
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
18 行增加
和
14 行删除
+18
-14
index.vue
frontend/src/components/DeDrag/index.vue
+8
-8
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+4
-0
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+2
-2
snapshot.js
frontend/src/components/canvas/store/snapshot.js
+1
-1
AddCustom.vue
frontend/src/views/dataset/add/AddCustom.vue
+1
-1
index.vue
frontend/src/views/system/datasource/index.vue
+1
-1
index.vue
frontend/src/views/system/systemParamSettings/index.vue
+1
-1
没有找到文件。
frontend/src/components/DeDrag/index.vue
浏览文件 @
5dd94234
...
@@ -531,7 +531,7 @@ export default {
...
@@ -531,7 +531,7 @@ export default {
if
(
this
.
parent
)
{
if
(
this
.
parent
)
{
this
.
bounds
=
this
.
calcResizeLimits
()
this
.
bounds
=
this
.
calcResizeLimits
()
}
}
console
.
log
(
'changeWidth:'
+
val
)
//
console.log('changeWidth:' + val)
this
.
changeWidth
(
val
)
this
.
changeWidth
(
val
)
},
},
h
(
val
)
{
h
(
val
)
{
...
@@ -584,7 +584,7 @@ export default {
...
@@ -584,7 +584,7 @@ export default {
this
.
aspectFactor
=
this
.
outsideAspectRatio
this
.
aspectFactor
=
this
.
outsideAspectRatio
}
}
this
.
width
=
this
.
w
!==
'auto'
?
this
.
w
:
width
this
.
width
=
this
.
w
!==
'auto'
?
this
.
w
:
width
console
.
log
(
'width1:'
+
this
.
width
)
//
console.log('width1:' + this.width)
this
.
height
=
this
.
h
!==
'auto'
?
this
.
h
:
height
this
.
height
=
this
.
h
!==
'auto'
?
this
.
h
:
height
this
.
right
=
this
.
parentWidth
-
this
.
width
-
this
.
left
this
.
right
=
this
.
parentWidth
-
this
.
width
-
this
.
left
this
.
bottom
=
this
.
parentHeight
-
this
.
height
-
this
.
top
this
.
bottom
=
this
.
parentHeight
-
this
.
height
-
this
.
top
...
@@ -1109,7 +1109,7 @@ export default {
...
@@ -1109,7 +1109,7 @@ export default {
newH
=
restrictToBounds
(
newH
,
this
.
minH
||
0
,
this
.
maxH
)
newH
=
restrictToBounds
(
newH
,
this
.
minH
||
0
,
this
.
maxH
)
// 纵横比
// 纵横比
if
(
this
.
lockAspectRatio
)
{
if
(
this
.
lockAspectRatio
)
{
console
.
log
(
this
.
lockAspectRatio
,
this
.
aspectFactor
)
//
console.log(this.lockAspectRatio, this.aspectFactor)
if
(
newW
/
newH
>
this
.
aspectFactor
)
{
if
(
newW
/
newH
>
this
.
aspectFactor
)
{
newW
=
newH
*
this
.
aspectFactor
newW
=
newH
*
this
.
aspectFactor
}
else
{
}
else
{
...
@@ -1117,7 +1117,7 @@ export default {
...
@@ -1117,7 +1117,7 @@ export default {
}
}
}
}
this
.
width
=
newW
this
.
width
=
newW
console
.
log
(
'width2:'
+
this
.
width
)
//
console.log('width2:' + this.width)
this
.
height
=
newH
this
.
height
=
newH
this
.
$emit
(
'resizing'
,
this
.
left
,
this
.
top
,
this
.
width
,
this
.
height
)
this
.
$emit
(
'resizing'
,
this
.
left
,
this
.
top
,
this
.
width
,
this
.
height
)
...
@@ -1128,8 +1128,8 @@ export default {
...
@@ -1128,8 +1128,8 @@ export default {
},
},
changeWidth
(
val
)
{
changeWidth
(
val
)
{
debugger
debugger
console
.
log
(
'parentWidth'
,
this
.
parentWidth
)
//
console.log('parentWidth', this.parentWidth)
console
.
log
(
'parentHeight'
,
this
.
parentHeight
)
//
console.log('parentHeight', this.parentHeight)
const
[
newWidth
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
0
,
this
.
scale
)
const
[
newWidth
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
0
,
this
.
scale
)
// const right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight)
// const right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight)
// private 将 this.bounds.minRight 设置为0
// private 将 this.bounds.minRight 设置为0
...
@@ -1143,7 +1143,7 @@ export default {
...
@@ -1143,7 +1143,7 @@ export default {
this
.
right
=
right
this
.
right
=
right
this
.
bottom
=
bottom
this
.
bottom
=
bottom
this
.
width
=
width
this
.
width
=
width
console
.
log
(
'width3:'
+
this
.
width
)
//
console.log('width3:' + this.width)
this
.
height
=
height
this
.
height
=
height
},
},
changeHeight
(
val
)
{
changeHeight
(
val
)
{
...
@@ -1160,7 +1160,7 @@ export default {
...
@@ -1160,7 +1160,7 @@ export default {
this
.
right
=
right
this
.
right
=
right
this
.
bottom
=
bottom
this
.
bottom
=
bottom
this
.
width
=
width
this
.
width
=
width
console
.
log
(
'width4:'
+
this
.
width
)
//
console.log('width4:' + this.width)
this
.
height
=
height
this
.
height
=
height
},
},
// 从控制柄松开
// 从控制柄松开
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
5dd94234
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
v-for=
"(item, index) in componentDataInfo"
v-for=
"(item, index) in componentDataInfo"
:key=
"index"
:key=
"index"
:config=
"item"
:config=
"item"
:class=
"
{'gap_class':canvasStyleData.panel.gap==='yes'}"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -172,4 +173,7 @@ export default {
...
@@ -172,4 +173,7 @@ export default {
flex-flow
:
row
nowrap
;
flex-flow
:
row
nowrap
;
color
:
#9ea6b2
;
color
:
#9ea6b2
;
}
}
.gap_class
{
padding
:
3px
;
}
</
style
>
</
style
>
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
5dd94234
...
@@ -214,7 +214,7 @@ export default {
...
@@ -214,7 +214,7 @@ export default {
},
},
componentData
:
{
componentData
:
{
handler
(
newVal
,
oldVla
)
{
handler
(
newVal
,
oldVla
)
{
console
.
log
(
'11111'
)
//
console.log('11111')
},
},
deep
:
true
deep
:
true
}
}
...
@@ -508,7 +508,7 @@ export default {
...
@@ -508,7 +508,7 @@ export default {
}
}
},
},
getRefLineParams
(
params
)
{
getRefLineParams
(
params
)
{
console
.
log
(
params
)
//
console.log(params)
const
{
vLine
,
hLine
}
=
params
const
{
vLine
,
hLine
}
=
params
this
.
vLine
=
vLine
this
.
vLine
=
vLine
this
.
hLine
=
hLine
this
.
hLine
=
hLine
...
...
frontend/src/components/canvas/store/snapshot.js
浏览文件 @
5dd94234
...
@@ -25,7 +25,7 @@ export default {
...
@@ -25,7 +25,7 @@ export default {
},
},
recordSnapshot
(
state
)
{
recordSnapshot
(
state
)
{
console
.
log
(
'recordSnapshot'
)
//
console.log('recordSnapshot')
// 添加新的快照
// 添加新的快照
state
.
snapshotData
[
++
state
.
snapshotIndex
]
=
deepCopy
(
state
.
componentData
)
state
.
snapshotData
[
++
state
.
snapshotIndex
]
=
deepCopy
(
state
.
componentData
)
state
.
snapshotStyleData
[
state
.
snapshotIndex
]
=
deepCopy
(
state
.
canvasStyleData
)
state
.
snapshotStyleData
[
state
.
snapshotIndex
]
=
deepCopy
(
state
.
canvasStyleData
)
...
...
frontend/src/views/dataset/add/AddCustom.vue
浏览文件 @
5dd94234
...
@@ -157,7 +157,7 @@ export default {
...
@@ -157,7 +157,7 @@ export default {
info
:
'{"list":'
+
JSON
.
stringify
(
this
.
checkedList
)
+
'}'
info
:
'{"list":'
+
JSON
.
stringify
(
this
.
checkedList
)
+
'}'
}
}
post
(
'/dataset/table/customPreview'
,
table
).
then
(
response
=>
{
post
(
'/dataset/table/customPreview'
,
table
).
then
(
response
=>
{
console
.
log
(
response
)
//
console.log(response)
this
.
fields
=
response
.
data
.
fields
this
.
fields
=
response
.
data
.
fields
this
.
data
=
response
.
data
.
data
this
.
data
=
response
.
data
.
data
const
datas
=
this
.
data
const
datas
=
this
.
data
...
...
frontend/src/views/system/datasource/index.vue
浏览文件 @
5dd94234
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
},
},
methods
:
{
methods
:
{
select
(
selection
)
{
select
(
selection
)
{
console
.
log
(
selection
)
//
console.log(selection)
},
},
// create() {
// create() {
// this.formType = 'add'
// this.formType = 'add'
...
...
frontend/src/views/system/systemParamSettings/index.vue
浏览文件 @
5dd94234
...
@@ -34,7 +34,7 @@ export default {
...
@@ -34,7 +34,7 @@ export default {
methods
:
{
methods
:
{
// hasLicense
// hasLicense
executeAxios
(
options
)
{
executeAxios
(
options
)
{
console
.
log
(
options
)
//
console.log(options)
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论