Commit 84ab7046 authored by Xuguangxing's avatar Xuguangxing

feat: 列表增加uuid查询

parent ad812beb
......@@ -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);
......
......@@ -35,6 +35,11 @@ export default {
title: '描述',
formType: 'input',
},
{
key: 'uuid',
title: 'uuid',
formType: 'input',
},
{
key: 'author',
title: '作者',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment