Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
fe78746d
Commit
fe78746d
authored
Sep 06, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/1.3-local' into 'feat/v1.3'
Feat/1.3 local See merge request
!35
parents
73b7221d
b527af4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
index.ts
app/web/page/editor/view/dashboard/index.ts
+8
-4
No files found.
app/web/page/editor/view/dashboard/index.ts
View file @
fe78746d
...
@@ -20,6 +20,10 @@ import type { PageInfo, Page, GridLayout } from '../../../store/modules/editor/
...
@@ -20,6 +20,10 @@ import type { PageInfo, Page, GridLayout } from '../../../store/modules/editor/
@
Component
({
components
:
{
GridLayout
:
VueGridLayout
.
GridLayout
,
@
Component
({
components
:
{
GridLayout
:
VueGridLayout
.
GridLayout
,
GridItem
:
VueGridLayout
.
GridItem
,
BasicPageFormModal
,
RecordModal
,
MaterialMenu
,
DynamicFormTabs
,
OperationPanel
},
name
:
'
DashBoard
'
})
GridItem
:
VueGridLayout
.
GridItem
,
BasicPageFormModal
,
RecordModal
,
MaterialMenu
,
DynamicFormTabs
,
OperationPanel
},
name
:
'
DashBoard
'
})
export
default
class
DashBoard
extends
Mixins
(
ContextMenuMixin
,
GoodsTabsMixin
,
TransformStyleMixin
,
AutoSaveMixin
)
{
export
default
class
DashBoard
extends
Mixins
(
ContextMenuMixin
,
GoodsTabsMixin
,
TransformStyleMixin
,
AutoSaveMixin
)
{
get
layout
()
{
return
this
.
pageData
.
elements
.
map
(
v
=>
v
.
point
);
}
@
Mutation
(
'
ADD_ELEMENTS
'
)
addElements
;
@
Mutation
(
'
ADD_ELEMENTS
'
)
addElements
;
@
Mutation
(
'
SET_CUR_ELE_INDEX
'
)
setCurEleIndex
;
@
Mutation
(
'
SET_CUR_ELE_INDEX
'
)
setCurEleIndex
;
@
Mutation
(
'
SET_CUR_CHILD_INDEX
'
)
setCurChildIndex
;
@
Mutation
(
'
SET_CUR_CHILD_INDEX
'
)
setCurChildIndex
;
...
@@ -48,6 +52,10 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
...
@@ -48,6 +52,10 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
showSubmitPopup
:
boolean
=
false
;
showSubmitPopup
:
boolean
=
false
;
inTheSave
:
boolean
=
false
;
inTheSave
:
boolean
=
false
;
get
pageDataInject
()
{
return
this
.
pageData
;
}
async
created
()
{
async
created
()
{
const
{
pageId
,
templateId
}
=
this
.
$route
.
params
;
const
{
pageId
,
templateId
}
=
this
.
$route
.
params
;
this
.
resetPageData
();
this
.
resetPageData
();
...
@@ -66,10 +74,6 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
...
@@ -66,10 +74,6 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
console
.
log
(
'
beforeRouteLeave
'
);
console
.
log
(
'
beforeRouteLeave
'
);
}
}
get
layout
()
{
return
this
.
pageData
.
elements
.
map
(
v
=>
v
.
point
);
}
async
save
(
type
:
'
preview
'
|
'
save
'
,
pageConfig
)
{
async
save
(
type
:
'
preview
'
|
'
save
'
,
pageConfig
)
{
try
{
try
{
const
user
=
localStorage
.
get
(
'
user
'
);
const
user
=
localStorage
.
get
(
'
user
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment