Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
37a655cd
提交
37a655cd
authored
11月 03, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.4' of github.com:dataease/dataease into v1.4
上级
f300f756
5145b193
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
66 行增加
和
13 行删除
+66
-13
index.vue
frontend/src/components/DeDrag/index.vue
+1
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+12
-3
copy.js
frontend/src/components/canvas/store/copy.js
+5
-1
en.js
frontend/src/lang/en.js
+2
-1
tw.js
frontend/src/lang/tw.js
+2
-1
zh.js
frontend/src/lang/zh.js
+2
-1
index.scss
frontend/src/styles/index.scss
+8
-0
XAxisSelectorAntV.vue
...ws/chart/components/component-style/XAxisSelectorAntV.vue
+7
-0
YAxisExtSelectorAntV.vue
...chart/components/component-style/YAxisExtSelectorAntV.vue
+7
-0
YAxisSelectorAntV.vue
...ws/chart/components/component-style/YAxisSelectorAntV.vue
+7
-0
index.vue
frontend/src/views/panel/LinkJumpSet/index.vue
+6
-3
index.vue
frontend/src/views/panel/edit/index.vue
+7
-2
没有找到文件。
frontend/src/components/DeDrag/index.vue
浏览文件 @
37a655cd
...
@@ -1603,7 +1603,7 @@ export default {
...
@@ -1603,7 +1603,7 @@ export default {
style
.
height
=
height
style
.
height
=
height
style
.
rotate
=
this
.
rotate
style
.
rotate
=
this
.
rotate
// this.hasMove = true
// this.hasMove = true
// console.log('recordMatrixCurShadowStyle:t1:' + t1 + ';mw:' + this.curCanvasScale.matrixStyleWidth + ';width:' + width
)
console
.
log
(
'recordMatrixCurShadowStyle:t1:'
+
JSON
.
stringify
(
style
)
)
this
.
$store
.
commit
(
'setShapeStyle'
,
style
)
this
.
$store
.
commit
(
'setShapeStyle'
,
style
)
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
37a655cd
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
@onResizing="onResizing"
@onResizing="onResizing"
@elementMouseDown="containerMouseDown"
@elementMouseDown="containerMouseDown"
@amRemoveItem="removeItem(item._dragId)"
@amRemoveItem="removeItem(item._dragId)"
@amAddIt
me
="addItemBox(item)"
@amAddIt
em
="addItemBox(item)"
@linkJumpSet="linkJumpSet(item)"
@linkJumpSet="linkJumpSet(item)"
>
>
<!--
<span
style=
"position:relative;left: 0px;top:0px"
>
-->
<!--
<span
style=
"position:relative;left: 0px;top:0px"
>
-->
...
@@ -338,6 +338,7 @@ function recalcCellWidth() {
...
@@ -338,6 +338,7 @@ function recalcCellWidth() {
}
}
function
init
()
{
function
init
()
{
console
.
log
(
'init'
)
this
.
cellWidth
=
this
.
baseWidth
+
this
.
baseMarginLeft
this
.
cellWidth
=
this
.
baseWidth
+
this
.
baseMarginLeft
this
.
cellHeight
=
this
.
baseHeight
+
this
.
baseMarginTop
this
.
cellHeight
=
this
.
baseHeight
+
this
.
baseMarginTop
this
.
yourList
=
this
.
getList
()
this
.
yourList
=
this
.
getList
()
...
@@ -357,7 +358,6 @@ function init() {
...
@@ -357,7 +358,6 @@ function init() {
recalcCellWidth
.
call
(
this
)
recalcCellWidth
.
call
(
this
)
resetPositionBox
.
call
(
this
)
resetPositionBox
.
call
(
this
)
let
i
=
0
let
i
=
0
// console.log('initList:' + JSON.stringify(vm.yourList))
// console.log('initList:' + JSON.stringify(vm.yourList))
const
timeid
=
setInterval
(
function
()
{
const
timeid
=
setInterval
(
function
()
{
...
@@ -376,6 +376,7 @@ function init() {
...
@@ -376,6 +376,7 @@ function init() {
}
}
function
resizePlayer
(
item
,
newSize
)
{
function
resizePlayer
(
item
,
newSize
)
{
// console.log('resizePlayer')
const
vm
=
this
const
vm
=
this
removeItemFromPositionBox
(
item
)
removeItemFromPositionBox
(
item
)
...
@@ -424,6 +425,7 @@ function resizePlayer(item, newSize) {
...
@@ -424,6 +425,7 @@ function resizePlayer(item, newSize) {
* @param {any} position
* @param {any} position
*/
*/
function
checkItemPosition
(
item
,
position
)
{
function
checkItemPosition
(
item
,
position
)
{
// console.log('checkItemPosition-info' + JSON.stringify(item))
position
=
position
||
{}
position
=
position
||
{}
position
.
x
=
position
.
x
||
item
.
x
position
.
x
=
position
.
x
||
item
.
x
position
.
y
=
position
.
y
||
item
.
y
position
.
y
=
position
.
y
||
item
.
y
...
@@ -469,6 +471,7 @@ function checkItemPosition(item, position) {
...
@@ -469,6 +471,7 @@ function checkItemPosition(item, position) {
* @param {any} position
* @param {any} position
*/
*/
function
movePlayer
(
item
,
position
)
{
function
movePlayer
(
item
,
position
)
{
// console.log('movePlayer')
const
vm
=
this
const
vm
=
this
removeItemFromPositionBox
(
item
)
removeItemFromPositionBox
(
item
)
...
@@ -483,7 +486,7 @@ function movePlayer(item, position) {
...
@@ -483,7 +486,7 @@ function movePlayer(item, position) {
item
.
x
=
position
.
x
item
.
x
=
position
.
x
item
.
y
=
position
.
y
item
.
y
=
position
.
y
// console.log('checkItemPosition3')
checkItemPosition
.
call
(
this
,
item
,
position
)
checkItemPosition
.
call
(
this
,
item
,
position
)
emptyTargetCell
.
call
(
this
,
item
)
emptyTargetCell
.
call
(
this
,
item
)
...
@@ -520,11 +523,13 @@ function removeItem(index) {
...
@@ -520,11 +523,13 @@ function removeItem(index) {
}
}
function
addItem
(
item
,
index
)
{
function
addItem
(
item
,
index
)
{
// console.log('addItem')
if
(
index
<
0
)
{
if
(
index
<
0
)
{
index
=
this
.
yourList
.
length
index
=
this
.
yourList
.
length
}
}
item
.
_dragId
=
index
item
.
_dragId
=
index
// console.log('checkItemPosition4')
checkItemPosition
.
call
(
this
,
item
,
{
checkItemPosition
.
call
(
this
,
item
,
{
x
:
item
.
x
,
x
:
item
.
x
,
y
:
item
.
y
y
:
item
.
y
...
@@ -652,6 +657,7 @@ function changeItemCoord(item) {
...
@@ -652,6 +657,7 @@ function changeItemCoord(item) {
* @param {any} item
* @param {any} item
*/
*/
function
emptyTargetCell
(
item
)
{
function
emptyTargetCell
(
item
)
{
// console.log('emptyTargetCell')
const
vm
=
this
const
vm
=
this
const
belowItems
=
findBelowItems
(
item
)
const
belowItems
=
findBelowItems
(
item
)
...
@@ -708,6 +714,7 @@ function moveItemDown(item, size) {
...
@@ -708,6 +714,7 @@ function moveItemDown(item, size) {
y
:
item
.
y
+
size
y
:
item
.
y
+
size
}
}
setPlayerPosition
.
call
(
this
,
item
,
targetPosition
)
setPlayerPosition
.
call
(
this
,
item
,
targetPosition
)
// console.log('checkItemPosition1')
checkItemPosition
.
call
(
this
,
item
,
targetPosition
)
checkItemPosition
.
call
(
this
,
item
,
targetPosition
)
addItemToPositionBox
.
call
(
this
,
item
)
addItemToPositionBox
.
call
(
this
,
item
)
...
@@ -1458,6 +1465,7 @@ export default {
...
@@ -1458,6 +1465,7 @@ export default {
infoBox
.
oldSizeY
=
item
.
sizey
infoBox
.
oldSizeY
=
item
.
sizey
},
},
onMouseUp
(
e
)
{
onMouseUp
(
e
)
{
// console.log('onMouseUp')
const
vm
=
this
const
vm
=
this
if
(
_
.
isEmpty
(
vm
.
infoBox
))
return
if
(
_
.
isEmpty
(
vm
.
infoBox
))
return
if
(
vm
.
infoBox
.
cloneItem
)
{
if
(
vm
.
infoBox
.
cloneItem
)
{
...
@@ -1626,6 +1634,7 @@ export default {
...
@@ -1626,6 +1634,7 @@ export default {
},
100
)
},
100
)
},
},
addItemBox
(
item
)
{
addItemBox
(
item
)
{
// console.log('addItemBox:' + JSON.stringify(item))
this
.
yourList
.
push
(
item
)
this
.
yourList
.
push
(
item
)
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
...
...
frontend/src/components/canvas/store/copy.js
浏览文件 @
37a655cd
...
@@ -3,6 +3,7 @@ import toast from '@/components/canvas/utils/toast'
...
@@ -3,6 +3,7 @@ import toast from '@/components/canvas/utils/toast'
import
generateID
from
'@/components/canvas/utils/generateID'
import
generateID
from
'@/components/canvas/utils/generateID'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
deepCopy
}
from
'@/components/canvas/utils/utils'
import
{
chartCopy
}
from
'@/api/chart/chart'
import
{
chartCopy
}
from
'@/api/chart/chart'
import
{
uuid
}
from
'vue-uuid'
export
default
{
export
default
{
state
:
{
state
:
{
...
@@ -46,11 +47,14 @@ export default {
...
@@ -46,11 +47,14 @@ export default {
if
(
data
.
type
===
'view'
)
{
if
(
data
.
type
===
'view'
)
{
chartCopy
(
data
.
propValue
.
viewId
).
then
(
res
=>
{
chartCopy
(
data
.
propValue
.
viewId
).
then
(
res
=>
{
const
newView
=
deepCopy
(
data
)
const
newView
=
deepCopy
(
data
)
newView
.
id
=
uuid
.
v1
()
newView
.
propValue
.
viewId
=
res
.
data
newView
.
propValue
.
viewId
=
res
.
data
store
.
commit
(
'addComponent'
,
{
component
:
newView
})
store
.
commit
(
'addComponent'
,
{
component
:
newView
})
})
})
}
else
{
}
else
{
store
.
commit
(
'addComponent'
,
{
component
:
deepCopy
(
data
)
})
const
newCop
=
deepCopy
(
data
)
newCop
.
id
=
uuid
.
v1
()
store
.
commit
(
'addComponent'
,
{
component
:
newCop
})
}
}
if
(
state
.
isCut
)
{
if
(
state
.
isCut
)
{
state
.
copyData
=
null
state
.
copyData
=
null
...
...
frontend/src/lang/en.js
浏览文件 @
37a655cd
...
@@ -953,7 +953,8 @@ export default {
...
@@ -953,7 +953,8 @@ export default {
table_page_size
:
'Page Size'
,
table_page_size
:
'Page Size'
,
table_page_size_unit
:
'Item/Page'
,
table_page_size_unit
:
'Item/Page'
,
result_count
:
'Result'
,
result_count
:
'Result'
,
result_mode_all
:
'ALL'
result_mode_all
:
'ALL'
,
splitCount_less_100
:
'Split Count Range 0-100'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
37a655cd
...
@@ -954,7 +954,8 @@ export default {
...
@@ -954,7 +954,8 @@ export default {
table_page_size
:
'分頁'
,
table_page_size
:
'分頁'
,
table_page_size_unit
:
'條/頁'
,
table_page_size_unit
:
'條/頁'
,
result_count
:
'結果展示'
,
result_count
:
'結果展示'
,
result_mode_all
:
'全部'
result_mode_all
:
'全部'
,
splitCount_less_100
:
'刻度數範圍0-100'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
37a655cd
...
@@ -957,7 +957,8 @@ export default {
...
@@ -957,7 +957,8 @@ export default {
table_page_size
:
'分页'
,
table_page_size
:
'分页'
,
table_page_size_unit
:
'条/页'
,
table_page_size_unit
:
'条/页'
,
result_count
:
'结果展示'
,
result_count
:
'结果展示'
,
result_mode_all
:
'全部'
result_mode_all
:
'全部'
,
splitCount_less_100
:
'刻度数范围0-100'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
...
...
frontend/src/styles/index.scss
浏览文件 @
37a655cd
...
@@ -676,3 +676,11 @@ div:focus {
...
@@ -676,3 +676,11 @@ div:focus {
}
}
.el-color-svpanel__black
{
background
:
linear-gradient
(
to
top
,
#000
,
rgba
(
0
,
0
,
0
,
0
))
!
important
;
}
.el-color-svpanel__white
{
background
:
linear-gradient
(
to
right
,
#fff
,
rgba
(
255
,
255
,
255
,
0
))
!
important
;
}
frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue
浏览文件 @
37a655cd
...
@@ -160,6 +160,13 @@ export default {
...
@@ -160,6 +160,13 @@ export default {
if
(
!
this
.
axisForm
.
show
)
{
if
(
!
this
.
axisForm
.
show
)
{
this
.
isSetting
=
false
this
.
isSetting
=
false
}
}
if
(
this
.
axisForm
.
axisValue
.
splitCount
&&
(
parseInt
(
this
.
axisForm
.
axisValue
.
splitCount
)
>
100
||
parseInt
(
this
.
axisForm
.
axisValue
.
splitCount
)
<
0
))
{
this
.
$message
({
message
:
this
.
$t
(
'chart.splitCount_less_100'
),
type
:
'error'
})
return
}
this
.
$emit
(
'onChangeXAxisForm'
,
this
.
axisForm
)
this
.
$emit
(
'onChangeXAxisForm'
,
this
.
axisForm
)
}
}
}
}
...
...
frontend/src/views/chart/components/component-style/YAxisExtSelectorAntV.vue
浏览文件 @
37a655cd
...
@@ -163,6 +163,13 @@ export default {
...
@@ -163,6 +163,13 @@ export default {
if
(
!
this
.
axisForm
.
show
)
{
if
(
!
this
.
axisForm
.
show
)
{
this
.
isSetting
=
false
this
.
isSetting
=
false
}
}
if
(
this
.
axisForm
.
axisValue
.
splitCount
&&
(
parseInt
(
this
.
axisForm
.
axisValue
.
splitCount
)
>
100
||
parseInt
(
this
.
axisForm
.
axisValue
.
splitCount
)
<
0
))
{
this
.
$message
({
message
:
this
.
$t
(
'chart.splitCount_less_100'
),
type
:
'error'
})
return
}
this
.
$emit
(
'onChangeYAxisForm'
,
this
.
axisForm
)
this
.
$emit
(
'onChangeYAxisForm'
,
this
.
axisForm
)
}
}
}
}
...
...
frontend/src/views/chart/components/component-style/YAxisSelectorAntV.vue
浏览文件 @
37a655cd
...
@@ -171,6 +171,13 @@ export default {
...
@@ -171,6 +171,13 @@ export default {
if
(
!
this
.
axisForm
.
show
)
{
if
(
!
this
.
axisForm
.
show
)
{
this
.
isSetting
=
false
this
.
isSetting
=
false
}
}
if
(
this
.
axisForm
.
axisValue
.
splitCount
&&
(
parseInt
(
this
.
axisForm
.
axisValue
.
splitCount
)
>
100
||
parseInt
(
this
.
axisForm
.
axisValue
.
splitCount
)
<
0
))
{
this
.
$message
({
message
:
this
.
$t
(
'chart.splitCount_less_100'
),
type
:
'error'
})
return
}
this
.
$emit
(
'onChangeYAxisForm'
,
this
.
axisForm
)
this
.
$emit
(
'onChangeYAxisForm'
,
this
.
axisForm
)
}
}
}
}
...
...
frontend/src/views/panel/LinkJumpSet/index.vue
浏览文件 @
37a655cd
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<span
@
click
.
stop
>
<span
@
click
.
stop
>
<div>
<div>
<span
class=
"auth-span"
>
<span
class=
"auth-span"
>
<el-checkbox
v-model=
"data.checked"
@
change=
"sourceFieldCheckedChange(data)"
/>
<el-checkbox
v-model=
"data.checked"
@
change=
"sourceFieldCheckedChange(data)"
/>
</span>
</span>
</div>
</div>
</span>
</span>
...
@@ -88,7 +88,10 @@
...
@@ -88,7 +88,10 @@
:label=
"item.name"
:label=
"item.name"
:value=
"item.id"
:value=
"item.id"
>
>
<span
style=
"float: left; color: #8492a6; font-size: 12px"
>
{{
item
.
name
}}
</span>
<span
style=
"float: left"
>
<svg-icon
:icon-class=
"item.type"
style=
"width: 14px;height: 14px"
/>
</span>
<span
style=
"float: left; font-size: 12px"
>
{{
item
.
name
}}
</span>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
...
@@ -108,7 +111,7 @@
...
@@ -108,7 +111,7 @@
<svg-icon
v-if=
"viewField.deType === 2 || viewField.value === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"viewField.deType === 2 || viewField.value === 3"
icon-class=
"field_value"
class=
"field-icon-value"
/>
<svg-icon
v-if=
"viewField.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
<svg-icon
v-if=
"viewField.deType === 5"
icon-class=
"field_location"
class=
"field-icon-location"
/>
</span>
</span>
<span
style=
"float: left;
color: #8492a6;
font-size: 12px"
>
{{
viewField
.
name
}}
</span>
<span
style=
"float: left;font-size: 12px"
>
{{
viewField
.
name
}}
</span>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
37a655cd
...
@@ -218,7 +218,7 @@ import generateID from '@/components/canvas/utils/generateID'
...
@@ -218,7 +218,7 @@ import generateID from '@/components/canvas/utils/generateID'
import
RectangleAttr
from
'@/components/canvas/components/RectangleAttr'
import
RectangleAttr
from
'@/components/canvas/components/RectangleAttr'
import
TextAttr
from
'@/components/canvas/components/TextAttr'
import
TextAttr
from
'@/components/canvas/components/TextAttr'
import
FilterTextAttr
from
'@/components/canvas/components/FilterTextAttr'
import
FilterTextAttr
from
'@/components/canvas/components/FilterTextAttr'
import
{
queryPanelJumpInfo
}
from
"@/api/panel/linkJump"
;
import
{
queryPanelJumpInfo
}
from
'@/api/panel/linkJump'
export
default
{
export
default
{
name
:
'PanelEdit'
,
name
:
'PanelEdit'
,
...
@@ -560,6 +560,11 @@ export default {
...
@@ -560,6 +560,11 @@ export default {
this
.
currentFilterCom
.
style
.
top
=
(
this
.
dragComponentInfo
.
y
-
1
)
*
this
.
curCanvasScale
.
matrixStyleOriginHeight
this
.
currentFilterCom
.
style
.
top
=
(
this
.
dragComponentInfo
.
y
-
1
)
*
this
.
curCanvasScale
.
matrixStyleOriginHeight
this
.
currentFilterCom
.
style
.
width
=
this
.
dragComponentInfo
.
sizex
*
this
.
curCanvasScale
.
matrixStyleOriginWidth
this
.
currentFilterCom
.
style
.
width
=
this
.
dragComponentInfo
.
sizex
*
this
.
curCanvasScale
.
matrixStyleOriginWidth
this
.
currentFilterCom
.
style
.
height
=
this
.
dragComponentInfo
.
sizey
*
this
.
curCanvasScale
.
matrixStyleOriginHeight
this
.
currentFilterCom
.
style
.
height
=
this
.
dragComponentInfo
.
sizey
*
this
.
curCanvasScale
.
matrixStyleOriginHeight
}
else
{
this
.
currentFilterCom
.
style
.
left
=
this
.
dragComponentInfo
.
shadowStyle
.
x
this
.
currentFilterCom
.
style
.
top
=
this
.
dragComponentInfo
.
shadowStyle
.
y
this
.
currentFilterCom
.
style
.
width
=
this
.
dragComponentInfo
.
style
.
width
this
.
currentFilterCom
.
style
.
height
=
this
.
dragComponentInfo
.
style
.
height
}
}
this
.
currentFilterCom
.
id
=
newComponentId
this
.
currentFilterCom
.
id
=
newComponentId
this
.
currentFilterCom
.
auxiliaryMatrix
=
this
.
canvasStyleData
.
auxiliaryMatrix
this
.
currentFilterCom
.
auxiliaryMatrix
=
this
.
canvasStyleData
.
auxiliaryMatrix
...
@@ -808,7 +813,7 @@ export default {
...
@@ -808,7 +813,7 @@ export default {
}
}
},
},
canvasScroll
(
event
)
{
canvasScroll
(
event
)
{
console
.
log
(
'testTop'
+
event
.
target
.
scrollTop
)
//
console.log('testTop' + event.target.scrollTop)
this
.
scrollLeft
=
event
.
target
.
scrollLeft
this
.
scrollLeft
=
event
.
target
.
scrollLeft
this
.
scrollTop
=
event
.
target
.
scrollTop
this
.
scrollTop
=
event
.
target
.
scrollTop
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论