From abbd3fa59de2a0716361627c0b8f056b4edd6798 Mon Sep 17 00:00:00 2001 From: AaronWu <2463371514@qq.com> Date: Mon, 7 Jul 2025 17:20:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=A5=E5=8D=95=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=B7=BB=E5=8A=A0=E8=A7=A3=E5=86=B3=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/issue/model.d.ts | 2 ++ src/enums/dictEnum.ts | 9 ++++++++ src/views/question/issue/formSchemas.tsx | 28 +++++++++++++++++++++++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/src/api/issue/model.d.ts b/src/api/issue/model.d.ts index 26e46a1..ad2e371 100644 --- a/src/api/issue/model.d.ts +++ b/src/api/issue/model.d.ts @@ -28,6 +28,7 @@ declare namespace API { solution?: string; // 解决方案 zentaoNos?: string; // 关联的禅道工单号 resolutionTime?: string; // 解决时间 + solutionType?: string; // 解决方式 }; type CreateIssueParams = { @@ -55,6 +56,7 @@ declare namespace API { solution?: string; // 解决方案 zentaoNos?: string; // 关联的禅道工单号 resolutionTime?: string; // 解决时间 + solutionType?: string; // 解决方式 }; type DeleteIssueParams = { diff --git a/src/enums/dictEnum.ts b/src/enums/dictEnum.ts index c415670..6c49d6e 100644 --- a/src/enums/dictEnum.ts +++ b/src/enums/dictEnum.ts @@ -1,4 +1,13 @@ +/* + * @Author: AaronWu 2463371514@qq.com + * @Date: 2025-04-08 14:21:17 + * @LastEditors: AaronWu 2463371514@qq.com + * @LastEditTime: 2025-07-07 11:49:54 + * @FilePath: /IssueSupportManage/src/enums/dictEnum.ts + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ export enum DictEnum { QUESTION_TYPE = '问题属性', TAG_TYPE = '功能模块', + SOLUTION_TYPE = '解决方式', } diff --git a/src/views/question/issue/formSchemas.tsx b/src/views/question/issue/formSchemas.tsx index e755854..4c520ec 100644 --- a/src/views/question/issue/formSchemas.tsx +++ b/src/views/question/issue/formSchemas.tsx @@ -9,6 +9,7 @@ import { DictEnum } from '@/enums/dictEnum'; import { getDictionaryByTypeName } from '@/utils/dict'; import { fetchProdList, fetchVersionPageList } from '@/api/prodVersion'; const questionTypeList = await getDictionaryByTypeName(DictEnum.QUESTION_TYPE); +const solutionTypeList = await getDictionaryByTypeName(DictEnum.SOLUTION_TYPE); // 编辑页字段 export const getEditFormSchema: ( row?: Partial, @@ -43,6 +44,19 @@ export const getEditFormSchema: ( vIf: () => !isClient && isDetail, rules: [{ required: true, type: 'string' }], }, + { + label: '解决方式', + field: 'solutionType', + component: 'Select', + componentProps: { + options: solutionTypeList, + }, + colProps: { + span: 8, + }, + vIf: () => !isClient && isDetail, + rules: [{ required: true, type: 'string' }], + }, { field: 'tags', component: 'Select', @@ -232,7 +246,6 @@ export const getEditFormSchema: ( span: 6, }, vIf: () => !isClient && isDetail, - }, { @@ -384,6 +397,19 @@ export const getFlowFormSchema: (row?: Partial, state?: any) => F vIf: () => state === 5 || state === 6, rules: [{ required: true, type: 'string' }], }, + { + label: '解决方式', + field: 'solutionType', + component: 'Select', + componentProps: { + options: solutionTypeList, + }, + colProps: { + span: 24, + }, + vIf: () => state === 5 || state === 6, + rules: [{ required: true, type: 'string' }], + }, { field: 'remark', component: 'InputTextArea',