Browse Source

feat: 工单关闭表单添加解决方式字段

master
AaronWu 5 months ago
parent
commit
abbd3fa59d
  1. 2
      src/api/issue/model.d.ts
  2. 9
      src/enums/dictEnum.ts
  3. 28
      src/views/question/issue/formSchemas.tsx

2
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 = {

9
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 = '解决方式',
}

28
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<TableListItem>,
@ -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<TableListItem>, 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',

Loading…
Cancel
Save