Commit 84ab7046 authored by Xuguangxing's avatar Xuguangxing

feat: 列表增加uuid查询

parent ad812beb
...@@ -73,13 +73,14 @@ export default class EditorController extends Controller { ...@@ -73,13 +73,14 @@ export default class EditorController extends Controller {
} }
public async getList(ctx: Context) { 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; const { like } = ctx.model.Sequelize.Op;
let where = omitBy({ let where = omitBy({
author: author && { like: `%${author}%`}, author: author && { like: `%${author}%`},
pageName: pageName && { like: `%${pageName}%`}, pageName: pageName && { like: `%${pageName}%`},
pageDescribe: pageDescribe && { like: `%${pageDescribe}%`}, pageDescribe: pageDescribe && { like: `%${pageDescribe}%`},
isPublish, isPublish,
uuid,
tenantId: ctx.headers['qg-tenant-id'], tenantId: ctx.headers['qg-tenant-id'],
enable: 1 enable: 1
}, v => !v); }, v => !v);
......
...@@ -35,6 +35,11 @@ export default { ...@@ -35,6 +35,11 @@ export default {
title: '描述', title: '描述',
formType: 'input', formType: 'input',
}, },
{
key: 'uuid',
title: 'uuid',
formType: 'input',
},
{ {
key: 'author', key: 'author',
title: '作者', 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