From 5ff3cd67d062ca6e64836cc0602cf616a0a04756 Mon Sep 17 00:00:00 2001 From: FLL <2162874245@qq.com> Date: Mon, 18 Aug 2025 17:15:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerService/faqManagement/index.ts | 61 ++++++ .../customerService/faqManagement/model.d.ts | 114 ++++++++++++ .../workOrdersType/workOrdersType-detail.vue | 9 +- .../customerService/commonProblem/index.vue | 11 -- .../customerService/faqManagement/data.ts | 124 +++++++++++++ .../faqManagement/faqManagement-detail.vue | 60 ++++++ .../faqManagement/faqManagement-modal.vue | 101 ++++++++++ .../customerService/faqManagement/index.vue | 173 ++++++++++++++++++ 8 files changed, 638 insertions(+), 15 deletions(-) create mode 100644 apps/web-antd/src/api/property/customerService/faqManagement/index.ts create mode 100644 apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts delete mode 100644 apps/web-antd/src/views/property/customerService/commonProblem/index.vue create mode 100644 apps/web-antd/src/views/property/customerService/faqManagement/data.ts create mode 100644 apps/web-antd/src/views/property/customerService/faqManagement/faqManagement-detail.vue create mode 100644 apps/web-antd/src/views/property/customerService/faqManagement/faqManagement-modal.vue create mode 100644 apps/web-antd/src/views/property/customerService/faqManagement/index.vue diff --git a/apps/web-antd/src/api/property/customerService/faqManagement/index.ts b/apps/web-antd/src/api/property/customerService/faqManagement/index.ts new file mode 100644 index 00000000..3e1114f0 --- /dev/null +++ b/apps/web-antd/src/api/property/customerService/faqManagement/index.ts @@ -0,0 +1,61 @@ +import type { FaqManagementVO, FaqManagementForm, FaqManagementQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询常见问题管理列表 +* @param params +* @returns 常见问题管理列表 +*/ +export function faqManagementList(params?: FaqManagementQuery) { + return requestClient.get>('/property/faqManagement/list', { params }); +} + +/** + * 导出常见问题管理列表 + * @param params + * @returns 常见问题管理列表 + */ +export function faqManagementExport(params?: FaqManagementQuery) { + return commonExport('/property/faqManagement/export', params ?? {}); +} + +/** + * 查询常见问题管理详情 + * @param id id + * @returns 常见问题管理详情 + */ +export function faqManagementInfo(id: ID) { + return requestClient.get(`/property/faqManagement/${id}`); +} + +/** + * 新增常见问题管理 + * @param data + * @returns void + */ +export function faqManagementAdd(data: FaqManagementForm) { + return requestClient.postWithMsg('/property/faqManagement', data); +} + +/** + * 更新常见问题管理 + * @param data + * @returns void + */ +export function faqManagementUpdate(data: FaqManagementForm) { + return requestClient.putWithMsg('/property/faqManagement', data); +} + +/** + * 删除常见问题管理 + * @param id id + * @returns void + */ +export function faqManagementRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/faqManagement/${id}`); +} diff --git a/apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts b/apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts new file mode 100644 index 00000000..795fba31 --- /dev/null +++ b/apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts @@ -0,0 +1,114 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface FaqManagementVO { + /** + * id + */ + id: string | number; + + /** + * 标题 + */ + head: string; + + /** + * 分类 + */ + type: string; + + /** + * 浏览量 + */ + pageView: number; + + /** + * 内容 + */ + contents: string; + + /** + * 状态(1草稿 2已发布) + */ + status: string; + + /** + * 搜索值 + */ + searchValue: string; + +} + +export interface FaqManagementForm extends BaseEntity { + /** + * id + */ + id?: string | number; + + /** + * 标题 + */ + head?: string; + + /** + * 分类 + */ + type?: string; + + /** + * 浏览量 + */ + pageView?: number; + + /** + * 内容 + */ + contents?: string; + + /** + * 状态(1草稿 2已发布) + */ + status?: string; + + /** + * 搜索值 + */ + searchValue?: string; + +} + +export interface FaqManagementQuery extends PageQuery { + /** + * 标题 + */ + head?: string; + + /** + * 分类 + */ + type?: string; + + /** + * 浏览量 + */ + pageView?: number; + + /** + * 内容 + */ + contents?: string; + + /** + * 状态(1草稿 2已发布) + */ + status?: string; + + /** + * 搜索值 + */ + searchValue?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue b/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue index 48be2231..a3ec00b1 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue +++ b/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue @@ -29,10 +29,11 @@ async function handleOpenChange(open: boolean) {