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',