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
84ab7046
Commit
84ab7046
authored
Oct 13, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 列表增加uuid查询
parent
ad812beb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
editor.ts
app/controller/editor.ts
+2
-1
index.vue
app/web/page/editor/view/pageList/index.vue
+5
-0
No files found.
app/controller/editor.ts
View file @
84ab7046
...
...
@@ -73,13 +73,14 @@ export default class EditorController extends Controller {
}
public
async
getList
(
ctx
:
Context
)
{
const
{
type
,
pageSize
,
pageNo
,
author
,
pageName
,
isPublish
,
pageDescribe
}
=
ctx
.
query
;
const
{
type
,
pageSize
,
pageNo
,
author
,
pageName
,
isPublish
,
pageDescribe
,
uuid
}
=
ctx
.
query
;
const
{
like
}
=
ctx
.
model
.
Sequelize
.
Op
;
let
where
=
omitBy
({
author
:
author
&&
{
like
:
`%
${
author
}
%`
},
pageName
:
pageName
&&
{
like
:
`%
${
pageName
}
%`
},
pageDescribe
:
pageDescribe
&&
{
like
:
`%
${
pageDescribe
}
%`
},
isPublish
,
uuid
,
tenantId
:
ctx
.
headers
[
'
qg-tenant-id
'
],
enable
:
1
},
v
=>
!
v
);
...
...
app/web/page/editor/view/pageList/index.vue
View file @
84ab7046
...
...
@@ -35,6 +35,11 @@ export default {
title
:
'
描述
'
,
formType
:
'
input
'
,
},
{
key
:
'
uuid
'
,
title
:
'
uuid
'
,
formType
:
'
input
'
,
},
{
key
:
'
author
'
,
title
:
'
作者
'
,
...
...
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