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
20c7bde2
Commit
20c7bde2
authored
Mar 04, 2025
by
刘世达
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-link-add-vccChannel' into 'master'
feat: 生成链接上增加vccChannel See merge request
!108
parents
174bfa4f
f2da41cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
204 additions
and
194 deletions
+204
-194
index.vue
app/web/page/editor/view/pageList/index.vue
+204
-194
No files found.
app/web/page/editor/view/pageList/index.vue
View file @
20c7bde2
...
...
@@ -9,113 +9,118 @@
</QGTable>
</
template
>
<
script
>
import
editorApi
from
'
@api/editor.api
'
;
import
QGTable
from
'
@editor/component/QgTable/index.vue
'
;
import
config
from
'
@/config/index
'
;
import
editorApi
from
"
@api/editor.api
"
;
import
QGTable
from
"
@editor/component/QgTable/index.vue
"
;
import
config
from
"
@/config/index
"
;
export
default
{
components
:
{
QGTable
,
},
data
()
{
data
()
{
return
{
columns
:
[
{
key
:
'
id
'
,
title
:
'
编号
'
,
formType
:
'
input
'
,
hideSearch
:
true
key
:
"
id
"
,
title
:
"
编号
"
,
formType
:
"
input
"
,
hideSearch
:
true
,
},
{
key
:
'
pageName
'
,
title
:
'
名称
'
,
formType
:
'
input
'
,
key
:
"
pageName
"
,
title
:
"
名称
"
,
formType
:
"
input
"
,
},
{
key
:
'
pageDescribe
'
,
title
:
'
描述
'
,
formType
:
'
input
'
,
key
:
"
pageDescribe
"
,
title
:
"
描述
"
,
formType
:
"
input
"
,
},
{
key
:
'
uuid
'
,
title
:
'
uuid
'
,
formType
:
'
input
'
,
key
:
"
uuid
"
,
title
:
"
uuid
"
,
formType
:
"
input
"
,
hideTable
:
true
,
},
{
key
:
'
author
'
,
title
:
'
作者
'
,
formType
:
'
input
'
,
key
:
"
author
"
,
title
:
"
作者
"
,
formType
:
"
input
"
,
},
{
key
:
'
coverImage
'
,
title
:
'
封面
'
,
key
:
"
coverImage
"
,
title
:
"
封面
"
,
hideSearch
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
'
div
'
,
"
div
"
,
{
style
:
{
textAlign
:
'
left
'
,
display
:
'
flex
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
padding
:
'
10px 0
'
textAlign
:
"
left
"
,
display
:
"
flex
"
,
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
,
padding
:
"
10px 0
"
,
},
},
[
h
(
'
img
'
,
{
[
h
(
"
img
"
,
{
attrs
:
{
src
:
params
.
row
.
coverImage
+
'
?imageMogr2/format/jpg/thumbnail/!10p
'
,
src
:
params
.
row
.
coverImage
+
"
?imageMogr2/format/jpg/thumbnail/!10p
"
,
},
style
:
{
width
:
'
37.5px
'
,
height
:
'
66.7px
'
,
objectFit
:
'
contain
'
}
}
)
]
width
:
"
37.5px
"
,
height
:
"
66.7px
"
,
objectFit
:
"
contain
"
,
},
}),
]
);
},
},
{
key
:
'
id
'
,
title
:
'
链接
'
,
key
:
"
id
"
,
title
:
"
链接
"
,
hideSearch
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
'
span
'
,
`
${
config
.
h5Host
}
/activity/
${
params
.
row
.
uuid
}
?tenantId=
${
params
.
row
.
tenantId
}
&vccToken={token}&appChannel={appChannel}`
)
}
return
h
(
"
span
"
,
`
${
config
.
h5Host
}
/activity/
${
params
.
row
.
uuid
}
?tenantId=
${
params
.
row
.
tenantId
}
&vccToken={token}&appChannel={appChannel}&vccChannel={registerFrom}`
);
},
},
{
key
:
'
isTemplate
'
,
title
:
'
是否模板
'
,
formType
:
'
select
'
,
key
:
"
isTemplate
"
,
title
:
"
是否模板
"
,
formType
:
"
select
"
,
number
:
true
,
hideSearch
:
true
,
valueEnum
:
{
0
:
'
否
'
,
1
:
'
是
'
,
}
0
:
"
否
"
,
1
:
"
是
"
,
},
},
{
key
:
'
updatedAt
'
,
title
:
'
更新时间
'
,
hideSearch
:
true
key
:
"
updatedAt
"
,
title
:
"
更新时间
"
,
hideSearch
:
true
,
},
{
key
:
'
action
'
,
title
:
'
操作
'
,
key
:
"
action
"
,
title
:
"
操作
"
,
width
:
250
,
render
:
(
h
,
params
)
=>
{
const
props
=
{
type
:
'
primary
'
,
type
:
"
primary
"
,
};
const
style
=
{
display
:
'
inline-block
'
,
margin
:
'
5px
'
,
display
:
"
inline-block
"
,
margin
:
"
5px
"
,
};
const
btnArr
=
[
h
(
'
Button
'
,
"
Button
"
,
{
props
,
style
:
{
...
...
@@ -123,14 +128,16 @@ export default {
},
on
:
{
click
:
()
=>
{
window
.
open
(
`
${
config
.
h5Host
}
/activity/
${
params
.
row
.
uuid
}
?tenantId=
${
params
.
row
.
tenantId
}
&isPreview=1`
);
window
.
open
(
`
${
config
.
h5Host
}
/activity/
${
params
.
row
.
uuid
}
?tenantId=
${
params
.
row
.
tenantId
}
&isPreview=1`
);
},
},
},
'
预览
'
"
预览
"
),
h
(
'
Button
'
,
"
Button
"
,
{
props
,
style
:
{
...
...
@@ -143,15 +150,18 @@ export default {
},
},
},
'
修改
'
"
修改
"
),
h
(
'
Button
'
,
"
Button
"
,
{
props
,
style
:
{
...
style
,
display
:
params
.
row
.
pageHistory
&&
params
.
row
.
pageHistory
.
length
?
'
inline-block
'
:
'
none
'
display
:
params
.
row
.
pageHistory
&&
params
.
row
.
pageHistory
.
length
?
"
inline-block
"
:
"
none
"
,
},
on
:
{
click
:
()
=>
{
...
...
@@ -159,21 +169,21 @@ export default {
},
},
},
'
历史记录
'
"
历史记录
"
),
h
(
'
Poptip
'
,
"
Poptip
"
,
{
props
:
{
confirm
:
true
,
transfer
:
true
,
title
:
'
确认删除?
'
,
title
:
"
确认删除?
"
,
},
style
:
{
...
style
,
},
on
:
{
'
on-ok
'
:
async
()
=>
{
"
on-ok
"
:
async
()
=>
{
await
editorApi
.
delPageById
(
params
.
row
.
id
);
this
.
$refs
.
qgTable
.
query
();
},
...
...
@@ -181,20 +191,20 @@ export default {
},
[
h
(
'
Button
'
,
"
Button
"
,
{
props
,
},
'
删除
'
"
删除
"
),
]
),
];
return
h
(
'
div
'
,
"
div
"
,
{
style
:
{
textAlign
:
'
center
'
,
textAlign
:
"
center
"
,
},
},
btnArr
...
...
@@ -202,25 +212,25 @@ export default {
},
},
],
}
};
},
methods
:
{
async
query
(
data
)
{
return
editorApi
.
getPageList
({
type
:
'
list
'
,
...
data
});
return
editorApi
.
getPageList
({
type
:
"
list
"
,
...
data
});
},
addPage
()
{
this
.
$router
.
push
(
'
/detail
'
);
this
.
$router
.
push
(
"
/detail
"
);
},
async
refreshData
()
{
try
{
await
editorApi
.
refreshCache
();
this
.
$Notice
.
success
({
title
:
'
刷新成功!
'
});
this
.
$Notice
.
success
({
title
:
"
刷新成功!
"
});
}
catch
(
error
)
{
console
.
log
(
error
);
this
.
$Notice
.
warning
({
title
:
'
刷新失败!
'
});
this
.
$Notice
.
warning
({
title
:
"
刷新失败!
"
});
}
},
},
mounted
(){}
}
mounted
()
{},
}
;
</
script
>
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