diff --git a/src/api/manage/banned/types.ts b/src/api/manage/banned/types.ts index be134e4..86cc5aa 100644 --- a/src/api/manage/banned/types.ts +++ b/src/api/manage/banned/types.ts @@ -52,26 +52,16 @@ export interface BannedVO { /** * 1=用户,2=笔记,3=活动,4=评论 */ - classify: number; - - /** - * 举报时间 - */ - createTime: string; - - /** - * 操作人 - */ - updateBy: number; - - /** - * 操作时间 - */ - updateTime: string; + type: number; } export interface BannedForm extends BaseEntity { + /** + * 唯一标识ID + */ + id?: string | number; + /** * 被举报内容id */ @@ -120,7 +110,7 @@ export interface BannedForm extends BaseEntity { /** * 1=用户,2=笔记,3=活动,4=评论 */ - classify?: number; + type?: number; } @@ -174,7 +164,7 @@ export interface BannedQuery extends PageQuery { /** * 1=用户,2=笔记,3=活动,4=评论 */ - classify?: number; + type?: number; /** * 日期范围参数 diff --git a/src/api/manage/notebook/index.ts b/src/api/manage/notebook/index.ts index 380b393..84d11b7 100644 --- a/src/api/manage/notebook/index.ts +++ b/src/api/manage/notebook/index.ts @@ -73,11 +73,12 @@ export const tagall = (): AxiosPromise => { }; /** * 查询景点 - * @param id + * @param query */ -export const contentall = (): AxiosPromise => { +export const contentall = (query?: NotebookQuery): AxiosPromise => { return request({ url: '/manage/content/all', - method: 'get' + method: 'get', + params: query }); }; diff --git a/src/views/manage/banned/index.vue b/src/views/manage/banned/index.vue index 38548ea..ca55898 100644 --- a/src/views/manage/banned/index.vue +++ b/src/views/manage/banned/index.vue @@ -4,40 +4,28 @@
- - + + - - + + - - - - - - - - - - - - - - - - - - + + + - - - + + + - - + + + + + 搜索 重置 @@ -50,112 +38,59 @@ - - - - - - - - - - - + + + + + + + + - + + + + + + + + - - - - - - - - - - - - + - + - - + + + + - - - - - - - - - - - - - - - - - - - + - {{dict.label}} + 禁言 + 封禁 - - - {{dict.label}} - - - - + + + + - - + + + + + + - +