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/api/property/customerService/questionnaire/question/model.d.ts b/apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts index 11d169dd..3fc2d1b4 100644 --- a/apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts +++ b/apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts @@ -1,6 +1,6 @@ -import type { PageQuery, BaseEntity } from '#/api/common'; +import type {PageQuery, BaseEntity} from '#/api/common'; import type { - QuestionItemForm + QuestionItemForm, QuestionItemVO } from "#/api/property/customerService/questionnaire/questionItem/model"; export interface QuestionVO { @@ -39,6 +39,19 @@ export interface QuestionVO { */ sort: number; + /** + * 问题选项 + */ + questionnaireQuestionItemVos: QuestionItemVO[]; + + options: string[]; + + answer: string; + + rate:number; + + checked:string[]; + } export interface QuestionForm extends BaseEntity { @@ -80,17 +93,17 @@ export interface QuestionForm extends BaseEntity { /** * 选项 */ - questionnaireQuestionItems:QuestionItemForm[] + questionnaireQuestionItems: QuestionItemForm[] /** * 评分预览 */ - rate?:number; + rate?: number; /** * 时间预览 */ - dateTime?:string; + dateTime?: string; } @@ -126,7 +139,7 @@ export interface QuestionQuery extends PageQuery { sort?: number; /** - * 日期范围参数 - */ + * 日期范围参数 + */ params?: any; } diff --git a/apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts b/apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts index 97390bf9..73a564e0 100644 --- a/apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts +++ b/apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts @@ -1,5 +1,8 @@ import type { PageQuery, BaseEntity } from '#/api/common'; -import type {QuestionForm} from "#/api/property/customerService/questionnaire/question/model"; +import type { + QuestionForm, + QuestionVO +} from "#/api/property/customerService/questionnaire/question/model"; export interface QuestionnaireVO { /** @@ -36,7 +39,10 @@ export interface QuestionnaireVO { * 状态(1草稿2已发布3未发布) */ status: string; - + /** + * 问题 + */ + questionnaireQuestionVos:QuestionVO[]; } export interface QuestionnaireForm extends BaseEntity { 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) {